Bug 53109 - [Mac Xamarin Studio Community] Mono Crashes when Dealing with Notifications on Android
Summary: [Mac Xamarin Studio Community] Mono Crashes when Dealing with Notifications o...
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger (show other bugs)
Version: 4.8.0 (C9)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2017-03-07 12:00 UTC by kyluke.m
Modified: 2017-09-18 06:54 UTC (History)
4 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description kyluke.m 2017-03-07 12:00:01 UTC
OS: Mac Sierra 10.12.3 (16D32)

Xamarin Studio Community Edition: 6.2.0
Xamarin Forms: 2.3.3.193
Xamarin Android: 7.1.0.41

Mono Framework: 4.8.0.495

Problem:
GCM Notification comes through on the device. User taps on notification and app crashes with error code:

[ToolbarWidgetWrapper] Progress display unsupported
[] * Assertion at /Users/builder/data/lanes/4009/f3074d2c/source/mono/mono/mini/debugger-agent.c:8732, condition `locals->locals [i].index < header->num_locals' not met
[libc] Fatal signal 6 (SIGABRT), code -6 in tid 1843 (Debugger agent)
Comment 1 kyluke.m 2017-03-22 13:34:00 UTC
I've downgraded to Mono 4.6.2 and it's still happening. This time on iOS builds.

This the error message, uninstalling the app from the device has not worked. Cleaning and rebuilding also has not worked.


2017-03-22 15:21:25.829 <redactedAppName>[438:388359] error: * Assertion at /Users/builder/data/lanes/4466/f94cf268/source/xamarin-macios/external/mono/mono/mini/debugger-agent.c:8732, condition `locals->locals [i].index < header->num_locals' not met
2017-03-22 15:21:25.830 <redactedAppName>[438:388359] critical: Stacktrace:

2017-03-22 15:21:25.830 <redactedAppName>[438:388359] critical: 
Native stacktrace:

2017-03-22 15:21:26.143 <redactedAppName>[438:388359] critical: 	0   <redactedAppName>                             0x00000001000e1d5c mono_handle_native_sigsegv + 260
2017-03-22 15:21:26.144 <redactedAppName>[438:388359] critical: 	1   libsystem_platform.dylib            0x0000000191981348 _sigtramp + 52
2017-03-22 15:21:26.144 <redactedAppName>[438:388359] critical: 	2   libsystem_pthread.dylib             0x0000000191987450 pthread_kill + 112
2017-03-22 15:21:26.144 <redactedAppName>[438:388359] critical: 	3   libsystem_c.dylib                   0x0000000191833400 abort + 140
2017-03-22 15:21:26.145 <redactedAppName>[438:388359] critical: 	4   <redactedAppName>                             0x00000001001d284c _ZL12log_callbackPKcS0_S0_iPv + 76
2017-03-22 15:21:26.145 <redactedAppName>[438:388359] critical: 	5   <redactedAppName>                             0x00000001001cc180 monoeg_g_logv + 100
2017-03-22 15:21:26.145 <redactedAppName>[438:388359] critical: 	6   <redactedAppName>                             0x00000001001cc374 monoeg_assertion_message + 44
2017-03-22 15:21:26.146 <redactedAppName>[438:388359] critical: 	7   <redactedAppName>                             0x00000001000d55f4 method_commands_internal + 13248
2017-03-22 15:21:26.146 <redactedAppName>[438:388359] critical: 	8   <redactedAppName>                             0x00000001000c43ac debugger_thread + 4672
2017-03-22 15:21:26.146 <redactedAppName>[438:388359] critical: 	9   <redactedAppName>                             0x00000001001c2f74 inner_start_thread + 320
2017-03-22 15:21:26.147 <redactedAppName>[438:388359] critical: 	10  libsystem_pthread.dylib             0x0000000191985850 <redacted> + 240
2017-03-22 15:21:26.148 <redactedAppName>[438:388359] critical: 	11  libsystem_pthread.dylib             0x0000000191985760 <redacted> + 0
2017-03-22 15:21:26.148 <redactedAppName>[438:388359] critical: 	12  libsystem_pthread.dylib             0x0000000191982d94 thread_start + 4
2017-03-22 15:21:26.149 <redactedAppName>[438:388359] critical: 
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================
Comment 2 kyluke.m 2017-03-22 13:40:15 UTC
This problem does not seem to exist when using the simulators. I've only experienced the issue on a physical device.
Comment 3 kyluke.m 2017-03-23 05:19:39 UTC
Downgrading to Cycle 8 has solved the problem. This is definitely an issue with cycle 9.
Comment 4 bemnet4u 2017-09-18 06:54:50 UTC
I also get the same crash on my mac/andoird device. Please help!!!

Visual Studio Enterprise 2017 for Mac
Version 7.1 (build 1297)
Runtime:
	Mono 5.2.0.215 (d15-3/da80840) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 502000215



I also see the same problem when testing on physical device 

Xamarin.Android
Version: 7.4.0.21 (Visual Studio Enterprise)

SDK Tools Version: 25.2.5
SDK Platform Tools Version: 25.0.5
SDK Build Tools Version: 25.0.3

Note You need to log in before you can comment on or make changes to this bug.