Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.15k stars 302 forks source link

Komodo IDE 10.2.1 on macOS 10.12.4 hanging #2424

Closed pemcg closed 7 years ago

pemcg commented 7 years ago

Short Summary

I'm running Komodo IDE 10.2.1 on MacOS 10.12.4. I haven't used Komodo for a while so I'm not sure if the issues are related to the 10.12.4 upgrade that I did this morning, but I've had 2 cases today of Komodo hanging (infinite beachball). I've also noticed generally that the UI is frustratingly slow scrolling up and down, it's not a smooth experience at all.

Both of the hangs have been with about 5-6 files open, relatively small files (<400 lines)

Note From Developer - Please Read

A nightly is now available with a fix for this hang, you can download it here:

http://downloads.activestate.com/Komodo/nightly/komodoide/latest-10.2.x/

If you are still experiencing this issue with the latest build please supply a backtrace of Komodo in this ticket (when it is hanging).

To get the backtrace take the following steps:

Steps to Reproduce

Random

Expected results

Actual results

Platform Information

Komodo IDE for Mac Komodo 10.2.1 *Operating System (and version) MacOS 10.12.4

Additional Information

Attached is the text of the "Report the problem to Apple" output when I did a force quit. komodo_hang.txt

twhiteman commented 7 years ago

Version 10.1.4 also has same problem - sorry about the mis-direction. I've had two stalls, once yesterday, one just now when using Komodo 10.1.4.

th3coop commented 7 years ago

https://github.com/Komodo/KomodoEdit/issues/2424#issuecomment-292561225 Has anyone tried updating to 10.12.5 beta? I haven't seen a respond regarding that. I can understand the trepidation around that given OSXs' less than stellar update history so far but if any one has tried and had positive results please do let us know.

tuckdesign commented 7 years ago

I tried following, and since now I didn't have Komodo hanging (2 days). I checked https://github.com/Komodo/KomodoEdit/issues/1007#issuecomment-256967977 because there was a similar problem and that post resolves it. I just added logger.fatal("hanging name=%s, cname=%s", name, cname) before: if name == "removeObserver" and cname == "koFileNotificationService": to check is maybe Komodo hanging on that place when it hangs. But since that change I didn't have it hanging by now. Will let you know how long it persists...

th3coop commented 7 years ago

My last comment sounded like I was trying to pass that test off to the user (you all). I only say the above because I have an instance of Komodo running indefinitely on a Mac just to my right and it's been running smooth for days, no hanging, otherwise I would test the update myself.

th3coop commented 7 years ago

@tuckdesign, thanks for the update! Keep us posted on how 10.12.5 works out.

tuckdesign commented 7 years ago

@cgchoffman I am still on 10.12.4, just did change in komodo for debugging.

th3coop commented 7 years ago

Oh all you did was add the logger line? logger.fatal("hanging name=%s, cname=%s", name, cname)?

tuckdesign commented 7 years ago

Right

th3coop commented 7 years ago

Right

Thanks for clarify. It can't hurt to check that out but that was a significantly different crash from the looks of it.

NeilFraser commented 7 years ago

I had an upgrade to OS 10.12.4 forced upon me a couple of days ago (corporate policy), and Komodo IDE 10.2.1 is now freezing on average once an hour. No other applications are crashing, including Firefox. Upgrading to OS 10.12.5 beta isn't an option (corporate policy).

Let me know if there's any instrumentation I can provide since I can recreate this issue regularly, albeit not on demand.

tuckdesign commented 7 years ago

Unfortunately, logger line didn't solve issue nor there is any more data in log... Getting komodo hanging again.

kevinlieser commented 7 years ago

Any news here? Strangely, no other app crashes ... it's so annoying! I think it's the worst problem someone can have with an IDE / the worst problem I ever had with Komodo. I am going to try 10.12.5 Beta 5 now.

Naatan commented 7 years ago

So has anyone tried 10.12.5 yet to see if this resolves the issue?

kevinlieser commented 7 years ago

10.12.5 Beta 5 ... still crashing...

Naatan commented 7 years ago

Thank you @kevinlieser, sad news. Just to clarify; when you say crashing do you mean hanging? And does this happen mostly when switching to Komodo from other applications? Just want to make sure you're talking about the same issue.

kevinlieser commented 7 years ago

@Naatan Yes, hanging. Beach ball until I kill the process. In this case I did not switch from / to any other App.

Naatan commented 7 years ago

Thanks kevin. For everyone experiencing this issue: Please see the first post in this thread (by the bug reporter), I've added a dev edit with instructions on how to provide additional crucial information for us to further debug this issue. Thank you for your co-operation and apologies for the inconvenience.

NeilFraser commented 7 years ago

Here is a trace that I don't believe involved switching between applications, just typing.

(lldb) process attach --pid 33564
thProcess 33564 stopped
* thread #1: tid = 0x395c66, 0x00007fffc599d31e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fffc599d31e libsystem_kernel.dylib`__ulock_wait + 10
libsystem_kernel.dylib`__ulock_wait:
->  0x7fffc599d31e <+10>: jae    0x7fffc599d328            ; <+20>
    0x7fffc599d320 <+12>: movq   %rax, %rdi
    0x7fffc599d323 <+15>: jmp    0x7fffc5995caf            ; cerror_nocancel
    0x7fffc599d328 <+20>: retq   

Executable module set to "/Applications/Komodo IDE 10.app/Contents/MacOS/komodo".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread backtrace
* thread #1: tid = 0x395c66, 0x00007fffc599d31e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fffc599d31e libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007fffc5a80aff libsystem_platform.dylib`_os_ulock_wait + 25
    frame #2: 0x00007fffc5a803d2 libsystem_platform.dylib`_os_unfair_lock_lock_slow + 130
    frame #3: 0x00007fffc4f83169 libobjc.A.dylib`objc_object::sidetable_retain() + 81
    frame #4: 0x00007fffc4f84a8f libobjc.A.dylib`_object_get_associative_reference + 217
    frame #5: 0x00007fffadc8e5f0 AppKit`-[NSView inputContext] + 296
    frame #6: 0x000000010bb47714 XUL`-[ChildView inputContext] + 100
    frame #7: 0x00007fffae5dce5c AppKit`+[NSTextInputContext currentInputContext_withFirstResponderSync:] + 148
    frame #8: 0x00007fffadc0a212 AppKit`-[NSApplication updateWindows] + 96
    frame #9: 0x00007fffae04238f AppKit`__38-[NSApplication setWindowsNeedUpdate:]_block_invoke.2372 + 68
    frame #10: 0x00007fffb012add7 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    frame #11: 0x00007fffb012ad47 CoreFoundation`__CFRunLoopDoObservers + 391
    frame #12: 0x00007fffb010b789 CoreFoundation`__CFRunLoopRun + 873
    frame #13: 0x00007fffb010b1c4 CoreFoundation`CFRunLoopRunSpecific + 420
    frame #14: 0x00007fffaf66cebc HIToolbox`RunCurrentEventLoopInMode + 240
    frame #15: 0x00007fffaf66cbf9 HIToolbox`ReceiveNextEventCommon + 184
    frame #16: 0x00007fffaf66cb26 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71
    frame #17: 0x00007fffadc07e24 AppKit`_DPSNextEvent + 1120
    frame #18: 0x00007fffae38385e AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
    frame #19: 0x000000010bb63512 XUL`-[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 82
    frame #20: 0x00007fffadbfc7ab AppKit`-[NSApplication run] + 926
    frame #21: 0x000000010bb642b5 XUL`nsAppShell::Run() + 261
    frame #22: 0x000000010c557d44 XUL`nsAppStartup::Run() + 36
    frame #23: 0x000000010c585b8d XUL`XREMain::XRE_mainRun() + 3533
    frame #24: 0x000000010c585e41 XUL`XREMain::XRE_main(int, char**, nsXREAppData const*) + 481
    frame #25: 0x000000010c586184 XUL`XRE_main + 244
    frame #26: 0x000000010a235a21 komodo`main + 1297
    frame #27: 0x00007fffc586e235 libdyld.dylib`start + 1
(lldb) 
tuckdesign commented 7 years ago
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fffa907e31e libsystem_kernel.dylib`__ulock_wait + 10
libsystem_kernel.dylib`__ulock_wait:
->  0x7fffa907e31e <+10>: jae    0x7fffa907e328            ; <+20>
    0x7fffa907e320 <+12>: movq   %rax, %rdi
    0x7fffa907e323 <+15>: jmp    0x7fffa9076caf            ; cerror_nocancel
    0x7fffa907e328 <+20>: retq   

(lldb) thread backtrace
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fffa907e31e libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007fffa9161aff libsystem_platform.dylib`_os_ulock_wait + 25
    frame #2: 0x00007fffa91613d2 libsystem_platform.dylib`_os_unfair_lock_lock_slow + 130
    frame #3: 0x00007fffa8664169 libobjc.A.dylib`objc_object::sidetable_retain() + 81
    frame #4: 0x00007fffa8665a8f libobjc.A.dylib`_object_get_associative_reference + 217
    frame #5: 0x00007fff91466bfa AppKit`-[NSScroller hitTest:] + 92
    frame #6: 0x00007fff913bdf24 AppKit`-[NSView hitTest:] + 553
    frame #7: 0x00007fff91466aec AppKit`-[NSScrollView hitTest:] + 60
    frame #8: 0x00007fff913bdf24 AppKit`-[NSView hitTest:] + 553
    frame #9: 0x00007fff913bdf24 AppKit`-[NSView hitTest:] + 553
    frame #10: 0x000000011106044b XUL`-[ChildView hitTest:] + 75
    frame #11: 0x00007fff913bdf24 AppKit`-[NSView hitTest:] + 553
    frame #12: 0x000000011106044b XUL`-[ChildView hitTest:] + 75
    frame #13: 0x00007fff913bdf24 AppKit`-[NSView hitTest:] + 553
    frame #14: 0x00007fff913bdf24 AppKit`-[NSView hitTest:] + 553
    frame #15: 0x00007fff91465f00 AppKit`-[NSThemeFrame _hitTest:ignoringResizeRegion:] + 1237
    frame #16: 0x000000011106f2d4 XUL`ChildViewMouseTracker::ViewForEvent(NSEvent*) + 132
    frame #17: 0x000000011106f3e1 XUL`ChildViewMouseTracker::MouseMoved(NSEvent*) + 49
    frame #18: 0x00007fff91518dfa AppKit`-[NSTrackingArea mouseMoved:] + 150
    frame #19: 0x00007fff91bded12 AppKit`-[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2508
    frame #20: 0x00007fff91bddf7a AppKit`-[NSWindow(NSEventRouting) sendEvent:] + 541
    frame #21: 0x000000011109321b XUL`-[ToolbarWindow sendEvent:] + 203
    frame #22: 0x00007fff91a62847 AppKit`-[NSApplication(NSEvent) sendEvent:] + 1487
    frame #23: 0x00000001110874b1 XUL`-[GeckoNSApplication sendEvent:] + 113
    frame #24: 0x00007fff912dd7f7 AppKit`-[NSApplication run] + 1002
    frame #25: 0x00000001110882b5 XUL`nsAppShell::Run() + 261
    frame #26: 0x0000000111a7bd44 XUL`nsAppStartup::Run() + 36
    frame #27: 0x0000000111aa9b8d XUL`XREMain::XRE_mainRun() + 3533
    frame #28: 0x0000000111aa9e41 XUL`XREMain::XRE_main(int, char**, nsXREAppData const*) + 481
    frame #29: 0x0000000111aaa184 XUL`XRE_main + 244
    frame #30: 0x000000010f759a21 komodo`main + 1297
    frame #31: 0x00007fffa8f4f235 libdyld.dylib`start + 1
    frame #32: 0x00007fffa8f4f235 libdyld.dylib`start + 1
tuckdesign commented 7 years ago

This is thread backtrace while it is still 'spinning':

(lldb) process attach --pid 31255
Process 31255 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fffa907e31e libsystem_kernel.dylib`__ulock_wait + 10
libsystem_kernel.dylib`__ulock_wait:
->  0x7fffa907e31e <+10>: jae    0x7fffa907e328            ; <+20>
    0x7fffa907e320 <+12>: movq   %rax, %rdi
    0x7fffa907e323 <+15>: jmp    0x7fffa9076caf            ; cerror_nocancel
    0x7fffa907e328 <+20>: retq   

Executable module set to "/Applications/Komodo IDE 10.app/Contents/MacOS/komodo".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread backtrace
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fffa907e31e libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007fffa9161aff libsystem_platform.dylib`_os_ulock_wait + 25
    frame #2: 0x00007fffa91613d2 libsystem_platform.dylib`_os_unfair_lock_lock_slow + 130
    frame #3: 0x00007fffa8664169 libobjc.A.dylib`objc_object::sidetable_retain() + 81
    frame #4: 0x00007fffa8665a8f libobjc.A.dylib`_object_get_associative_reference + 217
    frame #5: 0x00007fff91466bfa AppKit`-[NSScroller hitTest:] + 92
    frame #6: 0x00007fff913bdf24 AppKit`-[NSView hitTest:] + 553
    frame #7: 0x00007fff91466aec AppKit`-[NSScrollView hitTest:] + 60
    frame #8: 0x00007fff913bdf24 AppKit`-[NSView hitTest:] + 553
    frame #9: 0x00007fff913bdf24 AppKit`-[NSView hitTest:] + 553
    frame #10: 0x00000001124b444b XUL`-[ChildView hitTest:] + 75
    frame #11: 0x00007fff913bdf24 AppKit`-[NSView hitTest:] + 553
    frame #12: 0x00000001124b444b XUL`-[ChildView hitTest:] + 75
    frame #13: 0x00007fff913bdf24 AppKit`-[NSView hitTest:] + 553
    frame #14: 0x00007fff913bdf24 AppKit`-[NSView hitTest:] + 553
    frame #15: 0x00007fff91465f00 AppKit`-[NSThemeFrame _hitTest:ignoringResizeRegion:] + 1237
    frame #16: 0x00000001124c32d4 XUL`ChildViewMouseTracker::ViewForEvent(NSEvent*) + 132
    frame #17: 0x00000001124c33e1 XUL`ChildViewMouseTracker::MouseMoved(NSEvent*) + 49
    frame #18: 0x00007fff91467b79 AppKit`forwardMethod + 133
    frame #19: 0x00007fff91467b79 AppKit`forwardMethod + 133
    frame #20: 0x00007fff91467b79 AppKit`forwardMethod + 133
    frame #21: 0x00007fff91bdf43a AppKit`-[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 4340
    frame #22: 0x00007fff91bddf7a AppKit`-[NSWindow(NSEventRouting) sendEvent:] + 541
    frame #23: 0x00000001124e721b XUL`-[ToolbarWindow sendEvent:] + 203
    frame #24: 0x00007fff91a62847 AppKit`-[NSApplication(NSEvent) sendEvent:] + 1487
    frame #25: 0x00000001124db4b1 XUL`-[GeckoNSApplication sendEvent:] + 113
    frame #26: 0x00007fff912dd7f7 AppKit`-[NSApplication run] + 1002
    frame #27: 0x00000001124dc2b5 XUL`nsAppShell::Run() + 261
    frame #28: 0x0000000112ecfd44 XUL`nsAppStartup::Run() + 36
    frame #29: 0x0000000112efdb8d XUL`XREMain::XRE_mainRun() + 3533
    frame #30: 0x0000000112efde41 XUL`XREMain::XRE_main(int, char**, nsXREAppData const*) + 481
    frame #31: 0x0000000112efe184 XUL`XRE_main + 244
    frame #32: 0x000000010f642a21 komodo`main + 1297
    frame #33: 0x00007fffa8f4f235 libdyld.dylib`start + 1
    frame #34: 0x00007fffa8f4f235 libdyld.dylib`start + 1
NeilFraser commented 7 years ago

And here's a second trace of a hang, this time as a result of a mouse-caused focus switch between applications (from Chrome on my laptop's monitor, to Komodo fullscreen on an external monitor rotated at 90 degrees).

(lldb) process attach --pid 38668
Process 38668 stopped
* thread #1: tid = 0x3a5712, 0x00007fffc599d31e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fffc599d31e libsystem_kernel.dylib`__ulock_wait + 10
libsystem_kernel.dylib`__ulock_wait:
->  0x7fffc599d31e <+10>: jae    0x7fffc599d328            ; <+20>
    0x7fffc599d320 <+12>: movq   %rax, %rdi
    0x7fffc599d323 <+15>: jmp    0x7fffc5995caf            ; cerror_nocancel
    0x7fffc599d328 <+20>: retq   

Executable module set to "/Applications/Komodo IDE 10.app/Contents/MacOS/komodo".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread backtrace
* thread #1: tid = 0x3a5712, 0x00007fffc599d31e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fffc599d31e libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007fffc5a80aff libsystem_platform.dylib`_os_ulock_wait + 25
    frame #2: 0x00007fffc5a803d2 libsystem_platform.dylib`_os_unfair_lock_lock_slow + 130
    frame #3: 0x00007fffc4f83169 libobjc.A.dylib`objc_object::sidetable_retain() + 81
    frame #4: 0x00007fffc4f84a8f libobjc.A.dylib`_object_get_associative_reference + 217
    frame #5: 0x00007fffae168e06 AppKit`-[NSWindow(NSCursorRects) _addCursorRect:cursor:forView:] + 603
    frame #6: 0x00007fffadcfcafc AppKit`-[NSView addCursorRect:cursor:] + 555
    frame #7: 0x0000000146d1248c SciMoz`-[SCIContentView resetCursorRects] + 156
    frame #8: 0x00007fffadd31777 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 689
    frame #9: 0x00007fffadd31c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #10: 0x00007fffadd31c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #11: 0x00007fffadd3317f AppKit`-[NSScrollView _updateTrackingAreas] + 120
    frame #12: 0x00007fffadd31c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #13: 0x00007fffadd31c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #14: 0x00007fffadd31c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #15: 0x00007fffadd31c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #16: 0x00007fffadd31c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #17: 0x00007fffae16b964 AppKit`_NSWindowDisplayCycleUpdateStructuralRegions + 609
    frame #18: 0x00007fffadd56831 AppKit`__37+[NSDisplayCycle currentDisplayCycle]_block_invoke + 622
    frame #19: 0x00007fffb5c34dc6 QuartzCore`CA::Transaction::run_commit_handlers(CATransactionPhase) + 46
    frame #20: 0x00007fffb5d3e8f0 QuartzCore`CA::Context::commit_transaction(CA::Transaction*) + 160
    frame #21: 0x00007fffb5c338a1 QuartzCore`CA::Transaction::commit() + 475
    frame #22: 0x00007fffae039b99 AppKit`__37+[NSDisplayCycle currentDisplayCycle]_block_invoke.31 + 323
    frame #23: 0x00007fffb012add7 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    frame #24: 0x00007fffb012ad47 CoreFoundation`__CFRunLoopDoObservers + 391
    frame #25: 0x00007fffb010b789 CoreFoundation`__CFRunLoopRun + 873
    frame #26: 0x00007fffb010b1c4 CoreFoundation`CFRunLoopRunSpecific + 420
    frame #27: 0x00007fffaf66cebc HIToolbox`RunCurrentEventLoopInMode + 240
    frame #28: 0x00007fffaf66ccf1 HIToolbox`ReceiveNextEventCommon + 432
    frame #29: 0x00007fffaf66cb26 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71
    frame #30: 0x00007fffadc07e24 AppKit`_DPSNextEvent + 1120
    frame #31: 0x00007fffae38385e AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
    frame #32: 0x000000010ab5f512 XUL`-[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 82
    frame #33: 0x00007fffadbfc7ab AppKit`-[NSApplication run] + 926
    frame #34: 0x000000010ab602b5 XUL`nsAppShell::Run() + 261
    frame #35: 0x000000010b553d44 XUL`nsAppStartup::Run() + 36
    frame #36: 0x000000010b581b8d XUL`XREMain::XRE_mainRun() + 3533
    frame #37: 0x000000010b581e41 XUL`XREMain::XRE_main(int, char**, nsXREAppData const*) + 481
    frame #38: 0x000000010b582184 XUL`XRE_main + 244
    frame #39: 0x0000000109231a21 komodo`main + 1297
    frame #40: 0x00007fffc586e235 libdyld.dylib`start + 1
Naatan commented 7 years ago

Thanks guys. Keep em coming. We have a ticket open with Apple who may be checking into this thread as well, so the more backtraces the better.

tuckdesign commented 7 years ago

This one I got while working (editing) in Komodo - window had focus already.

(lldb) process attach --pid 8448
Process 8448 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fffd873f31e libsystem_kernel.dylib`__ulock_wait + 10
libsystem_kernel.dylib`__ulock_wait:
->  0x7fffd873f31e <+10>: jae    0x7fffd873f328            ; <+20>
    0x7fffd873f320 <+12>: movq   %rax, %rdi
    0x7fffd873f323 <+15>: jmp    0x7fffd8737caf            ; cerror_nocancel
    0x7fffd873f328 <+20>: retq   

Executable module set to "/Applications/Komodo IDE 10.app/Contents/MacOS/komodo".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread backtrace
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fffd873f31e libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007fffd8822aff libsystem_platform.dylib`_os_ulock_wait + 25
    frame #2: 0x00007fffd88223d2 libsystem_platform.dylib`_os_unfair_lock_lock_slow + 130
    frame #3: 0x00007fffd7d25169 libobjc.A.dylib`objc_object::sidetable_retain() + 81
    frame #4: 0x00007fffd7d26a8f libobjc.A.dylib`_object_get_associative_reference + 217
    frame #5: 0x00007fffc09eedbf AppKit`-[NSThemeFrame contentLayoutGuide] + 107
    frame #6: 0x00007fffc09f3bfa AppKit`-[NSWindow contentLayoutRect] + 28
    frame #7: 0x00007fffc0f0ae62 AppKit`-[NSWindow(NSCursorRects) _addCursorRect:cursor:forView:] + 695
    frame #8: 0x00007fffc0a9eafc AppKit`-[NSView addCursorRect:cursor:] + 555
    frame #9: 0x000000012c9acfbe SciMoz`-[SCIMarginView resetCursorRects] + 510
    frame #10: 0x00007fffc0ad3777 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 689
    frame #11: 0x00007fffc0ad3c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #12: 0x00007fffc0ad517f AppKit`-[NSScrollView _updateTrackingAreas] + 120
    frame #13: 0x00007fffc0ad3c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #14: 0x00007fffc0ad3c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #15: 0x00007fffc0ad3c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #16: 0x00007fffc0ad3c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #17: 0x00007fffc0ad3c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #18: 0x00007fffc0f0d964 AppKit`_NSWindowDisplayCycleUpdateStructuralRegions + 609
    frame #19: 0x00007fffc0af8831 AppKit`__37+[NSDisplayCycle currentDisplayCycle]_block_invoke + 622
    frame #20: 0x00007fffc89d6dc6 QuartzCore`CA::Transaction::run_commit_handlers(CATransactionPhase) + 46
    frame #21: 0x00007fffc8ae08f0 QuartzCore`CA::Context::commit_transaction(CA::Transaction*) + 160
    frame #22: 0x00007fffc89d58a1 QuartzCore`CA::Transaction::commit() + 475
    frame #23: 0x00007fffc0ddbb99 AppKit`__37+[NSDisplayCycle currentDisplayCycle]_block_invoke.31 + 323
    frame #24: 0x00007fffc2eccdd7 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    frame #25: 0x00007fffc2eccd47 CoreFoundation`__CFRunLoopDoObservers + 391
    frame #26: 0x00007fffc2ead789 CoreFoundation`__CFRunLoopRun + 873
    frame #27: 0x00007fffc2ead1c4 CoreFoundation`CFRunLoopRunSpecific + 420
    frame #28: 0x00007fffc240eebc HIToolbox`RunCurrentEventLoopInMode + 240
    frame #29: 0x00007fffc240ebf9 HIToolbox`ReceiveNextEventCommon + 184
    frame #30: 0x00007fffc240eb26 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71
    frame #31: 0x00007fffc09a9e24 AppKit`_DPSNextEvent + 1120
    frame #32: 0x00007fffc112585e AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
    frame #33: 0x00000001106e2512 XUL`-[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 82
    frame #34: 0x00007fffc099e7ab AppKit`-[NSApplication run] + 926
    frame #35: 0x00000001106e32b5 XUL`nsAppShell::Run() + 261
    frame #36: 0x00000001110d6d44 XUL`nsAppStartup::Run() + 36
    frame #37: 0x0000000111104b8d XUL`XREMain::XRE_mainRun() + 3533
    frame #38: 0x0000000111104e41 XUL`XREMain::XRE_main(int, char**, nsXREAppData const*) + 481
    frame #39: 0x0000000111105184 XUL`XRE_main + 244
    frame #40: 0x000000010ae46a21 komodo`main + 1297
    frame #41: 0x00007fffd8610235 libdyld.dylib`start + 1
    frame #42: 0x00007fffd8610235 libdyld.dylib`start + 1
(lldb) 
NeilFraser commented 7 years ago

This hang was in the middle of typing in the IDE. No context switch.

(lldb) process attach --pid 65318
Process 65318 stopped
* thread #1: tid = 0x3ef143, 0x00007fffc599d31e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fffc599d31e libsystem_kernel.dylib`__ulock_wait + 10
libsystem_kernel.dylib`__ulock_wait:
->  0x7fffc599d31e <+10>: jae    0x7fffc599d328            ; <+20>
    0x7fffc599d320 <+12>: movq   %rax, %rdi
    0x7fffc599d323 <+15>: jmp    0x7fffc5995caf            ; cerror_nocancel
    0x7fffc599d328 <+20>: retq   

Executable module set to "/Applications/Komodo IDE 10.app/Contents/MacOS/komodo".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread backtrace
* thread #1: tid = 0x3ef143, 0x00007fffc599d31e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fffc599d31e libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007fffc5a80aff libsystem_platform.dylib`_os_ulock_wait + 25
    frame #2: 0x00007fffc5a803d2 libsystem_platform.dylib`_os_unfair_lock_lock_slow + 130
    frame #3: 0x00007fffc4f83169 libobjc.A.dylib`objc_object::sidetable_retain() + 81
    frame #4: 0x00007fffc4f84a8f libobjc.A.dylib`_object_get_associative_reference + 217
    frame #5: 0x00007fffadc8e5f0 AppKit`-[NSView inputContext] + 296
    frame #6: 0x0000000109aaa714 XUL`-[ChildView inputContext] + 100
    frame #7: 0x00007fffae5dce5c AppKit`+[NSTextInputContext currentInputContext_withFirstResponderSync:] + 148
    frame #8: 0x00007fffadc0a212 AppKit`-[NSApplication updateWindows] + 96
    frame #9: 0x00007fffae04238f AppKit`__38-[NSApplication setWindowsNeedUpdate:]_block_invoke.2372 + 68
    frame #10: 0x00007fffb012add7 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    frame #11: 0x00007fffb012ad47 CoreFoundation`__CFRunLoopDoObservers + 391
    frame #12: 0x00007fffb010b789 CoreFoundation`__CFRunLoopRun + 873
    frame #13: 0x00007fffb010b1c4 CoreFoundation`CFRunLoopRunSpecific + 420
    frame #14: 0x00007fffaf66cebc HIToolbox`RunCurrentEventLoopInMode + 240
    frame #15: 0x00007fffaf66cbf9 HIToolbox`ReceiveNextEventCommon + 184
    frame #16: 0x00007fffaf66cb26 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71
    frame #17: 0x00007fffadc07e24 AppKit`_DPSNextEvent + 1120
    frame #18: 0x00007fffae38385e AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
    frame #19: 0x0000000109ac6512 XUL`-[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 82
    frame #20: 0x00007fffadbfc7ab AppKit`-[NSApplication run] + 926
    frame #21: 0x0000000109ac72b5 XUL`nsAppShell::Run() + 261
    frame #22: 0x000000010a4bad44 XUL`nsAppStartup::Run() + 36
    frame #23: 0x000000010a4e8b8d XUL`XREMain::XRE_mainRun() + 3533
    frame #24: 0x000000010a4e8e41 XUL`XREMain::XRE_main(int, char**, nsXREAppData const*) + 481
    frame #25: 0x000000010a4e9184 XUL`XRE_main + 244
    frame #26: 0x0000000106ffca21 komodo`main + 1297
    frame #27: 0x00007fffc586e235 libdyld.dylib`start + 1
(lldb) 
NeilFraser commented 7 years ago

Here's a freeze where the focus was on Chrome, I moused over Komodo (but didn't click) and it was beach balling.

(lldb) process attach --pid 66779
Process 66779 stopped
* thread #1: tid = 0x3f3f10, 0x00007fffc599d31e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fffc599d31e libsystem_kernel.dylib`__ulock_wait + 10
libsystem_kernel.dylib`__ulock_wait:
->  0x7fffc599d31e <+10>: jae    0x7fffc599d328            ; <+20>
    0x7fffc599d320 <+12>: movq   %rax, %rdi
    0x7fffc599d323 <+15>: jmp    0x7fffc5995caf            ; cerror_nocancel
    0x7fffc599d328 <+20>: retq   

Executable module set to "/Applications/Komodo IDE 10.app/Contents/MacOS/komodo".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread backtrace
* thread #1: tid = 0x3f3f10, 0x00007fffc599d31e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fffc599d31e libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007fffc5a80aff libsystem_platform.dylib`_os_ulock_wait + 25
    frame #2: 0x00007fffc5a803d2 libsystem_platform.dylib`_os_unfair_lock_lock_slow + 130
    frame #3: 0x00007fffc4f83169 libobjc.A.dylib`objc_object::sidetable_retain() + 81
    frame #4: 0x00007fffc4f84a8f libobjc.A.dylib`_object_get_associative_reference + 217
    frame #5: 0x00007fffadc31a38 AppKit`-[NSThemeFrame _adjustPointToTitlebarView:] + 42
    frame #6: 0x00007fffadc31977 AppKit`-[NSThemeFrame _setButton:frameOrigin:] + 38
    frame #7: 0x00007fffadc310ee AppKit`-[NSThemeFrame _updateButtonPositions] + 197
    frame #8: 0x00007fffadc30517 AppKit`-[NSThemeFrame _tileTitlebarAndRedisplay:] + 66
    frame #9: 0x00007fffadc902dd AppKit`-[NSTitledFrame _titleDidChange] + 217
    frame #10: 0x00007fffadc8fd27 AppKit`-[NSTitledFrame setTitle:] + 804
    frame #11: 0x00007fffadc8f954 AppKit`-[NSThemeFrame setTitle:] + 51
    frame #12: 0x00007fffadc8f750 AppKit`-[NSWindow _dosetTitle:andDefeatWrap:] + 317
    frame #13: 0x0000000104830786 XUL`nsCocoaWindow::SetTitle(nsAString_internal const&) + 214
    frame #14: 0x00000001050c354f XUL`nsXULWindow::SetTitle(char16_t const*) + 79
    frame #15: 0x000000010506f9c7 XUL`nsDocShell::SetTitle(char16_t const*) + 263
    frame #16: 0x000000010506fb0d XUL`non-virtual thunk to nsDocShell::SetTitle(char16_t const*) + 13
    frame #17: 0x0000000104903255 XUL`nsDocument::DoNotifyPossibleTitleChange() + 245
    frame #18: 0x0000000104912454 XUL`nsRunnableMethodImpl<void (nsDocument::*)(), void, false>::Run() + 36
    frame #19: 0x00000001033e993f XUL`nsThread::ProcessNextEvent(bool, bool*) + 1007
    frame #20: 0x000000010340681e XUL`NS_ProcessPendingEvents(nsIThread*, unsigned int) + 286
    frame #21: 0x00000001047e70ef XUL`nsBaseAppShell::NativeEventCallback() + 111
    frame #22: 0x0000000104829dca XUL`nsAppShell::ProcessGeckoEvents(void*) + 282
    frame #23: 0x00007fffb012b3c1 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    frame #24: 0x00007fffb010c2cd CoreFoundation`__CFRunLoopDoSources0 + 557
    frame #25: 0x00007fffb010b7c6 CoreFoundation`__CFRunLoopRun + 934
    frame #26: 0x00007fffb010b1c4 CoreFoundation`CFRunLoopRunSpecific + 420
    frame #27: 0x00007fffaf66cebc HIToolbox`RunCurrentEventLoopInMode + 240
    frame #28: 0x00007fffaf66cbf9 HIToolbox`ReceiveNextEventCommon + 184
    frame #29: 0x00007fffaf66cb26 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71
    frame #30: 0x00007fffadc07e24 AppKit`_DPSNextEvent + 1120
    frame #31: 0x00007fffae38385e AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
    frame #32: 0x0000000104829512 XUL`-[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 82
    frame #33: 0x00007fffadbfc7ab AppKit`-[NSApplication run] + 926
    frame #34: 0x000000010482a2b5 XUL`nsAppShell::Run() + 261
    frame #35: 0x000000010521dd44 XUL`nsAppStartup::Run() + 36
    frame #36: 0x000000010524bb8d XUL`XREMain::XRE_mainRun() + 3533
    frame #37: 0x000000010524be41 XUL`XREMain::XRE_main(int, char**, nsXREAppData const*) + 481
    frame #38: 0x000000010524c184 XUL`XRE_main + 244
    frame #39: 0x0000000102efba21 komodo`main + 1297
    frame #40: 0x00007fffc586e235 libdyld.dylib`start + 1
coreground commented 7 years ago

My trace of the same issue.

https://pastebin.com/CBnmvMaR

dch commented 7 years ago

putting this into perspective: Komodo on OSX is unusable at present due to this issue. If Activestate has the option of escalating a case within Apple this would be a good time to do so.

NeilFraser commented 7 years ago

Another hang after a focus switch. Do let me know if these cease being helpful and I'll stop spamming.

(lldb) process attach --pid 1567
Process 1567 stopped
* thread #1: tid = 0x26e3, 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10
libsystem_kernel.dylib`__ulock_wait:
->  0x7fffc73b131e <+10>: jae    0x7fffc73b1328            ; <+20>
    0x7fffc73b1320 <+12>: movq   %rax, %rdi
    0x7fffc73b1323 <+15>: jmp    0x7fffc73a9caf            ; cerror_nocancel
    0x7fffc73b1328 <+20>: retq   

Executable module set to "/Applications/Komodo IDE 10.app/Contents/MacOS/komodo".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread backtrace
* thread #1: tid = 0x26e3, 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007fffc7494aff libsystem_platform.dylib`_os_ulock_wait + 25
    frame #2: 0x00007fffc74943d2 libsystem_platform.dylib`_os_unfair_lock_lock_slow + 130
    frame #3: 0x00007fffc6997169 libobjc.A.dylib`objc_object::sidetable_retain() + 81
    frame #4: 0x00007fffc6998a8f libobjc.A.dylib`_object_get_associative_reference + 217
    frame #5: 0x00007fffaf74719a AppKit`-[NSScroller(NSInternal2) _isTrackingInKnob] + 16
    frame #6: 0x00007fffaf747144 AppKit`-[NSScrollView _updateTrackingAreas] + 61
    frame #7: 0x00007fffaf745c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #8: 0x00007fffaf745c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #9: 0x00007fffaf745c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #10: 0x00007fffaf745c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #11: 0x00007fffaf745c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #12: 0x00007fffafb7f964 AppKit`_NSWindowDisplayCycleUpdateStructuralRegions + 609
    frame #13: 0x00007fffaf76a831 AppKit`__37+[NSDisplayCycle currentDisplayCycle]_block_invoke + 622
    frame #14: 0x00007fffb7648dc6 QuartzCore`CA::Transaction::run_commit_handlers(CATransactionPhase) + 46
    frame #15: 0x00007fffb77528f0 QuartzCore`CA::Context::commit_transaction(CA::Transaction*) + 160
    frame #16: 0x00007fffb76478a1 QuartzCore`CA::Transaction::commit() + 475
    frame #17: 0x00007fffafa4db99 AppKit`__37+[NSDisplayCycle currentDisplayCycle]_block_invoke.31 + 323
    frame #18: 0x00007fffb1b3edd7 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    frame #19: 0x00007fffb1b3ed47 CoreFoundation`__CFRunLoopDoObservers + 391
    frame #20: 0x00007fffb1b1f789 CoreFoundation`__CFRunLoopRun + 873
    frame #21: 0x00007fffb1b1f1c4 CoreFoundation`CFRunLoopRunSpecific + 420
    frame #22: 0x00007fffb1080ebc HIToolbox`RunCurrentEventLoopInMode + 240
    frame #23: 0x00007fffb1080bf9 HIToolbox`ReceiveNextEventCommon + 184
    frame #24: 0x00007fffb1080b26 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71
    frame #25: 0x00007fffaf61be24 AppKit`_DPSNextEvent + 1120
    frame #26: 0x00007fffafd9785e AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
    frame #27: 0x0000000103c16512 XUL`-[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 82
    frame #28: 0x00007fffaf6107ab AppKit`-[NSApplication run] + 926
    frame #29: 0x0000000103c172b5 XUL`nsAppShell::Run() + 261
    frame #30: 0x000000010460ad44 XUL`nsAppStartup::Run() + 36
    frame #31: 0x0000000104638b8d XUL`XREMain::XRE_mainRun() + 3533
    frame #32: 0x0000000104638e41 XUL`XREMain::XRE_main(int, char**, nsXREAppData const*) + 481
    frame #33: 0x0000000104639184 XUL`XRE_main + 244
    frame #34: 0x00000001022e8a21 komodo`main + 1297
    frame #35: 0x00007fffc7282235 libdyld.dylib`start + 1
NeilFraser commented 7 years ago

Freeze during a Command-C/Command-V keyboard operation:

(lldb) process attach --pid 4590
Process 4590 stopped
* thread #1: tid = 0xdf48, 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10
libsystem_kernel.dylib`__ulock_wait:
->  0x7fffc73b131e <+10>: jae    0x7fffc73b1328            ; <+20>
    0x7fffc73b1320 <+12>: movq   %rax, %rdi
    0x7fffc73b1323 <+15>: jmp    0x7fffc73a9caf            ; cerror_nocancel
    0x7fffc73b1328 <+20>: retq   

Executable module set to "/Applications/Komodo IDE 10.app/Contents/MacOS/komodo".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread backtrace
* thread #1: tid = 0xdf48, 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007fffc7494aff libsystem_platform.dylib`_os_ulock_wait + 25
    frame #2: 0x00007fffc74943d2 libsystem_platform.dylib`_os_unfair_lock_lock_slow + 130
    frame #3: 0x00007fffc6997169 libobjc.A.dylib`objc_object::sidetable_retain() + 81
    frame #4: 0x00007fffc6998a8f libobjc.A.dylib`_object_get_associative_reference + 217
    frame #5: 0x00007fffaf6a25f0 AppKit`-[NSView inputContext] + 296
    frame #6: 0x0000000102ca8714 XUL`-[ChildView inputContext] + 100
    frame #7: 0x00007fffafff0e5c AppKit`+[NSTextInputContext currentInputContext_withFirstResponderSync:] + 148
    frame #8: 0x00007fffaf61e212 AppKit`-[NSApplication updateWindows] + 96
    frame #9: 0x00007fffafa5638f AppKit`__38-[NSApplication setWindowsNeedUpdate:]_block_invoke.2372 + 68
    frame #10: 0x00007fffb1b3edd7 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    frame #11: 0x00007fffb1b3ed47 CoreFoundation`__CFRunLoopDoObservers + 391
    frame #12: 0x00007fffb1b1f789 CoreFoundation`__CFRunLoopRun + 873
    frame #13: 0x00007fffb1b1f1c4 CoreFoundation`CFRunLoopRunSpecific + 420
    frame #14: 0x00007fffb1080ebc HIToolbox`RunCurrentEventLoopInMode + 240
    frame #15: 0x00007fffb1080bf9 HIToolbox`ReceiveNextEventCommon + 184
    frame #16: 0x00007fffb1080b26 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71
    frame #17: 0x00007fffaf61be24 AppKit`_DPSNextEvent + 1120
    frame #18: 0x00007fffafd9785e AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
    frame #19: 0x0000000102cc4512 XUL`-[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 82
    frame #20: 0x00007fffaf6107ab AppKit`-[NSApplication run] + 926
    frame #21: 0x0000000102cc52b5 XUL`nsAppShell::Run() + 261
    frame #22: 0x00000001036b8d44 XUL`nsAppStartup::Run() + 36
    frame #23: 0x00000001036e6b8d XUL`XREMain::XRE_mainRun() + 3533
    frame #24: 0x00000001036e6e41 XUL`XREMain::XRE_main(int, char**, nsXREAppData const*) + 481
    frame #25: 0x00000001036e7184 XUL`XRE_main + 244
    frame #26: 0x0000000101396a21 komodo`main + 1297
    frame #27: 0x00007fffc7282235 libdyld.dylib`start + 1
NeilFraser commented 7 years ago

Another freeze on task swap from Chrome to Komodo.

(lldb) process attach --pid 8796
Process 8796 stopped
* thread #1: tid = 0x17938, 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10
libsystem_kernel.dylib`__ulock_wait:
->  0x7fffc73b131e <+10>: jae    0x7fffc73b1328            ; <+20>
    0x7fffc73b1320 <+12>: movq   %rax, %rdi
    0x7fffc73b1323 <+15>: jmp    0x7fffc73a9caf            ; cerror_nocancel
    0x7fffc73b1328 <+20>: retq   

Executable module set to "/Applications/Komodo IDE 10.app/Contents/MacOS/komodo".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread backtrace
* thread #1: tid = 0x17938, 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007fffc7494aff libsystem_platform.dylib`_os_ulock_wait + 25
    frame #2: 0x00007fffc74943d2 libsystem_platform.dylib`_os_unfair_lock_lock_slow + 130
    frame #3: 0x00007fffc6997169 libobjc.A.dylib`objc_object::sidetable_retain() + 81
    frame #4: 0x00007fffc6998a8f libobjc.A.dylib`_object_get_associative_reference + 217
    frame #5: 0x00007fffaf6a25f0 AppKit`-[NSView inputContext] + 296
    frame #6: 0x0000000105576714 XUL`-[ChildView inputContext] + 100
    frame #7: 0x00007fffafff0e5c AppKit`+[NSTextInputContext currentInputContext_withFirstResponderSync:] + 148
    frame #8: 0x00007fffaf61e212 AppKit`-[NSApplication updateWindows] + 96
    frame #9: 0x00007fffafa5638f AppKit`__38-[NSApplication setWindowsNeedUpdate:]_block_invoke.2372 + 68
    frame #10: 0x00007fffb1b3edd7 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    frame #11: 0x00007fffb1b3ed47 CoreFoundation`__CFRunLoopDoObservers + 391
    frame #12: 0x00007fffb1b1f789 CoreFoundation`__CFRunLoopRun + 873
    frame #13: 0x00007fffb1b1f1c4 CoreFoundation`CFRunLoopRunSpecific + 420
    frame #14: 0x00007fffb1080ebc HIToolbox`RunCurrentEventLoopInMode + 240
    frame #15: 0x00007fffb1080bf9 HIToolbox`ReceiveNextEventCommon + 184
    frame #16: 0x00007fffb1080b26 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71
    frame #17: 0x00007fffaf61be24 AppKit`_DPSNextEvent + 1120
    frame #18: 0x00007fffafd9785e AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
    frame #19: 0x0000000105592512 XUL`-[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 82
    frame #20: 0x00007fffaf6107ab AppKit`-[NSApplication run] + 926
    frame #21: 0x00000001055932b5 XUL`nsAppShell::Run() + 261
    frame #22: 0x0000000105f86d44 XUL`nsAppStartup::Run() + 36
    frame #23: 0x0000000105fb4b8d XUL`XREMain::XRE_mainRun() + 3533
    frame #24: 0x0000000105fb4e41 XUL`XREMain::XRE_main(int, char**, nsXREAppData const*) + 481
    frame #25: 0x0000000105fb5184 XUL`XRE_main + 244
    frame #26: 0x0000000103c64a21 komodo`main + 1297
    frame #27: 0x00007fffc7282235 libdyld.dylib`start + 1
pemcg commented 7 years ago

and one from me, the hang appeared as I was moving the mouse curser up in a code window

* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fffc113431e libsystem_kernel.dylib`__ulock_wait + 10
libsystem_kernel.dylib`__ulock_wait:
->  0x7fffc113431e <+10>: jae    0x7fffc1134328            ; <+20>
    0x7fffc1134320 <+12>: movq   %rax, %rdi
    0x7fffc1134323 <+15>: jmp    0x7fffc112ccaf            ; cerror_nocancel
    0x7fffc1134328 <+20>: retq

Executable module set to "/Applications/Komodo IDE 10.app/Contents/MacOS/komodo".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread backtrace
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fffc113431e libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007fffc1217aff libsystem_platform.dylib`_os_ulock_wait + 25
    frame #2: 0x00007fffc12173d2 libsystem_platform.dylib`_os_unfair_lock_lock_slow + 130
    frame #3: 0x00007fffc071a169 libobjc.A.dylib`objc_object::sidetable_retain() + 81
    frame #4: 0x00007fffc071ba8f libobjc.A.dylib`_object_get_associative_reference + 217
    frame #5: 0x00007fffa94255f0 AppKit`-[NSView inputContext] + 296
    frame #6: 0x000000010ba73714 XUL`-[ChildView inputContext] + 100
    frame #7: 0x00007fffa9d73e5c AppKit`+[NSTextInputContext currentInputContext_withFirstResponderSync:] + 148
    frame #8: 0x00007fffa93a1212 AppKit`-[NSApplication updateWindows] + 96
    frame #9: 0x00007fffa97d938f AppKit`__38-[NSApplication setWindowsNeedUpdate:]_block_invoke.2372 + 68
    frame #10: 0x00007fffab8c1dd7 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    frame #11: 0x00007fffab8c1d47 CoreFoundation`__CFRunLoopDoObservers + 391
    frame #12: 0x00007fffab8a2789 CoreFoundation`__CFRunLoopRun + 873
    frame #13: 0x00007fffab8a21c4 CoreFoundation`CFRunLoopRunSpecific + 420
    frame #14: 0x00007fffaae03ebc HIToolbox`RunCurrentEventLoopInMode + 240
    frame #15: 0x00007fffaae03bf9 HIToolbox`ReceiveNextEventCommon + 184
    frame #16: 0x00007fffaae03b26 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71
    frame #17: 0x00007fffa939ee24 AppKit`_DPSNextEvent + 1120
    frame #18: 0x00007fffa9b1a85e AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
    frame #19: 0x000000010ba8f512 XUL`-[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 82
    frame #20: 0x00007fffa93937ab AppKit`-[NSApplication run] + 926
    frame #21: 0x000000010ba902b5 XUL`nsAppShell::Run() + 261
    frame #22: 0x000000010c483d44 XUL`nsAppStartup::Run() + 36
    frame #23: 0x000000010c4b1b8d XUL`XREMain::XRE_mainRun() + 3533
    frame #24: 0x000000010c4b1e41 XUL`XREMain::XRE_main(int, char**, nsXREAppData const*) + 481
    frame #25: 0x000000010c4b2184 XUL`XRE_main + 244
    frame #26: 0x000000010a161a21 komodo`main + 1297
    frame #27: 0x00007fffc1005235 libdyld.dylib`start + 1
tuckdesign commented 7 years ago

Tried to click on file in project tree:

(lldb) process attach --pid 11579
Process 11579 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fffd873f31e libsystem_kernel.dylib`__ulock_wait + 10
libsystem_kernel.dylib`__ulock_wait:
->  0x7fffd873f31e <+10>: jae    0x7fffd873f328            ; <+20>
    0x7fffd873f320 <+12>: movq   %rax, %rdi
    0x7fffd873f323 <+15>: jmp    0x7fffd8737caf            ; cerror_nocancel
    0x7fffd873f328 <+20>: retq   

Executable module set to "/Applications/Komodo IDE 10.app/Contents/MacOS/komodo".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread backtrace
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fffd873f31e libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007fffd8822aff libsystem_platform.dylib`_os_ulock_wait + 25
    frame #2: 0x00007fffd88223d2 libsystem_platform.dylib`_os_unfair_lock_lock_slow + 130
    frame #3: 0x00007fffd7d25169 libobjc.A.dylib`objc_object::sidetable_retain() + 81
    frame #4: 0x00007fffd7d26a8f libobjc.A.dylib`_object_get_associative_reference + 217
    frame #5: 0x00007fffc0ad519a AppKit`-[NSScroller(NSInternal2) _isTrackingInKnob] + 16
    frame #6: 0x00007fffc0ad5144 AppKit`-[NSScrollView _updateTrackingAreas] + 61
    frame #7: 0x00007fffc0ad3c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #8: 0x00007fffc0ad3c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #9: 0x00007fffc0ad3c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #10: 0x00007fffc0ad3c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #11: 0x00007fffc0ad3c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #12: 0x00007fffc0f0d964 AppKit`_NSWindowDisplayCycleUpdateStructuralRegions + 609
    frame #13: 0x00007fffc0af8831 AppKit`__37+[NSDisplayCycle currentDisplayCycle]_block_invoke + 622
    frame #14: 0x00007fffc89d6dc6 QuartzCore`CA::Transaction::run_commit_handlers(CATransactionPhase) + 46
    frame #15: 0x00007fffc8ae08f0 QuartzCore`CA::Context::commit_transaction(CA::Transaction*) + 160
    frame #16: 0x00007fffc89d58a1 QuartzCore`CA::Transaction::commit() + 475
    frame #17: 0x00007fffc0ddbb99 AppKit`__37+[NSDisplayCycle currentDisplayCycle]_block_invoke.31 + 323
    frame #18: 0x00007fffc2eccdd7 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    frame #19: 0x00007fffc2eccd47 CoreFoundation`__CFRunLoopDoObservers + 391
    frame #20: 0x00007fffc2ead789 CoreFoundation`__CFRunLoopRun + 873
    frame #21: 0x00007fffc2ead1c4 CoreFoundation`CFRunLoopRunSpecific + 420
    frame #22: 0x00007fffc240eebc HIToolbox`RunCurrentEventLoopInMode + 240
    frame #23: 0x00007fffc240ebf9 HIToolbox`ReceiveNextEventCommon + 184
    frame #24: 0x00007fffc240eb26 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71
    frame #25: 0x00007fffc09a9e24 AppKit`_DPSNextEvent + 1120
    frame #26: 0x00007fffc112585e AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
    frame #27: 0x0000000112a8b512 XUL`-[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 82
    frame #28: 0x00007fffc099e7ab AppKit`-[NSApplication run] + 926
    frame #29: 0x0000000112a8c2b5 XUL`nsAppShell::Run() + 261
    frame #30: 0x000000011347fd44 XUL`nsAppStartup::Run() + 36
    frame #31: 0x00000001134adb8d XUL`XREMain::XRE_mainRun() + 3533
    frame #32: 0x00000001134ade41 XUL`XREMain::XRE_main(int, char**, nsXREAppData const*) + 481
    frame #33: 0x00000001134ae184 XUL`XRE_main + 244
    frame #34: 0x000000010f066a21 komodo`main + 1297
    frame #35: 0x00007fffd8610235 libdyld.dylib`start + 1
    frame #36: 0x00007fffd8610235 libdyld.dylib`start + 1
(lldb) 
NeilFraser commented 7 years ago

Good morning. Time to start another work day:

(lldb) process attach --pid 12030
Process 12030 stopped
* thread #1: tid = 0x212fd, 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10
libsystem_kernel.dylib`__ulock_wait:
->  0x7fffc73b131e <+10>: jae    0x7fffc73b1328            ; <+20>
    0x7fffc73b1320 <+12>: movq   %rax, %rdi
    0x7fffc73b1323 <+15>: jmp    0x7fffc73a9caf            ; cerror_nocancel
    0x7fffc73b1328 <+20>: retq   

Executable module set to "/Applications/Komodo IDE 10.app/Contents/MacOS/komodo".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread backtrace
* thread #1: tid = 0x212fd, 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007fffc7494aff libsystem_platform.dylib`_os_ulock_wait + 25
    frame #2: 0x00007fffc74943d2 libsystem_platform.dylib`_os_unfair_lock_lock_slow + 130
    frame #3: 0x00007fffc6997169 libobjc.A.dylib`objc_object::sidetable_retain() + 81
    frame #4: 0x00007fffc6998a8f libobjc.A.dylib`_object_get_associative_reference + 217
    frame #5: 0x00007fffafb7ce06 AppKit`-[NSWindow(NSCursorRects) _addCursorRect:cursor:forView:] + 603
    frame #6: 0x00007fffaf710afc AppKit`-[NSView addCursorRect:cursor:] + 555
    frame #7: 0x000000011dcacfbe SciMoz`-[SCIMarginView resetCursorRects] + 510
    frame #8: 0x00007fffaf745777 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 689
    frame #9: 0x00007fffaf745c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #10: 0x00007fffaf74717f AppKit`-[NSScrollView _updateTrackingAreas] + 120
    frame #11: 0x00007fffaf745c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #12: 0x00007fffaf745c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #13: 0x00007fffaf745c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #14: 0x00007fffaf745c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #15: 0x00007fffaf745c27 AppKit`-[NSView(NSInternal) _updateTrackingAreas] + 1889
    frame #16: 0x00007fffafb7f964 AppKit`_NSWindowDisplayCycleUpdateStructuralRegions + 609
    frame #17: 0x00007fffaf76a831 AppKit`__37+[NSDisplayCycle currentDisplayCycle]_block_invoke + 622
    frame #18: 0x00007fffb7648dc6 QuartzCore`CA::Transaction::run_commit_handlers(CATransactionPhase) + 46
    frame #19: 0x00007fffb77528f0 QuartzCore`CA::Context::commit_transaction(CA::Transaction*) + 160
    frame #20: 0x00007fffb76478a1 QuartzCore`CA::Transaction::commit() + 475
    frame #21: 0x00007fffafa4db99 AppKit`__37+[NSDisplayCycle currentDisplayCycle]_block_invoke.31 + 323
    frame #22: 0x00007fffb1b3edd7 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    frame #23: 0x00007fffb1b3ed47 CoreFoundation`__CFRunLoopDoObservers + 391
    frame #24: 0x00007fffb1b1f789 CoreFoundation`__CFRunLoopRun + 873
    frame #25: 0x00007fffb1b1f1c4 CoreFoundation`CFRunLoopRunSpecific + 420
    frame #26: 0x00007fffb1080ebc HIToolbox`RunCurrentEventLoopInMode + 240
    frame #27: 0x00007fffb1080bf9 HIToolbox`ReceiveNextEventCommon + 184
    frame #28: 0x00007fffb1080b26 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71
    frame #29: 0x00007fffaf61be24 AppKit`_DPSNextEvent + 1120
    frame #30: 0x00007fffafd9785e AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
    frame #31: 0x000000010ae59512 XUL`-[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 82
    frame #32: 0x00007fffaf6107ab AppKit`-[NSApplication run] + 926
    frame #33: 0x000000010ae5a2b5 XUL`nsAppShell::Run() + 261
    frame #34: 0x000000010b84dd44 XUL`nsAppStartup::Run() + 36
    frame #35: 0x000000010b87bb8d XUL`XREMain::XRE_mainRun() + 3533
    frame #36: 0x000000010b87be41 XUL`XREMain::XRE_main(int, char**, nsXREAppData const*) + 481
    frame #37: 0x000000010b87c184 XUL`XRE_main + 244
    frame #38: 0x00000001024c0a21 komodo`main + 1297
    frame #39: 0x00007fffc7282235 libdyld.dylib`start + 1
NeilFraser commented 7 years ago

12 minutes later, and another hang. This is going to be a long day...


(lldb) process attach --pid 25691
Process 25691 stopped
* thread #1: tid = 0x4364a, 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10
libsystem_kernel.dylib`__ulock_wait:
->  0x7fffc73b131e <+10>: jae    0x7fffc73b1328            ; <+20>
    0x7fffc73b1320 <+12>: movq   %rax, %rdi
    0x7fffc73b1323 <+15>: jmp    0x7fffc73a9caf            ; cerror_nocancel
    0x7fffc73b1328 <+20>: retq   

Executable module set to "/Applications/Komodo IDE 10.app/Contents/MacOS/komodo".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread backtrace
* thread #1: tid = 0x4364a, 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007fffc7494aff libsystem_platform.dylib`_os_ulock_wait + 25
    frame #2: 0x00007fffc74943d2 libsystem_platform.dylib`_os_unfair_lock_lock_slow + 130
    frame #3: 0x00007fffc6997169 libobjc.A.dylib`objc_object::sidetable_retain() + 81
    frame #4: 0x00007fffc6998a8f libobjc.A.dylib`_object_get_associative_reference + 217
    frame #5: 0x00007fffaf6a25f0 AppKit`-[NSView inputContext] + 296
    frame #6: 0x0000000111f26714 XUL`-[ChildView inputContext] + 100
    frame #7: 0x00007fffafff0e5c AppKit`+[NSTextInputContext currentInputContext_withFirstResponderSync:] + 148
    frame #8: 0x00007fffaf61e212 AppKit`-[NSApplication updateWindows] + 96
    frame #9: 0x00007fffafa5638f AppKit`__38-[NSApplication setWindowsNeedUpdate:]_block_invoke.2372 + 68
    frame #10: 0x00007fffb1b3edd7 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    frame #11: 0x00007fffb1b3ed47 CoreFoundation`__CFRunLoopDoObservers + 391
    frame #12: 0x00007fffb1b1f789 CoreFoundation`__CFRunLoopRun + 873
    frame #13: 0x00007fffb1b1f1c4 CoreFoundation`CFRunLoopRunSpecific + 420
    frame #14: 0x00007fffb1080ebc HIToolbox`RunCurrentEventLoopInMode + 240
    frame #15: 0x00007fffb1080bf9 HIToolbox`ReceiveNextEventCommon + 184
    frame #16: 0x00007fffb1080b26 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71
    frame #17: 0x00007fffaf61be24 AppKit`_DPSNextEvent + 1120
    frame #18: 0x00007fffafd9785e AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
    frame #19: 0x0000000111f42512 XUL`-[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 82
    frame #20: 0x00007fffaf6107ab AppKit`-[NSApplication run] + 926
    frame #21: 0x0000000111f432b5 XUL`nsAppShell::Run() + 261
    frame #22: 0x0000000112936d44 XUL`nsAppStartup::Run() + 36
    frame #23: 0x0000000112964b8d XUL`XREMain::XRE_mainRun() + 3533
    frame #24: 0x0000000112964e41 XUL`XREMain::XRE_main(int, char**, nsXREAppData const*) + 481
    frame #25: 0x0000000112965184 XUL`XRE_main + 244
    frame #26: 0x000000010c08da21 komodo`main + 1297
    frame #27: 0x00007fffc7282235 libdyld.dylib`start + 1```
tuckdesign commented 7 years ago

Yes, sometimes goes like that, sometimes works for some time. I noticed that this happens less often when komodo gets slower (big files or working long in it). Now trying to work with usb mouse instead of apple magic mouse... just a long shot...

NeilFraser commented 7 years ago

Komodo is playing with his beach ball again:

(lldb) process attach --pid 26280
Process 26280 stopped
* thread #1: tid = 0x456de, 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10
libsystem_kernel.dylib`__ulock_wait:
->  0x7fffc73b131e <+10>: jae    0x7fffc73b1328            ; <+20>
    0x7fffc73b1320 <+12>: movq   %rax, %rdi
    0x7fffc73b1323 <+15>: jmp    0x7fffc73a9caf            ; cerror_nocancel
    0x7fffc73b1328 <+20>: retq   

Executable module set to "/Applications/Komodo IDE 10.app/Contents/MacOS/komodo".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread backtrace
* thread #1: tid = 0x456de, 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007fffc7494aff libsystem_platform.dylib`_os_ulock_wait + 25
    frame #2: 0x00007fffc74943d2 libsystem_platform.dylib`_os_unfair_lock_lock_slow + 130
    frame #3: 0x00007fffc6997169 libobjc.A.dylib`objc_object::sidetable_retain() + 81
    frame #4: 0x00007fffc6998a8f libobjc.A.dylib`_object_get_associative_reference + 217
    frame #5: 0x00007fffaf799bfa AppKit`-[NSScroller hitTest:] + 92
    frame #6: 0x00007fffaf6f0f24 AppKit`-[NSView hitTest:] + 553
    frame #7: 0x00007fffaf799aec AppKit`-[NSScrollView hitTest:] + 60
    frame #8: 0x00007fffaf6f0f24 AppKit`-[NSView hitTest:] + 553
    frame #9: 0x00007fffaf6f0f24 AppKit`-[NSView hitTest:] + 553
    frame #10: 0x000000011401444b XUL`-[ChildView hitTest:] + 75
    frame #11: 0x00007fffaf6f0f24 AppKit`-[NSView hitTest:] + 553
    frame #12: 0x000000011401444b XUL`-[ChildView hitTest:] + 75
    frame #13: 0x00007fffaf6f0f24 AppKit`-[NSView hitTest:] + 553
    frame #14: 0x00007fffaf6f0f24 AppKit`-[NSView hitTest:] + 553
    frame #15: 0x00007fffaf798f00 AppKit`-[NSThemeFrame _hitTest:ignoringResizeRegion:] + 1237
    frame #16: 0x00000001140232d4 XUL`ChildViewMouseTracker::ViewForEvent(NSEvent*) + 132
    frame #17: 0x00000001140233e1 XUL`ChildViewMouseTracker::MouseMoved(NSEvent*) + 49
    frame #18: 0x00007fffaf84bdfa AppKit`-[NSTrackingArea mouseMoved:] + 150
    frame #19: 0x00007fffaff11d12 AppKit`-[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2508
    frame #20: 0x00007fffaff10f7a AppKit`-[NSWindow(NSEventRouting) sendEvent:] + 541
    frame #21: 0x000000011404721b XUL`-[ToolbarWindow sendEvent:] + 203
    frame #22: 0x00007fffafd95847 AppKit`-[NSApplication(NSEvent) sendEvent:] + 1487
    frame #23: 0x000000011403b4b1 XUL`-[GeckoNSApplication sendEvent:] + 113
    frame #24: 0x00007fffaf6107f7 AppKit`-[NSApplication run] + 1002
    frame #25: 0x000000011403c2b5 XUL`nsAppShell::Run() + 261
    frame #26: 0x0000000114a2fd44 XUL`nsAppStartup::Run() + 36
    frame #27: 0x0000000114a5db8d XUL`XREMain::XRE_mainRun() + 3533
    frame #28: 0x0000000114a5de41 XUL`XREMain::XRE_main(int, char**, nsXREAppData const*) + 481
    frame #29: 0x0000000114a5e184 XUL`XRE_main + 244
    frame #30: 0x000000010e218a21 komodo`main + 1297
    frame #31: 0x00007fffc7282235 libdyld.dylib`start + 1
Naatan commented 7 years ago

Good idea @tuckdesign. Given that I still haven't reproduced it there might be something hardware related going on?

For the record, I use a external keyboard and mouse and external monitor. My macbook is closed at all times.

tuckdesign commented 7 years ago

Changing mouse didn't help. Here it is again when switching from another app to Komodo by mouse click:

(lldb) process attach --pid 1165
Process 1165 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fffd400c31e libsystem_kernel.dylib`__ulock_wait + 10
libsystem_kernel.dylib`__ulock_wait:
->  0x7fffd400c31e <+10>: jae    0x7fffd400c328            ; <+20>
    0x7fffd400c320 <+12>: movq   %rax, %rdi
    0x7fffd400c323 <+15>: jmp    0x7fffd4004caf            ; cerror_nocancel
    0x7fffd400c328 <+20>: retq   

Executable module set to "/Applications/Komodo IDE 10.app/Contents/MacOS/komodo".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread backtrace
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fffd400c31e libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007fffd40efaff libsystem_platform.dylib`_os_ulock_wait + 25
    frame #2: 0x00007fffd40ef3d2 libsystem_platform.dylib`_os_unfair_lock_lock_slow + 130
    frame #3: 0x00007fffd35f2169 libobjc.A.dylib`objc_object::sidetable_retain() + 81
    frame #4: 0x00007fffd35f3a8f libobjc.A.dylib`_object_get_associative_reference + 217
    frame #5: 0x00007fffbc2fd5f0 AppKit`-[NSView inputContext] + 296
    frame #6: 0x000000010951a714 XUL`-[ChildView inputContext] + 100
    frame #7: 0x00007fffbcc4be5c AppKit`+[NSTextInputContext currentInputContext_withFirstResponderSync:] + 148
    frame #8: 0x00007fffbc279212 AppKit`-[NSApplication updateWindows] + 96
    frame #9: 0x00007fffbc6b138f AppKit`__38-[NSApplication setWindowsNeedUpdate:]_block_invoke.2372 + 68
    frame #10: 0x00007fffbe799dd7 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    frame #11: 0x00007fffbe799d47 CoreFoundation`__CFRunLoopDoObservers + 391
    frame #12: 0x00007fffbe77a789 CoreFoundation`__CFRunLoopRun + 873
    frame #13: 0x00007fffbe77a1c4 CoreFoundation`CFRunLoopRunSpecific + 420
    frame #14: 0x00007fffbdcdbebc HIToolbox`RunCurrentEventLoopInMode + 240
    frame #15: 0x00007fffbdcdbbf9 HIToolbox`ReceiveNextEventCommon + 184
    frame #16: 0x00007fffbdcdbb26 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71
    frame #17: 0x00007fffbc276e24 AppKit`_DPSNextEvent + 1120
    frame #18: 0x00007fffbc9f285e AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
    frame #19: 0x0000000109536512 XUL`-[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 82
    frame #20: 0x00007fffbc26b7ab AppKit`-[NSApplication run] + 926
    frame #21: 0x00000001095372b5 XUL`nsAppShell::Run() + 261
    frame #22: 0x0000000109f2ad44 XUL`nsAppStartup::Run() + 36
    frame #23: 0x0000000109f58b8d XUL`XREMain::XRE_mainRun() + 3533
    frame #24: 0x0000000109f58e41 XUL`XREMain::XRE_main(int, char**, nsXREAppData const*) + 481
    frame #25: 0x0000000109f59184 XUL`XRE_main + 244
    frame #26: 0x0000000107c08a21 komodo`main + 1297
    frame #27: 0x00007fffd3edd235 libdyld.dylib`start + 1
    frame #28: 0x00007fffd3edd235 libdyld.dylib`start + 1
(lldb) 
NeilFraser commented 7 years ago

Today will be my last day reporting freezes for a while due to a looming vacation.

(lldb) process attach --pid 29302
Process 29302 stopped
* thread #1: tid = 0x5084b, 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10
libsystem_kernel.dylib`__ulock_wait:
->  0x7fffc73b131e <+10>: jae    0x7fffc73b1328            ; <+20>
    0x7fffc73b1320 <+12>: movq   %rax, %rdi
    0x7fffc73b1323 <+15>: jmp    0x7fffc73a9caf            ; cerror_nocancel
    0x7fffc73b1328 <+20>: retq   

Executable module set to "/Applications/Komodo IDE 10.app/Contents/MacOS/komodo".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread backtrace
* thread #1: tid = 0x5084b, 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007fffc7494aff libsystem_platform.dylib`_os_ulock_wait + 25
    frame #2: 0x00007fffc74943d2 libsystem_platform.dylib`_os_unfair_lock_lock_slow + 130
    frame #3: 0x00007fffc6997169 libobjc.A.dylib`objc_object::sidetable_retain() + 81
    frame #4: 0x00007fffc6998a8f libobjc.A.dylib`_object_get_associative_reference + 217
    frame #5: 0x00007fffaf799bfa AppKit`-[NSScroller hitTest:] + 92
    frame #6: 0x00007fffaf6f0f24 AppKit`-[NSView hitTest:] + 553
    frame #7: 0x00007fffaf799aec AppKit`-[NSScrollView hitTest:] + 60
    frame #8: 0x00007fffaf6f0f24 AppKit`-[NSView hitTest:] + 553
    frame #9: 0x00007fffaf6f0f24 AppKit`-[NSView hitTest:] + 553
    frame #10: 0x000000011452344b XUL`-[ChildView hitTest:] + 75
    frame #11: 0x00007fffaf6f0f24 AppKit`-[NSView hitTest:] + 553
    frame #12: 0x000000011452344b XUL`-[ChildView hitTest:] + 75
    frame #13: 0x00007fffaf6f0f24 AppKit`-[NSView hitTest:] + 553
    frame #14: 0x00007fffaf6f0f24 AppKit`-[NSView hitTest:] + 553
    frame #15: 0x00007fffaf798f00 AppKit`-[NSThemeFrame _hitTest:ignoringResizeRegion:] + 1237
    frame #16: 0x00000001145322d4 XUL`ChildViewMouseTracker::ViewForEvent(NSEvent*) + 132
    frame #17: 0x00000001145323e1 XUL`ChildViewMouseTracker::MouseMoved(NSEvent*) + 49
    frame #18: 0x00007fffaf79ab79 AppKit`forwardMethod + 133
    frame #19: 0x00007fffaf79ab79 AppKit`forwardMethod + 133
    frame #20: 0x00007fffaf79ab79 AppKit`forwardMethod + 133
    frame #21: 0x00007fffaf79ab79 AppKit`forwardMethod + 133
    frame #22: 0x00007fffaf79ab79 AppKit`forwardMethod + 133
    frame #23: 0x00007fffaf79ab79 AppKit`forwardMethod + 133
    frame #24: 0x00007fffaf79ab79 AppKit`forwardMethod + 133
    frame #25: 0x00007fffaf79ab79 AppKit`forwardMethod + 133
    frame #26: 0x00000001493cb915 SciMoz`-[SCIContentView mouseMoved:] + 85
    frame #27: 0x00007fffaf84bdfa AppKit`-[NSTrackingArea mouseMoved:] + 150
    frame #28: 0x00007fffaff11d12 AppKit`-[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2508
    frame #29: 0x00007fffaff10f7a AppKit`-[NSWindow(NSEventRouting) sendEvent:] + 541
    frame #30: 0x000000011455621b XUL`-[ToolbarWindow sendEvent:] + 203
    frame #31: 0x00007fffafd95847 AppKit`-[NSApplication(NSEvent) sendEvent:] + 1487
    frame #32: 0x000000011454a4b1 XUL`-[GeckoNSApplication sendEvent:] + 113
    frame #33: 0x00007fffaf6107f7 AppKit`-[NSApplication run] + 1002
    frame #34: 0x000000011454b2b5 XUL`nsAppShell::Run() + 261
    frame #35: 0x0000000114f3ed44 XUL`nsAppStartup::Run() + 36
    frame #36: 0x0000000114f6cb8d XUL`XREMain::XRE_mainRun() + 3533
    frame #37: 0x0000000114f6ce41 XUL`XREMain::XRE_main(int, char**, nsXREAppData const*) + 481
    frame #38: 0x0000000114f6d184 XUL`XRE_main + 244
    frame #39: 0x000000010c50ea21 komodo`main + 1297
    frame #40: 0x00007fffc7282235 libdyld.dylib`start + 1
Naatan commented 7 years ago

Thank you @NeilFraser, hopefully we can have this fixed by the time you're back, enjoy your vacation!

NeilFraser commented 7 years ago

A negative experiment: normally Komodo is full-screen (green button), so I tried it in window mode. Still froze.

(lldb) process attach --pid 52326
Process 52326 stopped
* thread #1: tid = 0xa0624, 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10
libsystem_kernel.dylib`__ulock_wait:
->  0x7fffc73b131e <+10>: jae    0x7fffc73b1328            ; <+20>
    0x7fffc73b1320 <+12>: movq   %rax, %rdi
    0x7fffc73b1323 <+15>: jmp    0x7fffc73a9caf            ; cerror_nocancel
    0x7fffc73b1328 <+20>: retq   

Executable module set to "/Applications/Komodo IDE 10.app/Contents/MacOS/komodo".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread backtrace
* thread #1: tid = 0xa0624, 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fffc73b131e libsystem_kernel.dylib`__ulock_wait + 10
    frame #1: 0x00007fffc7494aff libsystem_platform.dylib`_os_ulock_wait + 25
    frame #2: 0x00007fffc74943d2 libsystem_platform.dylib`_os_unfair_lock_lock_slow + 130
    frame #3: 0x00007fffc6997169 libobjc.A.dylib`objc_object::sidetable_retain() + 81
    frame #4: 0x00007fffc6998a8f libobjc.A.dylib`_object_get_associative_reference + 217
    frame #5: 0x00007fffaf6a25f0 AppKit`-[NSView inputContext] + 296
    frame #6: 0x000000010288f714 XUL`-[ChildView inputContext] + 100
    frame #7: 0x00007fffafff0e5c AppKit`+[NSTextInputContext currentInputContext_withFirstResponderSync:] + 148
    frame #8: 0x00007fffaf61e212 AppKit`-[NSApplication updateWindows] + 96
    frame #9: 0x00007fffafa5638f AppKit`__38-[NSApplication setWindowsNeedUpdate:]_block_invoke.2372 + 68
    frame #10: 0x00007fffb1b3edd7 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    frame #11: 0x00007fffb1b3ed47 CoreFoundation`__CFRunLoopDoObservers + 391
    frame #12: 0x00007fffb1b1f789 CoreFoundation`__CFRunLoopRun + 873
    frame #13: 0x00007fffb1b1f1c4 CoreFoundation`CFRunLoopRunSpecific + 420
    frame #14: 0x00007fffb1080ebc HIToolbox`RunCurrentEventLoopInMode + 240
    frame #15: 0x00007fffb1080bf9 HIToolbox`ReceiveNextEventCommon + 184
    frame #16: 0x00007fffb1080b26 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71
    frame #17: 0x00007fffaf61be24 AppKit`_DPSNextEvent + 1120
    frame #18: 0x00007fffafd9785e AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
    frame #19: 0x00000001028ab512 XUL`-[GeckoNSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 82
    frame #20: 0x00007fffaf6107ab AppKit`-[NSApplication run] + 926
    frame #21: 0x00000001028ac2b5 XUL`nsAppShell::Run() + 261
    frame #22: 0x000000010329fd44 XUL`nsAppStartup::Run() + 36
    frame #23: 0x00000001032cdb8d XUL`XREMain::XRE_mainRun() + 3533
    frame #24: 0x00000001032cde41 XUL`XREMain::XRE_main(int, char**, nsXREAppData const*) + 481
    frame #25: 0x00000001032ce184 XUL`XRE_main + 244
    frame #26: 0x0000000100f7da21 komodo`main + 1297
    frame #27: 0x00007fffc7282235 libdyld.dylib`start + 1
Naatan commented 7 years ago

Hi guys, we've heard back from Apple and are making some headway, but we're gonna need more backtraces. I've updated the instructions in the first post, the backtraces we're looking for now are for all threads (not just the main thread). Please save them in a .txt and attach them to your response, as these traces are likely to be much longer.

Thank you!

coreground commented 7 years ago

another example backtraceall-komodo.txt

coreground commented 7 years ago

this one include both processes

backtraceall-komodo2.txt

Naatan commented 7 years ago

@vrurg those appear to be codeintel traces, not Komodo traces. Please use the command in the instructions, it excludes the codeintel process.

@coreground you seem to have included both, we don't need the codeintel one. But thank you! :)

vrurg commented 7 years ago

@Naatan , sorry for that! Overlooked the -v with grep in the instructions. Will be more accurate next time.

Naatan commented 7 years ago

@mrochford wrong process, please read my comment here:

https://github.com/Komodo/KomodoEdit/issues/2424#issuecomment-301254408

mrochford commented 7 years ago

backtrace.txt

mrochford commented 7 years ago

I made the lldb command a one-liner. lldb -p $(ps aux | grep komodo | grep -v codeintel | grep -v grep | awk '{print $2}') -b -o 'thread backtrace all'

Naatan commented 7 years ago

nice! I'll update my instructions, thanks @mrochford