Comments (4)
After this commit from @piotras it doesn't crash on the first button press, but does crash on the second. Backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x00000000005761f2 in v8::Value::IsFunction() const ()
(gdb) bt full
#0 0x00000000005761f2 in v8::Value::IsFunction() const ()
No symbol table info available.
#1 0x00007ffff599eb24 in gir::GIRObject::Emit(v8::Handle<v8::Value>*, int) () from /home/bergie/Projects/node-gir/build/Release/lib.target/girepository.node
No symbol table info available.
#2 0x00007ffff599ec9d in gir::GIRObject::SignalCallback(_GClosure*, _GValue*, unsigned int, _GValue const*, void*, void*) ()
from /home/bergie/Projects/node-gir/build/Release/lib.target/girepository.node
No symbol table info available.
#3 0x00007ffff5521ca2 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#4 0x00007ffff5532fdd in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#5 0x00007ffff553b099 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#6 0x00007ffff553b242 in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#7 0x00007ffff3e0f0b8 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
No symbol table info available.
#8 0x00007ffff5521ca2 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#9 0x00007ffff5533179 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#10 0x00007ffff553b099 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#11 0x00007ffff553b242 in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#12 0x00007ffff3e0d7f7 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
No symbol table info available.
#13 0x00007ffff3ece501 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
No symbol table info available.
#14 0x00007ffff5521eca in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#15 0x00007ffff553a741 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#16 0x00007ffff553b242 in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#17 0x00007ffff3ff97e9 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
No symbol table info available.
#18 0x00007ffff3ecc3ab in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#19 0x00007ffff3ece0c1 in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
No symbol table info available.
#20 0x00007ffff3b1dd32 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
No symbol table info available.
#21 0x00007ffff5264d53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#22 0x00007ffff52650a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#23 0x00007ffff526549a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#24 0x00007ffff3ecd42d in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
No symbol table info available.
#25 0x00007ffff4ac7a14 in ffi_call_unix64 () from /usr/lib/x86_64-linux-gnu/libffi.so.6
No symbol table info available.
#26 0x00007ffff4ac7435 in ffi_call () from /usr/lib/x86_64-linux-gnu/libffi.so.6
No symbol table info available.
#27 0x00007ffff576aa59 in ?? () from /usr/lib/libgirepository-1.0.so.1
No symbol table info available.
#28 0x00007ffff576be0e in g_function_info_invoke () from /usr/lib/libgirepository-1.0.so.1
No symbol table info available.
#29 0x00007ffff599d294 in gir::Func::Call(_GObject*, _GIBaseInfoStub*, v8::Arguments const&, bool) ()
from /home/bergie/Projects/node-gir/build/Release/lib.target/girepository.node
No symbol table info available.
#30 0x00007ffff59a34bb in gir::GIRFunction::Execute(v8::Arguments const&) () from /home/bergie/Projects/node-gir/build/Release/lib.target/girepository.node
No symbol table info available.
Also, no sound is emitted.
from node-gir.
I think the problem is not the second button, the problem are on all buttons.
You example crash on repeated click on any button, too.
The same on my programm.
If I click on the pdf button, the function generate_pdf dosn't work correctly and my app crash on the second click.
pdf_button.on("clicked", function(){
generate_pdf('test.pdf');
});
If I change "generate_pdf('test.pdf');" to a simple console.log, my programm works fine.
I think anything is wrong with the button-signal.
Maybe gir think the function is finished and delete anything before he is finished?
from node-gir.
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.
from node-gir.
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:
try {
return pipeline.set_state(gst.State.PLAYING);
} catch (err) {
console.log(err);
}
It doesn't solve the problem, but at least crash goes away and we have proper human readable message.
I am investigating it, cause for some reason playing state is introspectable as interface. Which is obviously wrong as it's enum.
from node-gir.
Related Issues (20)
- use gtk3 HOT 2
- Xvfb support
- New Maintainer HOT 1
- GError implementation
- Creation methods with parameters are ignored HOT 4
- Arguments in structure constructor
- Error in namespace_loader.cc:18:58 if I try to build node-gir HOT 6
- Where can I find documents about node-gir please? HOT 4
- Error message when linking library
- missing license and copyright HOT 10
- explain how to generate documentation from gir file in the README
- Failed to convert argument 2 "3" to GI Type tag "interface" HOT 2
- problem connecting signals (gir/gtk3) HOT 3
- Can't install on ubuntu HOT 4
- Is this dead? HOT 2
- Why was the license stripped out? HOT 3
- reconsider name mangling on api HOT 20
- notes for building and running examples
- browser.js example fails HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-gir.