Unhandled UI exception due to database being locked
See original GitHub issueDescription
I recently reinstalled EDD with the updated version. So I had to redownload everything like EDSM Star database (which takes a phenomenal time ^^’ ) and during the process this appeared. (i’m not even sure if this is the reason for the error)
Thanks in advance !
Additional Information
I take this opportunity to ask you if it’s normal that the number on the left doesn’t move. Each million that is added to the right makes me despair even more…
Exception Details:
EDDiscovery v16.0.5.0 There was an unhandled UI exception.
==== BEGIN ==== code = Busy (5), message = System.Data.SQLite.SQLiteException (0x800007AF): database is locked database is locked à System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt) à System.Data.SQLite.SQLiteDataReader.NextResult() à System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave) à System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior) à System.Data.SQLite.SQLiteCommand.ExecuteScalar(CommandBehavior behavior) à SQLiteCommandExtensions.ExecuteScalar[T](DbCommand cmd, T def) dans C:\Code\EDDiscovery\BaseUtilities\SQLLite\SQLLite\SQLExtensions.cs:ligne 93 à EliteDangerousCore.DB.SystemsDB.FindAlias(Int64 edsmid, String name, SQLiteConnectionSystem cn) dans C:\Code\EDDiscovery\EliteDangerousCore\EliteDangerous\SystemDB\SystemsDBEDSMSystemAliases.cs:ligne 153 à EliteDangerousCore.DB.SystemCache.FindSystemInCacheDB(ISystem find, SQLiteConnectionSystem cn) dans C:\Code\EDDiscovery\EliteDangerousCore\EliteDangerous\SystemDB\SystemCache.cs:ligne 146 à SQLLiteExtensions.Job`1.Exec() dans C:\Code\EDDiscovery\BaseUtilities\SQLLite\SQLLite\SQLAdvProcessingThread.cs:ligne 355 ===== END =====
Issue Analytics
- State:
- Created 6 months ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
SQLite exception: Database is locked issue - android
So when i tried to insert another record from another activity i got database locked exception. Adding the below statement solved my issue. ......
Read more >How to Solve the 'SQLite Database is Locked' Error
If you are encountering the “SQLite database is locked” error, it means that the database you are trying to access is already in...
Read more >How do I prevent or solve 'database is locked' error in sqlite?
I'm using SQLite as a database in my c# windows form application. By the way, sometimes I've got a "database is locked" error...
Read more >Microsoft .Net Framework error "Unhandled exception has ...
Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue.
Read more >"Database is Locked" error message
This error often occurs when a server or its file system are under substantial load & the database is not able to serve...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
database is locked
means that another thread or process has the database opened using the SQLite library using a lock that is incompatible with the lock being requested - e.g. in this case where another thread or process is writing to the database using the SQLite library while the UI thread has requested a read from the database.A sharing violation will result in
unable to open database file
Trying to read a part of the database that has an OS-level range lock will result indisk I/O error
A change has been introduced to keep trying even if the disk is very slow. This may, or may not, fix something in some peoples systems.
Closing now, issue noted, will be monitored.