ericsink / SQLitePCL.raw

A Portable Class Library (PCL) for low-level (raw) access to SQLite
Apache License 2.0
512 stars 106 forks source link

AccessViolationException from SQLitePCL.NativeLibrary.TryLoad on 2.0.2+ #482

Open JoshuaBStevens opened 2 years ago

JoshuaBStevens commented 2 years ago

We're seeing an AccessViolationException (via telemetry, no local repro so far) at this callstack across many of our apps:

SQLitePCLRaw.nativelibrary!SQLitePCL.NativeLibrary SQLitePCLRaw.nativelibrary!SQLitePCL.NativeLibrary.TryLoad SQLitePCLRaw.nativelibrary!SQLitePCL.NativeLibrary.Search SQLitePCLRaw.nativelibrary!SQLitePCL.NativeLibrary.MyLoad SQLitePCLRaw.nativelibrary!SQLitePCL.NativeLibrary.Load SQLitePCLRaw.batteries.v2!SQLitePCL.Batteries_V2.MakeDynamic SQLitePCLRaw.batteries.v2!SQLitePCL.Batteries_V2.DoDynamic_cdecl SQLitePCLRaw.batteries.v2!SQLitePCL.Batteries_V2.Init

It's happening in sqlitepclraw.nativelibrary.dll versions 2.0.2.669, 2.0.4.976, and 2.0.7.1395.

ericsink commented 2 years ago

That is unfamiliar, and there's not much here to go on. Do you have any additional information? Platforms? Versions? Environment?

JoshuaBStevens commented 2 years ago

It has only happened on Windows 10 (various sub-versions). Every single hit (16,522 in total) is from an x64 machine, which may be a clue.