Closed Procrastinatorhater closed 2 years ago
This could be cause for https://github.com/dotnet/efcore/pull/29157 too.
/cc @bricelam
@bricelam I can't find the docs on this.
@Procrastinatorhater See the instructions referenced by @bricelam above for using SpatiaLite in this environment.
I cant seem to use the NetTopology package with Sqlite on newer Ubuntu versions. I have been using Ubuntu 18.04 LTS for some time, but a segmentation fault is preventing me from updating to 20.04 or 22.04.
On the test machines I manually install the following package(s): sudo apt-get install libc6-dev - used by another dependency in production systems, but not required for reproducing issue. sudo apt-get install libsqlite3-mod-spatialite
Without the libsqlite3-mod-spatialite I run into the following exception. AGAIN THIS IS NOT THE ERROR I AM TRYING TO FIX - INCLUDED ONLY FOR FULL DISCLOSURE. ONLY HAPPENS WHEN I DONT MANUALLY INSTALL PACKAGE .
Have tested: Ubuntu 18.04 (LTS) - success Ubuntu 20.04 (LTS) - segmentation fault. Ubuntu 22.04 (LTS) - segmenation fault.
No errors, program just exits: https://www.dropbox.com/s/w56t29we7erikhz/SegmentationFault.png?dl=0
I have a simple .Net 6 console project setup for a reproducible test.
Project has the following dependencies defined: Have tried all versions from 5.0.17 to 7.0.0-rc.1.22426.7
Program.cs creates context via helper, ensures schema was created and inserts 50 dummy records into a basic table.
Context has 2 entities defined:
And those entities look like so:
I have a helper class for creating a local Sqlite dbContext with NetTopology enabled - This is only used in testing since I dont want to setup DI and bring in additional dependencies in test project: