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

use direct connection to prevent a crash with sender being garbage in onSignalEmitted #89

Closed
wants to merge 1 commit into from

Conversation

gtalusan
Copy link

Running into a persistent crash as noted here: #88

Using Qt 5.2 32-bit with a 32-bit i686 injector on OS X 10.10 x86_64. Seems that onSignalEmitted's sender is garbage sometimes. Quick fix is to use a DirectConnection to invoke the method instead of an AutoConnection.

With this fix in place, I'm able to actually launch GammaRay and browse the object hierarchy of my application.

vkrause added a commit that referenced this pull request Aug 12, 2014
Could be invalid already for short-lived objects in another thread.

Should fix issue #89.
@vkrause
Copy link
Contributor

vkrause commented Aug 12, 2014

Thanks for analyzing the issue!

Using a direct connection addresses the immediate problem but it will subsequently call model functions from the wrong thread. I've pushed an alternative fix that should address this issue.

@gtalusan
Copy link
Author

👍

@gtalusan gtalusan closed this Aug 12, 2014
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

Successfully merging this pull request may close these issues.

2 participants