Skip to content
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

iOS OnSleep Sqlite3 Crash #604

Open
LloydNicholson opened this issue Oct 7, 2020 · 0 comments
Open

iOS OnSleep Sqlite3 Crash #604

LloydNicholson opened this issue Oct 7, 2020 · 0 comments

Comments

@LloydNicholson
Copy link

Hi,

I found this bug today when using iOS 14 but I have a tester who is using 13.6.1 and the same issue occurs. This only happens on iOS and only when the app goes into the background.

Reproduction Steps: App goes into the background and OnSleep is called in App.xaml.cs. Wait for about 10 secs and then this error message is displayed.

Stack Trace after the crash:

=================================================================
	Native Crash Reporting
=================================================================
Got a segv while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

=================================================================
	Native stacktrace:
=================================================================
	0x10d5795a8 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x10d56f820 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x10d57d9d0 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : mono_pmip
	0x1d4a7bdbc - /usr/lib/system/libsystem_platform.dylib : <redacted>
	0x1047894d8 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_sourceid
	0x1047894d8 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_sourceid
	0x104788db0 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_sourceid
	0x10478f8f0 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_sourceid
	0x104766a38 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_backup_step
	0x10479b024 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_sourceid
	0x10476a8e0 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_step
	0x10c5be048 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x10c5a3ac0 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x10c55ef18 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x10c4a0844 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x10c471a80 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x10c47117c - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x10c4b1e84 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x10c500f24 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x10c4a18ac - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x104b1aa88 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x104b26ac4 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x104b26d38 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x104aef5bc - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x104aef3bc - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x104b2d018 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x104b26c50 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x104b26b28 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x104af9318 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x106d6a3b0 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x104afb3d8 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x10521f660 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : sqlite3_rekey_v2
	0x10d580e14 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : mono_pmip
	0x10d63e97c - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : mono_pmip
	0x10d681fc8 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : mono_pmip
	0x10d67f8a4 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : mono_pmip
	0x10d68b03c - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : mono_pmip
	0x10d68aec0 - /private/var/containers/Bundle/Application/1894D343-CCA5-4A0E-AFDD-11C114480E8F/SmartSales.Mobile.iOS.app/SmartSales.Mobile.iOS : mono_pmip
	0x1d4a8ab70 - /usr/lib/system/libsystem_pthread.dylib : _pthread_start
	0x1d4a8f880 - /usr/lib/system/libsystem_pthread.dylib : thread_start

=================================================================
	Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x104789c90):0x104789c80  f4 03 01 aa f3 03 00 aa 08 18 40 f9 15 01 40 f9  ..........@...@.
0x104789c90  a0 06 40 ad a2 0a c0 3d e1 0b 02 ad e0 0f 80 3d  ..@....=.......=
0x104789ca0  08 fc 40 39 1f 09 00 71 a0 00 00 54 60 06 40 f9  ..@9...q...T`.@.
0x104789cb0  08 00 40 f9 08 3d 40 f9 00 01 3f d6 a0 86 41 ad  ..@..=@...?...A.

=================================================================
	Managed Stacktrace:
=================================================================
	  at <unknown> <0xffffffff>
	  at NativeMethods:sqlite3_step <0x00007>
	  at SQLitePCL.SQLite3Provider_internal:SQLitePCL.ISQLite3Provider.sqlite3_step <0x0005f>
	  at SQLitePCL.raw:sqlite3_step <0x00097>
	  at <>c__DisplayClass8_0:<PrepareToExecute>b__1 <0x006e3>
	  at Akavache.Sqlite3.SqliteOperationQueue:MarshalCompletion <0x0013f>
	  at Akavache.Sqlite3.SqliteOperationQueue:ProcessItems <0x008db>
	  at <<Start>b__0>d:MoveNext <0x00843>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start <0x001a3>
	  at <>c__DisplayClass18_0:<Start>b__0 <0x0011b>
	  at System.Threading.Tasks.Task`1:InnerInvoke <0x00057>
	  at System.Threading.Tasks.Task:Execute <0x00023>
	  at System.Threading.Tasks.Task:ExecutionContextCallback <0x00057>
	  at System.Threading.ExecutionContext:RunInternal <0x001ab>
	  at System.Threading.ExecutionContext:Run <0x0002b>
	  at System.Threading.Tasks.Task:ExecuteWithThreadLocal <0x00127>
	  at System.Threading.Tasks.Task:ExecuteEntry <0x0010f>
	  at System.Threading.Tasks.Task:System.Threading.IThreadPoolWorkItem.ExecuteWorkItem <0x00017>
	  at System.Threading.ThreadPoolWorkQueue:Dispatch <0x001e7>
	  at ObjCRuntime.Runtime:ThreadPoolDispatcher <0x0003f>
	  at System.Threading._ThreadPoolWaitCallback:PerformWaitCallback <0x00087>
	  at System.Object:runtime_invoke_dynamic <0x0010f>
=================================================================

This hasn't happened before so I am not sure why this has suddenly come up now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant