Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Debugger freeze on mac



  • Hi all,

    after upgrade to qt creator 4.6 I'm not able to debug with mac (osx 10.13.4 - xcode 9.3 (9E145)).
    I'm using qt 5.9.1 and here is the debugger log

    sStarting debugger "LldbEngine" for ABI "x86-darwin-generic-mach_o-64bit"...
    dStart parameters: 'omh-client-app' mode: 1
    dABI: x86-darwin-generic-mach_o-64bit
    dLanguages: c++ 
    dExecutable: /Users/xxx/Development/obh/desktop-obh-client/app/bin/macosx/debug/omh.app/Contents/MacOS/omh 
    dDirectory: /Users/xxx/Development/obh/desktop-obh-client/app/bin/macosx/debug/omh.app/Contents/MacOS
    dDebugger: /Applications/Xcode.app/Contents/Developer/usr/bin/lldb
    dProject: /Users/xxx/Development/obh/desktop-obh-client
    dAdditional Search Directories:
    dSysroot: 
    dDebug Source Location: 
    dDebugger settings:
    dAdditionalArguments:   (default: )
    dAdjustBreakpointLocations: true  (default: true)
    dAllPluginBreakpoints: true  (default: true)
    dAlwaysAdjustColumnWidths: true  (default: true)
    dAutoDerefPointers: true  (default: true)
    dAutoEnrichParameters: true  (default: true)
    dAutoQuit: false  (default: false)
    dBreakEvent:   (default: )
    dBreakOnAbort: false  (default: false)
    dBreakOnCatch: false  (default: false)
    dBreakOnCrtDbgReport: false  (default: false)
    dBreakOnFatal: false  (default: false)
    dBreakOnThrow: false  (default: false)
    dBreakOnWarning: false  (default: false)
    dBreakpointCorrection: true  (default: true)
    dBreakpointsFullPath: false  (default: false)
    dCDB_Console: false  (default: false)
    dCloseBuffersOnExit: false  (default: false)
    dCloseMemoryBuffersOnExit: true  (default: true)
    dDisplayStringLimit: 100  (default: 100)
    dEnableReverseDebugging: false  (default: false)
    dExtraDumperFile:   (default: )
    dFontSizeFollowsEditor: false  (default: false)
    dGdbCustomDumperCommands:   (default: )
    dGdbPostAttachCommands:   (default: )
    dGdbStartupCommands:   (default: )
    dIdentifyDebugInfoPackages: false  (default: false)
    dIgnoreFirstChanceAccessViolation: false  (default: false)
    dIntelFlavor: false  (default: false)
    dLoadGdbDumpers2: false  (default: false)
    dLoadGdbInit: true  (default: true)
    dLogTimeStamps: false  (default: false)
    dMaximalStackDepth: 20  (default: 20)
    dMaximalStringLength: 10000  (default: 10000)
    dMultiInferior: false  (default: false)
    dNoPluginBreakpoints: false  (default: false)
    dQmlInspector.ShowAppOnTop: false  (default: false)
    dRaiseOnInterrupt: true  (default: true)
    dSelectedPluginBreakpoints: false  (default: false)
    dSelectedPluginBreakpointsPattern: .*  (default: .*)
    dShowQObjectNames2: true  (default: true)
    dShowQmlObjectTree: true  (default: true)
    dShowQtNamespace: true  (default: true)
    dShowStandardNamespace: true  (default: true)
    dShowThreadNames: false  (default: false)
    dSkipKnownFrames: false  (default: false)
    dSortStructMembers: true  (default: true)
    dSourcePaths:   (default: )
    dStationaryEditorWhileStepping: false  (default: false)
    dSwitchModeOnExit: false  (default: false)
    dSymbolPaths:   (default: )
    dTargetAsync: false  (default: false)
    dUseAddressInBreakpointsView: false  (default: false)
    dUseAddressInStackView: false  (default: false)
    dUseAlternatingRowColours: false  (default: false)
    dUseCodeModel: true  (default: true)
    dUseDebuggingHelper: true  (default: true)
    dUseDynamicType: true  (default: true)
    dUseMessageBoxForSignals: true  (default: true)
    dUsePythonDumper: true  (default: true)
    dUseToolTips: true  (default: true)
    dUseToolTipsInBreakpointsView: false  (default: false)
    dUseToolTipsInLocalsView: false  (default: false)
    dUseToolTipsInStackView: true  (default: true)
    dWarnOnReleaseBuilds: true  (default: true)
    dWatchdogTimeout: 20  (default: 20)
    dState changed from DebuggerNotReady(0) to EngineSetupRequested(1) [master]
    dCALL: SETUP ENGINE
    dSTARTING LLDB: /Applications/Xcode.app/Contents/Developer/usr/bin/lldb
    sSetting up inferior...
    <1loadDumpers({"token":1})
    <2setupInferior({"attachpid":0,"breakonmain":0,<environment suppressed>,"executable":"/Users/xxx/Development/obh/desktop-obh-client/app/bin/macosx/debug/omh.app/Contents/MacOS/omh","nativemixed":0,"platform":"","processargs":[],"remotechannel":"","startmode":1,"sysroot":"","token":2,"useterminal":0,"workingdirectory":"/Users/xxx/Development/obh/desktop-obh-client/app/bin/macosx/debug/omh.app/Contents/MacOS"})
    
    >(lldb) script sys.path.insert(1, '/Users/xxx/Qt/Qt Creator.app/Contents/Resources/debugger/')
    
    eERROR: Lldb stderr: Traceback (most recent call last):
    e  File "<string>", line 1, in <module>
    eERROR: Lldb stderr:   File "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/__init__.py", line 98, in <module>
    e    import six
    eImportError: No module named six
    eTraceback (most recent call last):
    e  File "<string>", line 1, in <module>
    eNameError: name 'run_one_line' is not defined
    eTraceback (most recent call last):
    e  File "<string>", line 1, in <module>
    eNameError: name 'run_one_line' is not defined
    eTraceback (most recent call last):
    e  File "<string>", line 1, in <module>
    eNameError: name 'run_one_line' is not defined
    eTraceback (most recent call last):
    e  File "<string>", line 1, in <module>
    eNameError: name 'run_one_line' is not defined
    eTraceback (most recent call last):
    e  File "<string>", line 1, in <module>
    eNameError: name 'run_one_line' is not defined
    eTraceback (most recent call last):
    e  File "<string>", line 1, in <module>
    eNameError: name 'run_one_line' is not defined
    eerror: python failed attempting to evaluate 'sys.path.insert(1, '/Users/xxx/Qt/Qt Creator.app/Contents/Resources/debugger/')'
    eTraceback (most recent call last):
    e  File "<string>", line 1, in <module>
    eNameError: name 'run_one_line' is not defined
    eerror: python failed attempting to evaluate 'from lldbbridge import *'
    eTraceback (most recent call last):
    e  File "<string>", line 1, in <module>
    eNameError: name 'run_one_line' is not defined
    eerror: python failed attempting to evaluate 'print(dir())'
    eTraceback (most recent call last):
    e  File "<string>", line 1, in <module>
    eNameError: name 'run_one_line' is not defined
    eERROR: Lldb stderr: error: python failed attempting to evaluate 'theDumper = Dumper()'
    eTraceback (most recent call last):
    e  File "<string>", line 1, in <module>
    eNameError: name 'run_one_line' is not defined
    eerror: python failed attempting to evaluate 'theDumper.loadDumpers({"token":1})'
    eTraceback (most recent call last):
    e  File "<string>", line 1, in <module>
    eNameError: name 'run_one_line' is not defined
    eerror: python failed attempting to evaluate 'theDumper.setupInferior({"attachpid":0,"breakonmain":0,"environment":["4170706c655f5075625375625f536f636b65745f52656e6465723d2f707269766174652f746d702f636f6d2e6170706c652e6c61756e6368642e4e684b656275526873512f52656e646572","484f4d453d2f55736572732f636c617564696f7665636368696f","4c4f474e414d453d636c617564696f7665636368696f","504154483d2f55736572732f636c617564696f7665636368696f2f51742f352e392e312f636c616e675f36342f62696e3a2f4170706c69636174696f6e732f58636f64652e6170702f436f6e74656e74732f446576656c6f7065722f546f6f6c636861696e732f58636f646544656661756c742e7863746f6f6c636861696e2f7573722f62696e3a2f7573722f62696e3a2f62696e3a2f7573722f7362696e3a2f7362696e","51544449523d2f55736572732f636c617564696f7665636368696f2f51742f352e392e312f636c616e675f3634","5348454c4c3d2f62696e2f62617368","5353485f415554485f534f434b3d2f707269766174652f746d702f636f6d2e6170706c652e6c61756e6368642e436a5334454c4b7261622f4c697374656e657273","544d504449523d2f7661722f666f6c646572732f71672f63646b6264366c6a333078336c6d6466383531796d5f5f3830303030676e2f542f","555345523d636c617564696f7665636368696f","5850435f464c4147533d307830","5850435f534552564943455f4e414d453d6f72672e71742d70726f6a6563742e717463726561746f722e3332373132","5f5f43465f555345525f544558545f454e434f44494e473d30783146353a3078303a307830"],"executable":"/Users/xxx/Development/obh/desktop-obh-client/app/bin/macosx/debug/omh.app/Contents/MacOS/omh","nativemixed":0,"platform":"","processargs":[],"remotechannel":"","startmode":1,"sysroot":"","token":2,"useterminal":0,"workingdirectory":"/Users/xxx/Development/obh/desktop-obh-client/app/bin/macosx/debug/omh.app/Contents/MacOS"})'
    >(lldb) script from lldbbridge import *
    >(lldb) script print(dir())
    >(lldb) script theDumper = Dumper()
    >(lldb) script theDumper.loadDumpers({"token":1})
    >(lldb) script theDumper.setupInferior({"attachpid":0,"breakonmain":0,"environment":["4170706c655f5075625375625f536f636b65745f52656e6465723d2f707269766174652f746d702f636f6d2e6170706c652e6c61756e6368642e4e684b656275526873512f52656e646572","484f4d453d2f55736572732f636c617564696f7665636368696f","4c4f474e414d453d636c617564696f7665636368696f","504154483d2f55736572732f636c617564696f7665636368696f2f51742f352e392e312f636c616e675f36342f62696e3a2f4170706c69636174696f6e732f58636f64652e6170702f436f6e74656e74732f446576656c6f7065722f546f6f6c636861696e732f58636f646544656661756c742e7863746f6f6c636861696e2f7573722f62696e3a2f7573722f62696e3a2f62696e3a2f7573722f7362696e3a2f7362696e","51544449523d2f55736572732f636c617564696f7665636368696f2f51742f352e392e312f636c616e675f3634","5348454c4c3d2f62696e2f62617368","5353485f415554485f534f434b3d2f707269766174652f746d702f636f6d2e6170706c652e6c61756e6368642e436a5334454c4b7261622f4c697374656e657273","544d504449523d2f7661722f666f6c646572732f71672f63646b6264366c6a333078336c6d6466383531796d5f5f3830303030676e2f542f","555345523d636c617564696f7665636368696f","5850435f464c4147533d307830","5850435f534552564943455f4e414d453d6f72672e71742d70726f6a6563742e717463726561746f722e3332373132","5f5f43465f555345525f544558545f454e434f44494e473d30783146353a3078303a307830"],"executable":"/Users/xxx/Development/obh/desktop-obh-client/app/bin/macosx/debug/omh.app/Contents/MacOS/omh","nativemixed":0,"platform":"","processargs":[],"remotechannel":"","startmode":1,"sysroot":"","token":2,"useterminal":0,"workingdirectory":"/Users/xxx/Development/obh/desktop-obh-client/app/bin/macosx/debug/omh.app/Contents/MacOS"})
    
    


  • Hi,

    I'm not using the same OSX, but i experienced similar issue with:
    LLDB: /Applications/Xcode.app/Contents/Developer/usr/bin/lldb
    I'm using this instead:
    /Library/Developer/CommandLineTools/usr/bin/lldb

    Work well with Qt 5.6/7/8 on MacOSX 10.9



  • @mpergand said in Debugger freeze on mac:

    /Library/Developer/CommandLineTools/usr/bin/lldb

    Hi,
    I tried the binary that you suggested and also /usr/bin/lldb but the error is the same



  • @cOld

    I followed the solution reported here https://forum.qt.io/topic/69419/could-not-launch-debugger-on-mac

    It is not a real solution but at least I can debug


Log in to reply