After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 751877 - gtkdrawingarea: crash when drawing a video
gtkdrawingarea: crash when drawing a video
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-07-03 08:04 UTC by Víctor Manuel Jáquez Leal
Modified: 2015-07-03 13:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
drawingarea: call parent's draw() if no window (1.44 KB, patch)
2015-07-03 08:05 UTC, Víctor Manuel Jáquez Leal
none Details | Review
drawingarea: checks parent's draw() before call it (1.13 KB, patch)
2015-07-03 09:16 UTC, Víctor Manuel Jáquez Leal
committed Details | Review

Description Víctor Manuel Jáquez Leal 2015-07-03 08:04:17 UTC
Commit 6786c9d7 introduced a bug when a drawing area is used for rendering videos, since the drawing area doesn't assing a draw() method if the widget doesn't has a window.

  • #0 ??
  • #1 gtk_drawing_area_draw
    at gtkdrawingarea.c line 222
  • #2 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 85
  • #3 gtk_widget_draw_marshaller
    at gtkwidget.c line 1074
  • #4 g_type_class_meta_marshal
    at gclosure.c line 994
  • #5 g_closure_invoke
    at gclosure.c line 801
  • #6 signal_emit_unlocked_R
    at gsignal.c line 3619
  • #7 g_signal_emit_valist
    at gsignal.c line 3347
  • #8 g_signal_emit
    at gsignal.c line 3393
  • #9 _gtk_widget_draw_internal
    at gtkwidget.c line 6992
  • #10 _gtk_widget_draw_windows
    at gtkwidget.c line 7093
  • #11 _gtk_widget_draw
    at gtkwidget.c line 7164
  • #12 gtk_container_propagate_draw
    at gtkcontainer.c line 3748
  • #13 gtk_container_draw
    at gtkcontainer.c line 3583
  • #14 gtk_box_draw
    at gtkbox.c line 448
  • #15 _gtk_marshal_BOOLEAN__BOXEDv
    at gtkmarshalers.c line 130
  • #16 gtk_widget_draw_marshallerv
    at gtkwidget.c line 1102
  • #17 g_type_class_meta_marshalv
    at gclosure.c line 1021
  • #18 _g_closure_invoke_va
    at gclosure.c line 864
  • #19 g_signal_emit_valist
    at gsignal.c line 3246
  • #20 g_signal_emit
    at gsignal.c line 3393
  • #21 _gtk_widget_draw_internal
    at gtkwidget.c line 6992
  • #22 _gtk_widget_draw
    at gtkwidget.c line 7170
  • #23 gtk_container_propagate_draw
    at gtkcontainer.c line 3748
  • #24 gtk_container_draw
    at gtkcontainer.c line 3583
  • #25 gtk_box_draw
    at gtkbox.c line 448

Comment 1 Víctor Manuel Jáquez Leal 2015-07-03 08:05:13 UTC
Created attachment 306681 [details] [review]
drawingarea: call parent's draw() if no window

Commit 6786c9d7 introduced a bug when a drawing area is used for
rendering videos, since the drawing area doesn't assing a draw()
method if the widget doesn't has a window.
Comment 2 Víctor Manuel Jáquez Leal 2015-07-03 09:16:44 UTC
Created attachment 306686 [details] [review]
drawingarea: checks parent's draw() before call it

commit 6786c9d7 introduced a bug when a drawing area is used for
rendering videos, since GtkWidgetClass doesn't set a draw()
method by itself.
Comment 3 Emmanuele Bassi (:ebassi) 2015-07-03 13:21:49 UTC
Attachment 306686 [details] pushed as b3166b7 - drawingarea: checks parent's draw() before call it