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

SIGSEGV #2027

Closed
philipuvarov opened this issue Jan 4, 2016 · 6 comments
Closed

SIGSEGV #2027

philipuvarov opened this issue Jan 4, 2016 · 6 comments
Assignees
Labels

Comments

@philipuvarov
Copy link

Hey, guys. I'm getting loads of SIGSEGVs right now (Realm 0.87.1). Our app performs a lot of async queries and writes(we have a ViewPager with 10 elements, where each element is a RecyclerView). Basically, these elements are feeds where the same or different posts are sorted in different ways. Sometimes crash occurs when user just swings the ViewPager, sometimes it occurs when user restarts this fragment.

RealmChangeListener is usually set in the onStart() method and removed in the onStop() method of a fragment. Btw, I tried commenting out removeChangeListeners, but it didn't really help.

Looking forward to your response, sadly right now this issue totally bricks our app :(

Here is the log:
RealmLog.txt

By the way, I've noticed that D/REALM: REALM_CHANGED realm:io.realm.HandlerController@537635c8 updating async queries, total: NUMBER goes higher and higher over time.

Small update: I am using Realm as a Singleton, but I when I encountered this problem I've tried switching to the opening Realm in onStart() and closing it in onStop(), but it also didn't help.

Btw, this scenario is much easier to reproduce on older devices and/or api versions (API 4.1.1)

@nhachicha
Copy link
Collaborator

Hi @Kistamushken
is it possible to share the APK and/or the code (even privately help@realm.io)
we'll try to investigate
Cheers,

@philipuvarov
Copy link
Author

@nhachicha I will send debug version of our apk to help@realm.io and provide you with a scenario to reproduce shortly.

@philipuvarov
Copy link
Author

@nhachicha sent you the apk.

@dalinaum dalinaum removed the Pending label Jan 5, 2016
@nhachicha nhachicha self-assigned this Jan 7, 2016
@nhachicha nhachicha added Blocked This issue is blocked by another issue Pending labels Jan 12, 2016
@nhachicha nhachicha added Pending and removed Pending labels Jan 18, 2016
@cmelchior
Copy link
Contributor

We have just released 0.87.4 with a potential fix for this. We still haven't been able to reproduce the exact error you are reporting here, but upon investigation found something that appeared to be the root cause. So if you can test with 0.87.4 that would be much appreciated.

@cmelchior cmelchior removed the Blocked This issue is blocked by another issue label Jan 28, 2016
@philipuvarov
Copy link
Author

@cmelchior been testing my app with the new realm version(0.87.4) for the last day. Seems like you are right and the bug you've fixed in the core actually fixed this issue and #2021 all together. Thanks a lot guys. You are awesome :)

@cmelchior
Copy link
Contributor

Thank you for reporting back @Kistamushken. Sounds great. I'll close this issue then. Feel free to reopen if it re-appears.

@cmelchior cmelchior removed the Pending label Jan 29, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants