-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
App crashed while writing value in Realm db , EXC_CRASH (SIGKILL) #7387
Comments
@ZeeshanMavenir thank you for submitting the issue. Can you give us more information on how you saving the data? |
@pavel-ship-it , Sample Pseudo code Class PushManager{
} Class DataObject{
} |
What do you mean by 'write actively' ? Is it long lasting process or is it involve a number of simultaneous transactions or is it something else? The code for
You can refer Realm documentation on Threading https://docs.mongodb.com/realm/sdk/ios/advanced-guides/threading/ to get an advice on both issues. As a quick workaround you could update |
@pavel-ship-it , I was talking about db write activity and not ‘writing actively’ as u have interpreted, it is not a long running process, just a single property update. We are creating a fresh realm instance for every read/write transaction. isInWriteTransaction check is added to avoid multiple write transactions, we had earlier faced crashes because of multiple write transactions causing realm memory crashes. |
Hey @pavel-ship-it Do u need any further info from our side in analysing the issue?, if yes please let me know the details u are looking for. |
@JituDeore msync failing sounds like it could be a permissions issue. Is this a readonly file? |
@jsflax No its not. |
Does your app have access to the file? Is this changed behaviour? |
Yes we have the access. We are accessing the file other places and its working as expected only seeing this crash on iOS 15 users. Same code is working as it is for older OS. |
Do you have data protection entitlement added to your app? Can you give us more info as to the general settings and capabilities of your application? |
:- No we don't have. |
Relam version '10.7.6'
Incident Identifier: 18xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx
Beta Identifier: 39xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx
Hardware Model: iPhone10,4
Process: AppName [355]
Path: /private/var/containers/Bundle/Application/232779E2-0DCB-45CF-A939-4AA54EFFCB9A/AppName.app/AppName
Identifier: com.tmobile.phone2
Version: 4.x.1xx (4.x.1xx)
AppStoreTools: 12E506
AppVariant: 1:iPhone10,4:14
Beta: YES
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.tmobile.phone2 [426]
Date/Time: 2021-08-10 07:29:50.1185 -0700
Launch Time: 2021-08-09 12:27:46.9800 -0700
OS Version: iPhone OS 14.7.1 (18G82)
Release Type: User
Baseband Version: 4.0x.xx
Report Version: 10xx
Exception Type: EXC_CRASH (SIGKILL)
The text was updated successfully, but these errors were encountered: