Unable to start debugger
-
Hello,
I have a project configured with cmake and wanted to debug this program. I found very similar topics, but didn't find any solution. I use Debian 9 64bit, Qt 5.7.1, Qt Creator 4.2.0. Previous projects with exactly the same CMakeLists.txt wored. In the meantime I was reinstalling opencv, so I suppose something wrong went there, but what? I can run program after build with make, or debug in terminal with gdb. Building debug in QtCreator succeed, but after debug try in Application output I can see:
Debugging starts Debugging has failed Debugging has finished
Debug log shows that(I post whole log):
wNOTE: This log contains possibly confidential information about your machine, environment variables, in-memory data of the processes you are debugging, and more. It is never transferred over the internet by Qt Creator, and only stored to disk if you manually use the respective option from the context menu, or through mechanisms that are not under Qt Creator's control, for instance in swap files. wYou may be asked to share the contents of this log when reporting bugs related to debugger operation. In this case, make sure your submission does not contain data you do not want to or you are not allowed to share. w sStarting debugger "GdbEngine" for ABI "x86-linux-generic-elf-64bit"... dStart parameters: 'sift' mode: 1 dABI: x86-linux-generic-elf-64bit dLanguages: c++ dExecutable: /home/matt/projects/sift/debug/sift ../WomanInForest ../Woman dDirectory: /home/matt/projects/sift/debug dDebugger: /usr/bin/gdb dProject: /home/matt/projects/siftAddtional Search Directories: dRemote: :0 dSysroot: dDebug Source Location: dDebugger settings: dSymbolPaths: (default: ) dSourcePaths: (default: ) dBreakEvent: (default: ) dBreakOnCrtDbgReport: false (default: false) dAlwaysAdjustColumnWidths: true (default: true) dExtraDumperFile: (default: ) dGdbCustomDumperCommands: (default: ) dAdditionalArguments: (default: ) dAutoQuit: false (default: false) dLogTimeStamps: false (default: false) dUseAlternatingRowColours: false (default: false) dFontSizeFollowsEditor: false (default: false) dUseMessageBoxForSignals: true (default: true) dRaiseOnInterrupt: true (default: true) dStationaryEditorWhileStepping: false (default: false) dUseDebuggingHelper: true (default: true) dUseCodeModel: true (default: true) dCloseBuffersOnExit: false (default: false) dCloseMemoryBuffersOnExit: true (default: true) dSwitchModeOnExit: false (default: false) dBreakpointsFullPath: false (default: false) dShowQtNamespace: true (default: true) dShowQObjectNames2: true (default: true) dSortStructMembers: true (default: true) dAutoDerefPointers: true (default: true) dMaximalStackDepth: 20 (default: 20) dShowStandardNamespace: true (default: true) dAllPluginBreakpoints: true (default: true) dSelectedPluginBreakpoints: false (default: false) dAdjustBreakpointLocations: true (default: true) dMaximalStringLength: 10000 (default: 10000) dDisplayStringLimit: 100 (default: 100) dSkipKnownFrames: false (default: false) dEnableReverseDebugging: false (default: false) dLoadGdbDumpers2: false (default: false) dAttemptQuickStart: false (default: false) dGdbStartupCommands: (default: ) dGdbPostAttachCommands: (default: ) dCDB_Console: false (default: false) dBreakpointCorrection: true (default: true) dIgnoreFirstChanceAccessViolation: false (default: false) dLoadGdbInit: true (default: true) dWarnOnReleaseBuilds: true (default: true) dMultiInferior: false (default: false) dIntelFlavor: false (default: false) dIdentifyDebugInfoPackages: false (default: false) dWatchdogTimeout: 20 (default: 20) dAutoEnrichParameters: true (default: true) dUseDynamicType: true (default: true) dTargetAsync: false (default: false) dBreakOnWarning: false (default: false) dBreakOnFatal: false (default: false) dBreakOnAbort: false (default: false) dShowQmlObjectTree: true (default: true) dNoPluginBreakpoints: false (default: false) dSelectedPluginBreakpointsPattern: .* (default: .*) dBreakOnThrow: false (default: false) dBreakOnCatch: false (default: false) dQmlInspector.ShowAppOnTop: false (default: false) dUseToolTipsInBreakpointsView: true (default: true) dUseAddressInBreakpointsView: false (default: false) dUseAddressInStackView: false (default: false) dShowThreadNames: false (default: false) dUseToolTips: true (default: true) dUseToolTipsInLocalsView: false (default: false) dUseToolTipsInBreakpointsView: true (default: false) *** dState changed from DebuggerNotReady(0) to EngineSetupRequested(1) [master] dQUEUE: SETUP ENGINE dCALL: SETUP ENGINE dEXAMINING /home/matt/projects/sift/debug/sift dELF SECTIONS: .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .plt.got .text .fini .rodata .eh_frame_hdr .eh_frame .gcc_except_table .init_array .fini_array .jcr .data.rel.ro .dynamic .got .got.plt .data .bss .comment .debug_aranges .debug_info .debug_abbrev .debug_line .debug_str .debug_ranges .symtab .strtab .shstrtab dTRYING TO START ADAPTER dENABLING TEST CASE: 0 dSTARTING /usr/bin/gdb -i mi --tty=/tmp/QtCreator.IR3354 dGDB STARTED, INITIALIZING IT <1show version <2show debug-file-directory <3set print object on <4set breakpoint pending on <5set print elements 10000 <6set unwindonsignal on <7set width 0 <8set height 0 sSetting up inferior... <9set substitute-path /var/tmp/qt-src /usr/include/x86_64-linux-gnu <10-interpreter-exec console "set auto-solib-add on" <11python sys.path.insert(1, '/usr/share/qtcreator/debugger/') <12python sys.path.append('/usr/bin/data-directory/python') <13python from gdbbridge import * <14python theDumper.loadDumpers({"token":14}) >=thread-group-added,id="i1" >~"GNU gdb (Debian 7.12-6) 7.12.0.20161007-git\n" >~"Copyright (C) 2016 Free Software Foundation, Inc.\n" >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" >~"This GDB was configured as \"x86_64-linux-gnu\".\nType \"show configuration\" for configuration details." >~"\nFor bug reporting instructions, please see:\n" >~"<http://www.gnu.org/software/gdb/bugs/>.\n" >~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n" >~"For help, type \"help\".\n" >~"Type \"apropos word\" to search for commands related to \"word\".\n" >&"show version\n" >~"GNU gdb (Debian 7.12-6) 7.12.0.20161007-git\n" >~"Copyright (C) 2016 Free Software Foundation, Inc.\n" >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" >~"This GDB was configured as \"x86_64-linux-gnu\".\nType \"show configuration\" for configuration details." >~"\nFor bug reporting instructions, please see:\n" >~"<http://www.gnu.org/software/gdb/bugs/>.\n" >~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n" >~"For help, type \"help\".\n" >~"Type \"apropos word\" to search for commands related to \"word\".\n" >1^done dPARSING VERSION: 1^done dSUPPORTED GDB VERSION GNU gdb (Debian 7.12-6) 7.12.0.20161007-git dCopyright (C) 2016 Free Software Foundation, Inc. dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> dThis is free software: you are free to change and redistribute it. dThere is NO WARRANTY, to the extent permitted by law. Type "show copying" dand "show warranty" for details. dThis GDB was configured as "x86_64-linux-gnu". dType "show configuration" for configuration details. dFor bug reporting instructions, please see: d<http://www.gnu.org/software/gdb/bugs/>. dFind the GDB manual and other documentation resources online at: d<http://www.gnu.org/software/gdb/documentation/>. dFor help, type "help". dType "apropos word" to search for commands related to "word". dGNU gdb (Debian 7.12-6) 7.12.0.20161007-git dCopyright (C) 2016 Free Software Foundation, Inc. dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> dThis is free software: you are free to change and redistribute it. dThere is NO WARRANTY, to the extent permitted by law. Type "show copying" dand "show warranty" for details. dThis GDB was configured as "x86_64-linux-gnu". dType "show configuration" for configuration details. dFor bug reporting instructions, please see: d<http://www.gnu.org/software/gdb/bugs/>. dFind the GDB manual and other documentation resources online at: d<http://www.gnu.org/software/gdb/documentation/>. dFor help, type "help". dType "apropos word" to search for commands related to "word". dUSING GDB VERSION: 71200, BUILD: 6 <15-interpreter-exec console "set target-async off" >&"show debug-file-directory\n" >~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n" >2^done >&"set print object on\n" >=cmd-param-changed,param="print object",value="on" >3^done >&"set breakpoint pending on\n" >=cmd-param-changed,param="breakpoint pending",value="on" >4^done >&"set print elements 10000\n" >=cmd-param-changed,param="print elements",value="10000" >5^done >&"set unwindonsignal on\n" >=cmd-param-changed,param="unwindonsignal",value="on" >6^done >&"set width 0\n" >=cmd-param-changed,param="width",value="4294967295" >7^done >&"set height 0\n" >8^done >&"set substitute-path /var/tmp/qt-src /usr/include/x86_64-linux-gnu\n" >9^done >10^done >&"python sys.path.insert(1, '/usr/share/qtcreator/debugger/')\n" >11^done >&"python sys.path.append('/usr/bin/data-directory/python')\n" >12^done >&"python from gdbbridge import *\n" >13^done >&"python theDumper.loadDumpers({\"token\":14})\n" >&"Traceback (most recent call last):\n" >&" File \"<string>\", line 1, in <module>\n" >&" File \"/usr/share/qtcreator/debugger/dumper.py\", line 2364, in loadDumpers\n" >&" msg = self.setupDumpers()\n" >&" File \"/usr/share/qtcreator/debugger/dumper.py\", line 2337, in setupDumpers\n" >&" m = __import__(mod)\n" >&"ImportError: No module named 'opencvtypes'\n" >&"Error while executing Python code.\n" >14^error,msg="Error while executing Python code." dNOTE: ENGINE SETUP FAILED dState changed from EngineSetupRequested(1) to EngineSetupFailed(2) [master] dHANDLE RUNCONTROL FINISHED sDebugger finished. dHANDLE RUNCONTROL START FAILED dState changed from EngineSetupFailed(2) to DebuggerFinished(22) [master] dQUIT DEBUGGER REQUESTED IN STATE 22 >15^done dCOOKIE FOR TOKEN 15 ALREADY EATEN (DebuggerFinished). TWO RESPONSES FOR ONE COMMAND?
Seeing problem with opencvtypes I found it is something in Qt Debugger - after reinstalling Qt Creator error still occurs :/ I also reinstalled python-opencv. What can I do?
-
Hello,
I have a project configured with cmake and wanted to debug this program. I found very similar topics, but didn't find any solution. I use Debian 9 64bit, Qt 5.7.1, Qt Creator 4.2.0. Previous projects with exactly the same CMakeLists.txt wored. In the meantime I was reinstalling opencv, so I suppose something wrong went there, but what? I can run program after build with make, or debug in terminal with gdb. Building debug in QtCreator succeed, but after debug try in Application output I can see:
Debugging starts Debugging has failed Debugging has finished
Debug log shows that(I post whole log):
wNOTE: This log contains possibly confidential information about your machine, environment variables, in-memory data of the processes you are debugging, and more. It is never transferred over the internet by Qt Creator, and only stored to disk if you manually use the respective option from the context menu, or through mechanisms that are not under Qt Creator's control, for instance in swap files. wYou may be asked to share the contents of this log when reporting bugs related to debugger operation. In this case, make sure your submission does not contain data you do not want to or you are not allowed to share. w sStarting debugger "GdbEngine" for ABI "x86-linux-generic-elf-64bit"... dStart parameters: 'sift' mode: 1 dABI: x86-linux-generic-elf-64bit dLanguages: c++ dExecutable: /home/matt/projects/sift/debug/sift ../WomanInForest ../Woman dDirectory: /home/matt/projects/sift/debug dDebugger: /usr/bin/gdb dProject: /home/matt/projects/siftAddtional Search Directories: dRemote: :0 dSysroot: dDebug Source Location: dDebugger settings: dSymbolPaths: (default: ) dSourcePaths: (default: ) dBreakEvent: (default: ) dBreakOnCrtDbgReport: false (default: false) dAlwaysAdjustColumnWidths: true (default: true) dExtraDumperFile: (default: ) dGdbCustomDumperCommands: (default: ) dAdditionalArguments: (default: ) dAutoQuit: false (default: false) dLogTimeStamps: false (default: false) dUseAlternatingRowColours: false (default: false) dFontSizeFollowsEditor: false (default: false) dUseMessageBoxForSignals: true (default: true) dRaiseOnInterrupt: true (default: true) dStationaryEditorWhileStepping: false (default: false) dUseDebuggingHelper: true (default: true) dUseCodeModel: true (default: true) dCloseBuffersOnExit: false (default: false) dCloseMemoryBuffersOnExit: true (default: true) dSwitchModeOnExit: false (default: false) dBreakpointsFullPath: false (default: false) dShowQtNamespace: true (default: true) dShowQObjectNames2: true (default: true) dSortStructMembers: true (default: true) dAutoDerefPointers: true (default: true) dMaximalStackDepth: 20 (default: 20) dShowStandardNamespace: true (default: true) dAllPluginBreakpoints: true (default: true) dSelectedPluginBreakpoints: false (default: false) dAdjustBreakpointLocations: true (default: true) dMaximalStringLength: 10000 (default: 10000) dDisplayStringLimit: 100 (default: 100) dSkipKnownFrames: false (default: false) dEnableReverseDebugging: false (default: false) dLoadGdbDumpers2: false (default: false) dAttemptQuickStart: false (default: false) dGdbStartupCommands: (default: ) dGdbPostAttachCommands: (default: ) dCDB_Console: false (default: false) dBreakpointCorrection: true (default: true) dIgnoreFirstChanceAccessViolation: false (default: false) dLoadGdbInit: true (default: true) dWarnOnReleaseBuilds: true (default: true) dMultiInferior: false (default: false) dIntelFlavor: false (default: false) dIdentifyDebugInfoPackages: false (default: false) dWatchdogTimeout: 20 (default: 20) dAutoEnrichParameters: true (default: true) dUseDynamicType: true (default: true) dTargetAsync: false (default: false) dBreakOnWarning: false (default: false) dBreakOnFatal: false (default: false) dBreakOnAbort: false (default: false) dShowQmlObjectTree: true (default: true) dNoPluginBreakpoints: false (default: false) dSelectedPluginBreakpointsPattern: .* (default: .*) dBreakOnThrow: false (default: false) dBreakOnCatch: false (default: false) dQmlInspector.ShowAppOnTop: false (default: false) dUseToolTipsInBreakpointsView: true (default: true) dUseAddressInBreakpointsView: false (default: false) dUseAddressInStackView: false (default: false) dShowThreadNames: false (default: false) dUseToolTips: true (default: true) dUseToolTipsInLocalsView: false (default: false) dUseToolTipsInBreakpointsView: true (default: false) *** dState changed from DebuggerNotReady(0) to EngineSetupRequested(1) [master] dQUEUE: SETUP ENGINE dCALL: SETUP ENGINE dEXAMINING /home/matt/projects/sift/debug/sift dELF SECTIONS: .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .plt.got .text .fini .rodata .eh_frame_hdr .eh_frame .gcc_except_table .init_array .fini_array .jcr .data.rel.ro .dynamic .got .got.plt .data .bss .comment .debug_aranges .debug_info .debug_abbrev .debug_line .debug_str .debug_ranges .symtab .strtab .shstrtab dTRYING TO START ADAPTER dENABLING TEST CASE: 0 dSTARTING /usr/bin/gdb -i mi --tty=/tmp/QtCreator.IR3354 dGDB STARTED, INITIALIZING IT <1show version <2show debug-file-directory <3set print object on <4set breakpoint pending on <5set print elements 10000 <6set unwindonsignal on <7set width 0 <8set height 0 sSetting up inferior... <9set substitute-path /var/tmp/qt-src /usr/include/x86_64-linux-gnu <10-interpreter-exec console "set auto-solib-add on" <11python sys.path.insert(1, '/usr/share/qtcreator/debugger/') <12python sys.path.append('/usr/bin/data-directory/python') <13python from gdbbridge import * <14python theDumper.loadDumpers({"token":14}) >=thread-group-added,id="i1" >~"GNU gdb (Debian 7.12-6) 7.12.0.20161007-git\n" >~"Copyright (C) 2016 Free Software Foundation, Inc.\n" >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" >~"This GDB was configured as \"x86_64-linux-gnu\".\nType \"show configuration\" for configuration details." >~"\nFor bug reporting instructions, please see:\n" >~"<http://www.gnu.org/software/gdb/bugs/>.\n" >~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n" >~"For help, type \"help\".\n" >~"Type \"apropos word\" to search for commands related to \"word\".\n" >&"show version\n" >~"GNU gdb (Debian 7.12-6) 7.12.0.20161007-git\n" >~"Copyright (C) 2016 Free Software Foundation, Inc.\n" >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" >~"This GDB was configured as \"x86_64-linux-gnu\".\nType \"show configuration\" for configuration details." >~"\nFor bug reporting instructions, please see:\n" >~"<http://www.gnu.org/software/gdb/bugs/>.\n" >~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n" >~"For help, type \"help\".\n" >~"Type \"apropos word\" to search for commands related to \"word\".\n" >1^done dPARSING VERSION: 1^done dSUPPORTED GDB VERSION GNU gdb (Debian 7.12-6) 7.12.0.20161007-git dCopyright (C) 2016 Free Software Foundation, Inc. dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> dThis is free software: you are free to change and redistribute it. dThere is NO WARRANTY, to the extent permitted by law. Type "show copying" dand "show warranty" for details. dThis GDB was configured as "x86_64-linux-gnu". dType "show configuration" for configuration details. dFor bug reporting instructions, please see: d<http://www.gnu.org/software/gdb/bugs/>. dFind the GDB manual and other documentation resources online at: d<http://www.gnu.org/software/gdb/documentation/>. dFor help, type "help". dType "apropos word" to search for commands related to "word". dGNU gdb (Debian 7.12-6) 7.12.0.20161007-git dCopyright (C) 2016 Free Software Foundation, Inc. dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> dThis is free software: you are free to change and redistribute it. dThere is NO WARRANTY, to the extent permitted by law. Type "show copying" dand "show warranty" for details. dThis GDB was configured as "x86_64-linux-gnu". dType "show configuration" for configuration details. dFor bug reporting instructions, please see: d<http://www.gnu.org/software/gdb/bugs/>. dFind the GDB manual and other documentation resources online at: d<http://www.gnu.org/software/gdb/documentation/>. dFor help, type "help". dType "apropos word" to search for commands related to "word". dUSING GDB VERSION: 71200, BUILD: 6 <15-interpreter-exec console "set target-async off" >&"show debug-file-directory\n" >~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n" >2^done >&"set print object on\n" >=cmd-param-changed,param="print object",value="on" >3^done >&"set breakpoint pending on\n" >=cmd-param-changed,param="breakpoint pending",value="on" >4^done >&"set print elements 10000\n" >=cmd-param-changed,param="print elements",value="10000" >5^done >&"set unwindonsignal on\n" >=cmd-param-changed,param="unwindonsignal",value="on" >6^done >&"set width 0\n" >=cmd-param-changed,param="width",value="4294967295" >7^done >&"set height 0\n" >8^done >&"set substitute-path /var/tmp/qt-src /usr/include/x86_64-linux-gnu\n" >9^done >10^done >&"python sys.path.insert(1, '/usr/share/qtcreator/debugger/')\n" >11^done >&"python sys.path.append('/usr/bin/data-directory/python')\n" >12^done >&"python from gdbbridge import *\n" >13^done >&"python theDumper.loadDumpers({\"token\":14})\n" >&"Traceback (most recent call last):\n" >&" File \"<string>\", line 1, in <module>\n" >&" File \"/usr/share/qtcreator/debugger/dumper.py\", line 2364, in loadDumpers\n" >&" msg = self.setupDumpers()\n" >&" File \"/usr/share/qtcreator/debugger/dumper.py\", line 2337, in setupDumpers\n" >&" m = __import__(mod)\n" >&"ImportError: No module named 'opencvtypes'\n" >&"Error while executing Python code.\n" >14^error,msg="Error while executing Python code." dNOTE: ENGINE SETUP FAILED dState changed from EngineSetupRequested(1) to EngineSetupFailed(2) [master] dHANDLE RUNCONTROL FINISHED sDebugger finished. dHANDLE RUNCONTROL START FAILED dState changed from EngineSetupFailed(2) to DebuggerFinished(22) [master] dQUIT DEBUGGER REQUESTED IN STATE 22 >15^done dCOOKIE FOR TOKEN 15 ALREADY EATEN (DebuggerFinished). TWO RESPONSES FOR ONE COMMAND?
Seeing problem with opencvtypes I found it is something in Qt Debugger - after reinstalling Qt Creator error still occurs :/ I also reinstalled python-opencv. What can I do?
@Morales1235 said in Unable to start debugger:
Qt Debugger
There is no such thing, QtCreator uses GDB on Linux.
"ImportError: No module named 'opencvtypes'\n"
You need to install Python package containing opencvtypes module.
-
@jsulm said in Unable to start debugger:
You need to install Python package containing opencvtypes module.
Of course I supposed that, but how can I find such thing? Only place i found something about opencvtypes was QtCreator repository, directory debugger, that's why I mentioned 'Qt debugger' and reinstalled Qt Creator.
#Edit
I have manually downloaded opencvmodules.py and pasted into /usr/share/edbugger, where the others *.py files was. -
@jsulm said in Unable to start debugger:
You need to install Python package containing opencvtypes module.
Of course I supposed that, but how can I find such thing? Only place i found something about opencvtypes was QtCreator repository, directory debugger, that's why I mentioned 'Qt debugger' and reinstalled Qt Creator.
#Edit
I have manually downloaded opencvmodules.py and pasted into /usr/share/edbugger, where the others *.py files was.@Morales1235 I'm not sure which package you need to install. On my Ubuntu machine I see "python-opencv", maybe this one.
-
Hello,
I have a similar problem with the following error message:
>=thread-group-added,id="i1" >~"GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git\n" >~"Copyright (C) 2018 Free Software Foundation, Inc.\n" >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" >~"This GDB was configured as \"aarch64-linux-gnu\".\nType \"show configuration\" for configuration details." >~"\nFor bug reporting instructions, please see:\n" >~"<http://www.gnu.org/software/gdb/bugs/>.\n" >~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n" >~"For help, type \"help\".\n" >~"Type \"apropos word\" to search for commands related to \"word\".\n" >&"show version\n" >~"GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git\n" >~"Copyright (C) 2018 Free Software Foundation, Inc.\n" >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" >~"This GDB was configured as \"aarch64-linux-gnu\".\nType \"show configuration\" for configuration details." >~"\nFor bug reporting instructions, please see:\n" >~"<http://www.gnu.org/software/gdb/bugs/>.\n" >~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n" >~"For help, type \"help\".\n" >~"Type \"apropos word\" to search for commands related to \"word\".\n" >1^done dPARSING VERSION: 1^done dSUPPORTED GDB VERSION GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git dCopyright (C) 2018 Free Software Foundation, Inc. dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> dThis is free software: you are free to change and redistribute it. dThere is NO WARRANTY, to the extent permitted by law. Type "show copying" dand "show warranty" for details. dThis GDB was configured as "aarch64-linux-gnu". dType "show configuration" for configuration details. dFor bug reporting instructions, please see: d<http://www.gnu.org/software/gdb/bugs/>. dFind the GDB manual and other documentation resources online at: d<http://www.gnu.org/software/gdb/documentation/>. dFor help, type "help". dType "apropos word" to search for commands related to "word". dGNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git dCopyright (C) 2018 Free Software Foundation, Inc. dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> dThis is free software: you are free to change and redistribute it. dThere is NO WARRANTY, to the extent permitted by law. Type "show copying" dand "show warranty" for details. dThis GDB was configured as "aarch64-linux-gnu". dType "show configuration" for configuration details. dFor bug reporting instructions, please see: d<http://www.gnu.org/software/gdb/bugs/>. dFind the GDB manual and other documentation resources online at: d<http://www.gnu.org/software/gdb/documentation/>. dFor help, type "help". dType "apropos word" to search for commands related to "word". dUSING GDB VERSION: 80100, BUILD: 0 <14-interpreter-exec console "set target-async off" >&"show debug-file-directory\n" >~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n" >2^done >&"set print object on\n" >=cmd-param-changed,param="print object",value="on" >3^done >&"set breakpoint pending on\n" >=cmd-param-changed,param="breakpoint pending",value="on" >4^done >&"set print elements 10000\n" >=cmd-param-changed,param="print elements",value="10000" >5^done >&"set unwindonsignal on\n" >=cmd-param-changed,param="unwindonsignal",value="on" >6^done >&"set width 0\n" >=cmd-param-changed,param="width",value="4294967295" >7^done >&"set height 0\n" >8^done >&"set substitute-path /var/tmp/qt-src /usr/include/aarch64-linux-gnu\n" >9^done >&"python sys.path.insert(1, '/usr/share/qtcreator/debugger/')\n" >10^done >&"python sys.path.append('/usr/bin/data-directory/python')\n" >11^done >&"python from gdbbridge import *\n" >12^done >&"python theDumper.loadDumpers({\"token\":13})\n" >&"Traceback (most recent call last):\n" >&" File \"<string>\", line 1, in <module>\n" >&" File \"/usr/share/qtcreator/debugger/dumper.py\", line 2483, in loadDumpers\n" >&" msg = self.setupDumpers()\n" >&" File \"/usr/share/qtcreator/debugger/dumper.py\", line 2456, in setupDumpers\n" >&" m = __import__(mod)\n" >&"ModuleNotFoundError: No module named 'opencvtypes'\n" >&"Error while executing Python code.\n" >13^error,msg="Error while executing Python code." dNOTE: ENGINE SETUP FAILED dState changed from EngineSetupRequested(1) to EngineSetupFailed(2) [master] <Debugging has failed dState changed from EngineSetupFailed(2) to DebuggerFinished(22) [master] dQUIT DEBUGGER REQUESTED IN STATE 22 >14^done dCOOKIE FOR TOKEN 14 ALREADY EATEN (DebuggerFinished). TWO RESPONSES FOR ONE COMMAND? d dNON-CRITICAL TIMEOUT dCOMMANDS STILL IN PROGRES
OpenCV 4.3.0 is linked to the project properly, but cannot debug. Is there a solution for this? @jsulm @Morales1235 ?
-
Hello,
I have a similar problem with the following error message:
>=thread-group-added,id="i1" >~"GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git\n" >~"Copyright (C) 2018 Free Software Foundation, Inc.\n" >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" >~"This GDB was configured as \"aarch64-linux-gnu\".\nType \"show configuration\" for configuration details." >~"\nFor bug reporting instructions, please see:\n" >~"<http://www.gnu.org/software/gdb/bugs/>.\n" >~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n" >~"For help, type \"help\".\n" >~"Type \"apropos word\" to search for commands related to \"word\".\n" >&"show version\n" >~"GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git\n" >~"Copyright (C) 2018 Free Software Foundation, Inc.\n" >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" >~"This GDB was configured as \"aarch64-linux-gnu\".\nType \"show configuration\" for configuration details." >~"\nFor bug reporting instructions, please see:\n" >~"<http://www.gnu.org/software/gdb/bugs/>.\n" >~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n" >~"For help, type \"help\".\n" >~"Type \"apropos word\" to search for commands related to \"word\".\n" >1^done dPARSING VERSION: 1^done dSUPPORTED GDB VERSION GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git dCopyright (C) 2018 Free Software Foundation, Inc. dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> dThis is free software: you are free to change and redistribute it. dThere is NO WARRANTY, to the extent permitted by law. Type "show copying" dand "show warranty" for details. dThis GDB was configured as "aarch64-linux-gnu". dType "show configuration" for configuration details. dFor bug reporting instructions, please see: d<http://www.gnu.org/software/gdb/bugs/>. dFind the GDB manual and other documentation resources online at: d<http://www.gnu.org/software/gdb/documentation/>. dFor help, type "help". dType "apropos word" to search for commands related to "word". dGNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git dCopyright (C) 2018 Free Software Foundation, Inc. dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> dThis is free software: you are free to change and redistribute it. dThere is NO WARRANTY, to the extent permitted by law. Type "show copying" dand "show warranty" for details. dThis GDB was configured as "aarch64-linux-gnu". dType "show configuration" for configuration details. dFor bug reporting instructions, please see: d<http://www.gnu.org/software/gdb/bugs/>. dFind the GDB manual and other documentation resources online at: d<http://www.gnu.org/software/gdb/documentation/>. dFor help, type "help". dType "apropos word" to search for commands related to "word". dUSING GDB VERSION: 80100, BUILD: 0 <14-interpreter-exec console "set target-async off" >&"show debug-file-directory\n" >~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n" >2^done >&"set print object on\n" >=cmd-param-changed,param="print object",value="on" >3^done >&"set breakpoint pending on\n" >=cmd-param-changed,param="breakpoint pending",value="on" >4^done >&"set print elements 10000\n" >=cmd-param-changed,param="print elements",value="10000" >5^done >&"set unwindonsignal on\n" >=cmd-param-changed,param="unwindonsignal",value="on" >6^done >&"set width 0\n" >=cmd-param-changed,param="width",value="4294967295" >7^done >&"set height 0\n" >8^done >&"set substitute-path /var/tmp/qt-src /usr/include/aarch64-linux-gnu\n" >9^done >&"python sys.path.insert(1, '/usr/share/qtcreator/debugger/')\n" >10^done >&"python sys.path.append('/usr/bin/data-directory/python')\n" >11^done >&"python from gdbbridge import *\n" >12^done >&"python theDumper.loadDumpers({\"token\":13})\n" >&"Traceback (most recent call last):\n" >&" File \"<string>\", line 1, in <module>\n" >&" File \"/usr/share/qtcreator/debugger/dumper.py\", line 2483, in loadDumpers\n" >&" msg = self.setupDumpers()\n" >&" File \"/usr/share/qtcreator/debugger/dumper.py\", line 2456, in setupDumpers\n" >&" m = __import__(mod)\n" >&"ModuleNotFoundError: No module named 'opencvtypes'\n" >&"Error while executing Python code.\n" >13^error,msg="Error while executing Python code." dNOTE: ENGINE SETUP FAILED dState changed from EngineSetupRequested(1) to EngineSetupFailed(2) [master] <Debugging has failed dState changed from EngineSetupFailed(2) to DebuggerFinished(22) [master] dQUIT DEBUGGER REQUESTED IN STATE 22 >14^done dCOOKIE FOR TOKEN 14 ALREADY EATEN (DebuggerFinished). TWO RESPONSES FOR ONE COMMAND? d dNON-CRITICAL TIMEOUT dCOMMANDS STILL IN PROGRES
OpenCV 4.3.0 is linked to the project properly, but cannot debug. Is there a solution for this? @jsulm @Morales1235 ?
-
@t3rb3d Is python-opencv installed?
Because of this:&"ModuleNotFoundError: No module named 'opencvtypes'\n"
&"Error while executing Python code.\n" -
@jsulm Yes, there are more pythons:
ls /usr/bin | grep python
aarch64-linux-gnu-python2.7-config aarch64-linux-gnu-python3.6-config aarch64-linux-gnu-python3.6m-config aarch64-linux-gnu-python3-config aarch64-linux-gnu-python3m-config aarch64-linux-gnu-python-config dh_python2 dh_python3 python python2 python2.7 python2.7-config python2-config python3 python3.6 python3.6-config python3.6m python3.6m-config python3-config python3m python3m-config python-config
And python-opencv is installed for the 2.7 version:
dpkg -L python-opencv
/. /usr /usr/lib /usr/lib/python2.7 /usr/lib/python2.7/dist-packages /usr/lib/python2.7/dist-packages/cv2.aarch64-linux-gnu.so /usr/share /usr/share/doc /usr/share/doc/python-opencv /usr/share/doc/python-opencv/copyright /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/python-opencv /usr/share/doc/python-opencv/changelog.Debian.gz
But I also have built opencv-python from soruce:
ls /usr/local/lib/python2.7/dist-packages/
>> cv2
-
@jsulm Yes, there are more pythons:
ls /usr/bin | grep python
aarch64-linux-gnu-python2.7-config aarch64-linux-gnu-python3.6-config aarch64-linux-gnu-python3.6m-config aarch64-linux-gnu-python3-config aarch64-linux-gnu-python3m-config aarch64-linux-gnu-python-config dh_python2 dh_python3 python python2 python2.7 python2.7-config python2-config python3 python3.6 python3.6-config python3.6m python3.6m-config python3-config python3m python3m-config python-config
And python-opencv is installed for the 2.7 version:
dpkg -L python-opencv
/. /usr /usr/lib /usr/lib/python2.7 /usr/lib/python2.7/dist-packages /usr/lib/python2.7/dist-packages/cv2.aarch64-linux-gnu.so /usr/share /usr/share/doc /usr/share/doc/python-opencv /usr/share/doc/python-opencv/copyright /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/python-opencv /usr/share/doc/python-opencv/changelog.Debian.gz
But I also have built opencv-python from soruce:
ls /usr/local/lib/python2.7/dist-packages/
>> cv2
-
It is also installed and still not working!
dpkg -L python3-opencv
/. /usr /usr/lib /usr/lib/python3 /usr/lib/python3/dist-packages /usr/lib/python3/dist-packages/cv2.cpython-36m-aarch64-linux-gnu.so /usr/share /usr/share/doc /usr/share/doc/python3-opencv /usr/share/doc/python3-opencv/copyright /usr/share/doc/python3-opencv/changelog.Debian.gz
Might it be the problem that it is an ARM cpu based system? (NVIDIA Jetson Nano)
@jsulm do you have any idea?