You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run example 18, the Cairo Draw Handler, from the GTK::Simple module on Ubuntu 18.04 using Rakudo Star version 2018.06 built on MoarVM version 2018.06 implementing Perl 6.c.
I get the following error message.
MoarVM panic: Internal error: Unwound entire stack and missed handler
The text was updated successfully, but these errors were encountered:
I don't know about the example in question (which would want fixing), but the error pretty much always means that a callback leaked an exception, and since an exception cannot be thrown into C code on the callstack, it panics.
Hi,
it is indeed as @jnthn says. The actual reason is that if the Cairo module isn't installed, the attempt to require it fails silently leaving some variables undefined that are subsequently used in the add-draw-handler callback wrapper, thus causing an exception in the callback.
Assuming you already have the cairo libraries installed on your computer then:
zef install Cairo
will fix.
If I get a minute today I'll fix the gtk_simple_use_cairo so that it doesn't just blunder on if Cairo isn't installed.
It took a little more time to get around to it than I expected but I have put in a simple fix to avoid the condition whereby the MoarVM panic is triggered.
There may be a more refined solution possible, but this should stop this being a problem.
I'm trying to run example 18, the Cairo Draw Handler, from the GTK::Simple module on Ubuntu 18.04 using Rakudo Star version 2018.06 built on MoarVM version 2018.06 implementing Perl 6.c.
I get the following error message.
MoarVM panic: Internal error: Unwound entire stack and missed handler
The text was updated successfully, but these errors were encountered: