Is it a bug of HIToolbox?(Framework bug)

I got a crash report in macOS, and spent much time to google but not resolve that.

I think it's system bug. anyone can tell me how to resolve?


os version has 10.9, 10.10, 10.11


below is crash report


Date/Time:             2016-10-12 14:29:00.157 +0800
OS Version:            Mac OS X 10.11.4 (15E65)
Report Version:        11
Anonymous UUID:        E8DAD8EF-8308-C86E-7942-0BBC15612AF5

Sleep/Wake UUID:       A311B628-67D1-4689-B2A0-D3BF52BC54E6

Time Awake Since Boot: 86000 seconds
Time Since Wake:       1700 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000050015
Exception Note:        EXC_CORPSE_NOTIFY
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib                    0x00007fff96a4a4e9 objc_msgSend + 41
1   com.apple.HIToolbox                0x00007fff9a181f56 ActivateTSMDocument_GetMenu_TimerHandler + 107
2   com.apple.CoreFoundation           0x00007fff8e1f7b94 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
3   com.apple.CoreFoundation           0x00007fff8e1f7823 __CFRunLoopDoTimer + 1075
4   com.apple.CoreFoundation           0x00007fff8e1f737a __CFRunLoopDoTimers + 298
5   com.apple.CoreFoundation           0x00007fff8e1ee871 __CFRunLoopRun + 1841
6   com.apple.CoreFoundation           0x00007fff8e1eded8 CFRunLoopRunSpecific + 296
7   com.apple.HIToolbox                0x00007fff99fa1935 RunCurrentEventLoopInMode + 235
8   com.apple.HIToolbox                0x00007fff99fa1677 ReceiveNextEventCommon + 184
9   com.apple.HIToolbox                0x00007fff99fa15af _BlockUntilNextEventMatchingListInModeWithFilter + 71
10  com.apple.AppKit                   0x00007fff8ba0defa _DPSNextEvent + 1067
11  com.apple.AppKit                   0x00007fff8ba0d32a -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
12  com.apple.AppKit                   0x00007fff8ba01e84 -[NSApplication run] + 682
13  com.apple.AppKit                   0x00007fff8b9cb46c NSApplicationMain + 1176
14  com.taobao.aliwangwang             0x0000000105484c57 main + 103
15  libdyld.dylib                      0x00007fff8b75a5ad start + 1
Post not yet marked as solved Up vote post of libririan Down vote post of libririan
3.1k views

Replies

Try running your app under the Zombies instrument. It looks like either a memory-management problem, perhaps over-releasing a menu item, or a memory smasher.

This crash is known to Apple, but unfortunately we are not able to reproduce it. We're still looking at ways to make it more reproducible and fix it. Are you able to reproduce it in your application?

This crash is common for .jp, .cn, .kr locales.

It's hard to reproduct, but we have many crash report


how can I help u debug this?

We're unable to reproduce this but we get this a LOT and have no idea why. We've also received 6,500 crash reports from just 1 users in three days. This is for a "helper" app bundled with our main app, and it seems it crashes, the OS spawns it off again, and it crashes again and that seems to be happening every few seconds. We're swamped with crashes from many users but no idea what's going on. Here's the full stack trace (seems to be on macOS 10.11):


Crashed: com.apple.main-thread
0  Flavours2RuntimeLib.dylib      0x10a2f7fc3 (Missing)
1  Flavours2RuntimeLib.dylib      0x10a2f7d8d (Missing)
2  Flavours2RuntimeLib.dylib      0x10a305f02 (Missing)
3  Flavours2RuntimeLib.dylib      0x10a3008d3 (Missing)
4  Flavours2RuntimeLib.dylib      0x10a3007be (Missing)
5  libdispatch.dylib              0x7fff8ef6f40b _dispatch_client_callout + 8
6  libdispatch.dylib              0x7fff8ef6f303 dispatch_once_f + 67
7  Flavours2RuntimeLib.dylib      0x10a300796 (Missing)
8  Flavours2RuntimeLib.dylib      0x10a2fea4a (Missing)
9  libdispatch.dylib              0x7fff8ef7a93d _dispatch_call_block_and_release + 12
10 libdispatch.dylib              0x7fff8ef6f40b _dispatch_client_callout + 8
11 libdispatch.dylib              0x7fff8ef82c1c _dispatch_main_queue_callback_4CF + 1685
12 CoreFoundation                 0x7fff8b7da949 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
13 CoreFoundation                 0x7fff8b79982d __CFRunLoopRun + 1949
14 CoreFoundation                 0x7fff8b798e28 CFRunLoopRunSpecific + 296
15 HIToolbox                      0x7fff9a36e935 RunCurrentEventLoopInMode + 235
16 HIToolbox                      0x7fff9a36e76f ReceiveNextEventCommon + 432
17 HIToolbox                      0x7fff9a36e5af _BlockUntilNextEventMatchingListInModeWithFilter + 71
18 AppKit                         0x7fff9330edf6 _DPSNextEvent + 1067
19 AppKit                         0x7fff9330e226 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
20 AppKit                         0x7fff93302d80 -[NSApplication run] + 682
21 AppKit                         0x7fff932cc368 NSApplicationMain + 1176
22 libdyld.dylib                  0x7fff89da85ad start + 1