Open pdupont1 opened 4 months ago
That's going to be tricky to fix until we can find a repro.
For now I can confirm that this does look like a bug.
It seems that this issue no longer occurs in 2.1.8. I am not able to run into the error on 2.1.8 whereas it does happen eventually at some point when rolling back to 2.1.6. Microsoft.Data.Sqlite (8.0.5) still uses 2.1.6, I am now explicitly referencing 2.1.8 as a workaround.
This may have been one of the issues fixed in 2.1.7.
I am getting occasional AccessViolationExceptions from
sqlite3_finalize
when running my file sync application. The application I am developing consists of several independent services that access a SQLite database to share state information.As soon as the application starts to sync thousands of files, occasionally, it runs into the given exception which crashes the runtime. The provided stacktrace is from the Windows Event Viewer. Unfortunately I am not able to reliably reproduce this issue, but it only seems to appear in situations where multiple threads try to access the SQLite database very frequently.
What version of SQLitePCLRaw are you using?
Indirect dependency using Microsoft.Data.Sqlite (8.0.2)
If you are using one of the SQLitePCLRaw bundle packages, which one?
SQLitePCLRaw.bundle_e_sqlite3 (2.1.6)
What platform are you running on? What operating system? Which version? What CPU?
Windows 10 Pro (10.0.19045) 11th Gen Intel(R) Core(TM) i7-11850H
Are you on .NET Framework or the newer stuff (.NET Core, .NET 5+, etc)?
.NET Core 8.0.2
Are you using the command line, or an IDE? Which IDE? Which version of that IDE?
Microsoft Visual Studio Community 2022 (64-bit) Version 17.9.1
This is the full error information from the Windows Event Viewer (I have removed company specific parts):
Are you using
PackageReference
orpackages.config
?PackageReference
Sometimes other packages using SQLitePCLRaw cause problems when they are mixed together. What other packages are you including in your project?