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. [Solved] Program Hangs at UI Draw
Forum Updated to NodeBB v4.3 + New Features

[Solved] Program Hangs at UI Draw

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.3k 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.
  • S Offline
    S Offline
    sammarks
    wrote on last edited by
    #1

    I've run into a rather disruptive bug with my project.

    Whenever the program starts and it appears as if the UI is about to draw, the program hangs. At first, I thought it was an infinite loop somewhere in my code, but then after doing extensive debug logging, I came up with nothing.

    I've jumped through the code with breakpoints to see where in the QT source code this happens, and I've determined it happens at line 201 in qeventloop.cpp, with this code:

    @
    processEvents(flags | WaitForMoreEvents | EventLoopExec);
    @

    I have come to a conclusion that it might be one of my events, but after looking through my code, nothing appeared to be wrong.

    Since there is so much source to this project, it is all located on Github, at http://github.com/NovaEdit/Nova.

    Any help would be appreciated.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mbroadst
      wrote on last edited by
      #2

      Your problem is the second while loop in Highlighter::highlightBlock, I haven't delved deeper than this but you have an infinite loop there

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sammarks
        wrote on last edited by
        #3

        Ah, thanks a lot!

        I forgot to include the commentStartExpression and commentEndExpression, so it was looking for nothing lol.

        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