Ticket Change Details
Not logged in

Artifact ID: df88755ad9107f5594afb32618cfa21e68aff768
Ticket: 43d04ebaa4bb67d01df9075e3925854dd8f3577c
'System.Data.SQLite.SQLiteException: bad parameter or other API misuse' error when used in multithreaded environment
User & Date: anonymous 2018-05-28 11:31:36

  1. Change icomment to:

    Logging showed nothing suspicious and problem popped in several places in non deterministic way. I downloaded SQlite provider sources, added some brake points there and tried to reproduce problem. After thorough testing I found severe problem on our side - there was a place where async code was started and not awaited that used Entity Framework context closure that was running out of scope and was about to be disposed. So basically there was a race condition between this async code block and dying EF context. After making this place sane the problem went away completely.

    Thank you for your help!

  2. Change login to "anonymous"
  3. Change mimetype to "text/x-fossil-plain"
  4. Change status to "Closed"