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. the tool crashes
Qt 6.11 is out! See what's new in the release blog

the tool crashes

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 897 Views 2 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.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by
    #1

    My tool crashes when I open my QT Gui

    open_gui

    QPainter::end: Painter ended with 2 saved states
    Qt has caught an exception thrown from an event handler. Throwing
    exceptions from an event handler is not supported in Qt. You must
    reimplement QApplication::notify() and catch all exceptions there.

    terminate called after throwing an instance of 'std::bad_array_new_length'
    what(): std::bad_array_new_length

    Can someone guide me on what could be the reason

    A 1 Reply Last reply
    0
    • Q Qt Enthusiast

      My tool crashes when I open my QT Gui

      open_gui

      QPainter::end: Painter ended with 2 saved states
      Qt has caught an exception thrown from an event handler. Throwing
      exceptions from an event handler is not supported in Qt. You must
      reimplement QApplication::notify() and catch all exceptions there.

      terminate called after throwing an instance of 'std::bad_array_new_length'
      what(): std::bad_array_new_length

      Can someone guide me on what could be the reason

      A Offline
      A Offline
      ambershark
      wrote on last edited by
      #2

      @Qt-Enthusiast Sure, give us a backtrace to look at and some code, or if it's a large amount of code, just the backtrace to get started.

      The problem is an std array of some sort that is throwing an exception. Unfortunately this exception is in an event handler, which is not supported by Qt. So check your slots and see which one is using a std array type component and analyze that for something that would throw an exception.

      That's all the help I can give without seeing the stack dump or the code.

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      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