Description
Host:
KUbuntu 18.04/64bits with 32bits userspace runtime
Qtc:
4.8.1 (see end for full sysinfo), from Qt online installer "enterprise"
Toolchain:
Custom 32bits arm-linux with gcc-5.3, gdb-7.11 and Qt 5.12.1 (provided by our platform team) But I use a special 64 bits custom arm-linux-gdb (8.2), built by myself due to some weird 32bits python issues on 64 bits machine, i had to build gdb-8.2 myself, so that it doesn't depends on python/32 bits and rely instead on system provided python.
Initial report:
https://lists.qt-project.org/pipermail/qt-creator/2019-February/015462.html
Issue:
Breakpoints are not functional, in that gdb doesn't stop on breakpoints. QtC is disturbed as well, when double-clicking on breakpoints in the "breakpoint view", i get a popup error dialog that says:
Could not open ""/home/chgans/Projects/bolt-demos/embedded/mainwindow.cpp":60" for reading. Either the file does not exist or you do not have the permissions to open it.
But this file is opened in the editor, that's how i inserted the breakpoint in the first place.
From this point, if i just wait and do nothing, i'll end up with another error popup dialog that says:
The gdb process has not responded to a command within 40 seconds. This could mean it is stuck in an endless loop or taking longer than expected to perform the operation.
You can choose between waiting longer or aborting debugging
See attached "Global debug logs", esp. the
>&"No source file named /home/chgans/Projects/bolt-demos/embedded/mainwindow.cpp.\n"
Maybe-related issue
A variation of this, is break point on the first line of my "main()" function (which reads "Application app;"). For some reason, in the breakpoint view, this BP is displayed as a tree node with 3 leaves: all point on the first line of a "main()" of various Qt's evdev plugins.
That's really weird, and make me think that QtC/GDB might be confused
by my app command line (that need to contain the list of Qt plugin i
want to use). The command line contains things like
-platform navicofb -plugin evdevkeyboard:internalkeymap=/usr/share/NOS/resources/simrad.qmap:dir=/dev/input:mask=mouse.*:internalkey=/dev/input/event0:externalkey=/dev/input/event2 --expose-gc -plugin evdevtouch
Configuration:
Target: arm-linux device through SSH
GNU target: arm-navico-linux-gnueabi
Source dir: /home/chgans/Projects/bolt-demos/embedded/
Build dir: /media/chgans/data/builds/build-embedded-Navico_arm_a9_SDK_Qt512_1658-Debug/
Sysroot: /usr/local/arm_a9-build-dev-1958-gc34594f/local/arm_a9
Custom gdb: /usr/local/bin/arm-navico-linux-gnueabi-gdb
Notes:
At this point i just realise that gdbserver is version 7.11, while host gdb is 8.2.
Maybe there are not compatible? Weird...
QtC sys info:
Qt 5.12.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1 20160406 (Red Hat 5.3.1-6)) on "xcb" OS: Ubuntu 18.04.1 LTS [linux version 4.15.0-42-generic] Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2 RTM HLE Environment: QT_ACCESSIBILITY="1" QT_AUTO_SCREEN_SCALE_FACTOR="0" Features: QT_NO_EXCEPTIONS Library info: PrefixPath: /home/chgans/Programs/Qt/Tools/QtCreator/lib/Qt DocumentationPath: /home/chgans/Programs/Qt/Tools/QtCreator/lib/Qt/doc HeadersPath: /home/chgans/Programs/Qt/Tools/QtCreator/lib/Qt/include LibrariesPath: /home/chgans/Programs/Qt/Tools/QtCreator/lib/Qt/lib LibraryExecutablesPath: /home/chgans/Programs/Qt/Tools/QtCreator/lib/Qt/libexec BinariesPath: /home/chgans/Programs/Qt/Tools/QtCreator/lib/Qt/bin PluginsPath: /home/chgans/Programs/Qt/Tools/QtCreator/lib/Qt/plugins ImportsPath: /home/chgans/Programs/Qt/Tools/QtCreator/lib/Qt/imports Qml2ImportsPath: /home/chgans/Programs/Qt/Tools/QtCreator/lib/Qt/qml ArchDataPath: /home/chgans/Programs/Qt/Tools/QtCreator/lib/Qt DataPath: /home/chgans/Programs/Qt/Tools/QtCreator/lib/Qt TranslationsPath: /home/chgans/Programs/Qt/Tools/QtCreator/lib/Qt/translations ExamplesPath: /home/chgans/Programs/Qt/Tools/QtCreator/lib/Qt/examples TestsPath: /home/chgans/Programs/Qt/Tools/QtCreator/lib/Qt/tests SettingsPath: /home/chgans/Programs/Qt/Tools/QtCreator/lib/Qt Standard paths [*...* denote writable entry]: DesktopLocation: "Desktop" */home/chgans/Desktop* DocumentsLocation: "Documents" */home/chgans/Documents* FontsLocation: "Fonts" */home/chgans/.local/share/fonts* /home/chgans/.fonts ApplicationsLocation: "Applications" */home/chgans/.local/share/applications* usr/share/plasma/applications /usr/local/share/applications /usr/share/applications var/lib/snapd/desktop/applications MusicLocation: "Music" */home/chgans/Music* MoviesLocation: "Movies" */home/chgans/Videos* PicturesLocation: "Pictures" */home/chgans/Pictures* TempLocation: "Temporary Directory" */tmp* HomeLocation: "Home" */home/chgans* AppLocalDataLocation: "Application Data" */home/chgans/.local/share/QtProjectqtdiag* /usr/share/plasma/QtProject/qtdiag /usr/local/share/QtProject/qtdiag /us/share/QtProject/qtdiag /var/lib/snapd/desktop/QtProject/qtdiag CacheLocation: "Cache" */home/chgans/.cache/QtProject/qtdiag* GenericDataLocation: "Shared Data" */home/chgans/.local/share* /usr/share/plasma usr/local/share /usr/share /var/lib/snapd/desktop RuntimeLocation: "Runtime" */run/user/1000* ConfigLocation: "Configuration" */home/chgans/.config* /etc/xdg/xdg-plasma /etc/xdg usr/share/kubuntu-default-settings/kf5-settings DownloadLocation: "Download" */home/chgans/Downloads* GenericCacheLocation: "Shared Cache" */home/chgans/.cache* GenericConfigLocation: "Shared Configuration" */home/chgans/.config* /etc/xdg/xdg-lasma /etc/xdg /usr/share/kubuntu-default-settings/kf5-settings AppDataLocation: "Application Data" */home/chgans/.local/share/QtProject/qtdiag* usr/share/plasma/QtProject/qtdiag /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag /var/lib/snapd/desktop/QtProject/qtdiag AppConfigLocation: "Application Configuration" */home/chgans/.config/QtProject/qtdiag* /etc/xdg/xdg-plasma/QtProject/qtdiag /etc/xdg/QtProject/qtdiag /usr/share/kubuntu-default-settings/kf5-settings/QtProject/qtdiag File selectors (increasing order of precedence): en_NZ unix linux ubuntu Network: Using "OpenSSL 1.0.2k-fips 26 Jan 2017", version: 0x100020bf Platform capabilities: ThreadedPixmaps OpenGL ThreadedOpenGL WindowMasks ultipleWindows ForeignWindows NonFullScreenWindows NativeWidgets WindowManagement SyncState RasterGLSurface SwitchableWidgetComposition Style hints: mouseDoubleClickInterval: 400 mousePressAndHoldInterval: 800 startDragDistance: 10 startDragTime: 500 startDragVelocity: 0 keyboardInputInterval: 400 keyboardAutoRepeatRate: 30 cursorFlashTime: 1000 showIsFullScreen: 0 showIsMaximized: 0 passwordMaskDelay: 0 passwordMaskCharacter: U+25CF fontSmoothingGamma: 1.7 useRtlExtensions: 0 setFocusOnTouchRelease: 0 tabFocusBehavior: Qt::TabFocusAllControls singleClickActivation: 0 Additional style hints (QPlatformIntegration): ReplayMousePressOutsidePopup: 0 Theme: Platforms requested : kde,generic available : gtk3,snap,flatpak,xdgdesktopportal Styles requested : Breeze,breeze,Oxygen,fusion,windows available : Windows,Fusion Icon theme : breeze, breeze from /usr/local/share/icons,/usr/share/icons System font : "Noto Sans" 10 Fonts:QtC sys info: General font : "Noto Sans" 10 Fixed font : "Hack" 10 Title font : "DejaVu Sans" 12 Smallest font: "DejaVu Sans" 12 Palette: QPalette::WindowText: #ff31363b QPalette::Button: #ffeff0f1 QPalette::Light: #ffffffff QPalette::Midlight: #ffffffff QPalette::Dark: #ff777878 QPalette::Mid: #ff9fa0a1 QPalette::Text: #ff31363b QPalette::BrightText: #ffffffff QPalette::ButtonText: #ff31363b QPalette::Base: #fffcfcfc QPalette::Window: #ffeff0f1 QPalette::Shadow: #ff000000 QPalette::Highlight: #ff3daee9 QPalette::HighlightedText: #ffeff0f1 QPalette::Link: #ff2980b9 QPalette::LinkVisited: #ff7f8c8d QPalette::AlternateBase: #ffeff0f1 QPalette::NoRole: #ff000000 QPalette::ToolTipBase: #ff31363b QPalette::ToolTipText: #ffeff0f1 QPalette::PlaceholderText: #8031363b Screens: 2, High DPI scaling: inactive # 0 "DP-7" Depth: 24 Primary: yes Manufacturer: LG Electronics Model: IPS234- Serial number: - Geometry: 1920x1080+0+0 Available: 1920x1080+0+0 Virtual geometry: 3840x1080+0+0 Available: 3840x1080+0+0 2 virtual siblings Physical size: 510x290 mm Refresh: 60 Hz Power state: 0 Physical DPI: 95.6235,94.5931 Logical DPI: 94.9718,93.9452 Subpixel_None DevicePixelRatio: 1 Pixel density: 1 Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0 # 1 "DP-4" Depth: 24 Primary: no Manufacturer: Hewlett Packard Model: HP E231- Serial number: 6CM3510JH0- Geometry: 1920x1080+1920+0 Available: 1920x1080+1920+0 Virtual geometry: 3840x1080+0+0 Available: 3840x1080+0+0 2 virtual siblings Physical size: 510x287 mm Refresh: 60 Hz Power state: 0 Physical DPI: 95.6235,95.5819 Logical DPI: 94.9718,93.9452 Subpixel_None DevicePixelRatio: 1 Pixel density: 1 Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0 LibGL Vendor: NVIDIA Corporation Renderer: Quadro P2000/PCIe/SSE2 Version: 4.6.0 NVIDIA 390.77 Shading language: 4.60 NVIDIA Format: Version: 4.6 Profile: 2 Swap behavior: 0 Buffer size (RGB): 8,8,8 Depth buffer: 24 Profile: None (QOpenGLFunctions_4_6) Plugin information: + Android 4.8.1 AutoTest 4.8.1 AutotoolsProjectManager 4.8.1 BareMetal 4.8.1 + Bazaar 4.8.1 Beautifier 4.8.1 + BinEditor 4.8.1 + Bookmarks 4.8.1 Boot2Qt 4.8.1 Boot2QtQdb 4.8.1 + CMakeProjectManager 4.8.1 + CVS 4.8.1 + ClangCodeModel 4.8.1 ClangFormat 4.8.1 + ClangTools 4.8.1 + ClassView 4.8.1 ClearCase 4.8.1 + CodePaster 4.8.1 CompilationDatabaseProjectManager 4.8.1 + Core 4.8.1 + CppEditor 4.8.1 + CppTools 4.8.1 Cppcheck 4.8.1 + Debugger 4.8.1 + Designer 4.8.1 + DiffEditor 4.8.1 EmacsKeys 4.8.1 + FakeVim 4.8.1 + GLSLEditor 4.8.1 + GenericProjectManager 4.8.1 + Git 4.8.1 HelloWorld 4.8.1 + Help 4.8.1 + ImageViewer 4.8.1 Ios 4.8.1 + LanguageClient 4.8.1 + LicenseChecker 4.8.1 + Macros 4.8.1 + Mercurial 4.8.1 + ModelEditor 4.8.1 Nim 4.8.1 PerfProfiler 4.8.1 + Perforce 4.8.1 + ProjectExplorer 4.8.1 + PythonEditor 4.8.1 + QbsProjectManager 4.8.1 + QmakeAndroidSupport 4.8.1 + QmakeProjectManager 4.8.1 + QmlDesigner 4.8.1 + QmlJSEditor 4.8.1 + QmlJSTools 4.8.1 + QmlProfiler 4.8.1 + QmlProjectManager 4.8.1 + Qnx 4.8.1 + QtSupport 4.8.1 + RemoteLinux 4.8.1 + ResourceEditor 4.8.1 + ScxmlEditor 4.8.1 SilverSearcher 4.8.1 + Subversion 4.8.1 + TaskList 4.8.1 + TextEditor 4.8.1 Todo 4.8.1 + UpdateInfo 4.8.1 + Valgrind 4.8.1 + VcsBase 4.8.1 Vxworks 4.8.1 + Welcome 4.8.1 WinRt 4.8.1 Qt Creator 4.8.1 Based on Qt 5.12.0 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit) From revision e8df914ef2 Built on Jan 16 2019 00:19:33