Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. debug
    Log in to post

    • UNSOLVED Qt Windows application deployment issue. Runs great in Debug, but not fully functional as deployed, stand-alone app
      Installation and Deployment • debug deployment release windows 11 deploy problems • • MarkMcC  

      19
      0
      Votes
      19
      Posts
      128
      Views

      @JonB Thanks Jon. I will look into those suggestions. I think at this point though, the best thing for me to try, rather than thrashing around with my current project, would be for me to start a new project focused on just replicating this specific issue. I'll try and pare this down to minimal required code, just enough to reproduce the problem This will make findings clearer and easier to communicate to others. If I get to a point where I have something useful to share, I'll do so. Thank you again..Mark
    • UNSOLVED Qt Creator will not break in one class
      Tools • qtcreator debug debugger • • Dariusz  

      5
      1
      Votes
      5
      Posts
      89
      Views

      I may have found the key condition for this: inconsistent capitalization between the file on disk and the entry in your project file. My project is all CMake, and CMakeLists.txt specified a capital letter in the parent directory of the source file; but it was in lower case on disk. Bug report here: https://bugreports.qt.io/browse/QTCREATORBUG-27123 Related: https://bugreports.qt.io/browse/QTCREATORBUG-18007
    • UNSOLVED Crashing somewhere in Qt... how to... eee get src?
      General and Desktop • debug qdebug • • Dariusz  

      6
      0
      Votes
      6
      Posts
      126
      Views

      @Christian-Ehrlicher I've no idea :D But it did not work. When I pause debug, I get symbols/etc but it says that symbols are different from source file... so I have to manually navigate to cpp file in qt/src/bla/bla/bla dir Feels like msvc DLL shipped with Qt does not match src that I can install... maybe I should build my own qt so that everything is definitely running one ver... odd. Still digging.
    • UNSOLVED Unable to debug device
      Mobile and Embedded • android debug debugging armv7 • • bludger  

      1
      0
      Votes
      1
      Posts
      48
      Views

      No one has replied

    • UNSOLVED QT Creator does not connect to Android app being debugged
      Mobile and Embedded • android debug qtcreator 5.0 • • Dmitriano  

      1
      0
      Votes
      1
      Posts
      125
      Views

      No one has replied

    • UNSOLVED Debug app in QtCreator with RelWithDebugInfo build
      General and Desktop • qtcreator debug • • theunsheydenrych  

      1
      0
      Votes
      1
      Posts
      46
      Views

      No one has replied

    • SOLVED Hide QPushButton in release build and show it in debug mode
      General and Desktop • debug qpushbutton release • • szumial  

      3
      0
      Votes
      3
      Posts
      73
      Views

      Thanks for this hint. Very useful for debugging purposes. Appreciate the help :)
    • UNSOLVED Qt6 MSVC2019 Build Attempt: Cmake Error at .../QtProcessConfigureArgs.cmake:788 (Exit Code 1)
      Installation and Deployment • cmake debug qt6 configure building qt • • oblivioncth  

      5
      0
      Votes
      5
      Posts
      1138
      Views

      Sorry, I hadn't come back to trying this for a while. I was able to get past this by dropping -optimize-size, but ran into other strange issues, primarily where a purely debug build had a bunch of errors and a mixed config build would not create the debug lib files (likely due to the same cause, just the errors didn't show or halt the build for some reason) even though the process appeared to complete successfully. Not having much luck with Qt6 it seems, which is a shame since I'd really like to make use of the upstream changes I submitted for it. Luckily at this point MSVCs internal CMake version has been updated to one that is compatible with Qt6, so the manual replacement is no longer needed. I'm currently trying to build 6.1 and was able to get past the configure step, though I had to disable tests (which this time I wanted to confirm it built correctly) due to QTBUG-88829, so I'll see if I have better luck this time. If the mixed build doesn't work I'll try just a debug one again to see if there are the errors I had before, or if not so that I can compile tests and see what might be failing.
    • UNSOLVED GDB Debugger not working
      Mobile and Embedded • debug gdb nvidia jetson t • • Shane00  

      15
      0
      Votes
      15
      Posts
      2397
      Views

      @hwd8868 I had the same problem. Manually adding opencvtypes.py file into /usr/share/qtcreator/debugger/ resolved the problem
    • UNSOLVED Debugger not working properly
      General and Desktop • debug • • jcga  

      3
      0
      Votes
      3
      Posts
      157
      Views

      I think I have the same problem. The application stops when a breakpoint is encountered but there is no debug information. I discovered an inconvenient workaround described below. Set breakpoint Run the application in Debug. The debugger stops but doesn’t show the yellow arrow at breakpoint. The Debugger Log indicates the application has stopped. Local variables are not shown. Stack window does not show any information. In the debugger pane, the “Threads” is at #0. The yellow arrow can be shown at the breakpoint if I change “Threads” to some other number (e.g. #1) which displays assembly code in the editor with the yellow arrow visible. When changing “Threads” back to #0, the yellow arrow at the breakpoint is visible in the editor. Local variable are displayed. Pressing F10 (Step Over) advances to the next line of code but the yellow arrow, local variables and stack info disappear. Windows 10 Creating a desktop application Qt Creator v4.13.0, based on Qt 5.15.0, built Aug 25, 2020 Any suggestions on how to resolve this problem?
    • SOLVED Qt 5.15.0 MSVC2019 16.6.2: Global QFile instance causes [ASSERT: "theMainThread.loadRelaxed() != nullptr" in file kernel\qcoreapplication.cpp, line 536] in Debug build
      General and Desktop • debug qfile qapplication msvc 5.15 • • oblivioncth  

      6
      0
      Votes
      6
      Posts
      357
      Views

      Hi. I think it just for a static QObject like QFile in Application ... It can solve with static function to create a static object in first call...
    • SOLVED QT dll names
      General and Desktop • debug dll release lib • • normvcr  

      5
      0
      Votes
      5
      Posts
      290
      Views

      @sierdzio I think you're second option is correct. I did dumpbin /dependents on both the debug and release versions of my util, and they have the same release QT dlls. I guess I never had to step into the QT code :-) . Usually, I get link errors when mixing debug with release, stemming from different array instrumentations. Sounds like QT was careful about this, to allow the mixing of debug with release -- unix-like.
    • UNSOLVED Integration Direct3D 12 in Qt
      3rd Party Software • debug msvc exception directx qt 5.12.3 • • range36rus  

      7
      0
      Votes
      7
      Posts
      623
      Views

      @JKSH Yes, I created two simple console applications and added required libraries to them. Compiler keys are identical. I checked carefully. A one project have a mistake, and another doesn't have For example, a project with subprojects have this error, but QT Widgets does not have (but not always). Heisenbug?
    • UNSOLVED QML Debugger: Unable to listen to port
      QML and Qt Quick • qml cmake debug • • krehf  

      1
      0
      Votes
      1
      Posts
      416
      Views

      No one has replied

    • UNSOLVED How to debug / backtrace the call stack?
      General and Desktop • debug embedded linux debugging segfault backtrace • • abhisit  

      10
      0
      Votes
      10
      Posts
      4511
      Views

      @jsulm Yep, absolutely, there is much to read/fiddle with, and may not be portable. May or may not work for OP's particular case. Anyway, whether this or your core dump suggestion (OP should look up how his target Linux OS handles core dumps allowed or not), he has a few approaches to consider now....
    • UNSOLVED PyQt5 Program closes immediately after running compiled EXE
      General and Desktop • pyqt5 debug freeze compiling qt compiling • • Oscar L  

      2
      0
      Votes
      2
      Posts
      925
      Views

      Hi and welcome to devnet, How are you building your executable ? What version of PyQt5 and Qt are you using ? Since you are using PyQt, you might want to consider contacting its authors.
    • UNSOLVED QtCreator Debugger evaluates wrong values
      Tools • debug qbytearray reinterpretcas • • JealousFish  

      8
      0
      Votes
      8
      Posts
      896
      Views

      @JealousFish Yes, In Qt Creator is called “Build Directory”, where file .o are created and where you find your application. In the past I had the same issue, when I deleted the build folder the problem disappeared. Sometimes, when compiler failed and the code seems ok, I delete the builder folder and the problem disappears. I think, but it is only my idea, when this happens some files .o are locked, perhaps because I stopped the previous compile.
    • SOLVED QVector Assert Debug - "asize >= 0 && asize <= aalloc"
      General and Desktop • debug qvector assert allocation • • Secant  

      7
      0
      Votes
      7
      Posts
      1965
      Views

      @kshegunov @mrjj Thanks for your explanation. Finally I figured out that the problem lay in the signal QGraphicsScene::changed I used. I learned about this signal in an OpenGL example in Qt. By using it I was trying to update my wave soon after its last update, however this signal could also be triggered by changing axis range or window resize, which would probably cause the crash for I didn't consider thread safety and synchronization under this condition. So I defined a custom signal function and now the problem is solved.
    • UNSOLVED Qt3d Preview no longer launching
      General and Desktop • qt3d debug preview • • Eric Sterner  

      3
      0
      Votes
      3
      Posts
      481
      Views

      OK, seems like shadow casting on the default light might be broken. Turning it on caused the scene to crash.
    • UNSOLVED How to configure Visual Studio to stop on qfatal?
      General and Desktop • visual studio debug qt 5.5 qfatal • • Alain38 0  

      11
      0
      Votes
      11
      Posts
      1203
      Views

      @JonB Do not misunderstand. I have not said that I will not try your solution. I have just explained my temporary approach that I'm currently using to find the origin of my crashes. For the future I will take time to investigate more with the hope to have a generic solution to apply on all my VS solutions.
    • UNSOLVED Qt Creator doesn't set breakpoints properly with GDB
      Tools • c++ debug bug debugging gdb • • Andrew Smith  

      3
      0
      Votes
      3
      Posts
      854
      Views

      By build a debug version do you mean adding -DDEBUG -g to CFLAGS in my makefile? Hooray! Adding the -DDEBUG -g flags to my makefile fixed it! Thank you @aha_1980! I googled for this but nothing really came up, thanks!
    • UNSOLVED Wrong char type detection in debugger
      Tools • qt creator debug • • j1elo  

      3
      1
      Votes
      3
      Posts
      590
      Views

      @Sergey-I. said in Wrong char type detection in debugger: Has anyone reported this to the bug tracker? I don't know. Did you check that?
    • SOLVED Preserve 'line' and 'file' macro expansion when in release mode
      General and Desktop • debug • • diverger  

      4
      0
      Votes
      4
      Posts
      932
      Views

      @mpergand Yes, this is just what I want. Thanks.
    • UNSOLVED Debugger can't find source files
      Tools • qt creator debug • • Megatokio  

      1
      0
      Votes
      1
      Posts
      686
      Views

      No one has replied

    • UNSOLVED Is it possible to debug QScriptEngine in non-GUI thread?
      General and Desktop • javascript debug debugger qtscript debugger engine • • flashmozzg  

      1
      0
      Votes
      1
      Posts
      649
      Views

      No one has replied

    • UNSOLVED Turn on GPS when App starts
      Mobile and Embedded • debug location gps • • SoulEater45  

      1
      0
      Votes
      1
      Posts
      513
      Views

      No one has replied

    • SOLVED How to configure debug and release builds?
      Tools • debug compiler release vs 2013 parameters • • Wodzu  

      4
      0
      Votes
      4
      Posts
      3090
      Views

      Ok, I've found that the results are stored in files Makefile.Release, Makefile.Debug and everything is explained here.
    • SOLVED Plugins Debug And Release
      General and Desktop • plugin debug release • • mistralegna  

      3
      0
      Votes
      3
      Posts
      1073
      Views

      Thank you for your answer!
    • SOLVED Debugging Qt Sources for Android
      Tools • android debug gdb qt sources • • AllanE  

      1
      0
      Votes
      1
      Posts
      624
      Views

      No one has replied

    • UNSOLVED Unknown error when using Valgrind tool in Qt Creator
      General and Desktop • qt creator debug valgrind • • mar0029  

      1
      0
      Votes
      1
      Posts
      1036
      Views

      No one has replied

    • UNSOLVED Stay on selected thread during debug
      General and Desktop • qtcreator debug • • cookiewill  

      2
      0
      Votes
      2
      Posts
      810
      Views

      Hi and welcome to devnet, I am not aware of such a feature in Qt Creator except what is mentioned here but it doesn't mention keeping the thread being currently view. I'd recommend posting this question on the Qt Creator mailing list. You'll find there Qt Creator's developers/maintaines (this forum is more user oriented)
    • UNSOLVED Debugging STM32F7 from QT
      General and Desktop • debug stm32f7 openocd • • Jonathan2016  

      1
      0
      Votes
      1
      Posts
      1500
      Views

      No one has replied

    • UNSOLVED How to debug QML with a CMake project.
      QML and Qt Quick • qml cmake debug • • manuelschneid3r  

      1
      0
      Votes
      1
      Posts
      1675
      Views

      No one has replied

    • UNSOLVED Qt 5.5 MinGW Strange Debugger Issue (Redirect to Disassembler View)
      General and Desktop • debug mingw • • bigapple  

      4
      0
      Votes
      4
      Posts
      1416
      Views

      Did you activate any kind of compiler optimization?
    • UNSOLVED Debugging qml plugin with QtCreator
      Tools • qml qtcreator plugin debug • • oivanov  

      3
      0
      Votes
      3
      Posts
      1341
      Views

      Thank you, Charby! Do you mean Debugger settings/Enable QML? I know about it and suppose it is about Qml application. Am I right? But I ask about “mixed” mode – I can’t understand how to debug qml module which we call from C++ program ( p->runQmlPlugin() )?
    • UNSOLVED Can not find the entry point in _Z11qt_assert_xPKcS0_S0_i procedure dynamic-link library
      General and Desktop • debug • • AhmedL  

      4
      0
      Votes
      4
      Posts
      2023
      Views

      Just in case, just had the same problem and in my case the problem was that windeployqt deployed wrong libraries (msvc ones instead of mingw despite being ran from mingw's qt build). Manual collecting libraries solved problem for me.
    • UNSOLVED WebEngine Application hangs in Debug Mode
      Qt WebKit • debug webengine freeze hang webchannel • • BiedermannS  

      1
      0
      Votes
      1
      Posts
      921
      Views

      No one has replied

    • SOLVED "Default QML file to run" setting for Run and Debug options in Qt Creator?
      General and Desktop • qml qt creator debug run • • Ayelis  

      3
      0
      Votes
      3
      Posts
      975
      Views

      Alright. Thanks. That sounded like a lot of work so I scanned through the application's many features and found "Run Settings" has something called "Main QML file" that seems to operate the way I expect.