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" / " :database is locked"

See original GitHub issue

Last I opened EDD, it offered me a note to say I SHOULDN’T have both EDD and EDMC both sending to EDDN… ( how can I get EDMC to “only” send the MARKET data, so EDD can continue to send SYSTEM data? I use EDDB.io frequently…)

… so I turned off EDDN in EDD, since the Market info is (presently) “more critical” for me than up-to-date Minor Faction %s… 😉

Then, later, EDD “crashed”.

Now, I forget (cuz I didn’t immediately report!) it happened before or after I had put the PC into SLEEP mode for a short while, so I’m not sure if THAT would have anything to do with the EXCEPTION…

Here’s the Unhandled Exception window contents, copy-pasted::

Unhandled Exception

There was an unhandled UI exception. Please report this at https://github.com/EDDiscovery/EDDiscovery/issues and attach C:\Users\ (-me-) \AppData\Local\EDDiscovery\Log\Trace_20180213(mmhhss).0.log Exception: database is locked

database is locked at System.Data.SQLite.SQLite3.Prepare(SQLiteConnection cnn, String strSql, SQLiteStatement previous, UInt32 timeoutMS, String& strRemain)

at System.Data.SQLite.SQLiteCommand.BuildNextCommand()

at System.Data.SQLite.SQLiteDataReader.NextResult()

at System.Data.SQLite.SQLiteDataReader…ctor(SQLiteCommand cmd, CommandBehavior behave)

at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)

at EliteDangerousCore.DB.SQLiteDataReaderED1..ctor(DbCommand cmd, CommandBehavior behaviour, SQLiteTransactionED1 txn, SQLiteTxnLockED`1 txnlock)

at EliteDangerousCore.DB.SQLiteCommandED`1.ExecuteDbDataReader(CommandBehavior behavior)

at EliteDangerousCore.DB.SystemClassDB.GetEdsmIdsFromName(String name, SQLiteConnectionSystem cn, Boolean uselike)

at EliteDangerousCore.DB.SystemClassDB.GetSystemsByName(String name, SQLiteConnectionSystem cn, Boolean uselike)

at EliteDangerousCore.DB.SystemClassDB.FindEDSM(ISystem s, SQLiteConnectionSystem conn)

at EliteDangerousCore.HistoryList.FindEDSM(HistoryEntry syspos, SQLiteConnectionSystem conn, Boolean reload)

at EliteDangerousCore.HistoryList.FillEDSM(HistoryEntry syspos, SystemClassDB edsmsys, Boolean reload, SQLiteConnectionUser uconn)

at EDDiscovery.UserControls.UserControlSysInfo.Display(HistoryEntry he, HistoryList hl)

at EDDiscovery.UserControls.ChangedSelectionHE.Invoke(HistoryEntry he, HistoryList hl)

at EDDiscovery.UserControls.UserControlTravelGrid.FireChangeSelection()

at EDDiscovery.UserControls.UserControlTravelGrid.HistoryChanged(HistoryList hl)

at System.Action`1.Invoke(T obj)

at EDDiscovery.EDDiscoveryController.RefreshHistoryWorkerCompleted(HistoryList hist)

Do you wish to abort, or ignore the exception and try to continue?

Abort Retry Ignore

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
klightspeedcommented, Feb 15, 2018

That commit is in 8.4.1

0reactions
ACEinONYXcommented, Feb 16, 2018

Of course, do forgive me, Rob @robbyxp1 … I did not mean to demean or diminish, in any way, the copious amounts of work that so many contributors bring to such a wonderful, popular, & useful project, by only having mentioned the much-lauded addition of voice control… 😉

As a quite-regular user of EDD, I’m immensely grateful for the existence & free availability of such a tool, and by extension grateful to all its contributors. 😄

Happy Chinese / Lunar New Year (of the DOG), all, as it falls on today, Fri 16th., this year. “Kung Hei Fat Choi” – may (peace, happiness, health, &) wealth flow your way this year.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - SQLite Database Locked exception
I had this happen when I used a long running transaction to accumulate a bunch of INSERTs into one big commit. Basically I...
Read more >
How to Solve the 'SQLite Database is Locked' Error
How to Solve the 'SQLite Database is Locked' Error · On This Page · Check Open Connections · Restart Your Application · Tweak...
Read more >
Database is locked exception · Issue #602 · tekartik/sqflite
I'm getting "database is locked" exception. I don't use any transactions in my code though.
Read more >
How do I prevent or solve 'database is locked' error in sqlite?
Hello, everyone. I have some problems in c# SQLite data update and creating. I'm using SQLite as a database in my c# windows...
Read more >
SQLite database is locked error : r/csharp
I am getting the db locked error in this file (in the executeQuery function, when the button is clicked)…
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