-
Notifications
You must be signed in to change notification settings - Fork 107
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
iOS Sporadic Crash on SetItem #88
Comments
Could this be related to this? Or could it be because I am calling nativeStorage.setItem multiple times at once, sometimes? E.g. I have setItem() calls like this in consecutive lines:
Would this cause a crash? |
It's been happening to me when I try to do even a single write with My full log is as follows
|
@GillesC could you have a look at the 2 above posts. Maybe you can help. Thanks! |
@Maziar-Fotouhi |
@alokrajiv I believe that PLBuildVersion being defined twice is not causing the crash. It is letting it go through and using one of the definitions. I think the exception is raised later on at the last two lines before the stacktrace. |
@Maziar-Fotouhi interesting...lets explore this further with special focus on your insights. cc @GillesC |
Hi, I've created an app that use this plugin and unfortunately I get the same error. After some analysis done on the routine
I'm not an Objective-C developer and I don't know if this fix is really useful but in this way my app doesn't crash anymore. |
@alokrajiv Is this a viable fix? |
Very Interesting ... can one of you check if branch issue-88-patch-1 solves the issue? Its based on @sum1190 's fix! |
@alokrajiv Unfortunately I am seeing this error sporadically right now. So, I won't really be able to test it. Sorry! |
In my case, the app crash occurred at the first start of the app. I've published it on Apple's TestFlight, at the first start the app crash, on the second start no. |
Is this issue still open? And has anybody experienced this happening via an Ionic 1 app? My iOS 9 app will crash on |
There seems to be less occurrence of reporting this error at the moment. |
hi @alokrajiv, is there an ETA for a new release with the iOS crash bug fixed? |
@GillesC I thought we already have this fix in a release. It's in master as far as I'm aware. |
I am using this plugin through Ionic2 in an enterprise app with thousands of users each day. I have been seeing this crash report in XCode for a long time now:
As you can see, this has been happening on setItem() method. Here is the code from the NativeStorage.m file:
And this is only happening every once in a while (not every time I use the setItem method). Because, as I said, I have thousands of users each day and this has, for example, only happened 73 times in the past two weeks.
The crash backtrace goes back to this line:
[defaults setObject: aString forKey:reference];
Could you please clarify what is this line doing?
The text was updated successfully, but these errors were encountered: