raisedapp / Hangfire.Storage.SQLite

An Alternative SQLite Storage for Hangfire
https://www.nuget.org/packages/Hangfire.Storage.SQLite
MIT License
155 stars 31 forks source link

Apple M1 not supported #71

Open CunesPoort8 opened 7 months ago

CunesPoort8 commented 7 months ago

Due to the use of an old version of sqlite-net-pcl, this package does not work on Apple M1 machines. Updating sqlite-net-pcl package to 1.9.172 fixes the issue.

Error message (partly):

"Unable to load shared library 'e_sqlite3' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: \ndlopen(/usr/local/share/dotnet/shared/Microsoft.NETCore.App/7.0.17/e_sqlite3.dylib, 0x0001): tried: '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/7.0.17/e_sqlite3.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/share/dotnet/shared/Microsoft.NETCore.App/7.0.17/e_sqlite3.dylib' (no such file), '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/7.0.17/e_sqlite3.dylib' (no such file)
kirides commented 6 months ago

sqlite-net-pcl 1.9.172 sometimes causes runtime errors with ACCESS VIOLATION (read after free) kind of issues. Either the Storage implementation does something weird or the updated library now uses less-safe code to access data.

I'll try to reproduce the mentioned issue(s) to get a clear view on them to file the apropriate issues.