-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash in the Guitar Tuner example #22
Comments
After this commit from @piotras it doesn't crash on the first button press, but does crash on the second. Backtrace:
Also, no sound is emitted. |
I think the problem is not the second button, the problem are on all buttons. If I click on the pdf button, the function generate_pdf dosn't work correctly and my app crash on the second click.
If I change "generate_pdf('test.pdf');" to a simple console.log, my programm works fine. |
Its very crazy, I have a gtk-program with 2 buttons. The first create a string and run exec, the second create new gtk.widget's. If I click on any button, my program is crashing, but If I comment out the first on-clicked function, my programm works.. So my program are only working if I have not more than 1 on-button-clicked-signals and I run only 1 function they is a non-gir function or I run only gir-functions (more or less). I hope this is helpful. |
Crash is caused by exception being thrown in callback. This exception is completely silent. In case of guitar example,you can add try catch block:
It doesn't solve the problem, but at least crash goes away and we have proper human readable message. |
I ported the guitar tuner example from GNOME developer docs to node-gir and CoffeeScript:
https://github.com/bergie/node-gir/blob/master/examples/guitartuner.coffee
When I try to make GStreamer to play a sound (by clicking a button), there is a segfault. Backtrace is:
The text was updated successfully, but these errors were encountered: