Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Catch(...) on Android cause application to crash
Qt 6.11 is out! See what's new in the release blog

Catch(...) on Android cause application to crash

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 780 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.
  • K Offline
    K Offline
    kostyamaslyuk
    wrote on last edited by
    #1

    Device on Android 4.1.2, application is built against Qt5.4, ndk-r10, gcc4.9 on WIndows 8.1

    @ qDebug("Test zero try");
    try {
    int i(1/0);
    qDebug() << "\tpassed" << i;
    throw std::logic_error("division by zero");
    }
    catch (std::exception e) {
    qDebug() << "Catch zero" << e.what();
    }
    qDebug("Test zero try: ok");
    qDebug("Test zero all try");
    try {
    int i(1/0);
    qDebug() << "\tpassed" << i;
    }
    catch (...) {
    qDebug() << "Catch zero";
    }
    qDebug("Test zero all try: ok");@

    Output:
    @D/BtMini (12213): Test zero try
    F/libc (12213): Fatal signal 8 (SIGFPE) at 0x00002fb5 (code=0), thread 12293 (t.bibletimemini)
    D/BtMini (12213): passed 0
    D/BtMini (12213): Catch zero std::exception
    D/BtMini (12213): Test zero try: ok
    D/BtMini (12213): Test zero all try

    «org.qtproject.bibletimemini» завершился крахом.@

    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