Run cleanable immediately when calling yieldOwnership (fixes #222) #224
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
java
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
java-gi/java-gi!224
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-222"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Avoids the potential memory corruption as described in #222
Thanks!
Do you have specific examples to test this with?
I don't have a self-contained example to test with. I could try to write one. I found this when sending an event to a GstPipeline.
I added a log statement to MemoryCleaner.getOrRegister to see the associated address
and correlated that to the hs_err_pid*.log file where it failed calling gst_mini_object_unref on that address. I could get a crash to happen within 20 minutes, but not at all after these changes.