-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQLiteConnection.CreateTable() fails on iOS 15 #1070
Comments
I've also started to see this in an iOS app since upgrading to v1.8.116. We've chosen to downgrade to 1.7 for the meantime. This is the full stack trace for the error:
In our case, the JIT'ing appears to be happening against our |
This seems to be a similar issue as #1067. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce:
Expected result:
Second CreateTable() should succeed because it executes "create if not exists"
Actual result:
{System.ExecutionEngineException: Attempting to JIT compile method '(wrapper delegate-invoke) void :invoke_callvirt_void_LocalConfig_int (CMMSdg.Plant.MVPCapture.Core.Model.LocalConfig,int)' while running in aot-only mode. See https://docs.microsoft.com/xamarin/ios/internals/limitations for more information.
at SQLite.FastColumnSetter+<>c__DisplayClass2_0
2[ObjectType,ColumnMemberType].<CreateTypedSetterDelegate>b__0 (System.Object o, SQLitePCL.sqlite3_stmt stmt, System.Int32 i) [0x00023] in <01c96d411fe34bd5940c99a56515582b>:0 at SQLite.SQLiteCommand+<ExecuteDeferredQuery>d__12
1[T].MoveNext () [0x00218] in <01c96d411fe34bd5940c99a56515582b>:0at System.Collections.Generic.List
1[T].AddEnumerable (System.Collections.Generic.IEnumerable
1[T] enumerable) [0x00059] in <218435b0f6654ac1ab0cdd176f26b9bd>:0at System.Collections.Generic.List
1[T]..ctor (System.Collections.Generic.IEnumerable
1[T] collection) [0x00062] in <218435b0f6654ac1ab0cdd176f26b9bd>:0at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable
1[T] source) [0x00018] in <8e6764529e4c4797b1ffdaa92a5f1151>:0 at SQLite.SQLiteCommand.ExecuteQuery[T] () [0x0001c] in <01c96d411fe34bd5940c99a56515582b>:0 at SQLite.TableQuery
1[T].GetEnumerator () [0x00013] in <01c96d411fe34bd5940c99a56515582b>:0at System.Linq.Enumerable+SelectEnumerableIterator
2[TSource,TResult].ToList () [0x00006] in <8e6764529e4c4797b1ffdaa92a5f1151>:0 at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable
1[T] source) [0x0001f] in <8e6764529e4c4797b1ffdaa92a5f1151>:0at CMMSdg.Plant.MVPCapture.Core.DataAccess.SQLiteImpl.AbstractDAO`1[T].ListQuery () [0x00042] in <16561a8bce61472698ac8a6c6992bca9>:0
at CMMSdg.Plant.MVPCapture.Core.DataAccess.SQLiteImpl.LocalConfigDAOImpl.List () [0x00001] in C:\Projects\Files\MobilePlatformProd\Sln.MobilePlatform\CMMSdg.Plant.MVPCapture.Core.StdLib\DataAccess\SQLiteImpl\LocalConfigDAOImpl.cs:13
at CMMSdg.Plant.MVPCapture.Core.DataStore.DatabaseBuilder.BuildDatabase () [0x002bf] in C:\Projects\Files\MobilePlatformProd\Sln.MobilePlatform\CMMSdg.Plant.MVPCapture.Core.StdLib\DataStore\DatabaseBuilder.cs:81 }
Using sqlite-net-pcl version 1.8.116
This is just one example, I have come across, but the "Attempting to JIT compile method X while running in aot-only mode" is appearing all over the place in my project.
The text was updated successfully, but these errors were encountered: