Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freeze when opening IORegistryViewer and sometimes on resume #13

Closed
osy opened this issue Jul 11, 2019 · 3 comments
Closed

Freeze when opening IORegistryViewer and sometimes on resume #13

osy opened this issue Jul 11, 2019 · 3 comments
Labels
kernel KEXT and kernel issues thunderbolt Thunderbolt issues

Comments

@osy
Copy link
Owner

osy commented Jul 11, 2019

Seems to be an issue with the companion port definitions. If TB3 controller is not powered on then ioregistryviewer freezes as well as ioreg. Sometimes freeze happens on resume as well.

Suspect it's related the the companion ports when the TB3 controller is not powered on. Calling ioreg -a shows a freeze on the companion port entry.

@osy osy added the kernel KEXT and kernel issues label Jul 11, 2019
@osy osy changed the title Freeze when opening IORegistryViewer Freeze when opening IORegistryViewer and sometimes on resume Jul 15, 2019
@osy
Copy link
Owner Author

osy commented Jul 15, 2019

The freeze on resume issue seems to happen randomly (i.e. power nap enabled so wakeup happens on schedule, freeze would usually happen after idling overnight) only when a USB device is plugged in.

Should test disabling the USB companion ports and disabling TB3 and seeing if the freeze still occurs.

@HorstBrack75
Copy link

Indeed, when you plug in an USB3 device to the blue front port, the freeze seems to be gone.

@osy
Copy link
Owner Author

osy commented Jul 30, 2019

Spindump:

  Thread 0x2240             DispatchQueue 1           1000 samples (1-1000)     priority 46 (base 46)
  1000  start + 1 (libdyld.dylib + 91093) [0x7fff6017e3d5]
    1000  NSApplicationMain + 777 (AppKit + 11644) [0x7fff318c0d7c]
      1000  -[NSApplication run] + 699 (AppKit + 79932) [0x7fff318d183c]
        1000  -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1361 (AppKit + 104223) [0x7fff318d771f]
          1000  _DPSNextEvent + 1724 (AppKit + 109694) [0x7fff318d8c7e]
            1000  AEProcessAppleEvent + 54 (HIToolbox + 81559) [0x7fff33547e97]
              1000  aeProcessAppleEvent + 414 (AE + 35585) [0x7fff35476b01]
                1000  dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 41 (AE + 35881) [0x7fff35476c29]
                  1000  aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 1815 (AE + 37783) [0x7fff35477397]
                    1000  _NSAppleEventManagerGenericHandler + 102 (Foundation + 375401) [0x7fff364f5a69]
                      1000  -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 286 (Foundation + 375788) [0x7fff364f5bec]
                        1000  -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 688 (AppKit + 125087) [0x7fff318dc89f]
                          1000  -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 539 (AppKit + 126018) [0x7fff318dcc42]
                            1000  -[NSApplication _reopenWindowsAsNecessaryIncludingRestorableState:completionHandler:] + 249 (AppKit + 126541) [0x7fff318dce4d]
                              1000  -[NSDocumentController(NSInternal) _autoreopenDocumentsIgnoringExpendable:withCompletionHandler:] + 722 (AppKit + 128506) [0x7fff318dd5fa]
                                1000  __97-[NSDocumentController(NSInternal) _autoreopenDocumentsIgnoringExpendable:withCompletionHandler:]_block_invoke_3 + 95 (AppKit + 129557) [0x7fff318dda15]
                                  1000  -[NSDocumentController(NSInternal) _autoreopenDocumentsFromRecords:withCompletionHandler:] + 342 (AppKit + 129939) [0x7fff318ddb93]
                                    1000  __90-[NSDocumentController(NSInternal) _autoreopenDocumentsFromRecords:withCompletionHandler:]_block_invoke + 66 (AppKit + 130142) [0x7fff318ddc5e]
                                      1000  __58-[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:]_block_invoke + 234 (AppKit + 130786) [0x7fff318ddee2]
                                        1000  -[NSApplication _doOpenUntitled] + 451 (AppKit + 132092) [0x7fff318de3fc]
                                          1000  -[NSDocumentController(NSInternal) _openUntitled] + 102 (AppKit + 132852) [0x7fff318de6f4]
                                            1000  -[NSDocumentController openUntitledDocumentAndDisplay:error:] + 349 (AppKit + 2730659) [0x7fff31b58aa3]
                                              1000  -[NSDocumentController makeUntitledDocumentOfType:error:] + 449 (AppKit + 2732607) [0x7fff31b5923f]
                                                1000  ??? (IORegistryExplorer + 24454) [0x10fddff86]
                                                  1000  ??? (IORegistryExplorer + 14402) [0x10fddd842]
                                                    1000  ??? (IORegistryExplorer + 17407) [0x10fdde3ff]
                                                      1000  ??? (IORegistryExplorer + 50039) [0x10fde6377]
                                                        1000  ??? (IORegistryExplorer + 52343) [0x10fde6c77]
                                                          1000  ??? (IORegistryExplorer + 51649) [0x10fde69c1]
                                                            1000  ??? (IORegistryExplorer + 19210) [0x10fddeb0a]
                                                              1000  ??? (IORegistryExplorer + 18341) [0x10fdde7a5]
                                                                1000  ??? (IORegistryExplorer + 46954) [0x10fde576a]
                                                                  1000  ??? (IORegistryExplorer + 50367) [0x10fde64bf]
                                                                    1000  IORegistryEntryCreateCFProperties + 56 (IOKit + 37031) [0x7fff36b5a0a7]
                                                                      1000  io_registry_entry_get_properties_bin + 104 (IOKit + 37256) [0x7fff36b5a188]
                                                                        1000  mach_msg_trap + 10 (libsystem_kernel.dylib + 4650) [0x7fff602b322a]
                                                                         *1000  hndl_mach_scall64 + 22 (kernel + 1426214) [0xffffff800035c326]
                                                                           *1000  mach_call_munger64 + 599 (kernel + 2890071) [0xffffff80004c1957]
                                                                             *1000  mach_msg_overwrite_trap + 974 (kernel + 1717502) [0xffffff80003a34fe]
                                                                               *1000  ipc_kmsg_send + 209 (kernel + 1633441) [0xffffff800038eca1]
                                                                                 *1000  ipc_kobject_server + 300 (kernel + 1786476) [0xffffff80003b426c]
                                                                                   *1000  ??? (kernel + 2718807) [0xffffff8000497c57]
                                                                                     *1000  is_io_registry_entry_get_properties_bin + 179 (kernel + 8966931) [0xffffff8000a8d313]
                                                                                       *1000  IORegistryEntry::serializeProperties(OSSerialize*) const + 118 (kernel + 8523350) [0xffffff8000a20e56]
                                                                                         *1000  OSDictionary::serialize(OSSerialize*) const + 35 (kernel + 8188595) [0xffffff80009cf2b3]
                                                                                           *1000  OSSerialize::previouslySerialized(OSMetaClassBase const*) + 50 (kernel + 8301138) [0xffffff80009eaa52]
                                                                                             *1000  OSSerialize::binarySerialize(OSMetaClassBase const*) + 782 (kernel + 8339822) [0xffffff80009f416e]
                                                                                               *1000  AppleUSBHostPort::serializePortStatus(void*, OSSerialize*) + 96 (IOUSBHostFamily + 113346) [0xffffff7f8134bac2]
                                                                                                 *1000  AppleUSBHostPort::getPortStatus() + 75 (IOUSBHostFamily + 111093) [0xffffff7f8134b1f5]
                                                                                                   *1000  IOCommandGate::runAction(int (*)(OSObject*, void*, void*, void*, void*), void*, void*, void*, void*) + 73 (kernel + 8756489) [0xffffff8000a59d09]
                                                                                                     *1000  IOWorkLoop::closeGate() + 37 (kernel + 8740533) [0xffffff8000a55eb5]
                                                                                                       *1000  ??? (kernel + 2961000) [0xffffff80004d2e68]
                                                                                                         *1000  lck_mtx_lock_wait_x86 + 505 (kernel + 2963289) [0xffffff80004d3759]
                                                                                                           *1000  thread_block_reason + 175 (kernel + 1881247) [0xffffff80003cb49f]
                                                                                                             *1000  ??? (kernel + 1887609) [0xffffff80003ccd79]
                                                                                                               *1000  machine_switch_context + 195 (kernel + 2975843) [0xffffff80004d6863] (blocked by kernel mutex owned by kernel_task [0] thread 0x134)

@osy osy closed this as completed in 9d6e711 Sep 2, 2019
osy pushed a commit that referenced this issue Sep 16, 2019
Will monitor if this breaks anything else
@osy osy added the thunderbolt Thunderbolt issues label Dec 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel KEXT and kernel issues thunderbolt Thunderbolt issues
Projects
None yet
Development

No branches or pull requests

2 participants