locked
App crashing on Android tablets when using Xamarin 4.2 RRS feed

  • Question

  • User251727 posted

    I am having an issue where my app crashes only on Android tablets. This usually happens during use, but occasionally it happens on start-up after deploying from VS.

    I have attached 3 example stack traces. 1 and 2 were crashes that occurred during app use and 3 happened on start-up. The main commonality between them seems to be the part at the bottom:

    01-12 11:04:09.596 E/mono-rt (16932): Attempting native Android stacktrace: 01-12 11:04:09.596 E/mono-rt (16932): 01-12 11:04:09.600 E/mono-rt (16932): Could not unwind with libunwind.so: dlopen failed: library "/data/app/com.microsoft.dynamics.fs.mobile-1/lib/arm/libunwind.so" not found 01-12 11:04:09.600 E/mono-rt (16932): Could not unwind with libcorkscrew.so: dlopen failed: library "/data/app/com.microsoft.dynamics.fs.mobile-1/lib/arm/libcorkscrew.so" not found 01-12 11:04:09.600 E/mono-rt (16932): 01-12 11:04:09.600 E/mono-rt (16932): No options left to get a native stacktrace :-( 01-12 11:04:09.600 E/mono-rt (16932): 01-12 11:04:09.600 E/mono-rt (16932): ================================================================= 01-12 11:04:09.600 E/mono-rt (16932): Got a SIGSEGV while executing native code. This usually indicates 01-12 11:04:09.600 E/mono-rt (16932): a fatal error in the mono runtime or one of the native libraries 01-12 11:04:09.600 E/mono-rt (16932): used by your application. 01-12 11:04:09.600 E/mono-rt (16932): ================================================================= 01-12 11:04:09.600 E/mono-rt (16932): 01-12 11:04:09.600 F/libc (16932): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 16932 (amics.fs.mobile)

    If I downgrade my Xamarin version to 4.1.2.18, this problem goes away. If I move to version 4.2.0.680, the crash again happens.

    As mentioned, this is only affecting our Android tablet, a Nexus 9 running Android 7.0 with the security patch from 11/5/16. We cannot repro the problem on Android phones running either Android 6 or 7.

    Friday, January 13, 2017 1:05 AM

All replies

  • User238006 posted

    Crazy. Does debug/release make a difference? I don't have a nexus 9 so I can't check. If it's Xamarin that's causing problems, you'd think it would do the same with other apps. Maybe try some demo apps, compile them with the same options and deploy them to the N9 and see what happens. Just something I'd be tempted to test.

    Friday, January 13, 2017 4:56 AM
  • User251727 posted

    mveroukis, I tried several Xamarin demo apps and none of them have this problem. Also, the issue exists in both debug and release mode.

    Friday, January 13, 2017 6:50 AM
  • User37696 posted

    @nickrm,

    I am not sure what the problem is here. I think the best course of action would be to file an issue here. If possible, please include a way for us to reproduce the problem. If you can include a sample or the project, you can mark attachments private.

    Friday, January 13, 2017 5:21 PM
  • User178955 posted

    Hello @JohnMiller Are there any updates about this issue? I suppose someone has filed new issues about it: 48475 and 46709.

    I received an error report from one user with the similar stacktrace. And again, he uses Nexus 9 with Android 7.1. What makes troubleshooting very complex is that it's quite difficult to reproduce the problem.

    The stacktrace:

    02-03 17:20:25.270 21341  4796 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.mypackagename/md5c0b33fb719c579c74903630490bf5f2d.MainActivity bnds=[145,208][438,408] (has extras)} from uid 10024 on display 0
    02-03 17:20:25.338 21341 21677 I ActivityManager: Start proc 32205:com.example.mypackagename/u0a219 for activity com.example.mypackagename/md5c0b33fb719c579c74903630490bf5f2d.MainActivity
    02-03 17:20:25.479 32205 32205 I art     : Starting a blocking GC AddRemoveAppImageSpace
    02-03 17:20:25.570 32205 32205 W monodroid: Trying to load sgen from: /data/app/com.example.mypackagename-2/lib/arm/libmonosgen-2.0.so
    02-03 17:20:25.711 32205 32205 W         : No fast tls on device. Using fallbacks. Current implementation : 
    02-03 17:20:25.711 32205 32205 W         : 0xf2c8218c 0x42880100 0xf020dc1b 0x480e4100 0x2f70ee1d 0xf8504478 0x68520031 0xf01f010 0xeb02d104 0xf10000c1 0xe0070178 0x1c1eb02 0x31786f4a 0xbf044282 0x47706808 0x60082000 
    02-03 17:20:25.859 32205 32205 W monodroid-gc: GREF GC Threshold: 46080
    02-03 17:20:25.879 32205 32205 W monodroid: Calling into managed runtime init
    02-03 17:20:27.410 32205 32205 I mono-stdout: Binding: 'ProjectsSearchText' property not found on 'MyApplicationName.Forms.ViewModels.Main.MainDetailViewModel', target property: 'Xamarin.Forms.SearchBar.Text'
    02-03 17:20:27.417 32205 32205 I mono-stdout: Binding: 'Projects' property not found on 'MyApplicationName.Forms.ViewModels.Main.MainDetailViewModel', target property: 'Xamarin.Forms.ListView.ItemsSource'
    02-03 17:20:27.591 32205 32205 I mono-stdout: Binding: 'ProcessesSearchText' property not found on 'MyApplicationName.Forms.ViewModels.Main.MainDetailViewModel', target property: 'Xamarin.Forms.SearchBar.Text'
    02-03 17:20:27.591 32205 32205 I mono-stdout: Binding: 'Processes' property not found on 'MyApplicationName.Forms.ViewModels.Main.MainDetailViewModel', target property: 'Xamarin.Forms.ListView.ItemsSource'
    02-03 17:20:27.631 32205 32205 E mono-rt : Stacktrace:
    02-03 17:20:27.631 32205 32205 E mono-rt : 
    02-03 17:20:27.631 32205 32205 E mono-rt :   at  <0xffffffff>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at System.Linq.Enumerable.FirstOrDefault (System.Collections.Generic.IEnumerable`1) <0x00093>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at Xamarin.Forms.MultiPage`1.OnChildrenChanged (object,System.Collections.Specialized.NotifyCollectionChangedEventArgs) <0x001fb>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at (wrapper delegate-invoke) .invoke_void_object_NotifyCollectionChangedEventArgs (object,System.Collections.Specialized.NotifyCollectionChangedEventArgs) <0x000d7>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs) <0x00057>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedAction,object,int) <0x0005b>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at System.Collections.ObjectModel.ObservableCollection`1.InsertItem (int,T_REF) <0x0005f>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at System.Collections.ObjectModel.Collection`1.Add (T_REF) <0x000a7>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at Xamarin.Forms.ObservableWrapper`2.Add (TRestrict_REF) <0x000b7>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at MyApplicationName.Forms.Views.Main.MainDetailPage.InitializeComponent () <0x00c67>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at MyApplicationName.Forms.Views.Main.MainDetailPage..ctor () <0x0001b>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at MyApplicationName.Forms.Views.Main.MainPage.OpenDetail (MyApplicationName.Forms.ViewModels.Main.MenuItemViewModel/Types) <0x000ab>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at MyApplicationName.Forms.Views.Main.MainPage..ctor (MyApplicationName.Forms.Interfaces.ILoginManager) <0x00057>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at MyApplicationName.Forms.App.OpenRootPage () <0x0006b>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at MyApplicationName.Forms.App..ctor () <0x00053>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at MyApplicationName.Droid.MainActivity.OnCreate (Android.OS.Bundle) <0x000a7>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at Android.Support.V4.App.FragmentActivity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) <0x0005b>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at (wrapper dynamic-method) object.ab06b57a-5012-4082-8de9-6d0d591e863a (intptr,intptr,intptr) <0x00043>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at (wrapper native-to-managed) object.ab06b57a-5012-4082-8de9-6d0d591e863a (intptr,intptr,intptr) <0x000b3>
    02-03 17:20:27.632 32205 32205 E mono-rt : 
    02-03 17:20:27.632 32205 32205 E mono-rt : Attempting native Android stacktrace:
    02-03 17:20:27.632 32205 32205 E mono-rt : 
    02-03 17:20:27.634 32205 32205 E mono-rt : Could not unwind with `libunwind.so`: dlopen failed: library "/data/app/com.example.mypackagename-2/lib/arm/libunwind.so" not found
    02-03 17:20:27.634 32205 32205 E mono-rt : Could not unwind with `libcorkscrew.so`: dlopen failed: library "/data/app/com.example.mypackagename-2/lib/arm/libcorkscrew.so" not found
    02-03 17:20:27.634 32205 32205 E mono-rt : 
    02-03 17:20:27.634 32205 32205 E mono-rt : No options left to get a native stacktrace :-(
    02-03 17:20:27.634 32205 32205 E mono-rt : 
    02-03 17:20:27.634 32205 32205 E mono-rt : =================================================================
    02-03 17:20:27.634 32205 32205 E mono-rt : Got a SIGSEGV while executing native code. This usually indicates
    02-03 17:20:27.634 32205 32205 E mono-rt : a fatal error in the mono runtime or one of the native libraries 
    02-03 17:20:27.634 32205 32205 E mono-rt : used by your application.
    02-03 17:20:27.634 32205 32205 E mono-rt : =================================================================
    02-03 17:20:27.634 32205 32205 E mono-rt : 
    02-03 17:20:27.636 32205 32205 F libc    : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 32205 (mypackagename)
    02-03 17:20:27.637 21050 21050 W         : debuggerd: handling request: pid=32205 uid=10219 gid=10219 tid=32205
    02-03 17:20:27.758 32225 32225 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    02-03 17:20:27.758 32225 32225 F DEBUG   : Build fingerprint: 'google/volantis/flounder:7.1.1/N4F26M/3562722:user/release-keys'
    02-03 17:20:27.758 32225 32225 F DEBUG   : Revision: '0'
    02-03 17:20:27.758 32225 32225 F DEBUG   : ABI: 'arm'
    02-03 17:20:27.758 32225 32225 F DEBUG   : pid: 32205, tid: 32205, name: mypackagename  >>> com.example.mypackagename <<<
    02-03 17:20:27.759 32225 32225 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
    02-03 17:20:27.759 32225 32225 F DEBUG   :     r0 d560a538  r1 00004001  r2 00000000  r3 d560a548
    02-03 17:20:27.759 32225 32225 F DEBUG   :     r4 00000008  r5 eb26e27c  r6 00001f3c  r7 00000018
    02-03 17:20:27.759 32225 32225 F DEBUG   :     r8 00001f38  r9 00000018  sl d560a538  fp ffb9b310
    02-03 17:20:27.759 32225 32225 F DEBUG   :     ip eb26e2c0  sp ffb9b2e0  lr eb09e0cc  pc eb010a60  cpsr 800f0010
    02-03 17:20:27.761 32225 32225 F DEBUG   : 
    02-03 17:20:27.761 32225 32225 F DEBUG   : backtrace:
    02-03 17:20:27.762 32225 32225 F DEBUG   :     #00 pc 000dda60  /data/app/com.example.mypackagename-2/lib/arm/libmonosgen-2.0.so
    02-03 17:20:28.290 21341 32226 W ActivityManager:   Force finishing activity com.example.mypackagename/md5c0b33fb719c579c74903630490bf5f2d.MainActivity
    02-03 17:20:28.303 21341 25724 I ActivityManager: Process com.example.mypackagename (pid 32205) has died
    
    Monday, February 6, 2017 11:56 PM
  • User178955 posted

    Hello @JohnMiller Are there any updates about this issue? I suppose someone has filed new issues about it: 48475 and 46709.

    I received an error report from one user with the similar stacktrace. And again, he uses Nexus 9 with Android 7.1. What makes troubleshooting very complex is that it's quite difficult to reproduce the problem.

    The stacktrace:

    02-03 17:20:25.270 21341  4796 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.mypackagename/md5c0b33fb719c579c74903630490bf5f2d.MainActivity bnds=[145,208][438,408] (has extras)} from uid 10024 on display 0
    02-03 17:20:25.338 21341 21677 I ActivityManager: Start proc 32205:com.example.mypackagename/u0a219 for activity com.example.mypackagename/md5c0b33fb719c579c74903630490bf5f2d.MainActivity
    02-03 17:20:25.479 32205 32205 I art     : Starting a blocking GC AddRemoveAppImageSpace
    02-03 17:20:25.570 32205 32205 W monodroid: Trying to load sgen from: /data/app/com.example.mypackagename-2/lib/arm/libmonosgen-2.0.so
    02-03 17:20:25.711 32205 32205 W         : No fast tls on device. Using fallbacks. Current implementation : 
    02-03 17:20:25.711 32205 32205 W         : 0xf2c8218c 0x42880100 0xf020dc1b 0x480e4100 0x2f70ee1d 0xf8504478 0x68520031 0xf01f010 0xeb02d104 0xf10000c1 0xe0070178 0x1c1eb02 0x31786f4a 0xbf044282 0x47706808 0x60082000 
    02-03 17:20:25.859 32205 32205 W monodroid-gc: GREF GC Threshold: 46080
    02-03 17:20:25.879 32205 32205 W monodroid: Calling into managed runtime init
    02-03 17:20:27.410 32205 32205 I mono-stdout: Binding: 'ProjectsSearchText' property not found on 'MyApplicationName.Forms.ViewModels.Main.MainDetailViewModel', target property: 'Xamarin.Forms.SearchBar.Text'
    02-03 17:20:27.417 32205 32205 I mono-stdout: Binding: 'Projects' property not found on 'MyApplicationName.Forms.ViewModels.Main.MainDetailViewModel', target property: 'Xamarin.Forms.ListView.ItemsSource'
    02-03 17:20:27.591 32205 32205 I mono-stdout: Binding: 'ProcessesSearchText' property not found on 'MyApplicationName.Forms.ViewModels.Main.MainDetailViewModel', target property: 'Xamarin.Forms.SearchBar.Text'
    02-03 17:20:27.591 32205 32205 I mono-stdout: Binding: 'Processes' property not found on 'MyApplicationName.Forms.ViewModels.Main.MainDetailViewModel', target property: 'Xamarin.Forms.ListView.ItemsSource'
    02-03 17:20:27.631 32205 32205 E mono-rt : Stacktrace:
    02-03 17:20:27.631 32205 32205 E mono-rt : 
    02-03 17:20:27.631 32205 32205 E mono-rt :   at  <0xffffffff>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at System.Linq.Enumerable.FirstOrDefault (System.Collections.Generic.IEnumerable`1) <0x00093>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at Xamarin.Forms.MultiPage`1.OnChildrenChanged (object,System.Collections.Specialized.NotifyCollectionChangedEventArgs) <0x001fb>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at (wrapper delegate-invoke) .invoke_void_object_NotifyCollectionChangedEventArgs (object,System.Collections.Specialized.NotifyCollectionChangedEventArgs) <0x000d7>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs) <0x00057>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedAction,object,int) <0x0005b>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at System.Collections.ObjectModel.ObservableCollection`1.InsertItem (int,T_REF) <0x0005f>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at System.Collections.ObjectModel.Collection`1.Add (T_REF) <0x000a7>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at Xamarin.Forms.ObservableWrapper`2.Add (TRestrict_REF) <0x000b7>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at MyApplicationName.Forms.Views.Main.MainDetailPage.InitializeComponent () <0x00c67>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at MyApplicationName.Forms.Views.Main.MainDetailPage..ctor () <0x0001b>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at MyApplicationName.Forms.Views.Main.MainPage.OpenDetail (MyApplicationName.Forms.ViewModels.Main.MenuItemViewModel/Types) <0x000ab>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at MyApplicationName.Forms.Views.Main.MainPage..ctor (MyApplicationName.Forms.Interfaces.ILoginManager) <0x00057>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at MyApplicationName.Forms.App.OpenRootPage () <0x0006b>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at MyApplicationName.Forms.App..ctor () <0x00053>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at MyApplicationName.Droid.MainActivity.OnCreate (Android.OS.Bundle) <0x000a7>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at Android.Support.V4.App.FragmentActivity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) <0x0005b>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at (wrapper dynamic-method) object.ab06b57a-5012-4082-8de9-6d0d591e863a (intptr,intptr,intptr) <0x00043>
    02-03 17:20:27.632 32205 32205 E mono-rt :   at (wrapper native-to-managed) object.ab06b57a-5012-4082-8de9-6d0d591e863a (intptr,intptr,intptr) <0x000b3>
    02-03 17:20:27.632 32205 32205 E mono-rt : 
    02-03 17:20:27.632 32205 32205 E mono-rt : Attempting native Android stacktrace:
    02-03 17:20:27.632 32205 32205 E mono-rt : 
    02-03 17:20:27.634 32205 32205 E mono-rt : Could not unwind with `libunwind.so`: dlopen failed: library "/data/app/com.example.mypackagename-2/lib/arm/libunwind.so" not found
    02-03 17:20:27.634 32205 32205 E mono-rt : Could not unwind with `libcorkscrew.so`: dlopen failed: library "/data/app/com.example.mypackagename-2/lib/arm/libcorkscrew.so" not found
    02-03 17:20:27.634 32205 32205 E mono-rt : 
    02-03 17:20:27.634 32205 32205 E mono-rt : No options left to get a native stacktrace :-(
    02-03 17:20:27.634 32205 32205 E mono-rt : 
    02-03 17:20:27.634 32205 32205 E mono-rt : =================================================================
    02-03 17:20:27.634 32205 32205 E mono-rt : Got a SIGSEGV while executing native code. This usually indicates
    02-03 17:20:27.634 32205 32205 E mono-rt : a fatal error in the mono runtime or one of the native libraries 
    02-03 17:20:27.634 32205 32205 E mono-rt : used by your application.
    02-03 17:20:27.634 32205 32205 E mono-rt : =================================================================
    02-03 17:20:27.634 32205 32205 E mono-rt : 
    02-03 17:20:27.636 32205 32205 F libc    : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 32205 (mypackagename)
    02-03 17:20:27.637 21050 21050 W         : debuggerd: handling request: pid=32205 uid=10219 gid=10219 tid=32205
    02-03 17:20:27.758 32225 32225 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    02-03 17:20:27.758 32225 32225 F DEBUG   : Build fingerprint: 'google/volantis/flounder:7.1.1/N4F26M/3562722:user/release-keys'
    02-03 17:20:27.758 32225 32225 F DEBUG   : Revision: '0'
    02-03 17:20:27.758 32225 32225 F DEBUG   : ABI: 'arm'
    02-03 17:20:27.758 32225 32225 F DEBUG   : pid: 32205, tid: 32205, name: mypackagename  >>> com.example.mypackagename <<<
    02-03 17:20:27.759 32225 32225 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
    02-03 17:20:27.759 32225 32225 F DEBUG   :     r0 d560a538  r1 00004001  r2 00000000  r3 d560a548
    02-03 17:20:27.759 32225 32225 F DEBUG   :     r4 00000008  r5 eb26e27c  r6 00001f3c  r7 00000018
    02-03 17:20:27.759 32225 32225 F DEBUG   :     r8 00001f38  r9 00000018  sl d560a538  fp ffb9b310
    02-03 17:20:27.759 32225 32225 F DEBUG   :     ip eb26e2c0  sp ffb9b2e0  lr eb09e0cc  pc eb010a60  cpsr 800f0010
    02-03 17:20:27.761 32225 32225 F DEBUG   : 
    02-03 17:20:27.761 32225 32225 F DEBUG   : backtrace:
    02-03 17:20:27.762 32225 32225 F DEBUG   :     #00 pc 000dda60  /data/app/com.example.mypackagename-2/lib/arm/libmonosgen-2.0.so
    02-03 17:20:28.290 21341 32226 W ActivityManager:   Force finishing activity com.example.mypackagename/md5c0b33fb719c579c74903630490bf5f2d.MainActivity
    02-03 17:20:28.303 21341 25724 I ActivityManager: Process com.example.mypackagename (pid 32205) has died
    
    Monday, February 6, 2017 11:56 PM
  • User333528 posted

    I m having the same issue , did anyone find solution for this ?

    Friday, September 8, 2017 6:49 AM