Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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. #7248

Closed
gopalawasthi123 opened this issue Oct 17, 2019 · 1 comment

Comments

@gopalawasthi123
Copy link

gopalawasthi123 commented Oct 17, 2019

Steps to Reproduce

  1. Run the App.
  2. Click The button which calls API and Sqlite
  3. Native Crash Occur.

Expected Behavior

Expected: Get the list with data

Actual Behavior

Actual: Randomly Sometimes Native Crash Occur and Loader keep stuck loading,

Environment

Vs 2019
Version 16.3.1
Xamarin.iOS and Xamarin.Mac SDK 13.2.0.42

Build Logs

=================================================================
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:

0x101956365 - /Users/meetappindia/Library/Developer/CoreSimulator/Devices/2802273B-5784-45ED-835A-3F47558C0613/data/Containers/Bundle/Application/0CDF8B68-D9F9-40A5-BD69-154119FC766A/EventAppNew.app/EventAppNew : mono_dump_native_crash_info
0x10194a2a5 - /Users/meetappindia/Library/Developer/CoreSimulator/Devices/2802273B-5784-45ED-835A-3F47558C0613/data/Containers/Bundle/Application/0CDF8B68-D9F9-40A5-BD69-154119FC766A/EventAppNew.app/EventAppNew : mono_handle_native_crash
0x10195d5e1 - /Users/meetappindia/Library/Developer/CoreSimulator/Devices/2802273B-5784-45ED-835A-3F47558C0613/data/Containers/Bundle/Application/0CDF8B68-D9F9-40A5-BD69-154119FC766A/EventAppNew.app/EventAppNew : mono_sigsegv_signal_handler_debug
0x7fff51414b5d - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_platform.dylib : _sigtramp
0x2089800 - Unknown
0x7fff5052be99 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libsqlite3.dylib : sqlite3SrcListAppendFromTerm
0x7fff5050bea5 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libsqlite3.dylib : yy_reduce
0x7fff504a2d94 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libsqlite3.dylib : sqlite3RunParser
0x7fff504a08e4 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libsqlite3.dylib : sqlite3LockAndPrepare
0x7fff504914b8 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libsqlite3.dylib : sqlite3_prepare_v2
0x106bccca7 - Unknown
0x106c8c25b - Unknown
0x1055e6bdb - Unknown

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

Memory around native instruction pointer (0x7fff5052cb0c):0x7fff5052cafc 01 00 00 4d 85 e4 0f 84 f7 00 00 00 48 89 55 d0 ...M........H.U.
0x7fff5052cb0c 49 8b 04 24 49 89 86 a0 01 00 00 e9 02 01 00 00 I..$I...........
0x7fff5052cb1c 41 0f b7 86 84 01 00 00 48 39 c3 0f 83 09 01 00 A.......H9......
0x7fff5052cb2c 00 4d 8b be a0 01 00 00 4d 85 ff 0f 84 f0 02 00 .M......M.......

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

  at <unknown> <0xf

fffffff>
at NativeMethods:sqlite3_prepare_v2 <0x00176>
at SQLitePCL.SQLite3Provider_sqlite3:SQLitePCL.ISQLite3Provider.sqlite3_prepare_v2 <0x001ba>
at SQLitePCL.raw:sqlite3_prepare_v2 <0x000e7>
at SQLitePCL.raw:sqlite3_prepare_v2 <0x00092>
at SQLite.SQLite3:Prepare2 <0x000b2>
at SQLite.SQLiteCommand:Prepare <0x000e2>
at d__121:MoveNext <0x0033a> at System.Collections.Generic.List1:AddEnumerable <0x0025a>
at System.Collections.Generic.List1:.ctor <0x004aa> at System.Linq.Enumerable:ToList <0x001d2> at SQLite.SQLiteCommand:ExecuteQuery <0x0014a> at SQLite.TableQuery1:ToList <0x000c2>
at EventApp.SQLClient:GetSelectedOptions <0x00662>
at EventApp.APIClient:Dialogue <0x010ba>
at d__38:MoveNext <0x013d2>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x001be>
at EventApp.APIClient:GetNotifications <0x0030a>
at <b__7_0>d:MoveNext <0x0088a>
at System.Runtime.CompilerServices.AsyncVoidMe
thodBuilder:Start <0x001be>
at EventApp.iOS.LeftTableCell:b__7_0 <0x002d2>
at System.Threading.Tasks.Task:InnerInvoke <0x000e9>
at System.Threading.Tasks.Task:Execute <0x00074>
at System.Threading.Tasks.Task:ExecutionContextCallback <0x000ca>
at System.Threading.ExecutionContext:RunInternal <0x00585>
at System.Threading.ExecutionContext:Run <0x00092>
at System.Threading.Tasks.Task:ExecuteWithThreadLocal <0x002c2>
at System.Threading.Tasks.Task:ExecuteEntry <0x0023a>
at System.Threading.Tasks.Task:System.Threading.IThreadPoolWorkItem.ExecuteWorkItem <0x00072>
at System.Threading.ThreadPoolWorkQueue:Dispatch <0x006a5>
at ObjCRuntime.Runtime:ThreadPoolDispatcher <0x000e5>
at System.Threading._ThreadPoolWaitCallback:PerformWaitCallback <0x0015d>
at :runtime_invoke_bool <0x000e2>

The thread 0x65 has exited with code 0 (0x0).
Thread started: #103
Thread finished: #88
The thread 0x58 has exited with code 0 (0x0).
Thread finished: #82
The thread 0x52 has exited with code 0 (0x0).
Thread started: #104
Thread finished: #90
The thread 0x5a has exited with code 0 (0x0).
Thread started: #105

Example Project (If Possible)

if (internetStatus != NetworkStatus.NotReachable)
{
new System.Threading.Thread (new System.Threading.ThreadStart (() => {
APIClient.getInstance().GetData(AuthToken).ContinueWith(t =>
{
InvokeOnMainThread(() =>
{
if (t.Result == "success")
{
setValues();
}
refreshControl.EndRefreshing();
});
});
})).Start ();
}

@gopalawasthi123
Copy link
Author

It is the Issue with in the VisualStudio. By repairing it issue is solved

@ghost ghost locked as resolved and limited conversation to collaborators May 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant