-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
App crash on removing element that called python function. #115
Comments
Can you provide a short, self-contained, correct example of the bug? Or at least a stack trace/back trace (e.g. by running the affected program in |
Break at 0x00002aaaa0ef8ca7 on Thread 9 QPythonWorker
|
Another stop stack. In QPythonWorker too.
|
I will provide short code in few days. |
And with debug version of plugin
|
no ideas how to fix it? |
I haven't had time to investigate yet. From a quick glance at the traces, it looks like the Python side keeps a reference to a Qt object that has since been deallocated. We DO connect to the It could also be that there's something wrong with the implementation in In order to easily debug it here, I would still need a short, self-contained correct example of the bug (code!) that makes it easy to reproduce the issue. |
If it is really a use-after-free situation, maybe using https://doc.qt.io/qt-5/qpointer.html could be useful instead of a raw pointer to |
I have a StackView. Page loads data with python. If I press Cancel button with
stack.pop()
Page destroyed and pyotherside callback function too. So app segfaulted. How to cancel function or block component destructor?The text was updated successfully, but these errors were encountered: