-
Notifications
You must be signed in to change notification settings - Fork 20
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
Segmentation fault when exiting the built HelloWorld example #12
Comments
Hi,
|
Hello,
The program which I've been tested just with Qt::Application.exec()
Regards |
That behaviour is expected, as you're starting the event loop with the call to Also, I need the Qt version that is installed, not how you installed it. |
For future reference, the version of Qt 5 in Mint 18.3/Ubuntu Xenial is 5.5.1. EDIT: Oh wow, I timed that comment perfectly. 👌 |
@kirbyfan64 So kinda old, but the oldest version there are shipped bindings for, so that's fine. Thanks |
Ok : this works perfectly
|
Could it be that the order the finalizers are called is 'wrong'? Try running the hello world sample without the last five lines: # We're ready for showtime
window.show
# And now, start it!
Qt::Application.exec I hope it still crashes? |
Did you mean the following ?
I've just tried this code and it returns immediately without crashing (but without showing any window). Also I build the executable with the command |
Yes that's what I meant. Kinda sucks that it doesn't crash though. Back to square 1. You'd have to figure out what object lies at the address given in the log in your opening post. You can do that using gdb, maybe valgrind could also help to show what's going on, etc.. But that's nothing I could give you easy directions for in terms of this issue tracker. I assume it has something to do with the garbage collector fighting with Qt under certain circumstances. One might Sorry to bring bad news on this. |
Unfortunately I don't know how to use gdb nor valgrind. Regards |
@loloof64 Try building your application in debug mode and then running |
Thank you :)
Produced me the errors file I've attached Otherwise
|
This may have been solved by a temporary workaround that now exists in bindgen (added in commit Papierkorb/bindgen@01265f9 and tracked for further refinement in Papierkorb/bindgen#37) |
I am going to close this ticket since in addition to the previous comment I have also tested myself and can't reproduce the issue. Please reopen or submit a new issue if the problem persists. |
Hello, first congratulation for such a work and for the simplicity of your README. (The only drawback is that you don't mention the need to install the libgc-dev package).
I've built the HelloWorld sample on LinuxMint 18.3 64bit, but when exiting the application (reproduced after several compilation-launch), I get a segmentation fault. I don't know if this come from Crystal or from the qt binding
And again, great work.
The text was updated successfully, but these errors were encountered: