GithubHelp home page GithubHelp logo

Comments (6)

jasta avatar jasta commented on April 28, 2024

The issue, I believe, is that we open the database handle ourselves rather than trying to re-use an existing connection which means that the current process may have already opened the database using different flags. Attempting to re-open it may reconfigure details like write-ahead logging, which cannot be done while the database is locked.

For this to work, I think we'd need some way of detecting the correct configuration and applying it, but I'm not extremely familiar with this problem space and would need to investigate much deeper. Maybe it works to just check for a -wal file? :)

from stetho.

Tolriq avatar Tolriq commented on April 28, 2024

Well this sounds more complex indeed and in the end is not error prone due to concurrency issues :(

I suppose locks would prevents database corruption and just throws errors in Stetho.

Maybe for applications that needs to keep database opens add a callback in the instance builder to ask the application for the SQLiteConnection or whatever Stetho needs on target database ?

from stetho.

 avatar commented on April 28, 2024

Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

from stetho.

jasta avatar jasta commented on April 28, 2024

Any chance we can get a PR to fix this? I don't have time to investigate further personally and want to tidy up the issues list.

from stetho.

Tolriq avatar Tolriq commented on April 28, 2024

Well sorry but this is a little out of my competences to do this right :(

from stetho.

jasta avatar jasta commented on April 28, 2024

We addressed it with an extensibility layer; closing to clean up issues.

from stetho.

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.