rendering: show error message on exception in render thread #165

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
5 participants
@mgehre
Member

mgehre commented Dec 11, 2011

Could someone with gtk experience fix this commit?

The idea is to show a error message by creating a gtk button with a given label.

But the attached code does not show any gtk button after the exception is thrown in RenderThread::init().
Changing the background color to 'red' works though.

Any ideas?

@devkral

This comment has been minimized.

Show comment
Hide comment
@devkral

devkral Jan 27, 2013

Contributor

I now see why it doesn't work:
you need to remove the previous child via
gtk_container_remove
see
http://developer.gnome.org/gtk2/2.24/GtkContainer.html

Contributor

devkral commented Jan 27, 2013

I now see why it doesn't work:
you need to remove the previous child via
gtk_container_remove
see
http://developer.gnome.org/gtk2/2.24/GtkContainer.html

@aajanki

This comment has been minimized.

Show comment
Hide comment
@aajanki

aajanki Jan 30, 2013

Contributor

@devkral, can you provide a patch? I can't make gtk_container_remove to work, because the widget is the toplevel window (in the standalone case) which can't be removed.

Maybe the rendering should be done on a child widget, which could be swapped to a label when an error occurs.

Contributor

aajanki commented Jan 30, 2013

@devkral, can you provide a patch? I can't make gtk_container_remove to work, because the widget is the toplevel window (in the standalone case) which can't be removed.

Maybe the rendering should be done on a child widget, which could be swapped to a label when an error occurs.

@devkral

This comment has been minimized.

Show comment
Hide comment
@devkral

devkral Feb 5, 2013

Contributor

yes of course, sorry, I didn't see that you answered until now

Contributor

devkral commented Feb 5, 2013

yes of course, sorry, I didn't see that you answered until now

@devkral

This comment has been minimized.

Show comment
Hide comment
@devkral

devkral Feb 6, 2013

Contributor

sorry, I was wrong, gtk_container_remove don't work and I tried some hours replacing a widget but no success. But may can my code help you (see testing2 branch)

Contributor

devkral commented Feb 6, 2013

sorry, I was wrong, gtk_container_remove don't work and I tried some hours replacing a widget but no success. But may can my code help you (see testing2 branch)

@theli-ua

This comment has been minimized.

Show comment
Hide comment
@theli-ua

theli-ua Mar 13, 2013

Anyone has a link to swf which can cause an exception in this render thread?

Anyone has a link to swf which can cause an exception in this render thread?

@dbluelle

This comment has been minimized.

Show comment
Hide comment
@dbluelle

dbluelle Nov 26, 2017

Collaborator

rendering errors are now handled by SDL message boxes

Collaborator

dbluelle commented Nov 26, 2017

rendering errors are now handled by SDL message boxes

@dbluelle dbluelle closed this Nov 26, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment