question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unhandled UI exception due to database being locked

See original GitHub issue

Description

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

image 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:closed
  • Created 6 months ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
klightspeedcommented, Mar 28, 2023

Do AV programs put a lock on files while scanning them?

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 in disk I/O error

0reactions
robbyxp1commented, Mar 30, 2023

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found