-
Notifications
You must be signed in to change notification settings - Fork 10
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
Async callbacks throw error #103
Comments
Probably caused by a missing Can you run with environment variable "G_MESSAGES_DEBUG=all" and copy the output here? |
some of the output is intermixed with my application prints |
The FileInputStream at address 140114584243168 emits a ToggleNotify with I think my assumption was incorrect, and this can happen in an async context when multiple threads access the same object concurrently. I will change the ToggleNotify event handler to handle this more gracefully. |
I changed the toggle reference functionality to handle the situation described above. I also found another bug related to refcounting: for all objects with floating references (i.e. all Gtk widgets) an extra call to g_object_ref was done when java-gi added them to the InstanceCache. This is a memory leak, so I fixed this as well. I published a 0.10.2-SNAPSHOT release with both these fixes. Can you please retest? For snapshot dependencies, add https://s01.oss.sonatype.org/content/repositories/snapshots to the repositories in your build script. |
Looks like it fixed the issue for me |
Fixed with commit ae67610 |
i think it has something to do with garbage collection because it's indeterminate which of these two throw and both involve callbacks passed into GObject land
The text was updated successfully, but these errors were encountered: