-
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
Native crash signal 11 (SIGSEGV), code 2 #3590
Comments
@EdwardvanRaak Thanks for all the details. Can you provide us with a few details on the sync adapter? For example, how ofte does the app receives data? How much data? |
@kneth The app received data about every 30 minutes. Syncing can also occur manually by users or when a certain screen is opened. We receive moderately to large sized JSON responses but nothing that I would consider out of the ordinary. |
@EdwardvanRaak Do you get the Realm instance in the adapter or do you pass the instance to the adapter? In principle, you should get an error message in the latter case, but a case might have slipped through in our logic. |
@kneth No we don't pass the instance to the adapter. It gets its own instance. |
@finnschiermer Do you have any insights from Realm Core's point of view? |
@kneth: Unfortunately the backtraces are not showing much. The segfaults on address 0x4 is likely to arise by following a nullpointer, but that doesn't tell us much either. |
Is it possible that these native crashes are caused by other unrecoverable realm errors that we receive? Can unrecoverable realm errors cause the realm file to stay in an erroneous state even after the app is reopened, causing the native crashes? |
Realm is designed to resilient. If you have seen other errors just before your native crash, we are very interested to hear about it as it could indicate a corner case we haven't anticipated. |
we're also experiencing this issue THE FIRST ERROR LOG THE SECOND ERROR LOG
|
@trustratch there's at least one although probably more Realm instances on your background threads that are never closed. |
@kneth
I did see some issues posted here about these but since we were never able to solve them we just try to clean the realm file whenever corruption(?) of the realm file occurs. We are not sure if they are related to the native crashes though. |
@EdwardvanRaak having 663040 fields sounds unhealthy, that definitely sounds like corruption. |
Out-of-memory exceptions should be taken very seriously. Ignoring them can lead to file corruption. See also https://realm.io/docs/java/latest/#what-to-do-about-out-of-memory-exceptions |
@kneth Back in the day I got this kind of thing when I used |
@Zhuinden Good point (you were basically ignoring the out-of-memory exception). |
We've updated all of our transactions to use Note, I'm a colleague of @EdwardvanRaak |
@Sirrah @EdwardvanRaak It still sounds like you have an instance open in a background thread and it keep Realm from reclaiming space. |
We'll continue looking for that. If the error occurs once for an user, regardless of the cause. would you expect the same error to occur again once the application restarts? Even if the app doesn't do anything wrong on the second run? |
No, Realm should be robust enough for app restarting. |
This happened with a rooted device, samsung SIII mini. the device is running Android 4.2.2. D/CrashAnrDetector: Build: samsung/goldenve3gxx/goldenve3g:4.2.2/JDQ39/I8200NXXUAOC1:user/release-keys
|
@fabriciorod We have some issues with older devices: #3651. Maybe your crash is related? |
@kneth this is definitely the same thing |
@kneth Yes is the same thing. I was able to track the method where the crash happened, but, i was not able to reproduce it on a emulator. Do you guys need a sample project? i can do that, the last method i can remember that received a call was setVersion(), after that call, the application crashes. |
@fabriciorod If you can create a sample project or a unit test, we will be happy to get a copy. I have finally found an used Samsung Galaxy Tab 3 so I will be able to debug. |
I have the exact same problem with a Samsung SIII mini too! It works on the device when I use Realm v. 1.1.0, but crashes when I upgrade. I hope this can narrow the issue down further. Best regards |
@OneManMobile Is your S3 mini a GT-I8190N or one of the other variants? We have a GT-I8190N in our test lab. |
Its a GT-18200N With Android 4.2.2 and Kernelversion 3.4.5-2824661 |
@OneManMobile I believe that GT-I8200N has also been reported in #3651. |
#4402 might fix this once it's merged |
#4402 is merged and has been released in |
We have received a reasonable number of native crashes related to realm and we are having difficulties pinpointing what the cause is. We are unable to reproduce the problem so anything that could help us would be appreciated.
Some information:
The stack traces below are a few examples of the native crashes on 1.2.0. There are more crash groups but they are all similar to these.
The text was updated successfully, but these errors were encountered: