Application works on Windows, but freezes on certain operations in Linux
-
I am running my Qt application in Qt Creator under Qt 5.12.3 with a CentOS 8 operating system. The application uses threading and I think this could be the issue, for Linux will handle threads differently than Windows. I've tried every QThread::Priority enum value and nothing seems to work. I have not posted code for this because it is an enormous code base. Has anyone experienced this where the application works fine on Windows but crashes on Linux?
-
It freezes or it crashes? These are 2 separate problems.
If it crashes, use asan (address sanitizer) to find the crash and other memory leaks.
If it freezes, use tsan (thread sanitizer) to find out why it's freezing.
-
Unfortunately I am compiling using MinGW 7.3.0 64-bit, so I don't believe I can use either.
As for crash vs freeze.. when I click the button I am trying to use the application will freeze, become unresponsive, then I have to force shutdown. In Qt Creator I just get "The program unexpectedly finished. The process was ended forcefully. ....\Application crashed. "
-
Unfortunately I am compiling using MinGW 7.3.0 64-bit, so I don't believe I can use either.
As for crash vs freeze.. when I click the button I am trying to use the application will freeze, become unresponsive, then I have to force shutdown. In Qt Creator I just get "The program unexpectedly finished. The process was ended forcefully. ....\Application crashed. "
@trecup said in Application works on Windows, but freezes on certain operations in Linux:
Unfortunately I am compiling using MinGW 7.3.0 64-bit, so I don't believe I can use either.
Doesn't MinGW support asan? It's GCC after all.
Anyway, since Qt is cross-platform you can compile your app with GCC or clang and use asan/ tbsan to nail down the problem.