Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Question] Native Crash Reporting Got a segv while executing native code #13016

Open
Az0th opened this issue Dec 1, 2020 · 18 comments
Open

[Question] Native Crash Reporting Got a segv while executing native code #13016

Az0th opened this issue Dec 1, 2020 · 18 comments
Assignees
Projects

Comments

@Az0th
Copy link

Az0th commented Dec 1, 2020

Hello Guys,
I get this error when trying ti start the App vie Xamarin Hot Restart on my iPhone. On Android it works.
Is there anyway to gather more information about such an error because I cant really get some useful information from that.
I already tried to find the portion of code that produced that error but it was not successful.

Thank you guys.

`Loaded assembly: /private/var/containers/Bundle/Application/8D62ECA0-60B2-489C-9D47-2396DB27933A/FlyThePilotHelperTest.app/Xamarin.iOS.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/8D62ECA0-60B2-489C-9D47-2396DB27933A/FlyThePilotHelperTest.app/System.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/8D62ECA0-60B2-489C-9D47-2396DB27933A/FlyThePilotHelperTest.app/Mono.Security.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/8D62ECA0-60B2-489C-9D47-2396DB27933A/FlyThePilotHelperTest.app/Xamarin.PreBuilt.iOS.exe [External]
Thread started: #2
Loaded assembly: /private/var/containers/Bundle/Application/8D62ECA0-60B2-489C-9D47-2396DB27933A/FlyThePilotHelperTest.app/Xamarin.PreBuilt.iOS.Library.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/8D62ECA0-60B2-489C-9D47-2396DB27933A/FlyThePilotHelperTest.app/netstandard.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/8D62ECA0-60B2-489C-9D47-2396DB27933A/FlyThePilotHelperTest.app/System.Core.dll [External]
2020-12-01 16:57:19.833 Xamarin.PreBuilt.iOS[9394:2038055] Content folder: /var/mobile/Containers/Data/Application/3F6FCDAC-F790-4C7D-B5A5-6ED46831A0EF/Documents/FlyThePilotHelperTest.content

Thread started: #3
2020-12-01 16:57:19.850 Xamarin.PreBuilt.iOS[9394:2038055] Forms app path /var/mobile/Containers/Data/Application/3F6FCDAC-F790-4C7D-B5A5-6ED46831A0EF/Documents/FlyThePilotHelperTest.content/FlyThePilotHelperTest.exe

Loaded assembly: /private/var/mobile/Containers/Data/Application/3F6FCDAC-F790-4C7D-B5A5-6ED46831A0EF/Documents/FlyThePilotHelperTest.content/FlyThePilotHelperTest.exe [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/3F6FCDAC-F790-4C7D-B5A5-6ED46831A0EF/Documents/FlyThePilotHelperTest.content/Xamarin.Forms.Platform.iOS.dll [External]
2020-12-01 16:57:19.880 Xamarin.PreBuilt.iOS[9394:2038055] Xamarin.Forms AppDelegate name: AppDelegate

=================================================================
Native Crash Reporting

Got a segv while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.

=================================================================
Native stacktrace:

0x100d44120 - /private/var/containers/Bundle/Application/8D62ECA0-60B2-489C-9D47-2396DB27933A/FlyThePilotHelperTest.app/Xamarin.PreBuilt.iOS : mono_dump_native_crash_info
0x100d3acbc - /private/var/containers/Bundle/Application/8D62ECA0-60B2-489C-9D47-2396DB27933A/FlyThePilotHelperTest.app/Xamarin.PreBuilt.iOS : mono_handle_native_crash

0x100d47a60 - /private/var/containers/Bundle/Application/8D62ECA0-60B2-489C-9D47-2396DB27933A/FlyThePilotHelperTest.app/Xamarin.PreBuilt.iOS : mono_sigsegv_signal_handler_debug
0x1d60fa290 - /usr/lib/system/libsystem_platform.dylib : <redacted>
0x18c92da78 - /usr/lib/system/libdyld.dylib : <redacted>
0x18c91e84c - /usr/lib/system/libdyld.dylib : <redacted>
0x18c92d8a4 - /usr/lib/system/libdyld.dylib : <redacted>
0x18c91f18c - /usr/lib/system/libdyld.dylib : <redacted>
0x18c92e344 - /usr/lib/system/libdyld.dylib : <redacted>

0x100dfe504 - /private/var/containers/Bundle/Application/8D62ECA0-60B2-489C-9D47-2396DB27933A/FlyThePilotHelperTest.app/Xamarin.PreBuilt.iOS : mono_runtime_exec_main_checked
0x100d2f8f4 - /private/var/containers/Bundle/Application/8D62ECA0-60B2-489C-9D47-2396DB27933A/FlyThePilotHelperTest.app/Xamarin.PreBuilt.iOS : mono_jit_exec

0x100ee1a5c - /private/var/containers/Bundle/Application/8D62ECA0-60B2-489C-9D47-2396DB27933A/FlyThePilotHelperTest.app/Xamarin.PreBuilt.iOS : xamarin_main

0x100cf6ea8 - /private/var/containers/Bundle/Application/8D62ECA0-60B2-489C-9D47-2396DB27933A/FlyThePilotHelperTest.app/Xamarin.PreBuilt.iOS : main
0x18c91d6c0 - /usr/lib/system/libdyld.dylib : <redacted>

=================================================================
Basic Fault Address Reporting

Memory around native instruction pointer (0x10a66f11c):0x10a66f10c
0x100ee3f88 - /private/var/containers/Bundle/Application/8D62ECA0-60B2-489C-9D47-2396DB27933A/FlyThePilotHelperTest.app/Xamarin.PreBuilt.iOS : interp_runtime_invoke
0x100d4ad3c - /private/var/containers/Bundle/Application/8D62ECA0-60B2-489C-9D47-2396DB27933A/FlyThePilotHelperTest.app/Xamarin.PreBuilt.iOS : mono_jit_runtime_invoke
0x100df9260 - /private/var/containers/Bundle/Application/8D62ECA0-60B2-489C-9D47-2396DB27933A/FlyThePilotHelperTest.app/Xamarin.PreBuilt.iOS : mono_runtime_invoke_checked

0x18c92de2c - /usr/lib/system/libdyld.dylib : <redacted>
0x18c92fd14 - /usr/lib/system/libdyld.dylib : <redacted>
0x18c921d44 - /usr/lib/system/libdyld.dylib : <redacted>
0x100ef0a48 - /private/var/containers/Bundle/Application/8D62ECA0-60B2-489C-9D47-2396DB27933A/FlyThePilotHelperTest.app/Xamarin.PreBuilt.iOS : do_icall
0x100eef0e8 - /private/var/containers/Bundle/Application/8D62ECA0-60B2-489C-9D47-2396DB27933A/FlyThePilotHelperTest.app/Xamarin.PreBuilt.iOS : do_icall_wrapper
0x100ee5b64 - /private/var/containers/Bundle/Application/8D62ECA0-60B2-489C-9D47-2396DB27933A/FlyThePilotHelperTest.app/Xamarin.PreBuilt.iOS : interp_exec_method_full

c3 bc
00 94 e0 03 13 aa 5f 00 03 94 20 00 20 d4 ........_... . .
0x10a66f11c f4 4f be a9 fd 7b 01 a9 fd 43 00 91 73 09 00 b0 .O...{...C..s...
0x10a66f12c 73 82 2b 91 61 08 00 b0 21 38 2f 91 e0 03 13 aa s.+.a...!8/.....
0x10a66f13c 02 00 ae 52 63 bc 00 94 60 82 01 91 ce bc 00 94 ...Rc...`.......

=================================================================
Managed Stacktrace:

  at <unknown> <0xffffffff>
  at ObjCRuntime.Dlfcn:_dlopen <0x00026>
  at ObjCRuntime.Dlfcn:dlopen <0x00010>
  at Xamarin.PreBuilt.iOS.Applications:LoadFrameworks <0x0009e>
  at Xamarin.PreBuilt.iOS.Applications:Main <0x00202>
  at <Module>:runtime_invoke_direct_void_string[] <0x00092>

=================================================================

Thread started: #4
Thread started: #5
Thread started: #6
Thread started: #7
Die App wurde beendet.
`
Used Versions:

Microsoft Visual Studio Community 2019
Version 16.8.2
VisualStudio.16.Release/16.8.2+30717.126
Microsoft .NET Framework
Version 4.8.04084

Installierte Version: Community

Allgemeine Azure-Tools 1.10
Bietet allgemeine Dienste für die Verwendung durch Azure Mobile Services und Microsoft Azure-Tools.

ASP.NET and Web Tools 2019 16.8.553.28003
ASP.NET and Web Tools 2019

ASP.NET Core Razor Language Services 16.1.0.2052803+84e121f1403378489b842e1797df2f3f5a49ac3c
Provides languages services for ASP.NET Core Razor.

Azure App Service-Tools v3.0.0 16.8.553.28003
Azure App Service-Tools v3.0.0

C#-Tools 3.8.0-5.20567.16+53c5d7d3cf13d88978744a32a27c5f8350a8400a
C#-Komponenten, die in der IDE verwendet werden. Abhängig von Ihrem Projekttyp und den zugehörigen Einstellungen kann eine andere Version des Compilers verwendet werden.

Extensibility Message Bus 1.2.6 (master@34d6af2)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

GitHub.VisualStudio 2.11.106.19330
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

IntelliCode-Erweiterung 1.0
Detaillierte Informationen zur IntelliCode Visual Studio-Erweiterung

Microsoft Continuous Delivery Tools für Visual Studio 0.4
Die Konfiguration von Azure DevOps-Pipelines von der Visual Studio-IDE aus wird vereinfacht.

Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual Studio-Tools für Container 1.1
Jetzt können Sie Ihre ASP.NET Core-Anwendung in der Zielumgebung entwickeln, ausführen und überprüfen. Drücken Sie F5, um die Anwendung direkt in einem Container mit Debugfunktionen auszuführen, oder STRG+F5 zum Bearbeiten und Aktualisieren Ihrer Anwendung, ohne den Container erneut erstellen zu müssen.

Mono Debugging for Visual Studio 16.8.43 (00471f8)
Support for debugging Mono processes with Visual Studio.

NuGet-Paket-Manager 5.8.0
NuGet-Paket-Manager in Visual Studio. Weitere Informationen zu NuGet finden Sie unter https://docs.nuget.org/.

ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

SQL Server Data Tools 16.0.62010.06180
Microsoft SQL Server Data Tools

TypeScript-Tools 16.0.21016.2001
TypeScript-Tools für Microsoft Visual Studio

Visual Basic-Tools 3.8.0-5.20567.16+53c5d7d3cf13d88978744a32a27c5f8350a8400a
Visual Basic-Komponenten, die in der IDE verwendet werden. Abhängig von Ihrem Projekttyp und den zugehörigen Einstellungen kann eine andere Version des Compilers verwendet werden.

Visual F# Tools 16.8.0-beta.20507.4+da6be68280c89131cdba2045525b80890401defd
Microsoft Visual F# Tools

Visual Studio-Tools für Container 1.0
Visual Studio-Tools für Container

Visual Studio Code-Debugadapter-Hostpaket 1.0
Interopebene zum Hosten der Visual Studio Code-Adapter in Visual Studio

Visual Studio Container Tools Extensions 1.0
Hiermit werden Container in Visual Studio angezeigt, verwaltet und diagnostiziert.

VisualStudio.DeviceLog 1.0
Informationen zum Paket

VisualStudio.Foo 1.0
Information about my package

VisualStudio.Mac 1.0
Mac Extension for Visual Studio

Xamarin 16.8.000.255 (d16-8@d002176)
Visual Studio-Erweiterung, um Entwicklung für Xamarin.iOS und Xamarin.Android zu ermöglichen.

Xamarin Designer 16.8.0.507 (remotes/origin/d16-8@e87b24884)
Visual Studio-Erweiterung zum Aktivieren der Xamarin Designer-Tools in Visual Studio.

Xamarin Templates 16.8.112 (86385a3)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Forms 4.8.0.1687

Xamarin.Android SDK 11.1.0.17 (d16-8/c0e2b8e)
Xamarin.Android Reference Assemblies and MSBuild support.
Mono: be2226b
Java.Interop: xamarin/java.interop@79d9533
ProGuard: Guardsquare/proguard@ebe9000
SQLite: xamarin/sqlite@1a3276b
Xamarin.Android Tools: xamarin/xamarin-android-tools@2fb1cbc

Xamarin.iOS and Xamarin.Mac SDK 14.4.1.3 (e30c41de3)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

@samhouts samhouts added this to New in Triage Dec 1, 2020
@PureWeen
Copy link
Contributor

PureWeen commented Dec 7, 2020

@mauroa ?

@PureWeen PureWeen moved this from New to External in Triage Dec 7, 2020
@stefano-v
Copy link

Got the very same problem

@marosbeno
Copy link

Me too. It works perfectly fine on iPhone simulator, but crashes on the device.

@Az0th
Copy link
Author

Az0th commented Dec 28, 2020

I can't really say whether my code would work on an iPhone simulator.
I don't have a Mac or a Remote Buildhost at the moment.
I can only test it via Xamarin Hot Restart on my device.
But I know that it is not related with Xamarin Hot Restart because the Test at Apple for the Testflight Distribution said the same.

@Az0th
Copy link
Author

Az0th commented Dec 29, 2020

Hello guys,

I got a new Error message in the Build-Output-Console it is in german but I think the important part is in english in bold letters:

Entwicklerimage wird eingebunden...
Der Apple-Dienst "com.apple.mobile.mobile_image_mounter" wird beendet...
Fehler beim Versuch, die App "FlyThePilotHelper.iOS" zu starten. Details: Error running hotrestart: 'Fehler beim Starten der Anwendung "5XY3NM8YYM.com.companyname.FlyThePilotHelper" in "Felixs iPhone".. Details: Fehler beim Versuch, das Entwicklerimage einzubinden. Fehlercode: ImageMountFailed'. Command: 'launch -u=00008030-001068D62EE8802E -i=5XY3NM8YYM.com.companyname.FlyThePilotHelper -p=10000 -d="C:\Users\felix\AppData\Local\Xamarin\iOS\DeveloperDiskImages\14.1\DeveloperDiskImage.dmg" -w=True'
Der iOS-Debugger wurde über USB mit "Felixs iPhone" an Port 10000 verbunden.
Der iOS-Debugger wird über USB mit "Felixs iPhone" an Port 10000 verbunden...

@Az0th
Copy link
Author

Az0th commented Jan 13, 2021

Another information:
On my iPad Air 2 it is working.
On my iPhone 11 not.

With Xamarin Hot Restart

@VPRoss
Copy link

VPRoss commented Jan 24, 2021

Getting this "Got a segv while executing native code" situation as well running on iOS with HotRestart. It was working prior to upgrading to Xamarin.Forms 5. Same app works fine against the Android emulator. There have also been iPhone updates in recent weeks so maybe some issue there? iPhone is 11 Pro Max with iOS 14.3

@PKalok
Copy link

PKalok commented Feb 9, 2021

Keep getting Segv on iOS physical devices, 11 Pro & 12 Pro, Simulator works well. I downgraded Xamarin Forms to 4.8.0.167 but issue still persists. App seems to hang on Launch and die after about 15 seconds

Loaded assembly: /private/var/containers/Bundle/Application/962EBA9A-2487-4D50-BCB7-D82DBAB53E52/YondrMobile.iOS.app/Xamarin.iOS.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/962EBA9A-2487-4D50-BCB7-D82DBAB53E52/YondrMobile.iOS.app/System.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/962EBA9A-2487-4D50-BCB7-D82DBAB53E52/YondrMobile.iOS.app/Mono.Security.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/962EBA9A-2487-4D50-BCB7-D82DBAB53E52/YondrMobile.iOS.app/Xamarin.PreBuilt.iOS.exe [External]
Thread started: #2
Loaded assembly: /private/var/containers/Bundle/Application/962EBA9A-2487-4D50-BCB7-D82DBAB53E52/YondrMobile.iOS.app/Xamarin.PreBuilt.iOS.Library.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/962EBA9A-2487-4D50-BCB7-D82DBAB53E52/YondrMobile.iOS.app/netstandard.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/962EBA9A-2487-4D50-BCB7-D82DBAB53E52/YondrMobile.iOS.app/System.Core.dll [External]
Thread started: #3
2021-02-09 15:21:11.443 Xamarin.PreBuilt.iOS[472:50640] Content folder: /var/mobile/Containers/Data/Application/45FC7226-723B-4578-9176-46AC7FC57044/Documents/YondrMobile.iOS.content

2021-02-09 15:21:11.618 Xamarin.PreBuilt.iOS[472:50640] Forms app path /var/mobile/Containers/Data/Application/45FC7226-723B-4578-9176-46AC7FC57044/Documents/YondrMobile.iOS.content/YondrMobile.iOS.exe

Loaded assembly: /private/var/mobile/Containers/Data/Application/45FC7226-723B-4578-9176-46AC7FC57044/Documents/YondrMobile.iOS.content/YondrMobile.iOS.exe
Loaded assembly: /private/var/mobile/Containers/Data/Application/45FC7226-723B-4578-9176-46AC7FC57044/Documents/YondrMobile.iOS.content/Xamarin.Forms.Platform.iOS.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/45FC7226-723B-4578-9176-46AC7FC57044/Documents/YondrMobile.iOS.content/Xamarin.Forms.Core.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/45FC7226-723B-4578-9176-46AC7FC57044/Documents/YondrMobile.iOS.content/YondrMobile.dll
2021-02-09 15:21:11.652 Xamarin.PreBuilt.iOS[472:50640] Xamarin.Forms AppDelegate name: AppDelegate

Thread started: #4
Thread started: #5
Thread started: #6
Thread started: #7

=================================================================
Native Crash Reporting

Got a segv while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.

=================================================================
Native stacktrace:

0x104b74120 - /private/var/containers/Bundle/Application/962EBA9A-2487-4D50-BCB7-D82DBAB53E52/YondrMobile.iOS.app/Xamarin.PreBuilt.iOS : mono_dump_native_crash_info
0x104b6acbc - /private/var/containers/Bundle/Application/962EBA9A-2487-4D50-BCB7-D82DBAB53E52/YondrMobile.iOS.app/Xamarin.PreBuilt.iOS : mono_handle_native_crash

0x104b77a60 - /private/var/containers/Bundle/Application/962EBA9A-2487-4D50-BCB7-D82DBAB53E52/YondrMobile.iOS.app/Xamarin.PreBuilt.iOS : mono_sigsegv_signal_handler_debug
0x1ed507298 - /usr/lib/system/libsystem_platform.dylib : <redacted>
0x1a16a2a68 - /usr/lib/system/libdyld.dylib : <redacted>
0x1a169383c - /usr/lib/system/libdyld.dylib : <redacted>
0x1a16a2894 - /usr/lib/system/libdyld.dylib : <redacted>
0x1a169417c - /usr/lib/system/libdyld.dylib : <redacted>
0x1a16a3334 - /usr/lib/system/libdyld.dylib : <redacted>

0x1a16a2e1c - /usr/lib/system/libdyld.dylib : <redacted>
0x1a16a4d04 - /usr/lib/system/libdyld.dylib : <redacted>
0x1a1696d34 - /usr/lib/system/libdyld.dylib : <redacted>

0x104d15a34 - /private/var/containers/Bundle/Application/962EBA9A-2487-4D50-BCB7-D82DBAB53E52/YondrMobile.iOS.app/Xamarin.PreBuilt.iOS : interp_exec_method_full
0x104d13e58 - /private/var/containers/Bundle/Application/962EBA9A-2487-4D50-BCB7-D82DBAB53E52/YondrMobile.iOS.app/Xamarin.PreBuilt.iOS : interp_runtime_invoke
0x104b7ad3c - /private/var/containers/Bundle/Application/962EBA9A-2487-4D50-BCB7-D82DBAB53E52/YondrMobile.iOS.app/Xamarin.PreBuilt.iOS : mono_jit_runtime_invoke
0x104c292c0 - /private/var/containers/Bundle/Application/962EBA9A-2487-4D50-BCB7-D82DBAB53E52/YondrMobile.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_invoke_checked
0x104c2e564 - /private/var/containers/Bundle/Application/962EBA9A-2487-4D50-BCB7-D82DBAB53E52/YondrMobile.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_exec_main_checked
0x104b5f8f4 - /private/var/containers/Bundle/Application/962EBA9A-2487-4D50-BCB7-D82DBAB53E52/YondrMobile.iOS.app/Xamarin.PreBuilt.iOS : mono_jit_exec

0x104d20918 - /private/var/containers/Bundle/Application/962EBA9A-2487-4D50-BCB7-D82DBAB53E52/YondrMobile.iOS.app/Xamarin.PreBuilt.iOS : do_icall
0x104d1efb8 - /private/var/containers/Bundle/Application/962EBA9A-2487-4D50-BCB7-D82DBAB53E52/YondrMobile.iOS.app/Xamarin.PreBuilt.iOS : do_icall_wrapper

0x104b27c20 - /private/var/containers/Bundle/Application/962EBA9A-2487-4D50-BCB7-D82DBAB53E52/YondrMobile.iOS.app/Xamarin.PreBuilt.iOS : main
0x1a16926b0 - /usr/lib/system/libdyld.dylib : <redacted>

=================================================================
Basic Fault Address Reporting

Memory around native instruction pointer (0x10e8d311c):0x10e8d310c
0x104d1192c - /private/var/containers/Bundle/Application/962EBA9A-2487-4D50-BCB7-D82DBAB53E52/YondrMobile.iOS.app/Xamarin.PreBuilt.iOS : xamarin_main

63 bc 00 94 60 82 01 91 ce bc 00 94 ...Rc...`.......

=================================================================
Managed Stacktrace:

  at <unknown> <0xffffffff>
  at ObjCRuntime.Dlfcn:_dlopen <0x00026>
  at ObjCRuntime.Dlfcn:dlopen <0x00010>
  at Xamarin.PreBuilt.iOS.Applications:LoadFrameworks <0x0009e>
  at Xamarin.PreBuilt.iOS.Applications:Main <0x00202>
  at <Module>:runtime_invoke_direct_void_string[] <0x00092>

=================================================================

c3 bc 00 94 e0 03 13 aa 5f 00 03 94 20 00 20 d4 ........_... . .
0x10e8d311c f4 4f be a9 fd 7b 01 a9 fd 43 00 91 73 09 00 b0 .O...{...C..s...
0x10e8d312c 73 82 2b 91 61 08 00 b0 21 38 2f 91 e0 03 13 aa s.+.a...!8/.....
0x10e8d313c 02 00 ae 52
The app has been terminated.

@rayxxi
Copy link

rayxxi commented Feb 25, 2021

Got the same problem.

@dotMorten
Copy link
Contributor

dotMorten commented May 6, 2021

Same issue with Esri.ArcGISRuntime nuget package. This used to work.


Thread started:  #2
2021-05-06 09:26:12.371 Xamarin.PreBuilt.iOS[1934:4028599] Content folder: /var/mobile/Containers/Data/Application/B91A7E75-3679-4332-A184-BA436806447F/Documents/App51.iOS.content

Thread started:  #3
Thread started: <Thread Pool> #4
Thread started: <Thread Pool> #5
Thread started: <Thread Pool> #6
Thread started: <Thread Pool> #7
2021-05-06 09:26:12.608 Xamarin.PreBuilt.iOS[1934:4028599] Forms app path /var/mobile/Containers/Data/Application/B91A7E75-3679-4332-A184-BA436806447F/Documents/App51.iOS.content/App51.iOS.exe

2021-05-06 09:26:12.609 Xamarin.PreBuilt.iOS[1934:4028599] Xamarin.iOS: Unable to locate assembly 'Xamarin.Forms.Platform.iOS' (culture: '')
2021-05-06 09:26:12.609 Xamarin.PreBuilt.iOS[1934:4028599] Xamarin.iOS: Unable to locate assembly 'Xamarin.Forms.Platform.iOS' (culture: '')

2021-05-06 09:26:12.626 Xamarin.PreBuilt.iOS[1934:4028599] Xamarin.Forms AppDelegate name: AppDelegate


=================================================================
	Native Crash Reporting
=================================================================
Got a segv while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

=================================================================
	Native stacktrace:
=================================================================

	0x100250120 - /private/var/containers/Bundle/Application/A89DDA0D-EE5A-4E78-A33B-E6D79A070C5D/App51.iOS.app/Xamarin.PreBuilt.iOS : mono_dump_native_crash_info
	0x100246cbc - /private/var/containers/Bundle/Application/A89DDA0D-EE5A-4E78-A33B-E6D79A070C5D/App51.iOS.app/Xamarin.PreBuilt.iOS : mono_handle_native_crash

	0x100253a60 - /private/var/containers/Bundle/Application/A89DDA0D-EE5A-4E78-A33B-E6D79A070C5D/App51.iOS.app/Xamarin.PreBuilt.iOS : mono_sigsegv_signal_handler_debug
	0x1e126f298 - /usr/lib/system/libsystem_platform.dylib : <redacted>
	0x19540aa68 - /usr/lib/system/libdyld.dylib : <redacted>
	0x1953fb83c - /usr/lib/system/libdyld.dylib : <redacted>
	0x19540a894 - /usr/lib/system/libdyld.dylib : <redacted>
	0x1953fc17c - /usr/lib/system/libdyld.dylib : <redacted>
	0x19540b334 - /usr/lib/system/libdyld.dylib : <redacted>

	0x19540ae1c - /usr/lib/system/libdyld.dylib : <redacted>
	0x19540cd04 - /usr/lib/system/libdyld.dylib : <redacted>
	0x1953fed34 - /usr/lib/system/libdyld.dylib : <redacted>
	0x1003fc970 - /private/var/containers/Bundle/Application/A89DDA0D-EE5A-4E78-A33B-E6D79A070C5D/App51.iOS.app/Xamarin.PreBuilt.iOS : do_icall

	0x100256d3c - /private/var/containers/Bundle/Application/A89DDA0D-EE5A-4E78-A33B-E6D79A070C5D/App51.iOS.app/Xamarin.PreBuilt.iOS : mono_jit_runtime_invoke

	0x1003efeb0 - /private/var/containers/Bundle/Application/A89DDA0D-EE5A-4E78-A33B-E6D79A070C5D/App51.iOS.app/Xamarin.PreBuilt.iOS : interp_runtime_invoke

	0x1003fb010 - /private/var/containers/Bundle/Application/A89DDA0D-EE5A-4E78-A33B-E6D79A070C5D/App51.iOS.app/Xamarin.PreBuilt.iOS : do_icall_wrapper

	0x1003f1a8c - /private/var/containers/Bundle/Application/A89DDA0D-EE5A-4E78-A33B-E6D79A070C5D/App51.iOS.app/Xamarin.PreBuilt.iOS : interp_exec_method_full

	0x1003052c0 - /private/var/containers/Bundle/Application/A89DDA0D-EE5A-4E78-A33B-E6D79A070C5D/App51.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_invoke_checked

	0x10030a564 - /private/var/containers/Bundle/Application/A89DDA0D-EE5A-4E78-A33B-E6D79A070C5D/App51.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_exec_main_checked

	0x10023b8f4 - /private/var/containers/Bundle/Application/A89DDA0D-EE5A-4E78-A33B-E6D79A070C5D/App51.iOS.app/Xamarin.PreBuilt.iOS : mono_jit_exec

	0x1003ed984 - /private/var/containers/Bundle/Application/A89DDA0D-EE5A-4E78-A33B-E6D79A070C5D/App51.iOS.app/Xamarin.PreBuilt.iOS : xamarin_main

....
0x10b580d14  f4 4f be a9 fd 7b 01 a9 
	0x100203c34 - /private/var/containers/Bundle/Application/A89DDA0D-EE5A-4E78-A33B-E6D79A070C5D/App51.iOS.app/Xamarin.PreBuilt.iOS : main

fd 43 00 91 68 70 
00 f0  .O...{...C..hp..
0x10b580d24  00 bd 
..!/.....
0x10b580d34  1f 09 00 b9 69 70 00 f0 20 c1 46 fd 00 09 00 fd  ..
46 fd 88 99 00 d0 08 21 2f 91 00 01 00 fd  ..F....
	0x1953fa6b0 - /usr/lib/system/libdyld.dylib : <redacted>

=================================================================
	Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x10b580d14):0x10b580d04  
21 68 41 f9 82 78 00 90 42 28 40 f9 a3 14 01 94  !hA..x..B(@.
..ip.. .F.....

=================================================================
	Managed Stacktrace:
=================================================================

	  at <unknown> <0xffffffff>
	  at ObjCRuntime.Dlfcn:_dlopen <0x00026>
	  at ObjCRuntime.Dlfcn:dlopen <0x00010>
	  at Xamarin.PreBuilt.iOS.Applications:LoadFrameworks <0x0009e>
	  at Xamarin.PreBuilt.iOS.Applications:Main <0x00202>
	  at <Module>:runtime_invoke_direct_void_string[] <0x00092>
=================================================================

The app has been terminated.

You can just reference Esri.ArcGISRuntime.runtimes.ios v100.11 nuget to just deploy the framework files (this includes no public / .net APIs, but just the framework). That's enough to make things crash. It seems the mere presence of a framework causes this problem.

@dotMorten
Copy link
Contributor

Repro steps:

  1. Create a new blank iOS Xamarin.Forms app
  2. Verify that the app runs
  3. Add the following nuget package (it's unlisted so might have to do it manually). All this package does is deploy a framework file.
    <PackageReference Include="Esri.ArcGISRuntime.runtimes.iOS">
      <Version>100.11.0</Version>
    </PackageReference>
  1. Run application and observe error.

@TFS-Develop
Copy link

Same issue here.
Works great on simulator.
Crashes when launched on physical device.

Anyone come across a resolution?

@DumaisPower
Copy link

I have the same error here. Works fine without awssdk.s3 nuget package. When I add it, app crash at start. If I remove the package, app is back to normal.

nothing new on that ?

@azrinsani
Copy link

2022 seeing this problem as well, did you guys find a solution?

@ryano-xmplify
Copy link

ryano-xmplify commented Feb 11, 2022

Same issue for me too.
My app is trying to convert a photo to bytes before sending it to an API.
Native crash on the line of code that assigns the byte array ... and error logs not very useful.
iOS 15.3 and iOS 15.3.1 today too
err_iOS_15_3_1.txt
err_iOS_15_3.txt
.

@suchithm
Copy link

suchithm commented Sep 6, 2023

Shared the list crash logs here, App is crashing very frequently.
Maui.iOS (Native) application

VS details:
Visual Studio Community 2022 for Mac
Version 17.6.3 (build 421)
Installation UUID: 70347aa0-4443-4888-aeef-77525aaa1681

Runtime
.NET 7.0.3 (64-bit)
Architecture: Arm64
Microsoft.macOS.Sdk 13.1.1007; git-rev-head:8afca776a0a96613dfb7200e0917bb57f9ed5583; git-branch:release/7.0.1xx-xcode14.2

Roslyn (Language Service)
4.6.0-3.23180.6+99e956e42697a6dd886d1e12478ea2b27cceacfa

NuGet
Version: 6.4.0.117

.NET SDK (Arm64)
SDK: /usr/local/share/dotnet/sdk/7.0.307/Sdks
SDK Versions:
7.0.307
7.0.201
7.0.100
6.0.413
6.0.406
6.0.403
6.0.402
6.0.400
MSBuild SDKs: /Applications/Visual Studio.app/Contents/MonoBundle/MSBuild/Current/bin/Sdks

.NET SDK (x64)
SDK Versions:
3.1.426
3.1.425
3.1.424
3.1.422

.NET Runtime (Arm64)
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
7.0.10
7.0.3
7.0.0
6.0.21
6.0.14
6.0.11
6.0.10
6.0.8

.NET Runtime (x64)
Runtime: /usr/local/share/dotnet/x64/dotnet
Runtime Versions:
3.1.32
3.1.31
3.1.30
3.1.28

Xamarin.Profiler
Version: 1.8.0.49
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Updater
Version: 11

Apple Developer Tools
Xcode: 14.2 21534
Build: 14C18

Xamarin.Mac
Not Installed

Xamarin.Android
Version: 13.2.1.2 (Visual Studio Community)
Commit: xamarin-android/d17-5/a8a26c7
Android SDK: /Users/suchith.madavu/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
12.0 (API level 31)
11.0 (API level 30)
9.0 (API level 28)
13.0 (API level 33)

SDK Command-line Tools Version: 7.0
SDK Platform Tools Version: 33.0.2
SDK Build Tools Version: 33.0.0

Build Information:
Mono: d9a6e87
Java.Interop: xamarin/java.interop@149d70fe
SQLite: xamarin/sqlite@68c69d8
Xamarin.Android Tools: xamarin/xamarin-android-tools@ca1552d

Microsoft Build of OpenJDK
Java SDK: /Library/Java/JavaVirtualMachines/microsoft-11.jdk
11.0.16.1
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

Eclipse Temurin JDK
Java SDK: /Library/Java/JavaVirtualMachines/temurin-8.jdk
1.8.0.302
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

Android SDK Manager
Version: 17.6.0.50
Hash: a715dca
Branch: HEAD
Build date: 2023-08-02 19:06:47 UTC

Android Device Manager
Version: 0.0.0.1309
Hash: 06e3e77
Branch: HEAD
Build date: 2023-08-02 19:06:47 UTC

Xamarin Designer
Version: 17.6.3.9
Hash: 2648399ae8
Branch: remotes/origin/d17-6
Build date: 2023-08-02 19:06:42 UTC

Xamarin.iOS
Version: 16.4.0.6 Visual Studio Community
Hash: 97731c92c
Branch: xcode14.3
Build date: 2023-04-11 22:38:36-0400

Build Information
Release ID: 1706030421
Git revision: c90350679f1b9295edc584519320b13d06489853
Build date: 2023-08-02 19:05:00+00
Build branch: release-17.6
Build lane: release-17.6

Operating System
Mac OS X 13.0.0
Darwin 22.1.0 Darwin Kernel Version 22.1.0
Sun Oct 9 20:15:09 PDT 2022
root:xnu-8792.41.9~2/RELEASE_ARM64_T6000 arm64

crash log.txt

@samirgcofficial
Copy link

?

@s3ttingQ
Copy link

s3ttingQ commented Apr 3, 2024

Any update? Getting this on local ios device

`Thread started: #8
Thread started: #9
Thread started: #10

=================================================================

Got a SIGABRT while executing native code. This usually indicates

Native Crash Reporting

=================================================================

used by your application.

0x102d99954 - /private/var/containers/Bundle/Application/2F8BCBDF-6913-4214-BF59-ABB3A212A406/BLEMaui.app/Xamarin.PreBuilt.iOS : AppleCryptoNative_X509ImportCollection
0x102d84840 - /private/var/containers/Bundle/Application/2F8BCBDF-6913-4214-BF59-ABB3A212A406/BLEMaui.app/Xamarin.PreBuilt.iOS : AppleCryptoNative_X509ImportCollection
0x102dd8218 - /private/var/containers/Bundle/Application/2F8BCBDF-6913-4214-BF59-ABB3A212A406/BLEMaui.app/Xamarin.PreBuilt.iOS : AppleCryptoNative_X509ImportCollection
0x102d99144 - /private/var/containers/Bundle/Application/2F8BCBDF-6913-4214-BF59-ABB3A212A406/BLEMaui.app/Xamarin.PreBuilt.iOS : AppleCryptoNative_X509ImportCollection
0x1de1d4d48 - /usr/lib/system/libsystem_platform.dylib : <redacted>
0x1bdb55be0 - /usr/lib/system/libsystem_kernel.dylib : <redacted>
0x1bdb55c10 - /usr/lib/system/libsystem_kernel.dylib : <redacted>
0x1d591b708 - /System/Library/PrivateFrameworks/TCC.framework/TCC : <redacted>
0x1d59163d0 - /System/Library/PrivateFrameworks/TCC.framework/TC

The app has been terminated.
The app has been terminated.
1 10 00 d4 e3 00 00 54 fd 7b bf a9 .2.........T.{..

C :
0x1d5918e94 - /System/Library/PrivateFrameworks/TCC.framework/TCC :
0x1de217354 - /usr/lib/system/libxpc.dylib :
0x1de20b6bc - /usr/lib/system/libxpc.dylib :
0x183c3610c - /usr/lib/system/libdispatch.dylib :
0x183bef840 - /usr/lib/system/libdispatch.dylib :
0x183be6878 - /usr/lib/system/libdispatch.dylib :
0x1de1e0e48 - /usr/lib/system/libsystem_pthread.dylib : _pthread_wqthread
0x1de1e093c - /usr/lib/system/libsystem_pthread.dylib : start_wqthread

=================================================================
Basic Fault Address Reporting

Memory around native instruction pointer (0x1bdb5364c):0x1bdb5363c c0 03 5f d6 c0 03 5f d6 30 41 80 d2 01 10 00 d4 ......0A......
0x1bdb5364c e3 00 00 54 fd 7b bf a9 fd 03 00 91 ed 5b ff 97 ...T.{.......[..
0x1bdb5365c bf 03 00 91 fd 7b c1 a8 c0 03 5f d6 c0 03 5f d6 .....{........
0x1bdb5366c 90 32 80 d2 0

Native stacktrace:

=================================================================

=================================================================

a fatal error in the mono runtime or one of the native libraries `

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Triage
  
External
Development

No branches or pull requests