Crash report - EXC_BAD_ACCESS (SIGABRT) - crash

First time posting here and i'm new to this whole developer thing so please be nice!
I have submitted my app (a 3d game made in unity) and it has returned 3 crash reports, which all look pretty similar to me. I've put them through unity. I'll post one below (it was too long so i just posted the first bit) as they are so long, if you can help id be happy to post the other 2.
Any help would be greatly appreciated! Thanks!
Incident Identifier: 938FFF53-56A2-4A1D-BF23-4E24567BA101
CrashReporter Key: 3286a932eadfb6a4501de9b1e0044450b3f54fb3
Hardware Model: xxx
Process: Box [1376]
Path: /private/var/mobile/Containers/Bundle/Application/00E4561A-F30C-4C48-B2BD-355A71A4D971/Box.app/Box
Identifier: Bob.Bob
Version: 1 (1)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2015-06-02 17:16:47.033 -0700
Launch Time: 2015-06-02 17:16:42.956 -0700
OS Version: iOS 8.3 (12F69)
Report Version: 105
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000ff222c47
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x32123df0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x321a2cc3 pthread_kill + 59
2 libsystem_c.dylib 0x320bf905 abort + 73
3 Box 0x0182d908 mono_handle_native_sigsegv + 312
4 Box 0x0181d08c mono_sigsegv_signal_handler + 256
5 libsystem_platform.dylib 0x3219e879 _sigtramp + 41
6 Box 0x013e1f40 void ApplyMaterialPropertyBlockValuesMetal<SetValuesFunctorMetal>(MaterialPropertyBlock const&, GpuProgram*, GpuProgramParameters const*, ShaderType, SetValuesFunctorMetal&) (GpuProgramParamsApply.h:109)
7 Box 0x013de9c4 GfxDeviceMetal::SetMaterialProperties(MaterialPropertyBlock const&) (GfxDeviceMetal.mm:513)
8 Box 0x00ee48a0 ApplyBuiltinInstanceProperty::PerformFlushMaterialProperties() (ApplyBuiltinInstanceProperty.cpp:13)
9 Box 0x00f39ebc Skybox::SetupSun(Camera const&, GfxDevice&) (Skybox.cpp:256)
10 Box 0x00f3a218 Skybox::RenderSkybox(Unity::Material*, Camera const&) (Skybox.cpp:275)
11 Box 0x00ef941c Camera::RenderSkybox() (Camera.cpp:780)
12 Box 0x00ef3900 DoRenderLoop(RenderLoop&, RenderingPath, CullResults&, ShadowMapCache&, bool) (RenderLoopPrivate.cpp:416)
13 Box 0x00efa604 Camera::DoRender(CullResults&, void (*)(Camera&, RenderLoop&, CullResults&), int) (Camera.cpp:1175)
14 Box 0x00efad88 Camera::Render(CullResults&, ShaderLab::ShaderPassContext&, int) (Camera.cpp:1833)
15 Box 0x00f2c438 RenderManager::RenderCameras(int) (RenderManager.cpp:111)
16 Box 0x0104815c PlayerRender(bool) (Player.cpp:1490)
17 Box 0x01048c0c PlayerLoop(bool, bool, IHookEvent*) (Player.cpp:1990)
18 Box 0x00e13948 UnityPlayerLoopImpl(bool) (LibEntryPoint.mm:209)
19 Box 0x0008eb7c UnityRepaint (UnityAppController+Rendering.mm:199)
20 Box 0x0009e5a4 -[UnityAppController(ViewHandling) showGameUI] (UnityAppController+ViewHandling.mm:160)
21 Box 0x0009aeac -[UnityAppController startUnity:] (UnityAppController.mm:109)
22 Foundation 0x24378369 __NSFireDelayedPerform + 465
23 CoreFoundation 0x2360aedd __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 13
24 CoreFoundation 0x2360aa57 __CFRunLoopDoTimer + 647
25 CoreFoundation 0x23608ca7 __CFRunLoopRun + 1415
26 CoreFoundation 0x235551fd CFRunLoopRunSpecific + 473
27 CoreFoundation 0x2355500f CFRunLoopRunInMode + 103
28 GraphicsServices 0x2acf11fd GSEventRunModal + 133
29 UIKit 0x26cf9a55 UIApplicationMain + 1437
30 Box 0x000852b0 main (main.mm:40)
31 libdyld.dylib 0x32059aad start + 1

Related

How to trace these crashes?

I have been working with Obj-C, Xcode from years, but at times these crash happens to a project. I have no clue how to deal with these.
If someone has any idea, please guide me towards right direction, so that I can workout.
NOTE: The following logs are sent by customer from the live app.
Snipped of crash log is;
Date/Time: 2018-02-08 16:39:36.053 +0530
OS Version: Mac OS X 10.12.6 (16G29)
Report Version: 12
Anonymous UUID: 163431E3-7543-821C-B71C-392218AA5AD3
Sleep/Wake UUID: 1D59C34E-52D6-4F57-A2CE-4C8FAC4387FE
Time Awake Since Boot: 9100 seconds
Time Since Wake: 6000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libdispatch.dylib 0x00007fffdb6ca521 _dispatch_call_block_and_release + 9
1 libdispatch.dylib 0x00007fffdb6c18fc _dispatch_client_callout + 8
2 libdispatch.dylib 0x00007fffdb6ceaac _dispatch_main_queue_callback_4CF + 925
3 com.apple.CoreFoundation 0x00007fffc5facbc9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
4 com.apple.CoreFoundation 0x00007fffc5f6dc0d __CFRunLoopRun + 2205
5 com.apple.CoreFoundation 0x00007fffc5f6d114 CFRunLoopRunSpecific + 420
6 com.apple.HIToolbox 0x00007fffc54cdebc RunCurrentEventLoopInMode + 240
7 com.apple.HIToolbox 0x00007fffc54cdcf1 ReceiveNextEventCommon + 432
8 com.apple.HIToolbox 0x00007fffc54cdb26 _BlockUntilNextEventMatchingListInModeWithFilter + 71
9 com.apple.AppKit 0x00007fffc3a66a54 _DPSNextEvent + 1120
10 com.apple.AppKit 0x00007fffc41e27ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
11 com.apple.AppKit 0x00007fffc3a5b3db -[NSApplication run] + 926
12 com.apple.AppKit 0x00007fffc3a25e0e NSApplicationMain + 1237
13 libdyld.dylib 0x00007fffdb6f7235 start + 1
Thread 1:
0 libsystem_kernel.dylib 0x00007fffdb825bf2 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffdb9117fa _pthread_cond_wait + 712
2 libc++.1.dylib 0x00007fffda28e4cd std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
3 com.apple.JavaScriptCore 0x00007fffc8f7b43c void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >(std::__1::unique_lock<bmalloc::Mutex>&) + 108
4 com.apple.JavaScriptCore 0x00007fffc8f7b3bb bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop() + 155
5 com.apple.JavaScriptCore 0x00007fffc8f7b28d bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadEntryPoint(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*) + 29
6 com.apple.JavaScriptCore 0x00007fffc8f7b53d void* std::__1::__thread_proxy<std::__1::tuple<void (*)(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*), bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*> >(void*) + 93
7 libsystem_pthread.dylib 0x00007fffdb91093b _pthread_body + 180
8 libsystem_pthread.dylib 0x00007fffdb910887 _pthread_start + 286
9 libsystem_pthread.dylib 0x00007fffdb91008d thread_start + 13
0 libdispatch.dylib 0x00007fffdb6ca521 _dispatch_call_block_and_release + 9
1 libdispatch.dylib 0x00007fffdb6c18fc _dispatch_client_callout + 8
2 libdispatch.dylib 0x00007fffdb6ceaac _dispatch_main_queue_callback_4CF + 925
The crash is happening when GCD is trying to execute a block on the main thread. Check you callback blocks to make sure they are cleanly capturing state and that all blocks that need to be copied are copied correctly.
This is likely because there is some object captured by the block that was prematurely released or because the block itself was over-released (unlikely).

CEF crashes on closing NSWindow in Macbook PRO(Only on Touchpad not for mouse click)

I have integrated CEF Framework into my project.
Its working fine for mouse based window close but it crashes If I use inbuilt touch pad of mac book pro while closing browser pop up window.
The pop up window is generate by CEF.
I am able to reproduce the crash like above most of the times.
Here is the crash log
Process: cefclient [1271] Path:
/Users/USER/Documents/*/cefclient.app/Contents/MacOS/cefclient
Identifier: com.genband.omni.mac Version:
1.0.0.30 (1.0.0.30) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: cefclient [1271] User
ID: 501
Date/Time: 2016-07-07 14:54:14.865 +0530 OS Version:
Mac OS X 10.10.2 (14C1514) Report Version: 11 Anonymous UUID:
0F54FCED-4D82-FEB9-5CD2-3A541BF3C022
Sleep/Wake UUID: C774E441-04B7-4295-A913-3AD622E6B6F3
Time Awake Since Boot: 4300 seconds Time Since Wake: 710 seconds
Crashed Thread: 0 CrBrowserMain Dispatch queue:
com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes:
KERN_INVALID_ADDRESS at 0x0000443e46cfbec0
VM Regions Near 0x443e46cfbec0:
mapped file 0000000124936000-0000000124b36000 [ 2048K] rw-/rwx SM=ALI /private/var/folders//.3KjSNY
-->
MALLOC_NANO 0000600000000000-0000600000200000 [ 2048K] rw-/rwx SM=PRV
Application Specific Information: objc_msgSend() selector name:
respondsToSelector: Performing #selector(_close:) from sender
_NSThemeCloseWidget 0x608000186320
Thread 0 Crashed:: CrBrowserMain Dispatch queue:
com.apple.main-thread 0 libobjc.A.dylib
0x00007fff9303f0dd objc_msgSend + 29 1 com.apple.AppKit
0x00007fff87802735 -[NSWindow close] + 312 2 libsystem_trace.dylib
0x00007fff84178cd7 _os_activity_initiate + 75 3 com.apple.AppKit
0x00007fff877b9b71 -[NSApplication sendAction:to:from:] + 452 4
com.apple.AppKit 0x00007fff877b9970 -[NSControl
sendAction:to:] + 86 5 com.apple.AppKit
0x00007fff8798f86c __26-[NSCell _sendActionFrom:]_block_invoke + 131 6
libsystem_trace.dylib 0x00007fff84178cd7
_os_activity_initiate + 75 7 com.apple.AppKit 0x00007fff87802509 -[NSCell _sendActionFrom:] + 144 8
libsystem_trace.dylib 0x00007fff84178cd7
_os_activity_initiate + 75 9 com.apple.AppKit 0x00007fff87801d66 -[NSButtonCell performClick:] + 1027 10
com.apple.Foundation 0x00007fff83eaecdc
__NSThreadPerformPerform + 293 11 com.apple.CoreFoundation 0x00007fff90285681
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17 12 com.apple.CoreFoundation 0x00007fff902778dc
__CFRunLoopDoSources0 + 476 13 com.apple.CoreFoundation 0x00007fff90276e3f __CFRunLoopRun + 927 14 com.apple.CoreFoundation
0x00007fff90276858 CFRunLoopRunSpecific + 296 15 com.apple.HIToolbox
0x00007fff8ab26aef RunCurrentEventLoopInMode + 235 16
com.apple.HIToolbox 0x00007fff8ab2686a
ReceiveNextEventCommon + 431 17 com.apple.HIToolbox
0x00007fff8ab266ab _BlockUntilNextEventMatchingListInModeWithFilter +
71 18 com.apple.AppKit 0x00007fff875eaf81
_DPSNextEvent + 964 19 com.apple.AppKit 0x00007fff875ea730 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] + 194 20
com.apple.AppKit 0x00007fff875de593 -[NSApplication
run] + 594 21 org.chromium.ContentShell.framework 0x000000010d1b7c81
0x10d080000 + 1277057 22 org.chromium.ContentShell.framework
0x000000010d1b72e4 0x10d080000 + 1274596 23
org.chromium.ContentShell.framework 0x000000010d1ef893 0x10d080000 +
1505427 24 org.chromium.ContentShell.framework 0x000000010d1dd80d
0x10d080000 + 1431565 25 com.genband.omni.mac
0x000000010ceb9d69 client::MainMessageLoopStd::Run() + 9
(main_message_loop_std.cc:15) 26 com.genband.omni.mac
0x000000010cee6c12 main + 2354 (cefclient_mac.mm:1747) 27
libdyld.dylib 0x00007fff8433d5c9 start + 1
Any suggestions are highly welcome
Changing the window_ delegate to nil, in dealloc method of root_window_mac.mm cleared the crash problem for me.

In MAC 10.10.5 MyApp crashes

MyApp has crashed and I have collected the below crash log from that MAC book. As it is mentioned the application crashed at thread 3, I could not able to figure out what has happened,
I was suspecting it could be because of a NSTimer Lock and tryLock, but not sure how to figure it out. Crash is not happening with all MAC book but only to a certain set of users all of them are just migrated to MAC 10.10.5. But I have also other MAC book which has MAC 10.10.5 in which MyApp is running perfectly.
can anyone help me out to find the problem?
If i looked at the code at [AppMainController sendPacketForLoginStatus] + 1644
it is just a comment line just after the curly brace { starting of an else{}
if
...
else
{
<< line no: 1644>> // Change the status icon if necessary when losing the focus
[self performSelectorOnMainThread:#selector(showClickStatusIconWhenLoseFocusInThread) withObject:nil waitUntilDone:NO];
...
Crash log:
Process: MyAppAgent [581]
Path: /Applications/MyAppAgent.app/Contents/MacOS/MyAppAgent
Identifier: com.Mycmp.MyApp.MyAppAgent
Version: 1.0.0.1
Code Type: X86 (Native)
Parent Process: ??? [1]
Responsible: MyAppAgent [581]
User ID: 501
Date/Time: 2015-09-08 10:32:09.940 -0400
OS Version: Mac OS X 10.10.5 (14F27)
Crashed Thread: 3
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000022b0dd78
....
Thread 3 Crashed:
0 com.Mycmp.MyApp.MyAppAgent 0x00012a74 -[AppMainController sendPacketForLoginStatus] + 1644
1 com.Mycmp.MyApp.MyAppAgent 0x0001012c -[AppMainController timerQueryDiscovery:] + 1726
2 com.apple.Foundation 0x943ba76f __NSFireTimer + 119
3 com.apple.CoreFoundation 0x90653006 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22
4 com.apple.CoreFoundation 0x90652ab4 __CFRunLoopDoTimer + 1316
5 com.apple.CoreFoundation 0x906ce54f __CFRunLoopDoTimers + 351
6 com.apple.CoreFoundation 0x9060a531 __CFRunLoopRun + 2081
7 com.apple.CoreFoundation 0x90609aa6 CFRunLoopRunSpecific + 390
8 com.apple.CoreFoundation 0x9060990b CFRunLoopRunInMode + 123
9 com.apple.Foundation 0x944043ea -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 305
10 com.apple.Foundation 0x944847fa -[NSRunLoop(NSRunLoop) run] + 76
11 com.Mycmp.MyApp.MyAppAgent 0x00002ff0 -[AppMainController threadDiscovery:] + 360
12 com.apple.Foundation 0x943acb8d -[NSThread main] + 45
13 com.apple.Foundation 0x943ac936 __NSThread__main__ + 1538
14 libsystem_pthread.dylib 0x9abfcc25 _pthread_body + 138
15 libsystem_pthread.dylib 0x9abfcb9b _pthread_start + 162
16 libsystem_pthread.dylib 0x9abf9e32 thread_start + 34

Export attribute on nullable property causes crash

Using mono 2.10.9 and monomac, I have written a c# class inheriting NSObject used for Cocoa-binding from Xcode. If my class includes a property using a nullable value like this:
[Export]
public bool? IsRegistered { get; set; }
my application crashes the ugly way during startup (see crash report below). The main window hasn't even been displayed yet. As soon as I change the bool? to bool, everything works fine, but I actually would like to use bool?. Any suggestions?
Crash report:
Process: SQAT [44677]
Path: /Users/USER/*/SQAT.app/Contents/MacOS/SQAT
Identifier: SQAT
Version: 4 (1)
Code Type: X86 (Native)
Parent Process: launchd [136]
Date/Time: 2013-01-23 15:31:51.540 +0100
OS Version: Mac OS X 10.7.5 (11G63)
Report Version: 9
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
objc[44677]: garbage collection is OFF
abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x95da69c6 __pthread_kill + 10
1 libsystem_c.dylib 0x90dc0f78 pthread_kill + 106
2 libsystem_c.dylib 0x90db1bdd abort + 167
3 libmono-2.0.dylib 0x0029eefd mono_handle_native_sigsegv + 685
4 libsystem_c.dylib 0x90e1659b _sigtramp + 43
5 ??? 0xffffffff 0 + 4294967295
6 libmono-2.0.dylib 0x002ed970 mono_runtime_posix_install_handlers + 288
7 libsystem_c.dylib 0x90db1bdd abort + 167
8 libmono-2.0.dylib 0x003ff47f monoeg_g_logv + 159
9 libmono-2.0.dylib 0x003ff4ab monoeg_assertion_message + 43
10 libmono-2.0.dylib 0x0035a4ee mono_marshal_emit_managed_wrapper + 782
11 libmono-2.0.dylib 0x0035ae50 mono_marshal_get_managed_wrapper + 752
12 libmono-2.0.dylib 0x0035b2a2 mono_delegate_to_ftnptr + 146
13 ??? 0x011bf4be 0 + 18609342
14 ??? 0x011bf45c 0 + 18609244
15 ??? 0x01203350 0 + 18887504
16 ??? 0x01203148 0 + 18886984
17 ??? 0x013340fc 0 + 20136188
18 ??? 0x011c10a8 0 + 18616488
19 ??? 0x011c090c 0 + 18614540
20 ??? 0x01205cd8 0 + 18898136
21 ??? 0x0092bfe0 0 + 9617376
22 ??? 0x0092b6dc 0 + 9615068
23 ??? 0x0092bdde 0 + 9616862
24 libmono-2.0.dylib 0x0020dca4 mono_jit_runtime_invoke + 164
25 libmono-2.0.dylib 0x003832e4 mono_runtime_invoke + 68
26 libmono-2.0.dylib 0x003893ae mono_runtime_exec_main + 238
27 libmono-2.0.dylib 0x002735fd mono_main + 6797
28 SQAT 0x000394bf main + 3135
29 SQAT 0x00038875 start + 53
There is no direct equivalent to bool? in ObjectiveC, so currently it is not possible to export such a property.
Exactly how are you trying to use this property from ObjectiveC?

IOS 6 Maps Crash

I keep getting this crash on IOS 6 but I am not sure what is wrong. Does anyone know what it means?
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: EXC_ARM_DA_ALIGN at 0x00000001
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 CoreFoundation 0x3bcab0d8 CFRetain + 20
1 CoreFoundation 0x3bd424ee __CFSetStandardRetainKey + 50
2 VectorKit 0x3840e97c -[VKAnimation _stopAnimation:] + 36
3 VectorKit 0x383d841c -[VKAnimation onTimerFired:] + 48
4 VectorKit 0x383d8240 -[VKMainLoop displayTimerFired:] + 352
5 QuartzCore 0x3664377c CA::Display::DisplayLink::dispatch(unsigned long long, unsigned long long) + 156
6 QuartzCore 0x366436d4 CA::Display::IOMFBDisplayLink::callback(__IOMobileFramebuffer*, unsigned long long, unsigned long long, unsigned long long, void*) + 60
7 IOMobileFramebuffer 0x3c497fd4 IOMobileFramebufferVsyncNotifyFunc + 152
8 IOKit 0x35a965aa IODispatchCalloutFromCFMessage + 190
9 CoreFoundation 0x3bd35888 __CFMachPortPerform + 116
10 CoreFoundation 0x3bd403e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
11 CoreFoundation 0x3bd40386 __CFRunLoopDoSource1 + 134
12 CoreFoundation 0x3bd3f20a __CFRunLoopRun + 1378
13 CoreFoundation 0x3bcb2238 CFRunLoopRunSpecific + 352
14 CoreFoundation 0x3bcb20c4 CFRunLoopRunInMode + 100
15 GraphicsServices 0x33eae336 GSEventRunModal + 70
16 UIKit 0x3be33284 UIApplicationMain + 1116
17 App Name 0x000dcb88 main (main.m:14)
18 App Name 0x000dcb54 start + 36
The application is using the MKMapkit in IOS 6.
This is an internal bug. Report this to Apple.
You may be able to use the Simulator's "Reset Content" thing (in the app/iOS Simulator menu) to clear out caches if this is happening in the Simulator.
Looks like the issue is caused by accessing a released object from within or soon after VectorKit's stopAnimation: method is called. I'm not familiar with VectorKit, so you might look in that method or what looks to be the onTimerFired: delegate callback.
Good luck.
Tim