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. Image Scaling Example freezes (qt concurrent issue)

Image Scaling Example freezes (qt concurrent issue)

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 1 Posters 442 Views
  • 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.
  • C Offline
    C Offline
    caesun
    wrote on last edited by caesun
    #1

    I built and run the official Image Scaling Example, it freezes if 12 or more files were selected.

    My env:
    Desktop_Qt_5_15_0_MSVC2019_64bit

    the debug call stack show
    33fadbdb-6b03-437c-a7d6-49f0b7b281cc-image.png

    1 Reply Last reply
    0
    • C Offline
      C Offline
      caesun
      wrote on last edited by
      #2

      Found some clues.

      My CPU is AMD Ryzen 5 1600, 6 cores, 12 logical cores.

      When AMD SMT is enabled, there are 12 logical cores available, and QFutureWatcher::setFuture() will freeze if 12 or more concurrent tasks are queued.
      When SMT feature is disabled, setFuture() will freeze when 6 tasks or more are queued.

      The qt freezes when 12 (or 6 w/o SMT) tasks complete.

      OS: Windows 10 Pro, 1903, 18362.1016

      1 Reply Last reply
      0
      • C Offline
        C Offline
        caesun
        wrote on last edited by
        #3

        Is it possible to use qtconcurrent function without OpenGL involved? It seems that qt blocks in OpenGL relative calls.

        dac43964-026f-47d4-b255-70d10ad895fb-image.png

        1 Reply Last reply
        0
        • C Offline
          C Offline
          caesun
          wrote on last edited by
          #4

          This bug has been resolved in Qt 5.15.1.

          1 Reply Last reply
          1

          • Login

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