Application crash when posting to web service

DuncWattsDuncWatts USMember ✭✭

I'm building a Xamarin Forms application, however in the iOS build the application crashes (closes with no errors on screen) whenever I attempt to make perform a post using HttpClient.SendAsync from within a referenced PCL library. I am running this from a Windows PC using Visual Studio 2015, debugging to a device plugged into a Mac on my desk. Can anyone advise what my next steps are?

In the output window I get the following (full paste available at https://gist.github.com/anonymous/14b62ab0765de832f146d6f12049ba4d as it's too long for the forum post):

2017-07-19 08:45:59.943 MyAppiOS[958:1466903] error: * Assertion at /Users/builder/data/lanes/4691/d2270eec/source/xamarin-macios/external/mono/mono/sgen/sgen-los.c:304, condition `!section->free_chunk_map [i]' not met
2017-07-19 08:45:59.943 MyAppiOS[958:1466903] critical: Stacktrace:
2017-07-19 08:45:59.944 MyAppiOS[958:1466903] critical: at <0xffffffff>
2017-07-19 08:45:59.944 MyAppiOS[958:1466903] critical: at (wrapper managed-to-native) object.__icall_wrapper_mono_gc_alloc_vector (intptr,intptr,intptr) <0x00007>
2017-07-19 08:45:59.944 MyAppiOS[958:1466903] critical: at (wrapper alloc) object.AllocVector (intptr,intptr) <0x0016b>
2017-07-19 08:45:59.945 MyAppiOS[958:1466903] critical: at System.Uri.ReCreateParts (System.UriComponents,uint16,System.UriFormat) [0x0004b] in /Library/Frameworks/Xamarin.iOS.framework/Versions/10.10.0.36/src/mono/mcs/class/referencesource/System/net/System/URI.cs:2822
...
2017-07-19 08:45:59.958 MyAppiOS[958:1466903] critical: Native stacktrace:
2017-07-19 08:46:00.224 MyAppiOS[958:1466903] critical: 0 MyAppiOS 0x00000001018b75c0 mono_handle_native_crash + 260
2017-07-19 08:46:00.224 MyAppiOS[958:1466903] critical: 1 libsystem_platform.dylib 0x000000018d0bd31c _sigtramp + 52
2017-07-19 08:46:00.224 MyAppiOS[958:1466903] critical: 2 libsystem_pthread.dylib 0x000000018d0c3264 pthread_kill + 112
2017-07-19 08:46:00.224 MyAppiOS[958:1466903] critical: 3 libsystem_c.dylib 0x000000018cf6d9c4 abort + 140
2017-07-19 08:46:00.224 MyAppiOS[958:1466903] critical: 4 MyAppiOS 0x00000001019b8f4c _ZL12log_callbackPKcS0_S0_iPv + 76
2017-07-19 08:46:00.224 MyAppiOS[958:1466903] critical: 5 MyAppiOS 0x00000001019b288c monoeg_g_logv + 100
2017-07-19 08:46:00.224 MyAppiOS[958:1466903] critical: 6 MyAppiOS 0x00000001019b2a84 monoeg_assertion_message + 44
2017-07-19 08:46:00.225 MyAppiOS[958:1466903] critical: 7 MyAppiOS 0x00000001019710b8 sgen_los_free_object + 280
2017-07-19 08:46:00.225 MyAppiOS[958:1466903] critical: 8 MyAppiOS 0x00000001019715b8 sgen_los_sweep + 104
2017-07-19 08:46:00.225 MyAppiOS[958:1466903] critical: 9 MyAppiOS 0x000000010196de90 major_finish_collection + 592
2017-07-19 08:46:00.225 MyAppiOS[958:1466903] critical: 10 MyAppiOS 0x000000010196a4a4 major_do_collection + 164
2017-07-19 08:46:00.225 MyAppiOS[958:1466903] critical: 11 MyAppiOS 0x0000000101969a40 sgen_perform_collection + 720
2017-07-19 08:46:00.225 MyAppiOS[958:1466903] critical: 12 MyAppiOS 0x00000001019608d4 sgen_alloc_obj_nolock + 952
2017-07-19 08:46:00.225 MyAppiOS[958:1466903] critical: 13 MyAppiOS 0x0000000101939528 mono_gc_alloc_vector + 128
2017-07-19 08:46:00.225 MyAppiOS[958:1466903] critical: 14 MyAppiOS 0x00000001002e1fb0 wrapper_managed_to_native_object___icall_wrapper_mono_gc_alloc_vector_intptr_intptr_intptr + 112
2017-07-19 08:46:00.225 MyAppiOS[958:1466903] critical: 15 MyAppiOS 0x00000001002dd34c wrapper_alloc_object_AllocVector_intptr_intptr + 364
2017-07-19 08:46:00.225 MyAppiOS[958:1466903] critical: 16 MyAppiOS 0x00000001007eaef4 System_Uri_ReCreateParts_System_UriComponents_uint16_System_UriFormat + 356
...
The app has been terminated.
Failed to Stop app: An error occured on client IDB450486 while executing a reply for topic xvs/idb/4.5.0.486/stop-appThe app has been terminated.

The app has been terminated.

Sign In or Register to comment.