timo
I started a new task few hours before. In between my Mac was in sleep mode (I'm not sure if this is important).
WorkingHours hangs and I made an analysis of this process, sorry for the long listing, maybe it helps. It looks like a mono problem to me.
During hang, WorkingHours still consumes CPU (99.8% of one CPU) and it uses 140 MB physical memory and !!! 391GB virtual memory.
Sampling process 23320 for 1 second with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling WorkingHours (pid 23320) every 1 millisecond
Process: WorkingHours [23320]
Path: /Applications/WorkingHours.app/Contents/MacOS/WorkingHours
Load Address: 0x1005c4000
Identifier: mac.partl.workinghours
Version: 2.8.1 (2.8.1)
Code Type: ARM64
Platform: macOS
Parent Process: ??? [1]
Date/Time: 2022-02-12 12:42:38.776 +0100
Launch Time: 2022-02-12 10:16:50.168 +0100
OS Version: macOS 12.2.1 (21D62)
Report Version: 7
Analysis Tool: /usr/bin/sample
Physical footprint: 96.5M
Physical footprint (peak): 108.3M
----
Call graph:
757 Thread_619139 DispatchQueue_1: com.apple.main-thread (serial)
+ 757 start (in dyld) + 520 [0x100cc10f4]
+ 757 main (in WorkingHours) + 40 [0x1005fe83c]
+ 757 xamarin_main (in WorkingHours) + 1016 [0x1005fdb38]
+ 757 mono_main (in WorkingHours) + 7860 [0x10063c868]
+ 757 mono_jit_exec (in WorkingHours) + 376 [0x100639c88]
+ 757 mono_runtime_exec_main_checked (in WorkingHours) + 128 [0x1007d7180]
+ 757 mono_runtime_invoke_checked (in WorkingHours) + 148 [0x1007cffd0]
+ 757 mono_jit_runtime_invoke (in WorkingHours) + 1948 [0x1006b6f18]
+ 757 ??? (in <unknown binary>) [0x102bbacb4]
+ 757 WorkingHours_MainClass_Main_string__ (in WorkingHours.exe.dylib) + 568 [0x1048d4468]
+ 757 AppKit_NSApplication_Main_string__ (in Xamarin.Mac.dll.dylib) + 200 [0x106443cb8]
+ 757 ??? (in <unknown binary>) [0x108f42424]
+ 757 NSApplicationMain (in AppKit) + 1064 [0x195be3088]
+ 757 -[NSApplication run] (in AppKit) + 596 [0x195c119b4]
+ 757 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit) + 1332 [0x195c1f8a4]
+ 757 _DPSNextEvent (in AppKit) + 844 [0x195c21000]
+ 757 _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox) + 72 [0x19bc62a9c]
+ 757 ReceiveNextEventCommon (in HIToolbox) + 552 [0x19bc62cdc]
+ 757 RunCurrentEventLoopInMode (in HIToolbox) + 292 [0x19bc62f68]
+ 757 CFRunLoopRunSpecific (in CoreFoundation) + 600 [0x1930ca734]
+ 757 __CFRunLoopRun (in CoreFoundation) + 764 [0x1930cb1d0]
+ 757 __CFRunLoopDoObservers (in CoreFoundation) + 572 [0x1930cbc98]
+ 757 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ (in CoreFoundation) + 36 [0x1930cbe4c]
+ 757 ___NSRunLoopObserverCreateWithHandler_block_invoke (in AppKit) + 64 [0x1964ee4ac]
+ 757 __62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke (in AppKit) + 304 [0x195d8c54c]
+ 757 CA::Transaction::commit() (in QuartzCore) + 680 [0x199f10ff0]
+ 757 CA::Context::commit_transaction(CA::Transaction*, double, double*) (in QuartzCore) + 528 [0x19a07139c]
+ 757 CA::Layer::display_if_needed(CA::Transaction*) (in QuartzCore) + 776 [0x199f2ec70]
+ 757 -[_NSViewBackingLayer display] (in AppKit) + 648 [0x195cf3838]
+ 757 -[_NSBackingLayer display] (in AppKit) + 372 [0x195d7a778]
+ 757 -[CALayer _display] (in QuartzCore) + 1768 [0x199f2fb68]
+ 757 invocation function for block in CA::Layer::display_() (in QuartzCore) + 64 [0x199f8f778]
+ 757 CABackingStoreUpdate_ (in QuartzCore) + 496 [0x199f308f8]
+ 757 -[NSView(NSLayerKitGlue) drawLayer:inContext:] (in AppKit) + 320 [0x195d7a9a8]
+ 757 -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] (in AppKit) + 676 [0x195d7ad08]
+ 757 -[NSView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:] (in AppKit) + 1312 [0x1964b1af0]
+ 757 _NSViewDrawRect (in AppKit) + 148 [0x195d7b584]
+ 757 -[NSTableView drawRect:] (in AppKit) + 1392 [0x195e4cc74]
+ 757 -[NSTableView drawRowIndexes:clipRect:] (in AppKit) + 676 [0x195ec38c4]
+ 757 -[NSTableView drawRow:clipRect:] (in AppKit) + 1440 [0x195ec41b0]
+ 757 -[NSTableView _drawContentsAtRow:column:withCellFrame:] (in AppKit) + 76 [0x195ec456c]
+ 757 -[NSTableView preparedCellAtColumn:row:] (in AppKit) + 456 [0x195ec485c]
+ 757 -[NSTableView _dataSourceValueForColumn:row:] (in AppKit) + 196 [0x195d9ea34]
+ 605 _sigtramp (in libsystem_platform.dylib) + 0 [0x1930184ac]
+ 150 objc_msgSend (in libobjc.A.dylib) + 32 [0x192e8c320]
+ 2 _sigtramp (in libsystem_platform.dylib) + 56 [0x1930184e4]
+ 2 mono_sigsegv_signal_handler_debug (in WorkingHours) + 436 [0x1006b38fc]
+ 1 mono_jit_info_table_find_internal (in WorkingHours) + 92 [0x1007858d4]
+ : 1 mono_jit_info_table_find_internal (in WorkingHours) + 136 [0x100785900]
+ 1 mono_jit_info_table_find_internal (in WorkingHours) + 192 [0x100785938]
+ 1 jit_info_table_find (in WorkingHours) + 184 [0x100785a40]
+ 1 mono_get_hazardous_pointer (in WorkingHours) + 16 [0x10088090c]
757 Thread_619159: SGen worker
+ 757 thread_start (in libsystem_pthread.dylib) + 8 [0x192ffc024]
+ 757 _pthread_start (in libsystem_pthread.dylib) + 148 [0x193001240]
+ 757 thread_func (in WorkingHours) + 236 [0x10087b6e8]
+ 757 _pthread_cond_wait (in libsystem_pthread.dylib) + 1228 [0x193001808]
+ 757 __psynch_cvwait (in libsystem_kernel.dylib) + 8 [0x192fc90c0]
757 Thread_619160: Crash Report Leader
+ 757 thread_start (in libsystem_pthread.dylib) + 8 [0x192ffc024]
+ 757 _pthread_start (in libsystem_pthread.dylib) + 148 [0x193001240]
+ 757 start_wrapper (in WorkingHours) + 68 [0x10082459c]
+ 757 start_wrapper_internal (in WorkingHours) + 352 [0x100824714]
+ 757 summarizer_leader (in WorkingHours) + 252 [0x100823698]
+ 757 semaphore_wait_trap (in libsystem_kernel.dylib) + 8 [0x192fc5990]
757 Thread_619161: Finalizer
+ 757 thread_start (in libsystem_pthread.dylib) + 8 [0x192ffc024]
+ 757 _pthread_start (in libsystem_pthread.dylib) + 148 [0x193001240]
+ 757 start_wrapper (in WorkingHours) + 68 [0x10082459c]
+ 757 start_wrapper_internal (in WorkingHours) + 352 [0x100824714]
+ 757 finalizer_thread (in WorkingHours) + 348 [0x10075b87c]
+ 757 semaphore_wait_trap (in libsystem_kernel.dylib) + 8 [0x192fc5990]