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

Running QZXing example app against Qt5.14.1 gives OOM

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.14.2
    • 5.14.1
    • GUI: OpenGL
    • None
    • Building on Ubunti 16.04, running on Android 6 (armv7a)
    • Android

    Description

      I've build the QXZing example app https://github.com/ftylitak/qzxing/tree/master/examples/QZXingLive aginst 5.12.4 and 5.12.7 and it ran fine

      Next I tried to build it against 5.14.1 but it resulted in continously lines like

      W Adreno-ES20: <core_glDrawArraysInstancedXXX:929>: GL_OUT_OF_MEMORY

      W GLConsumer: [SurfaceTexture-0-18145-0] bindTextureImage: clearing GL error: 0x505

      W Adreno-ES20: <core_glDrawArraysInstancedXXX:929>: GL_OUT_OF_MEMORY

      W GLConsumer: [SurfaceTexture-0-18145-0] bindTextureImage: clearing GL error: 0x505

      FYI, In order to build it for 5.14.1, I had to make the following changes

      • increase the minimum required SDK to 21 9in AnroidManifest.xml)
      • change the NDK from r19c to r21.0.6 (I got a compiler error on including type_traits)
      • the resulting binary crashed: I had to regenerate the Android Templates ("Create templates" button in Projects/build/Build android apk) because there are changes related to loading libs in the AndroidManifest.xml;
        • afterwards, I've adjusted the package name again to org.ftylitak.qzxing
      • finally I had a problem with "import android.support.v4" in Utilities.java (probably due to the higher gradle version?).
        • I took a shortcut here and removed everything in Utilities.checkAndRequestPermissionList (except the last line);
        • This worked for me since I already had the permissions from the previous 5.12.7 run

      Attachments

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

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            vdaele vdaele
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes