Skip to content
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

pybind11_object_dealloc(): Tried to deallocate unregistered instance! #567

Closed
alatdneg opened this issue Sep 9, 2019 · 4 comments
Closed

Comments

@alatdneg
Copy link

alatdneg commented Sep 9, 2019

Hi, I've pulled the latest version and got it working but something in one of my tools is triggering this error, I've not managed to workout where it's happening yet, but this ticket seems to imply that the problem is actually on your end.

pybind/pybind11#1568

cheers!

@alatdneg
Copy link
Author

This is the error msg.

Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'std::runtime_error'
what(): pybind11_object_dealloc(): Tried to deallocate unregistered instance!
Aborted

@alatdneg
Copy link
Author

So I've tracked it down to QModelIndex.internalPointer(), seems this holds a weak reference.
Not sure why it's calling the unregister twice though, if I store a reference of any object used in an index in a global set, then I don't have the crash.
Obviously this is prolonging the life time of objects, which isn't great, but at least I can use the C++ version of otio.

@ssteinbach
Copy link
Collaborator

@alatdneg can you provide a bit more context or some repro code for this? As far as I know we haven't hit this in otioview, but it doesn't look like otioview uses the QModelIndex class

@meshula
Copy link
Collaborator

meshula commented Oct 27, 2021

Closing to inactivity. Please feel free to repoen if this still occurs.

@meshula meshula closed this as completed Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants