Been stuck on this issue for a while now. If we lock and unlock the iPad, our app crashes due to some thread worker exception. After symbolicating the crash log from the device we get the following exception trace on the crashing thread:
0x00000001038b4e30 mono_invoke_unhandled_exception_hook + 21581360 (exception.c:1084) 0x000000010390feb0 mono_thread_internal_unhandled_exception + 21954224 (threads.c:5091) 0x000000010390a59c worker_callback + 21931420 (threadpool.c:0) 0x0000000103908a80 worker_thread + 21924480 (threadpool-worker-default.c:477) 0x00000001039104bc start_wrapper + 21955772 (threads.c:829)
and from the device’s console I can see this comes from a
Mono.Net.Security.MobileAuthenticationStream.Close() call which has a bunch of
We thought at first this could just be a Xamarin thing, but I have a fork of the project with all of the Couchbase Lite code taken out and I can’t get this crash to happen, which prompted me to look further down the stacktrace and I see
is what eventually lead to that exception.
Is there any special care we should take when suspending and resuming the app? We have tried stopping and starting the replication as well as closing and opening the database on suspend/resume respectively, and neither really seemed to help.
We ran across this thread that sounded similar but doesn’t seem to have a resolution:
Setup and specs:
- iOS 11
- Couchbase Lite 1.4, using SQLite for storage
- Xamarin.Forms 220.127.116.11-pre2
Any help or ideas of things to try would be greatly appreciated.