Bug 46709 - Native Crash in Xamarin Forms Application in Android 7.0
Summary: Native Crash in Xamarin Forms Application in Android 7.0
Status: RESOLVED ANSWERED
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Paul DiPietro [MSFT]
URL:
Depends on: 46785
Blocks:
  Show dependency tree
 
Reported: 2016-11-10 13:55 UTC by abhirasmanu_rugminibai
Modified: 2017-06-15 16:46 UTC (History)
6 users (show)

Tags: listview crash startup
Is this bug a regression?: ---
Last known good build:


Attachments
Test Application Source (56.83 KB, application/x-zip-compressed)
2016-11-10 14:01 UTC, abhirasmanu_rugminibai
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description abhirasmanu_rugminibai 2016-11-10 13:55:44 UTC
Hi,
We have an application which is developed using Xamarin Forms. The application started crashing on random UI interactions after updating the tablet to Android 7(google nexus 9).  Then we noticed that application sometimes crashes on startup also while showing a simple screen with a ListView.  I was able to consistently reproduce the issue after force closing the application a couple of times. 

I have attached a Test Application code for reproducing the issue. I was able to reproduce the issue on the attached code following the below steps:
1. Deploy release build to tablet.
2. Start the Application.
3. Once you see the page with the list, force close the application (swipe to remove or Force Stop from Settings->Apps)
4. Repeat steps 2 & 3 a couple of times. Most of the time the issue got reproduced in the 5th attempt.
5. After the application crashes  once, you can not start the application until you re-install application or  restart the tablet.

The issue is so bad that when one xamarin forms application crashes you cannot start any xamarin forms application on the tablet until you restart the tablet.

The reproduced issue is similar to the one which crashes my application because they have similar stack trace.

Note: These problem are there only in Android 7.

Please find below the stack trace from TestApp:

First Occurrence:

11-10 14:39:22.234   585   595 D GraphicsStats: Buffer count: 2
11-10 14:39:22.235   585   596 D ActivityManager: cleanUpApplicationRecord -- 2722
11-10 14:39:22.237   585   595 I WindowManager: WIN DEATH: Window{a6ce26 u0 TestApp1.Droid/md5c444d1083ef5ebf849c38a01b79d8126.MainActivity}
11-10 14:39:22.237   585   595 I WindowManager: Destroying surface Surface(name=TestApp1.Droid/md5c444d1083ef5ebf849c38a01b79d8126.MainActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.removeLocked:1449 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2478 com.android.server.wm.WindowManagerService.removeWindowLocked:2436 com.android.server.wm.WindowState$DeathRecipient.binderDied:1780 android.os.BinderProxy.sendDeathNotice:688 <bottom of call stack> 
11-10 14:39:23.287   585   596 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=TestApp1.Droid/md5c444d1083ef5ebf849c38a01b79d8126.MainActivity (has extras)} from uid 10028 on display 0
11-10 14:39:23.319   585   855 I ActivityManager: Start proc 2749:TestApp1.Droid/u0a127 for activity TestApp1.Droid/md5c444d1083ef5ebf849c38a01b79d8126.MainActivity
11-10 14:39:23.475  2749  2749 W monodroid: Trying to load sgen from: /data/app/TestApp1.Droid-1/lib/arm/libmonosgen-2.0.so
11-10 14:39:23.509  2749  2749 W         : No fast tls on device. Using fallbacks. Current implementation : 
11-10 14:39:23.509  2749  2749 W         : 0xf2c8218c 0x42880100 0xf020dc1b 0x480e4100 0x2f70ee1d 0xf8504478 0x68520031 0xf01f010 0xeb02d104 0xf10000c1 0xe0070178 0x1c1eb02 0x31786f4a 0xbf044282 0x47706808 0x60082000 
11-10 14:39:23.562  2749  2749 W monodroid-gc: GREF GC Threshold: 46080
11-10 14:39:23.567  2749  2749 W monodroid: Calling into managed runtime init
11-10 14:39:24.529  2749  2749 E mono-rt : Stacktrace:
11-10 14:39:24.529  2749  2749 E mono-rt : 
11-10 14:39:24.529  2749  2749 E mono-rt :   at <unknown> <0xffffffff>
11-10 14:39:24.529  2749  2749 E mono-rt :   at Xamarin.Forms.ListView..ctor () <0x0002b>
11-10 14:39:24.529  2749  2749 E mono-rt :   at TestApp1.App..ctor () <0x0021b>
11-10 14:39:24.529  2749  2749 E mono-rt :   at TestApp1.Droid.MainActivity.OnCreate (Android.OS.Bundle) <0x0003f>
11-10 14:39:24.529  2749  2749 E mono-rt :   at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) <0x0005b>
11-10 14:39:24.529  2749  2749 E mono-rt :   at (wrapper dynamic-method) object.e7ea5a4a-0891-4b2c-98f6-4a5e2ace24bb (intptr,intptr,intptr) <0x00043>
11-10 14:39:24.529  2749  2749 E mono-rt :   at (wrapper native-to-managed) object.e7ea5a4a-0891-4b2c-98f6-4a5e2ace24bb (intptr,intptr,intptr) <0x000b3>
11-10 14:39:24.529  2749  2749 E mono-rt : 
11-10 14:39:24.529  2749  2749 E mono-rt : Attempting native Android stacktrace:
11-10 14:39:24.529  2749  2749 E mono-rt : 
11-10 14:39:24.530  2749  2749 E mono-rt : 	Could not unwind with `libunwind.so`: dlopen failed: library "/data/app/TestApp1.Droid-1/lib/arm/libunwind.so" not found
11-10 14:39:24.530  2749  2749 E mono-rt : 	Could not unwind with `libcorkscrew.so`: dlopen failed: library "/data/app/TestApp1.Droid-1/lib/arm/libcorkscrew.so" not found
11-10 14:39:24.530  2749  2749 E mono-rt : 
11-10 14:39:24.530  2749  2749 E mono-rt : 	No options left to get a native stacktrace :-(
11-10 14:39:24.530  2749  2749 E mono-rt : 
11-10 14:39:24.530  2749  2749 E mono-rt : =================================================================
11-10 14:39:24.530  2749  2749 E mono-rt : Got a SIGSEGV while executing native code. This usually indicates
11-10 14:39:24.530  2749  2749 E mono-rt : a fatal error in the mono runtime or one of the native libraries 
11-10 14:39:24.530  2749  2749 E mono-rt : used by your application.
11-10 14:39:24.530  2749  2749 E mono-rt : =================================================================
11-10 14:39:24.530  2749  2749 E mono-rt : 
--------- beginning of crash
11-10 14:39:24.531  2749  2749 F libc    : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 2749 (TestApp1.Droid)
11-10 14:39:24.535   185   185 W         : debuggerd: handling request: pid=2749 uid=10127 gid=10127 tid=2749
11-10 14:39:24.603  2768  2768 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-10 14:39:24.603  2768  2768 F DEBUG   : Build fingerprint: 'google/volantis/flounder:7.0/NRD91D/3234828:user/release-keys'
11-10 14:39:24.603  2768  2768 F DEBUG   : Revision: '0'
11-10 14:39:24.603  2768  2768 F DEBUG   : ABI: 'arm'
11-10 14:39:24.603  2768  2768 F DEBUG   : pid: 2749, tid: 2749, name: TestApp1.Droid  >>> TestApp1.Droid <<<
11-10 14:39:24.603  2768  2768 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
11-10 14:39:24.603  2768  2768 F DEBUG   :     r0 d81604b0  r1 00004001  r2 00000000  r3 d81604c0
11-10 14:39:24.604  2768  2768 F DEBUG   :     r4 00000008  r5 ec5ea27c  r6 00001f3c  r7 00000001
11-10 14:39:24.604  2768  2768 F DEBUG   :     r8 00001f38  r9 00000001  sl d81604b0  fp ffdca228
11-10 14:39:24.604  2768  2768 F DEBUG   :     ip ec5ea2c0  sp ffdca1f8  lr ec41a2fc  pc ec38ca60  cpsr 800d0010
11-10 14:39:24.605  2768  2768 F DEBUG   : 
11-10 14:39:24.605  2768  2768 F DEBUG   : backtrace:
11-10 14:39:24.607  2768  2768 F DEBUG   :     #00 pc 000dda60  /data/app/TestApp1.Droid-1/lib/arm/libmonosgen-2.0.so
11-10 14:39:24.976   185   185 W         : debuggerd: resuming target 2749
11-10 14:39:24.977   585  2773 W ActivityManager:   Force finishing activity TestApp1.Droid/md5c444d1083ef5ebf849c38a01b79d8126.MainActivity
11-10 14:39:24.980   585   602 I BootReceiver: Copying /data/tombstones/tombstone_05 to DropBox (SYSTEM_TOMBSTONE)
11-10 14:39:24.996   585   856 I ActivityManager: Process TestApp1.Droid (pid 2749) has died
11-10 14:39:24.996   585   856 D ActivityManager: cleanUpApplicationRecord -- 2749
11-10 14:39:24.996   241   241 I Zygote  : Process 2749 exited due to signal (11)
11-10 14:39:24.999   585   605 I WindowManager: Destroying surface Surface(name=Starting TestApp1.Droid) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.removeLocked:1449 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2478 com.android.server.wm.WindowManagerService.removeWindowLocked:2436 com.android.server.wm.WindowManagerService.removeWindowLocked:2305 com.android.server.wm.WindowManagerService.removeWindow:2300 com.android.server.wm.Session.remove:193


Retrying to start crashed application:

11-10 14:39:30.814   585   855 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=TestApp1.Droid/md5c444d1083ef5ebf849c38a01b79d8126.MainActivity (has extras)} from uid 10028 on display 0
11-10 14:39:30.854   585  1921 I ActivityManager: Start proc 2786:TestApp1.Droid/u0a127 for activity TestApp1.Droid/md5c444d1083ef5ebf849c38a01b79d8126.MainActivity
11-10 14:39:30.970  2786  2786 W monodroid: Trying to load sgen from: /data/app/TestApp1.Droid-1/lib/arm/libmonosgen-2.0.so
11-10 14:39:31.013  2786  2786 W         : No fast tls on device. Using fallbacks. Current implementation : 
11-10 14:39:31.013  2786  2786 W         : 0xf2c8218c 0x42880100 0xf020dc1b 0x480e4100 0x2f70ee1d 0xf8504478 0x68520031 0xf01f010 0xeb02d104 0xf10000c1 0xe0070178 0x1c1eb02 0x31786f4a 0xbf044282 0x47706808 0x60082000 
11-10 14:39:31.064  2786  2786 W monodroid-gc: GREF GC Threshold: 46080
11-10 14:39:31.068  2786  2786 W monodroid: Calling into managed runtime init
11-10 14:39:31.943  2786  2803 E mono-rt : Stacktrace:
11-10 14:39:31.943  2786  2803 E mono-rt : 
11-10 14:39:31.943  2786  2803 E mono-rt : 
11-10 14:39:31.943  2786  2803 E mono-rt : Attempting native Android stacktrace:
11-10 14:39:31.943  2786  2803 E mono-rt : 
11-10 14:39:31.944  2786  2803 E mono-rt : 	Could not unwind with `libunwind.so`: dlopen failed: library "/data/app/TestApp1.Droid-1/lib/arm/libunwind.so" not found
11-10 14:39:31.944  2786  2803 E mono-rt : 	Could not unwind with `libcorkscrew.so`: dlopen failed: library "/data/app/TestApp1.Droid-1/lib/arm/libcorkscrew.so" not found
11-10 14:39:31.944  2786  2803 E mono-rt : 
11-10 14:39:31.944  2786  2803 E mono-rt : 	No options left to get a native stacktrace :-(
11-10 14:39:31.944  2786  2803 E mono-rt : 
11-10 14:39:31.944  2786  2803 E mono-rt : =================================================================
11-10 14:39:31.944  2786  2803 E mono-rt : Got a SIGSEGV while executing native code. This usually indicates
11-10 14:39:31.944  2786  2803 E mono-rt : a fatal error in the mono runtime or one of the native libraries 
11-10 14:39:31.944  2786  2803 E mono-rt : used by your application.
11-10 14:39:31.944  2786  2803 E mono-rt : =================================================================
11-10 14:39:31.944  2786  2803 E mono-rt : 
11-10 14:39:31.944  2786  2803 F libc    : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 2803 (Thread-4)
11-10 14:39:31.945   185   185 W         : debuggerd: handling request: pid=2786 uid=10127 gid=10127 tid=2803
11-10 14:39:31.960  2805  2805 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-10 14:39:31.960  2805  2805 F DEBUG   : Build fingerprint: 'google/volantis/flounder:7.0/NRD91D/3234828:user/release-keys'
11-10 14:39:31.960  2805  2805 F DEBUG   : Revision: '0'
11-10 14:39:31.961  2805  2805 F DEBUG   : ABI: 'arm'
11-10 14:39:31.961  2805  2805 F DEBUG   : pid: 2786, tid: 2803, name: Thread-4  >>> TestApp1.Droid <<<
11-10 14:39:31.961  2805  2805 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
11-10 14:39:31.961  2805  2805 F DEBUG   :     r0 d815f888  r1 00004001  r2 00000000  r3 d815f898
11-10 14:39:31.961  2805  2805 F DEBUG   :     r4 00000008  r5 ec5ea27c  r6 00001f3c  r7 00000009
11-10 14:39:31.961  2805  2805 F DEBUG   :     r8 00001f38  r9 00000009  sl d815f888  fp d7dfe060
11-10 14:39:31.961  2805  2805 F DEBUG   :     ip ec5ea2c0  sp d7dfe030  lr ec41a2fc  pc ec38ca60  cpsr 800f0010
11-10 14:39:31.963  2805  2805 F DEBUG   : 
11-10 14:39:31.963  2805  2805 F DEBUG   : backtrace:
11-10 14:39:31.963  2805  2805 F DEBUG   :     #00 pc 000dda60  /data/app/TestApp1.Droid-1/lib/arm/libmonosgen-2.0.so
11-10 14:39:32.183   585  2806 W ActivityManager:   Force finishing activity TestApp1.Droid/md5c444d1083ef5ebf849c38a01b79d8126.MainActivity
11-10 14:39:32.188  2805  2805 E         : debuggerd: failed to kill process 2786: No such process
11-10 14:39:32.190   585   602 I BootReceiver: Copying /data/tombstones/tombstone_06 to DropBox (SYSTEM_TOMBSTONE)
11-10 14:39:32.200   185   185 W         : debuggerd: resuming target 2786
11-10 14:39:32.200   585   643 I ActivityManager: Process TestApp1.Droid (pid 2786) has died
11-10 14:39:32.200   585   643 D ActivityManager: cleanUpApplicationRecord -- 2786
11-10 14:39:32.202   585   605 I WindowManager: Destroying surface Surface(name=Starting TestApp1.Droid) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.removeLocked:1449 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2478 com.android.server.wm.WindowManagerService.removeWindowLocked:2436 com.android.server.wm.WindowManagerService.removeWindowLocked:2305 com.android.server.wm.WindowManagerService.removeWindow:2300 com.android.server.wm.Session.remove:193

Retrying one more time:

11-10 14:39:34.210   585  2006 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=TestApp1.Droid/md5c444d1083ef5ebf849c38a01b79d8126.MainActivity (has extras)} from uid 10028 on display 0
11-10 14:39:34.231   585   643 I ActivityManager: Start proc 2809:TestApp1.Droid/u0a127 for activity TestApp1.Droid/md5c444d1083ef5ebf849c38a01b79d8126.MainActivity
11-10 14:39:34.309  2809  2809 W monodroid: Trying to load sgen from: /data/app/TestApp1.Droid-1/lib/arm/libmonosgen-2.0.so
11-10 14:39:34.354  2809  2809 W         : No fast tls on device. Using fallbacks. Current implementation : 
11-10 14:39:34.354  2809  2809 W         : 0xf2c8218c 0x42880100 0xf020dc1b 0x480e4100 0x2f70ee1d 0xf8504478 0x68520031 0xf01f010 0xeb02d104 0xf10000c1 0xe0070178 0x1c1eb02 0x31786f4a 0xbf044282 0x47706808 0x60082000 
11-10 14:39:34.403  2809  2809 W monodroid-gc: GREF GC Threshold: 46080
11-10 14:39:34.407  2809  2809 W monodroid: Calling into managed runtime init
11-10 14:39:35.289  2809  2826 E mono-rt : Stacktrace:
11-10 14:39:35.289  2809  2826 E mono-rt : 
11-10 14:39:35.290  2809  2826 E mono-rt : 
11-10 14:39:35.290  2809  2826 E mono-rt : Attempting native Android stacktrace:
11-10 14:39:35.290  2809  2826 E mono-rt : 
11-10 14:39:35.291  2809  2826 E mono-rt : 	Could not unwind with `libunwind.so`: dlopen failed: library "/data/app/TestApp1.Droid-1/lib/arm/libunwind.so" not found
11-10 14:39:35.291  2809  2826 E mono-rt : 	Could not unwind with `libcorkscrew.so`: dlopen failed: library "/data/app/TestApp1.Droid-1/lib/arm/libcorkscrew.so" not found
11-10 14:39:35.291  2809  2826 E mono-rt : 
11-10 14:39:35.291  2809  2826 E mono-rt : 	No options left to get a native stacktrace :-(
11-10 14:39:35.291  2809  2826 E mono-rt : 
11-10 14:39:35.291  2809  2826 E mono-rt : =================================================================
11-10 14:39:35.291  2809  2826 E mono-rt : Got a SIGSEGV while executing native code. This usually indicates
11-10 14:39:35.291  2809  2826 E mono-rt : a fatal error in the mono runtime or one of the native libraries 
11-10 14:39:35.291  2809  2826 E mono-rt : used by your application.
11-10 14:39:35.291  2809  2826 E mono-rt : =================================================================
11-10 14:39:35.291  2809  2826 E mono-rt : 
11-10 14:39:35.292  2809  2826 F libc    : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 2826 (Thread-4)
11-10 14:39:35.292   185   185 W         : debuggerd: handling request: pid=2809 uid=10127 gid=10127 tid=2826
11-10 14:39:35.357  2829  2829 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-10 14:39:35.357  2829  2829 F DEBUG   : Build fingerprint: 'google/volantis/flounder:7.0/NRD91D/3234828:user/release-keys'
11-10 14:39:35.357  2829  2829 F DEBUG   : Revision: '0'
11-10 14:39:35.357  2829  2829 F DEBUG   : ABI: 'arm'
11-10 14:39:35.357  2829  2829 F DEBUG   : pid: 2809, tid: 2826, name: Thread-4  >>> TestApp1.Droid <<<
11-10 14:39:35.358  2829  2829 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
11-10 14:39:35.358  2829  2829 F DEBUG   :     r0 d814af98  r1 00004001  r2 00000000  r3 d814afa8
11-10 14:39:35.358  2829  2829 F DEBUG   :     r4 00000008  r5 ec5ea27c  r6 00001f3c  r7 00000009
11-10 14:39:35.358  2829  2829 F DEBUG   :     r8 00001f38  r9 00000009  sl d814af98  fp d7dfe060
11-10 14:39:35.358  2829  2829 F DEBUG   :     ip ec5ea2c0  sp d7dfe030  lr ec41a2fc  pc ec38ca60  cpsr 800f0010
11-10 14:39:35.358  2829  2829 F DEBUG   : 
11-10 14:39:35.358  2829  2829 F DEBUG   : backtrace:
11-10 14:39:35.359  2829  2829 F DEBUG   :     #00 pc 000dda60  /data/app/TestApp1.Droid-1/lib/arm/libmonosgen-2.0.so
11-10 14:39:35.561  2829  2829 E         : debuggerd: failed to kill process 2809: No such process
11-10 14:39:35.563   585   602 I BootReceiver: Copying /data/tombstones/tombstone_07 to DropBox (SYSTEM_TOMBSTONE)
11-10 14:39:35.568   585  2830 W ActivityManager:   Force finishing activity TestApp1.Droid/md5c444d1083ef5ebf849c38a01b79d8126.MainActivity
11-10 14:39:35.569   185   185 W         : debuggerd: resuming target 2809
11-10 14:39:35.571   585  2830 E JavaBinder: !!! FAILED BINDER TRANSACTION !!!  (parcel size = 112)
11-10 14:39:35.576   241   241 I Zygote  : Process 2809 exited due to signal (11)
11-10 14:39:35.576   585  2830 W ActivityManager: Exception thrown during pause
11-10 14:39:35.576   585  2830 W ActivityManager: android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died
11-10 14:39:35.576   585  2830 W ActivityManager: 	at android.os.BinderProxy.transactNative(Native Method)
11-10 14:39:35.576   585  2830 W ActivityManager: 	at android.os.BinderProxy.transact(Binder.java:615)
11-10 14:39:35.576   585  2830 W ActivityManager: 	at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:784)
11-10 14:39:35.576   585  2830 W ActivityManager: 	at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:1128)
11-10 14:39:35.576   585  2830 W ActivityManager: 	at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:3483)
11-10 14:39:35.576   585  2830 W ActivityManager: 	at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:3319)
11-10 14:39:35.576   585  2830 W ActivityManager: 	at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:1821)
11-10 14:39:35.576   585  2830 W ActivityManager: 	at com.android.server.am.AppErrors.handleAppCrashLocked(AppErrors.java:619)
11-10 14:39:35.576   585  2830 W ActivityManager: 	at com.android.server.am.AppErrors.makeAppCrashingLocked(AppErrors.java:481)
11-10 14:39:35.576   585  2830 W ActivityManager: 	at com.android.server.am.AppErrors.crashApplicationInner(AppErrors.java:357)
11-10 14:39:35.576   585  2830 W ActivityManager: 	at com.android.server.am.AppErrors.crashApplication(AppErrors.java:309)
11-10 14:39:35.576   585  2830 W ActivityManager: 	at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:13236)
11-10 14:39:35.576   585  2830 W ActivityManager: 	at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
11-10 14:39:35.579   197   197 E lowmemorykiller: Error opening /proc/2809/oom_score_adj; errno=2
11-10 14:39:35.579   585  2830 I WindowManager: Failed to capture screenshot of Token{f8006de ActivityRecord{ab62619 u0 TestApp1.Droid/md5c444d1083ef5ebf849c38a01b79d8126.MainActivity t86 f}} appWin=Window{12ba824 u0 Starting TestApp1.Droid} drawState=4
11-10 14:39:35.581   585  2006 I ActivityManager: Process TestApp1.Droid (pid 2809) has died
11-10 14:39:35.582   585  2006 D ActivityManager: cleanUpApplicationRecord -- 2809
11-10 14:39:35.599   585   605 I WindowManager: Destroying surface Surface(name=Starting TestApp1.Droid) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.removeLocked:1449 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2478 com.android.server.wm.WindowManagerService.removeWindowLocked:2436 com.android.server.wm.WindowManagerService.removeWindowLocked:2305 com.android.server.wm.WindowManagerService.removeWindow:2300 com.android.server.wm.Session.remove:193
Comment 1 abhirasmanu_rugminibai 2016-11-10 14:01:07 UTC
Created attachment 18411 [details]
Test Application Source

Restore NuGet Packages before building.
Comment 2 Paul DiPietro [MSFT] 2017-03-24 23:06:19 UTC
Is this only occurring on that device that you're aware of or do you experience it on other devices/emulator(s) as well? Does using any of the latest stable/prerelease/nightly help rectify the issue? I've run the reproduction on a 7.0 emulator and after force closing it a few times it didn't seem to function incorrectly, but I'm wondering if it's device specific.
Comment 3 abhirasmanu_rugminibai 2017-03-28 11:18:13 UTC
The problem first occurred in Nexus 9 (arm64-v8a) after updating to Android 7.0. Then the tablet was updated to  Android 7.1.1 (API25). There also the issue have been reproduced. We were not able reproduce the issue in other Android 7.0 tablets. But all these tablet were armeabi-v7a. I guess this issue could be related to arm64-v8a. 

With latest xamarin also, we are able to reproduce the issue on Nexus 9 (arm64-v8a, API25).
Comment 4 FieldstrikeMobile 2017-03-28 11:26:52 UTC
Possibly related to this bug?

https://bugzilla.xamarin.com/show_bug.cgi?id=48475

This is a real issue. It turns Nexus 9 into a brick
Comment 5 Paul DiPietro [MSFT] 2017-06-15 16:46:02 UTC
Resolving based on the status of the referred bug and the explanation.