kingua
kingua

Reputation: 81

Cordova SqlLite plugin throws os_xpc_error on iOS 9

I'm using Cordova 2.2 and davibe's SQLite plugin. As of iOS 9, the application has stopped working, constantly crashing with a memory warning.

I upgraded to Cordova 5.4.0 and Cordova-ios 4.0.1 along with brodybits' SQLite Plugin: The only error I ever get is coming from iOS and it's quite vague: it's simply an os_xpc_error, communication interrupted.

Please see the attached image (iOS 8.4 above, iOS 9.2.1 below) Memory Usage in iOS 8 vs iOS 9

How do I resolve this issue in iOS9?

Upvotes: 3

Views: 131

Answers (1)

kingua
kingua

Reputation: 81

The problem ended up being that one of our JSON objects was too large to process in memory. I moved it to the app cache instead of SQLite. It's odd that it was too large only for iOS 9.

Upvotes: 1

Related Questions