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

Qt Quick apps immediately crash under Android 6

    XMLWordPrintable

Details

    • Android
    • ffecc122d7 (qt/qtdeclarative/dev) ffecc122d7 (qt/tqtc-qtdeclarative/dev) ee9a7b1bee (qt/qtdeclarative/6.4) ee9a7b1bee (qt/tqtc-qtdeclarative/6.4) 38e9472d91 (qt/tqtc-qtdeclarative/6.2) 89fc2b5730 (qt/tqtc-qtdeclarative/5.15)

    Description

      After upgrading to Qt 6, we noticed that our Qt Quick app immediately crashes on our Android 6 devices. Even a hello world app crashes.

      The device runs Linux kernel 3.4.48.

      We traced down the crash to OSAllocatorPosix.cpp where the code expects madvise() to succeed with provided memory, but it fails with EBADF. Given how unimportant these madvise() calls are, I find it excessive to crash the whole app.

      EBADF is to be expected according to Linux man pages:

      EBADF The map exists, but the area maps something that isn't a file.

      Our patch fixing the issue can be seen here.

      Attachments

        Issue Links

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

          Activity

            People

              ulherman Ulf Hermann
              lubosd Lubos Dolezel
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: