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

Mane, PRASHANT GORAKH 101 Reputation points
2024-04-01T11:05:25.5166667+00:00

Hi there,

working .NET MAUI app which we are migrating from Xamarin form to .NET MAUI. but frequently I'm facing App crashes.

Here's the exception:

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

Native Crash Reporting

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

Got a SIGSEGV 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:

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

0x1004fd2c4 - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : GlobalizationNative_GetICUVersion

0x1004e620c - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : GlobalizationNative_GetICUVersion

0x1004c3948 - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : GlobalizationNative_GetICUVersion

0x1ab0d2894 - /usr/lib/system/libsystem_platform.dylib : <redacted>

0x1ad02c490 - /usr/lib/libsqlite3.dylib : sqlite3_step

0x1ad02c490 - /usr/lib/libsqlite3.dylib : sqlite3_step

0x1ad026668 - /usr/lib/libsqlite3.dylib : sqlite3_step

0x1ad01cb5c - /usr/lib/libsqlite3.dylib : sqlite3_step

0x10050c470 - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : GlobalizationNative_GetICUVersion

0x10050b240 - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : GlobalizationNative_GetICUVersion

0x100500c1c - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : GlobalizationNative_GetICUVersion

0x1004fe7f0 - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : GlobalizationNative_GetICUVersion

0x1004c68e4 - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : GlobalizationNative_GetICUVersion

0x10040477c - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode

0x10041e2d0 - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode

0x10041e060 - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode

0x1ab0dfd8c - /usr/lib/system/libsystem_pthread.dylib : _pthread_start

0x1ab0e376c - /usr/lib/system/libsystem_pthread.dylib : thread_start

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

Basic Fault Address Reporting

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

Memory around native instruction pointer (0x1ad01c15c):0x1ad01c14c  00 01 3f d6 68 16 40 f9 a1 7e 40 93 28 01 00 b4  ..?.h.@..~@.(...

0x1ad01c15c  09 81 41 b9 e9 05 00 34 09 85 41 39 89 06 00 34  ..A....4..A9...4

0x1ad01c16c  00 00 80 d2 60 0e 00 f9 c0 00 00 b5 34 00 00 14  ....`.......4...

0x1ad01c17c  e0 03 01 aa ca 28 ff 97 60 0e 00 f9 00 06 00 b4  .....(..`.......

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

Managed Stacktrace:

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

  at <unknown> <0xffffffff>

  at NativeMethods:sqlite3_step <0x000a4>

  at SQLitePCL.SQLite3Provider_sqlite3:SQLitePCL.ISQLite3Provider.sqlite3_step <0x00010>

  at SQLitePCL.raw:sqlite3_step <0x00020>

  at SQLite.SQLite3:Step <0x00010>

  at <ExecuteDeferredQuery>d__12`1:MoveNext <0x007aa>

  at System.Collections.Generic.List`1:.ctor <0x00194>

  at System.Linq.Enumerable:ToList <0x0005a>

  at SQLite.SQLiteCommand:ExecuteQuery <0x0003e>

  at SQLite.TableQuery`1:ToList <0x00024>

  at MG365Mobile.DataServices.DataLayer.TemplateDataService:FetchTagTemplates <0x00276>

  at MG365Mobile.DataServices.TemplateService:GetTagsTemplates <0x00056>

  at MG365Mobile.DataServices.Mappers.DbHelper:PopulateTags <0x00062>

  at MG365Mobile.DataServices.Mappers.ChecklistMapper:Map <0x01282>

  at MG365Mobile.DataServices.Mappers.ChecklistMapper:Map <0x000be>

  at MG365Mobile.DataServices.DataLayer.ChecklistRepositories.ChecklistRepository:FindAllForLocation <0x00264>

  at MG365Mobile.DataServices.ChecklistService:GetAllManualSubmissionInitiatedChecklists <0x00066>

  at <TrySubmitAllManuallySubmittedChecklistsAsync>d__47:MoveNext <0x000ba>

  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x00088>

  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x00010>

  at MG365Mobile.DataServices.ChecklistService:TrySubmitAllManuallySubmittedChecklistsAsync <0x00086>

  at <<OnlineOfflineModeCommandHandler>b__0>d:MoveNext <0x0007c>

  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x00088>

  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start <0x00010>

  at <>c__DisplayClass137_0:<OnlineOfflineModeCommandHandler>b__0 <0x00072>

  at System.Threading.Tasks.Task`1:InnerInvoke <0x00050>

  at <>c:<.cctor>b__273_0 <0x0001e>

  at System.Threading.ExecutionContext:RunFromThreadPoolDispatchLoop <0x00076>

  at System.Threading.Tasks.Task:ExecuteWithThreadLocal <0x00234>

  at System.Threading.Tasks.Task:ExecuteEntryUnsafe <0x00088>

  at System.Threading.Tasks.Task:ExecuteFromThreadPool <0x00016>

  at System.Threading.ThreadPoolWorkQueue:DispatchWorkItem <0x00048>

  at System.Threading.ThreadPoolWorkQueue:DispatchItemWithAutoreleasePool <0x00064>

  at System.Threading.ThreadPoolWorkQueue:Dispatch <0x003e0>

  at WorkerThread:WorkerThreadStart <0x00204>

  at StartHelper:RunWorker <0x00096>

  at StartHelper:Run <0x00074>

  at System.Threading.Thread:StartCallback <0x00046>

  at System.Object:runtime_invoke_direct_void__this__ <0x00080>

  at <unknown> <0x00000>

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

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

Native Crash Reporting

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

Got a SIGSEGV while executing native code. This usually indicates

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

used by your application.

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

An error has occurred in the native fault reporting. Some diagnostic information will be unavailable.

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

Native stacktrace:

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

0x1004fd2c4 - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : GlobalizationNative_GetICUVersion

0x1004e620c - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : GlobalizationNative_GetICUVersion

0x1004c3948 - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : GlobalizationNative_GetICUVersion

0x1ab0d2894 - /usr/lib/system/libsystem_platform.dylib : <redacted>

0x1ad02c490 - /usr/lib/libsqlite3.dylib : sqlite3_step

0x1ad02c490 - /usr/lib/libsqlite3.dylib : sqlite3_step

0x1ad026668 - /usr/lib/libsqlite3.dylib : sqlite3_step

0x1ad01cb5c - /usr/lib/libsqlite3.dylib : sqlite3_step

0x10050c470 - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : GlobalizationNative_GetICUVersion

0x10050b240 - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : GlobalizationNative_GetICUVersion

0x100500c1c - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : GlobalizationNative_GetICUVersion

0x1004fe7f0 - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : GlobalizationNative_GetICUVersion

0x1004c68e4 - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : GlobalizationNative_GetICUVersion

0x10040477c - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode

0x10041e2d0 - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode

0x10041e060 - /private/var/containers/Bundle/Application/838C7DF4-C2EC-4653-9462-D7215FC04DA2/KayProtect.app/KayProtect : _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode

0x1ab0dfd8c - /usr/lib/system/libsystem_pthread.dylib : _pthread_start

0x1ab0e376c - /usr/lib/system/libsystem_pthread.dylib : thread_start

Exiting early due to double fault.

**Reproduce using the following configuration:
**
Visual Studio Community 2022 for Mac

Version 17.6.10 (build 428)

Installation UUID: 57590c49-5836-4404-8a08-28ce8b01361f

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/8.0.203/Sdks

SDK Versions:

8.0.203

7.0.314

7.0.313

6.0.420

6.0.419

MSBuild SDKs: /Applications/Visual Studio.app/Contents/MonoBundle/MSBuild/Current/bin/Sdks

.NET SDK (x64)

SDK Version: 8.0.203

.NET Runtime (Arm64)

Runtime: /usr/local/share/dotnet/dotnet

Runtime Versions:

8.0.3

7.0.17

7.0.16

6.0.28

6.0.27

.NET Runtime (x64)

Runtime: /usr/local/share/dotnet/x64/dotnet

Runtime Version: 8.0.3

Xamarin.Profiler

Version: 1.8.0.49

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

Updater

Version: 11

Apple Developer Tools

Xcode: 15.2 22503

Build: 15C500b

Xamarin.Mac

Not Installed

Xamarin.iOS

Version: 16.4.0.23 Visual Studio Community

Hash: 9defd91b3

Branch: xcode14.3

Build date: 2023-10-23 16:15:00-0400

Xamarin Designer

Version: 17.6.3.9

Hash: 2648399ae8

Branch: remotes/origin/d17-6

Build date: 2024-03-07 20:35:36 UTC

Xamarin.Android

Version: 13.2.2.0 (Visual Studio Community)

Commit: xamarin-android/d17-5/45b0e14

Android SDK: /Users/MANEPR1/Library/Developer/Xamarin/android-sdk-macosx

Supported Android versions:

	13.0 (API level 33)

SDK Command-line Tools Version: 7.0

SDK Platform Tools Version: 34.0.3

SDK Build Tools Version: 32.0.0

Build Information:

Mono: d9a6e87

Java.Interop: xamarin/java.interop/d17-5@149d70fe

SQLite: xamarin/sqlite/3.40.1@68c69d8

Xamarin.Android Tools: xamarin/xamarin-android-tools/d17-5@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: 2024-03-07 20:35:42 UTC

Android Device Manager

Version: 0.0.0.1309

Hash: 06e3e77

Branch: HEAD

Build date: 2024-03-07 20:35:42 UTC

Build Information

Release ID: 1706100428

Git revision: a5d4aa3648baa4a3f6bff645886bd51ad16c07a7

Build date: 2024-03-07 20:33:40+00

Build branch: release-17.6

Build lane: release-17.6

Operating System

Mac OS X 14.3.1

Darwin 23.3.0 Darwin Kernel Version 23.3.0

Wed Dec 20 21:30:59 PST 2023

root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64  

Installed libraries.

<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
<PackageReference Include="Acr.UserDialogs" Version="8.0.1" />
<PackageReference Include="CommunityToolkit.Maui" Version="5.2.0" />
<PackageReference Include="Prism.Maui" Version="8.1.273-pre" />
<PackageReference Include="Prism.DryIoc.Maui" Version="8.1.273-pre" />
<PackageReference Include="sqlite-net-pcl" Version="1.9.141-beta" />
<PackageReference Include="SQLitePCLRaw.core" Version="2.1.5" />
<PackageReference Include="Mopups" Version="1.1.1" />

Please let me know if any solution for fix this issue.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,501 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 42,746 Reputation points Microsoft Vendor
    2024-04-02T02:28:47.18+00:00

    Hello,

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

    Usually, this error message is caused by asynchronous tasks.

    You could try to troubleshoot from the relevant code comments in the Task, Thread, and timer parts used in the project.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.