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. Receiving QTimer events but no others
Forum Updated to NodeBB v4.3 + New Features

Receiving QTimer events but no others

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 1.7k 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.
  • R Offline
    R Offline
    rogier
    wrote on last edited by
    #1

    Windows reports my application as "(not responding)", but in the logs I can see that I am processing (short) QTimer events every half-second. Between the QTimer events there is by far enough time to process the event queue, but somehow it isn't happening.
    I don't have any QEventLoop instances other than QApplication and no modal windows (both of which might block user input but let QTimer events through).

    Does anyone of you know what else in Qt might block anything but QTimer events? I'm assuming here that Windows says (not responding) because the windows message queue isn't being processed by my application.

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

      Debug and see what really is the root of this problem. A thought that comes to mind is: you can force event loop run by using qApp->processEvents().

      (Z(:^

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rogier
        wrote on last edited by
        #3

        Thanks, but the problem occurs only once a week so it is hard to debug. Also, we don't use processEvents at all because of the inherent re-entrancy. So I'm really looking for a brainstorm here.

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          If it's a large program, it could be anything. Even commercially-released programs hang now and then.

          Did you start other threads?

          Are you using 3rd-party libraries?

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • M Offline
            M Offline
            MuldeR
            wrote on last edited by
            #5

            I would suggest you wait until it happens once again (but don't terminate the process!) and then you load up a debugger, let it connect to the process and trigger a debug break + stack trace. Then you should see where it is "hanging". You'll need to compile your app with debug symbols to get a meaningful stack trace though...

            My OpenSource software at: http://muldersoft.com/

            Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

            Go visit the coop: http://youtu.be/Jay...

            1 Reply Last reply
            0

            • Login

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