Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-63407

segfault on Android when exception thrown in slot even if caught in reimplemented Application::notify()

XMLWordPrintable

    • Android

      Create an application that throws an exception in slot and reimplement QApplication::notify()

      as suggested in qt\qtbase\src\corelib\kernel\qeventloop.cpp, QEventLoop::exec():

      qWarning("Qt has caught an exception thrown from an event handler. Throwing\n"
                               "exceptions from an event handler is not supported in Qt. You must\n"
                               "reimplement QApplication::notify() and catch all exceptions there.\n");

      Application will crash on Android with Qt > 5.6.1 (bug was introduced in 5.6.2 and is still present in 5.9.1). Other platforms are not affected.

      Attached test project and log.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            vkurtelius Veli-Pekka Kurtelius
            cacoso Cristian Anita
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes