更新UWP应用程序后,我从应用程序的不同部分发现了很多崩溃
STOWED_EXCEPTION_Microsoft.Data.Sqlite.SqliteException_80131500 *** APP-NAME ***。dll的!微软::数据:: SQLite的:: SqliteCommand.ExecuteReader
在以前的版本中没有发生过,我也没有更改数据库访问代码段,也没有更新/重新安装EF Sqlite块包。 以下是我从用户处收到的Stacktrace:
由于
Frame Image Function Offset
0 Microsoft.Data.Sqlite.dll Microsoft :: Data :: Sqlite :: Interop :: MarshalEx.ThrowExceptionForRC 0x0000000000000067
1 Microsoft.Data.Sqlite.dll Microsoft :: Data :: Sqlite :: SqliteCommand.ExecuteReader 0x000000000000012F
2 Microsoft.Data.Sqlite.dll Microsoft :: Data :: Sqlite :: SqliteCommand.ExecuteDbDataReader 0x000000000000000B
3 EntityFramework.Relational.dll Microsoft :: Data :: Entity :: Storage :: Internal :: RelationalCommand :: __ c__DisplayClass17_0._ExecuteReader_b__0 $ catch $ 0 0x0000000000000013
4 SharedLibrary.dll系统:: Func $ 1_System :: __ Canon_.Invoke 0x0000000000000013
5 EntityFramework.Relational.dll Microsoft :: Data :: Entity :: Storage :: Internal :: RelationalCommand.Execute_System .__ Canon_ $ catch $ 0 0x00000000000000C1
6 EntityFramework.Relational.dll Microsoft :: Data :: Entity :: Storage :: Internal :: RelationalCommand.ExecuteReader 0x0000000000000057
7 EntityFramework.Relational.dll Microsoft :: Data :: Entity :: Query :: Internal :: QueryingEnumerable :: Enumerator.MoveNext 0x000000000000008B
8 EntityFramework.Relational.dll Microsoft :: Data :: Entity :: Query :: QueryMethodProvider.GetResult_System.Int32_ 0x000000000000003D
9 APPNAME .McgInterop.dll _ $ ILCT $ :: $ ILT $ ReflectionDynamicInvoke $ .InvokeRetOI_System .__ Canon, System.Int32 0x0000000000000061 > 10 SharedLibrary.dll System :: InvokeUtils.CallIHelperStaticCallWithInstantiation 0x0000000000000023
11 SharedLibrary.dll系统:: InvokeUtils.CallDynamicInvokeMethod 0x0000000000000119
12 System.Linq.Expressions System :: Linq :: Expressions :: Interpreter :: MethodInfoCallInstruction.InvokeWorker $ catch $ 0 0x0000000000000017
13 System.Linq.Expressions System :: Linq :: Expressions :: Interpreter :: MethodInfoCallInstruction.Invoke 0x0000000000000009
14 System.Linq.Expressions System :: Linq :: Expressions :: Interpreter :: MethodInfoCallInstruction.Run 0x0000000000000065
15 System.Linq.Expressions System :: Linq :: Expressions :: Interpreter :: Interpreter.Run 0x0000000000000027
16 System.Linq.Expressions System :: Linq :: Expressions :: Interpreter :: LightLambda.Run 0x000000000000009B
17 SharedLibrary.dll System :: Runtime :: CompilerServices :: ConditionalWeakTable $ 2_System :: __ Canon,System :: __ Canon _ :: CreateValueCallback.InvokeObjectArrayThunk 0x0000000000000037
18 EntityFramework.Core.dll Microsoft :: Data :: Entity :: Query :: Internal :: QueryCompiler :: __ c__DisplayClass18_1 $ 1_System :: Int32 _._ CompileQuery_b__1 $ catch $ 0 0x0000000000000059
19 SharedLibrary.dll系统::比较$ 1_System :: __ Canon_.Invoke 0x0000000000000013
20 EntityFramework.Core.dll Microsoft :: Data :: Entity :: Query :: Internal :: QueryCompiler.Execute_System.Int32_ 0x000000000000003D
21 EntityFramework.Core.dll Microsoft :: Data :: Entity :: Query :: Internal :: EntityQueryProvider.Execute_System.Int32_ 0x0000000000000033
22 System.Linq.Queryable.dll System :: Linq :: Queryable.Count_System.Int32_ 0x0000000000000121
23 APPNAME * .exe InstagramDownloader :: pgHome._imgDownloader_b__15_4 0x0000000000000167
24 APPNAME * .McgInterop.dll Windows :: System :: Threading :: TimerElapsedHandler.Invoke 0x000000000000000F
25 APPNAME * .McgInterop.dll McgInterop :: ReverseComSharedStubs.Proc_ 0x0000000000000015
26 SharedLibrary.dll System :: Runtime :: ExceptionServices :: ExceptionDispatchInfo.Throw 0x0000000000000019
27 System.Private.Threading System :: Runtime :: CompilerServices :: TaskAwaiter.ThrowForNonSuccess 0x0000000000000053
28 System.Private.Threading System :: Runtime :: CompilerServices :: TaskAwaiter.HandleNonSuccessAndDebuggerNotification 0x000000000000002D
29 System.Private.Threading System :: Runtime :: CompilerServices :: TaskAwaiter.ValidateEnd 0x000000000000001D
30 System.Private.Threading System :: Runtime :: CompilerServices :: TaskAwaiter.GetResult 0x000000000000000B
31 APPNAME * .exe InstagramDownloader :: pgHome :: _ imgDownloader_d__15.MoveNext 0x00000000000015AF
32 SharedLibrary.dll System :: Runtime :: ExceptionServices :: ExceptionDispatchInfo.Throw 0x0000000000000019
33 System.Private.Threading System :: Runtime :: CompilerServices :: TaskAwaiter.ThrowForNonSuccess 0x0000000000000053
34 System.Private.Threading System :: Runtime :: CompilerServices :: TaskAwaiter.HandleNonSuccessAndDebuggerNotification 0x000000000000002D
35 System.Private.Threading System :: Runtime :: CompilerServices :: TaskAwaiter.ValidateEnd 0x000000000000001D
36 System.Private.Threading System :: Runtime :: CompilerServices :: TaskAwaiter.GetResult 0x000000000000000B
37 APPNAME * .exe InstagramDownloader :: pgHome :: _ btnDownload_Click_d__17.MoveNext 0x000000000000025D
38 APPNAME * .McgInterop.dll McgInterop :: McgHelpers.ThrowFailed 0x0000000000000033
39 APPNAME * .McgInterop.dll McgInterop :: ComCallHelpers.ComCall__HRESULT 0x00000000000000A9
40 APPNAME * .McgInterop.dll McgInterop :: ForwardComSharedStubs.Func_TResult ___ System .__ Canon,_System .__ Canon_ 0x000000000000002B
41 APPNAME * .McgInterop.dll Windows :: UI :: Popups :: MessageDialog.ShowAsync 0x0000000000000011
42 APPNAME * .exe InstagramDownloader :: pgHome :: _ btnDownload_Click_d__17.MoveNext $ catch $ 0 0x000000000000002F
43 SharedLibrary.dll System :: Runtime :: ExceptionServices :: ExceptionDispatchInfo.Throw 0x0000000000000019
44 System.Private.Threading System :: Runtime :: CompilerServices :: AsyncMethodBuilderCore :: __ c._ThrowAsync_b__9_0 0x0000000000000013
45 System.Private.Threading System :: Threading :: WinRTSynchronizationContext :: Invoker.InvokeCore 0x0000000000000033
答案 0 :(得分:1)
我建议更新NuGet上所有与SQLite相关的软件包以及Visual Studio的SQLite扩展(通过工具 - >扩展和更新...)
据我所知,您使用的是EntityFrameworkCore
,它仅适用于Windows 10 Fall Creators Update和更新版本,并且不适用于旧版本的UWP。要解决这些问题,您必须将应用程序设置为最低SDK版本16299(FCU)。如果您需要支持旧版本,则必须暂时不使用Entity Framework ...