Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Application works on Windows, but freezes on certain operations in Linux
Forum Updated to NodeBB v4.3 + New Features

Application works on Windows, but freezes on certain operations in Linux

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 440 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    trecup
    wrote on last edited by trecup
    #1

    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?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      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.

      (Z(:^

      1 Reply Last reply
      0
      • T Offline
        T Offline
        trecup
        wrote on last edited by
        #3

        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. "

        sierdzioS 1 Reply Last reply
        0
        • T trecup

          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. "

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          @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.

          (Z(:^

          1 Reply Last reply
          2

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved