exelban / stats

macOS system monitor in your menu bar
MIT License
25.68k stars 848 forks source link

Crashes when opening battery popup #1700

Closed bruhtazor closed 11 months ago

bruhtazor commented 11 months ago

Whenever i open the battery icon and i click on the popup the app quits. I'm running the app on a macbook pro late 2015 on MacOS Montery 12.6.9.

exelban commented 11 months ago

Please share the crash report.

bruhtazor commented 11 months ago

Please share the crash report.

Where can i find the crash report ?

exelban commented 11 months ago

It could be found in Applications -> Utilities -> Console. Find the Crash Reports tab. There you must see a row called Stats.

bruhtazor commented 11 months ago

It could be found in Applications -> Utilities -> Console. Find the Crash Reports tab. There you must see a row called Stats.


Translated Report (Full Report Below)

Process: Stats [37954] Path: /Applications/Stats.app/Contents/MacOS/Stats Identifier: eu.exelban.Stats Version: 2.9.12 (508) Code Type: X86-64 (Native) Parent Process: launchd [1] User ID: 501

Date/Time: 2023-11-25 12:52:42.6596 +0100 OS Version: macOS 12.6.9 (21G726) Report Version: 12 Anonymous UUID: E511B9E6-8393-7EA6-3EF9-179A65393503

Sleep/Wake UUID: 6A5D81DB-8403-4280-B333-7DCD2997A6C8

Time Awake Since Boot: 1200000 seconds Time Since Wake: 864 seconds

System Integrity Protection: enabled

Crashed Thread: 6 Dispatch queue: eu.exelban.Stats.Repeater

Exception Type: EXC_BAD_INSTRUCTION (SIGILL) Exception Codes: 0x0000000000000001, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: Namespace SIGNAL, Code 4 Illegal instruction: 4 Terminating Process: exc handler [37954]

Thread 0:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x7ff80c5e896a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x7ff80c5e8cd8 mach_msg + 56 2 CoreFoundation 0x7ff80c6ec34d CFRunLoopServiceMachPort + 319 3 CoreFoundation 0x7ff80c6ea9d8 CFRunLoopRun + 1276 4 CoreFoundation 0x7ff80c6e9e1c CFRunLoopRunSpecific + 562 5 HIToolbox 0x7ff8153975e6 RunCurrentEventLoopInMode + 292 6 HIToolbox 0x7ff81539734a ReceiveNextEventCommon + 594 7 HIToolbox 0x7ff8153970e5 _BlockUntilNextEventMatchingListInModeWithFilter + 70 8 AppKit 0x7ff80f124f6d _DPSNextEvent + 927 9 AppKit 0x7ff80f12362a -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1394 10 AppKit 0x7ff80f115cd9 -[NSApplication run] + 586 11 Stats 0x101051070 0x10104d000 + 16496 12 dyld 0x1017ba52e start + 462

Thread 1:: com.apple.CFSocket.private 0 libsystem_kernel.dylib 0x7ff80c5f0d4a select + 10 1 CoreFoundation 0x7ff80c713659 CFSocketManager + 641 2 libsystem_pthread.dylib 0x7ff80c6254e1 _pthread_start + 125 3 libsystem_pthread.dylib 0x7ff80c620f6b thread_start + 15

Thread 2:: com.apple.NSURLConnectionLoader 0 libsystem_kernel.dylib 0x7ff80c5e896a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x7ff80c5e8cd8 mach_msg + 56 2 CoreFoundation 0x7ff80c6ec34d CFRunLoopServiceMachPort + 319 3 CoreFoundation 0x7ff80c6ea9d8 CFRunLoopRun + 1276 4 CoreFoundation 0x7ff80c6e9e1c CFRunLoopRunSpecific + 562 5 CFNetwork 0x7ff811313968 0x7ff8110cc000 + 2390376 6 Foundation 0x7ff80d541984 NSThreadstart__ + 1009 7 libsystem_pthread.dylib 0x7ff80c6254e1 _pthread_start + 125 8 libsystem_pthread.dylib 0x7ff80c620f6b thread_start + 15

Thread 3:: com.apple.NSEventThread 0 libsystem_kernel.dylib 0x7ff80c5e896a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x7ff80c5e8cd8 mach_msg + 56 2 CoreFoundation 0x7ff80c6ec34d CFRunLoopServiceMachPort + 319 3 CoreFoundation 0x7ff80c6ea9d8 CFRunLoopRun + 1276 4 CoreFoundation 0x7ff80c6e9e1c CFRunLoopRunSpecific + 562 5 AppKit 0x7ff80f29298e _NSEventThread + 132 6 libsystem_pthread.dylib 0x7ff80c6254e1 _pthread_start + 125 7 libsystem_pthread.dylib 0x7ff80c620f6b thread_start + 15

Thread 4: 0 libsystem_pthread.dylib 0x7ff80c620f48 start_wqthread + 0

Thread 5: 0 libsystem_pthread.dylib 0x7ff80c620f48 start_wqthread + 0

Thread 6 Crashed:: Dispatch queue: eu.exelban.Stats.Repeater 0 libswiftCore.dylib 0x7ff819b0cff8 closure #1 in closure #1 in closure #1 in assertionFailure(:_:file:line:flags:) + 456 1 libswiftCore.dylib 0x7ff819b0cd0b closure #1 in closure #1 in assertionFailure(:_:file:line:flags:) + 267 2 libswiftCore.dylib 0x7ff819b0cafd closure #1 in assertionFailure(:_:file:line:flags:) + 333 3 libswiftCore.dylib 0x7ff819b0c675 assertionFailure(:_:file:line:flags:) + 309 4 libswiftCore.dylib 0x7ff819b1a6fa String.index(after:) + 266 5 libswiftCore.dylib 0x7ff819b0eb7e specialized BidirectionalCollection.index(:offsetBy:) + 62 6 Kit 0x10157ca96 0x101556000 + 158358 7 Battery 0x10130e58f 0x101304000 + 42383 8 libswiftFoundation.dylib 0x7ff81e0d1820 partial apply for closure #1 in StringProtocol.enumerateLines(invoking:) + 32 9 libswiftFoundation.dylib 0x7ff81e0cd5c1 thunk for @escaping @callee_guaranteed (@guaranteed String, @unowned UnsafeMutablePointer) -> () + 81 10 Foundation 0x7ff80d5ae382 -[NSString enumerateSubstringsInRange:options:usingBlock:] + 1981 11 Foundation 0x7ff80d6fa065 -[NSString enumerateLinesUsingBlock:] + 120 12 libswiftFoundation.dylib 0x7ff81e0cd546 StringProtocol.enumerateLines(invoking:) + 214 13 Battery 0x10130e241 0x101304000 + 41537 14 Kit 0x1015cea86 0x101556000 + 494214 15 Kit 0x1015c69bf 0x101556000 + 461247 16 Kit 0x101564849 0x101556000 + 59465 17 libdispatch.dylib 0x7ff80c46e317 _dispatch_client_callout + 8 18 libdispatch.dylib 0x7ff80c470d7c _dispatch_continuation_pop + 453 19 libdispatch.dylib 0x7ff80c482208 _dispatch_source_invoke + 2179 20 libdispatch.dylib 0x7ff80c4741cd _dispatch_lane_serial_drain + 342 21 libdispatch.dylib 0x7ff80c474dfd _dispatch_lane_invoke + 366 22 libdispatch.dylib 0x7ff80c47eeee _dispatch_workloop_worker_thread + 753 23 libsystem_pthread.dylib 0x7ff80c621fd0 _pthread_wqthread + 326 24 libsystem_pthread.dylib 0x7ff80c620f57 start_wqthread + 15

Thread 7: 0 libsystem_pthread.dylib 0x7ff80c620f48 start_wqthread + 0

Thread 8: 0 libsystem_pthread.dylib 0x7ff80c620f48 start_wqthread + 0

Thread 9: 0 libsystem_pthread.dylib 0x7ff80c620f48 start_wqthread + 0

Thread 6 crashed with X86 Thread State (64-bit): rax: 0x00000000a282910f rbx: 0x0000000000000001 rcx: 0x00000000a282910f rdx: 0x00000000a2a29905 rdi: 0x000000000000010f rsi: 0x000060000186b0c0 rbp: 0x000070000a1e0020 rsp: 0x000070000a1e0010 r8: 0x00000000000030c0 r9: 0x0000000000000030 r10: 0x00000000000007fb r11: 0x0000000000000154 r12: 0x0000000000000002 r13: 0x000060000186afd0 r14: 0x000000000000003c r15: 0x0000000000000001 rip: 0x00007ff819b0cff8 rfl: 0x0000000000010202 cr2: 0x0000600002654000

Logical CPU: 0 Error Code: 0x00000000 Trap Number: 6

Thread 6 instruction stream: 8d 05 2a 0b 42 00 48 8d-3d 67 9f 41 00 48 8d 0d ..*.B.H.=g.A.H.. 7c a2 41 00 be 0b 00 00-00 41 b8 39 00 00 00 ba |.A......A.9.... 02 00 00 00 41 b9 02 00-00 00 6a 01 6a 5e e9 fb ....A.....j.j^.. fe ff ff 4d 85 d2 79 4a-48 be ff ff ff 7f ff ff ...M..yJH....... ff ff 49 39 f2 7f 44 48-83 ec 08 48 8d 05 6e 9f ..I9..DH...H..n. 41 00 48 8d 3d 1b 9f 41-00 48 8d 0d 80 9f 41 00 A.H.=..A.H....A. be 0b 00 00 00 41 b8 2b-00 00 00 ba 02 00 00 00 .....A.+........ 41 b9 02 00 00 00 6a 01-68 e6 0d 00 00 e9 0e ff A.....j.h....... ff ff 49 39 f2 0f 83 cf-fe ff ff 4c 8b 5d 10 4c ..I9.......L.].L 89 de 48 c1 ee 20 75 22-8b 5d 18 48 89 d7 89 ce ..H.. u".].H.... 4c 89 c2 44 89 c9 49 89-c0 45 89 d1 53 41 53 e8 L..D..I..E..SAS. 7c 26 36 00 48 83 c4 10-0f]0b 48 83 ec 08 48 8d |&6.H.....H...H. <==

Binary Images: 0x7ff80c5e7000 - 0x7ff80c61efff libsystem_kernel.dylib () <5e9789af-5bca-3e41-a07a-c2dcc3180ea3> /usr/lib/system/libsystem_kernel.dylib 0x7ff80c66c000 - 0x7ff80cb6efff com.apple.CoreFoundation (6.9) <9b3c3dc0-9b20-3e96-ad7b-322bb8f34a05> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x7ff815369000 - 0x7ff81565cfff com.apple.HIToolbox (2.1.1) <06fdecd6-9f69-397b-b1e2-a8226c0ba7ed> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox 0x7ff80f0e6000 - 0x7ff80ff75fff com.apple.AppKit (6.9) <129c4dce-5711-37dd-839d-434ccbdb9cea> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x10104d000 - 0x101080fff eu.exelban.Stats (2.9.12) /Applications/Stats.app/Contents/MacOS/Stats 0x1017b5000 - 0x101820fff dyld () /usr/lib/dyld 0x7ff80c61f000 - 0x7ff80c62afff libsystem_pthread.dylib () /usr/lib/system/libsystem_pthread.dylib 0x7ff8110cc000 - 0x7ff811559fff com.apple.CFNetwork (1335.0.3.4) /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork 0x7ff80d4e9000 - 0x7ff80d8a5fff com.apple.Foundation (6.9) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 0x7ff819ada000 - 0x7ff819f53fff libswiftCore.dylib () <9b8f4225-6ea3-313c-b5b2-7b594e2d1ef1> /usr/lib/swift/libswiftCore.dylib 0x101556000 - 0x101621fff eu.exelban.Stats.Kit (1.0) <9c9f98a8-1913-3983-9531-782b98dac32c> /Applications/Stats.app/Contents/Frameworks/Kit.framework/Versions/A/Kit 0x101304000 - 0x10131ffff eu.exelban.Stats.Battery (1.0) <0e1df54f-2e96-33af-9279-613f7ffbf0b0> /Applications/Stats.app/Contents/Frameworks/Battery.framework/Versions/A/Battery 0x7ff81de12000 - 0x7ff81e15ffff libswiftFoundation.dylib () <260d0712-a619-3106-a6c7-dc43420b8039> /usr/lib/swift/libswiftFoundation.dylib 0x7ff80c46b000 - 0x7ff80c4b1fff libdispatch.dylib () <1a04b380-76e4-3e4b-b0fc-9837533d021d> /usr/lib/system/libdispatch.dylib

External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 2 thread_create: 0 thread_set_state: 12

VM Region Summary: ReadOnly portion of Libraries: Total=931.0M resident=0K(0%) swapped_out_or_unallocated=931.0M(100%) Writable regions: Total=631.0M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=631.0M(100%)

                            VIRTUAL   REGION 

REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Accelerate framework 1536K 12 Activity Tracing 256K 1 CG image 684K 37 CG raster data 88K 10 ColorSync 224K 26 CoreAnimation 9.8M 283 CoreGraphics 16K 3 CoreUI image data 2812K 20 Foundation 16K 1 Kernel Alloc Once 8K 1 MALLOC 222.0M 128 MALLOC guard page 48K 12 MALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated) ObjC additional data 15K 1 SQLite page cache 192K 3 STACK GUARD 56.0M 10 Stack 12.6M 10 VM_ALLOCATE 144K 27 CTF 756 1 DATA 21.3M 391 DATA_CONST 18.2M 246 __DATA_DIRTY 1035K 143 FONT_DATA 4K 1 LINKEDIT 646.5M 22 TEXT 284.5M 404 __UNICODE 592K 1 dyld private memory 1024K 1 libnetwork 128K 8 mapped file 164.9M 40 shared memory 772K 15 =========== ======= ======= TOTAL 1.8G 1859 TOTAL, minus reserved VM space 1.4G 1859