This repository has been archived by the owner on Dec 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Issues with stopping program execution #5
Comments
I cannot reproduce the crash (Qt 5.2.1 on Ubuntu 14.04 for x86). Btw, I haven't looked at the code for execution/debugging yet. However, if I could reproduce your problem, I'd take a look. |
After getting the qt4 application to hang and terminating it, I get the following backtrace from thread 1:
There is more of course, but this is what happens after the debugStop signal is emitted. Pietcreator has hung on the QMutexLocker creation in the abort() method, stop() is never called. Unfortunately, I'm not well versed in thread programming; what is wrong here? |
QMutex RunController::mMutex may be locked before abort() gets called. The problem seems to be a deadlock. However, at first view, I cannot find a missing unlock... |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have incorporated the changes suggested @esoteric-programmer in #4 at my repo and started a port to Qt5 here. However, whether I compile the Qt4 (I have 4.8.6) or the Qt5 (5.5.0) version, I cannot seem to abort the execution of a program while in debugging mode.
Example output with qt4:
The program hangs at this point, with the Stop button depressed.
With qt5, the program crashes instead of hanging:
I haven't looked at the source code too extensively so far, any idea where the error lies?
The text was updated successfully, but these errors were encountered: