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

LevelDB instance gets overreleased under high contention #37

Open
dsanghan opened this issue Aug 3, 2016 · 1 comment
Open

LevelDB instance gets overreleased under high contention #37

dsanghan opened this issue Aug 3, 2016 · 1 comment

Comments

@dsanghan
Copy link

dsanghan commented Aug 3, 2016

As someone else already mentioned in one of the other issues, LevelDB.mm seems to be missing some retains. I was getting unexplainable crashes for about 0.3% of my users and it turns out that the db ivar in LevelDB.mm is getting released even though a strong reference to its parent , and in turn itself exists when used across a multitude of threads with a very high volume of reads. Ironically, the issue gets worse when writes are synced on the wrapper.

The issue does get resolved when I move the three .mm files to ARC - which I thought would be easier to do than further debug the overrelease. Maybe the .mm files should just be moved to arc for good?

@matehat
Copy link
Owner

matehat commented Dec 12, 2018

@dsanghan can you share how you fixed your issue by moving them to ARC? Opening a pull request maybe?

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

2 participants