Giter Site home page Giter Site logo

Context exception about apptentive-ios HOT 2 CLOSED

apptentive avatar apptentive commented on August 19, 2024
Context exception

from apptentive-ios.

Comments (2)

wooster avatar wooster commented on August 19, 2024

We think this was caused by SQLite on iOS 7 now using write ahead logging (WAL) by default, which is similar to the issue here:

http://pablin.org/2013/05/24/problems-with-core-data-migration-manager-and-journal-mode-wal/

We have a candidate fix available here:

https://github.com/apptentive/apptentive-ios/tree/MigrationFix

This fix does two things, it switches our Core Data database from WAL to the previous default (DELETE mode) on migration. So, any databases that get migrated from here on out won't use WAL. (I haven't been able to reliably move a database from WAL to DELETE without a migration.)

It also performs a sanity check on the database at startup and tries to detect the corruption we're seeing. If so, it deletes our database and starts over.

If this looks good, you may want to use it for your fix release. If you see any issues with it, please let me know. We're going to continue pounding on it on our end.

from apptentive-ios.

pkamb avatar pkamb commented on August 19, 2024

Closing as a duplicate of #71

from apptentive-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.