-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x290... while deleting object from Realm. #1982
Comments
What version of realm are you using? And what function did you call? |
Hi @Mateuszg7 |
I was using Realm version 0.84.1 and I checked it too on 0.86.
In other place I'm checking size with query related to this deleted object. So I think it might be somehow related to #1945 |
@Mateuszg7 Can you share a code snippet? |
I have found workaround. Code snippet from my application: realm.removeAllChangeListeners(); In my case SIGSEGV occures if I switch to another activity, then return to previous and remove item from RealmResults. Before displaying the second activity item is removed correctly. I use RealmRecyclerView and RealmBasedRecyclerViewAdapter from https://github.com/thorbenprimke/realm-recyclerview. Realm version: 0.86.1 |
@michbas796 I noticed that you mention |
Yea, the workout isn't good. You should be able to just remove from the realm and the RealmRecyclerView will update automatically (via change listener) if it's enabled. @michbas796, I generally delete directly from the Realm (via re-querying the item by id and then calling @kneth, I'm calling @michbas796, since you mentioned this only happens after switching between activities and that removing the change listener resolves it, there could be a bug there (on the |
Thanks for Your replies. @thorbenprimke Mentioned activities are MainActivity and ShoppingListActivity. I switch to ShoppingListActivity is from AllShoppingListsFragment. Sorry for Polish commit descriptions. This is just simple university project (not completed yet) created to pass mobile programming course. Another issue in RealmRecyclerView or RealmBasedRecyclerViewAdapter is that when I use async query (findAllAsync method) recycler view is empty after swich to other fragment and return to previous. It is populated again only after recreating activity for example by rotating screen. |
@maciejwitowski From your repository it looks like you have upgraded to Realm 0.87.1. Both 0.86.1 and 0.87.1 had a few fixes for async. Can you give us a clear path on how to obtain the crash? |
@kneth I think you meant @michbas796 , not me :) |
@kneth - I can repro the crash when navigating between the two screen, |
@maciejwitowski Damn autocompletion - sorry. |
@thorbenprimke Thanks for the update. |
I checked the code https://github.com/michbas796/PUM/tree/master/app/src/main/java/pl/polsl/pum2/shoppingapp/gui , I think it would be the same issue with #1945
The But let keep this issue open until we verify it. |
I have changed code in my repository https://github.com/michbas796/PUM/tree/master/app/src/main/java/pl/polsl/pum2/shoppingapp/gui. If you still want to use old version for testing please switch to Test branch. |
@michbas796 - I have added a
Also you need to update the dependency to
|
@thorbenprimke |
@thorbenprimke Thanks for the fix. |
I have A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x290 in tid 18295 (app) while deleting object from RealmList in RecyclerView. It doesn't matter if I do this async or not.
The text was updated successfully, but these errors were encountered: