GNOME Bugzilla – Bug 683274
spice: do not call get_pixbuf() if the display is not ready
Last modified: 2016-03-31 13:53:57 UTC
Avoid the infamous d->data != NULL critical when the display is not ready. Sadly, get_pixbuf() doesn't raise errors, so it makes sense to not call the function when the display is not ready.
Created attachment 223328 [details] [review] spice: do not call get_pixbuf() if the display is not ready
Review of attachment 223328 [details] [review]: Does this help in any way with bug #683042 ? ::: src/spice-display.vala @@ +97,3 @@ + return null; + + return display.get_pixbuf (); I assume currently null is already returned, but a critical is raised as well?
(In reply to comment #2) > Review of attachment 223328 [details] [review]: > > Does this help in any way with bug #683042 ? No I suspect it has to do with the ready callback, I tried to look at it, but it's not easy to reproduce. It would be nice to fix indeed. > ::: src/spice-display.vala > @@ +97,3 @@ > + return null; > + > + return display.get_pixbuf (); > > I assume currently null is already returned, but a critical is raised as well? yes
Attachment 223328 [details] pushed as 3356877 - spice: do not call get_pixbuf() if the display is not ready