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

tst_QHighDpi::qhighdpiscaling(96) crashes on Android

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 6.2
    • Component/s: GUI: High-DPI
    • Labels:
      None
    • Platform/s:
      Android
    • Commits:
      a2db96e253856aaabe10fe3bad6409dd047533a5

      Description

      tst_QHighDpi::qhighdpiscaling(96) fails on Android with a crash, and the subsequent tests are not run afterward.

      224: ********* Start testing of tst_QHighDpi *********
      224: Config: Using QtTest library 6.0.0, Qt 6.0.0 (i386-little_endian-ilp32 shared (dynamic) release build; by Clang 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f)), android 6.0
      224: PASS   : tst_QHighDpi::initTestCase()
      224: QWARN  : tst_QHighDpi::qhighdpiscaling(96) qt.qpa.plugin: Could not find the Qt platform plugin "offscreen" in ""
      224: QFATAL : tst_QHighDpi::qhighdpiscaling(96) This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
      224: 
      224: Available platform plugins are: android.
      224: 
      224: FAIL!  : tst_QHighDpi::qhighdpiscaling(96) Received a fatal error.
      224:    Loc: [Unknown file(0)]
      224: Totals: 1 passed, 1 failed, 0 skipped, 0 blacklisted, 12ms
      224: ********* Finished testing of tst_QHighDpi *********
      224: Execute /opt/android/sdk/platform-tools/adb uninstall org.qtproject.example.tst_qhighdpi.
      224: Success
      224/436 Test #224: tst_qhighdpi ....................................***Failed   14.21 sec

      The logcat crash 

      11-14 10:24:49.655  7045  7219 F libc    : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 7219 (qtMainLoopThrea), pid 7045 (le.tst_qhighdpi)
      11-14 10:24:49.713  7543  7543 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
      11-14 10:24:49.713  7543  7543 F DEBUG   : Build fingerprint: 'samsung/starltexx/starlte:10/QP1A.190711.020/G960FXXSBETH2:user/release-keys'
      11-14 10:24:49.713  7543  7543 F DEBUG   : Revision: '26'
      11-14 10:24:49.713  7543  7543 F DEBUG   : ABI: 'arm64'
      11-14 10:24:49.714  7543  7543 F DEBUG   : Timestamp: 2020-11-14 10:24:49+0200
      11-14 10:24:49.714  7543  7543 F DEBUG   : pid: 7045, tid: 7219, name: qtMainLoopThrea  >>> org.qtproject.example.tst_qhighdpi <<<
      11-14 10:24:49.714  7543  7543 F DEBUG   : uid: 10895
      11-14 10:24:49.714  7543  7543 F DEBUG   : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
      11-14 10:24:49.714  7543  7543 F DEBUG   :     x0  0000000000000000  x1  0000000000001c33  x2  0000000000000006  x3  000000707f0b33a0
      11-14 10:24:49.714  7543  7543 F DEBUG   :     x4  6e6946202a2a2a2a  x5  6e6946202a2a2a2a  x6  6e6946202a2a2a2a  x7  6574206465687369
      11-14 10:24:49.714  7543  7543 F DEBUG   :     x8  00000000000000f0  x9  000000710dc355e0  x10 0000000000000000  x11 0000000000000001
      11-14 10:24:49.714  7543  7543 F DEBUG   :     x12 000000000000ffff  x13 6574206465687369  x14 0000000000000000  x15 0000103423137f74
      11-14 10:24:49.714  7543  7543 F DEBUG   :     x16 000000710dd038c0  x17 000000710dce0880  x18 000000701d076000  x19 00000000000000ac
      11-14 10:24:49.714  7543  7543 F DEBUG   :     x20 0000000000001b85  x21 00000000000000b2  x22 0000000000001c33  x23 00000000ffffffff
      11-14 10:24:49.714  7543  7543 F DEBUG   :     x24 0000000000000000  x25 0000000000000000  x26 a99c09ce9a2c3bb1  x27 0000000000000000
      11-14 10:24:49.714  7543  7543 F DEBUG   :     x28 000000707f0b6ea0  x29 000000707f0b3450
      11-14 10:24:49.714  7543  7543 F DEBUG   :     sp  000000707f0b3380  lr  000000710dc94330  pc  000000710dc94360
      11-14 10:24:49.776  7543  7543 F DEBUG   : 
      11-14 10:24:49.776  7543  7543 F DEBUG   : backtrace:
      11-14 10:24:49.776  7543  7543 F DEBUG   :       #00 pc 0000000000083360  /apex/com.android.runtime/lib64/bionic/libc.so (abort+176) (BuildId: 13817077d0d892b63e2f982cf91d02fa)
      11-14 10:24:49.776  7543  7543 F DEBUG   :       #01 pc 00000000003f23b8  /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/lib/arm64/libQt6Core_arm64-v8a.so (BuildId: 536ae6e2bfe8f451)
      11-14 10:24:49.776  7543  7543 F DEBUG   :       #02 pc 00000000003f3ed8  /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/lib/arm64/libQt6Core_arm64-v8a.so (QMessageLogger::fatal(char const*, ...) const+260) (BuildId: 536ae6e2bfe8f451)
      11-14 10:24:49.777  7543  7543 F DEBUG   :       #03 pc 000000000052dff4  /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/lib/arm64/libQt6Gui_arm64-v8a.so (BuildId: 87fadeb55ba189b6)
      11-14 10:24:49.777  7543  7543 F DEBUG   :       #04 pc 000000000052d548  /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/lib/arm64/libQt6Gui_arm64-v8a.so (QGuiApplicationPrivate::createPlatformIntegration()+2476) (BuildId: 87fadeb55ba189b6)
      11-14 10:24:49.777  7543  7543 F DEBUG   :       #05 pc 000000000052e5d8  /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/lib/arm64/libQt6Gui_arm64-v8a.so (QGuiApplicationPrivate::createEventDispatcher()+116) (BuildId: 87fadeb55ba189b6)
      11-14 10:24:49.778  7543  7543 F DEBUG   :       #06 pc 0000000000518fb8  /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/lib/arm64/libQt6Core_arm64-v8a.so (QCoreApplicationPrivate::init()+1132) (BuildId: 536ae6e2bfe8f451)
      11-14 10:24:49.778  7543  7543 F DEBUG   :       #07 pc 00000000005286dc  /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/lib/arm64/libQt6Gui_arm64-v8a.so (QGuiApplicationPrivate::init()+52) (BuildId: 87fadeb55ba189b6)
      11-14 10:24:49.778  7543  7543 F DEBUG   :       #08 pc 0000000000528654  /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/lib/arm64/libQt6Gui_arm64-v8a.so (QGuiApplication::QGuiApplication(int&, char**, int)+148) (BuildId: 87fadeb55ba189b6)
      11-14 10:24:49.778  7543  7543 F DEBUG   :       #09 pc 0000000000008200  /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/lib/arm64/libtst_qhighdpi_arm64-v8a.so (tst_QHighDpi::createOffscreenApplication(QByteArray const&)+1020) (BuildId: 71a6c9e834e8fe345df2d54a3e61cdb26282fc56)
      11-14 10:24:49.778  7543  7543 F DEBUG   :       #10 pc 0000000000008828  /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/lib/arm64/libtst_qhighdpi_arm64-v8a.so (tst_QHighDpi::createStandardOffscreenApp(QList<double> const&)+352) (BuildId: 71a6c9e834e8fe345df2d54a3e61cdb26282fc56)
      11-14 10:24:49.778  7543  7543 F DEBUG   :       #11 pc 0000000000008dc0  /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/lib/arm64/libtst_qhighdpi_arm64-v8a.so (tst_QHighDpi::qhighdpiscaling()+96) (BuildId: 71a6c9e834e8fe345df2d54a3e61cdb26282fc56)
      11-14 10:24:49.778  7543  7543 F DEBUG   :       #12 pc 000000000000c158  /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/lib/arm64/libtst_qhighdpi_arm64-v8a.so (BuildId: 71a6c9e834e8fe345df2d54a3e61cdb26282fc56)
      11-14 10:24:49.778  7543  7543 F DEBUG   :       #13 pc 000000000053f7a8  /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/lib/arm64/libQt6Core_arm64-v8a.so (QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const+1332) (BuildId: 536ae6e2bfe8f451)
      11-14 10:24:49.778  7543  7543 F DEBUG   :       #14 pc 00000000000583fc  /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/lib/arm64/libQt6Test_arm64-v8a.so (BuildId: bf3326621494cc11)
      11-14 10:24:49.778  7543  7543 F DEBUG   :       #15 pc 00000000000578f8  /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/lib/arm64/libQt6Test_arm64-v8a.so (BuildId: bf3326621494cc11)
      11-14 10:24:49.779  7543  7543 F DEBUG   :       #16 pc 0000000000058af4  /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/lib/arm64/libQt6Test_arm64-v8a.so (BuildId: bf3326621494cc11)
      11-14 10:24:49.779  7543  7543 F DEBUG   :       #17 pc 000000000005a934  /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/lib/arm64/libQt6Test_arm64-v8a.so (BuildId: bf3326621494cc11)
      11-14 10:24:49.779  7543  7543 F DEBUG   :       #18 pc 000000000005b694  /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/lib/arm64/libQt6Test_arm64-v8a.so (QTest::qRun()+912) (BuildId: bf3326621494cc11)
      11-14 10:24:49.779  7543  7543 F DEBUG   :       #19 pc 000000000005b174  /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/lib/arm64/libQt6Test_arm64-v8a.so (QTest::qExec(QObject*, int, char**)+40) (BuildId: bf3326621494cc11)
      11-14 10:24:49.779  7543  7543 F DEBUG   :       #20 pc 000000000000c500  /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/lib/arm64/libtst_qhighdpi_arm64-v8a.so (main+92) (BuildId: 71a6c9e834e8fe345df2d54a3e61cdb26282fc56)
      11-14 10:24:49.779  7543  7543 F DEBUG   :       #21 pc 000000000003b988  /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/lib/arm64/libplugins_platforms_qtforandroid_arm64-v8a.so (BuildId: 190c8490faf4762e283c32cd708c4f7c6721bb54)
      11-14 10:24:49.779  7543  7543 F DEBUG   :       #22 pc 0000000000140350  /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 43156c97789690fb5b7d8124668cddee)
      11-14 10:24:49.779  7543  7543 F DEBUG   :       #23 pc 00000000001375b8  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 43156c97789690fb5b7d8124668cddee)
      11-14 10:24:49.779  7543  7543 F DEBUG   :       #24 pc 00000000001460cc  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+276) (BuildId: 43156c97789690fb5b7d8124668cddee)
      11-14 10:24:49.779  7543  7543 F DEBUG   :       #25 pc 00000000002e36d0  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 43156c97789690fb5b7d8124668cddee)
      11-14 10:24:49.779  7543  7543 F DEBUG   :       #26 pc 00000000002de75c  /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+900) (BuildId: 43156c97789690fb5b7d8124668cddee)
      11-14 10:24:49.779  7543  7543 F DEBUG   :       #27 pc 00000000005a4ed0  /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+368) (BuildId: 43156c97789690fb5b7d8124668cddee)
      11-14 10:24:49.779  7543  7543 F DEBUG   :       #28 pc 0000000000131994  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 43156c97789690fb5b7d8124668cddee)
      11-14 10:24:49.779  7543  7543 F DEBUG   :       #29 pc 000000000001323c  [anon:dalvik-classes.dex extracted in memory from /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/base.apk] (org.qtproject.qt.android.QtNative$7.run)
      11-14 10:24:49.779  7543  7543 F DEBUG   :       #30 pc 00000000005a3e2c  /apex/com.android.runtime/lib64/libart.so (MterpInvokeInterface+1740) (BuildId: 43156c97789690fb5b7d8124668cddee)
      11-14 10:24:49.779  7543  7543 F DEBUG   :       #31 pc 0000000000131a14  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 43156c97789690fb5b7d8124668cddee)
      11-14 10:24:49.779  7543  7543 F DEBUG   :       #32 pc 00000000000158a6  [anon:dalvik-classes.dex extracted in memory from /data/app/org.qtproject.example.tst_qhighdpi-_kTranW00VB3hFR-crTMuQ==/base.apk] (org.qtproject.qt.android.QtThread$1.run+146)
      11-14 10:24:49.779  7543  7543 F DEBUG   :       #33 pc 00000000005a3e2c  /apex/com.android.runtime/lib64/libart.so (MterpInvokeInterface+1740) (BuildId: 43156c97789690fb5b7d8124668cddee)
      11-14 10:24:49.779  7543  7543 F DEBUG   :       #34 pc 0000000000131a14  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 43156c97789690fb5b7d8124668cddee)
      11-14 10:24:49.780  7543  7543 F DEBUG   :       #35 pc 00000000000ea9e4  /apex/com.android.runtime/javalib/core-oj.jar (java.lang.Thread.run+8)
      11-14 10:24:49.780  7543  7543 F DEBUG   :       #36 pc 00000000002b4000  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16017486636107417700+240) (BuildId: 43156c97789690fb5b7d8124668cddee)
      11-14 10:24:49.780  7543  7543 F DEBUG   :       #37 pc 00000000005937c8  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1024) (BuildId: 43156c97789690fb5b7d8124668cddee)
      11-14 10:24:49.780  7543  7543 F DEBUG   :       #38 pc 0000000000140468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 43156c97789690fb5b7d8124668cddee)
      11-14 10:24:49.780  7543  7543 F DEBUG   :       #39 pc 0000000000137334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 43156c97789690fb5b7d8124668cddee)
      11-14 10:24:49.780  7543  7543 F DEBUG   :       #40 pc 00000000001460ac  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 43156c97789690fb5b7d8124668cddee)
      11-14 10:24:49.780  7543  7543 F DEBUG   :       #41 pc 00000000004b25b8  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104) (BuildId: 43156c97789690fb5b7d8124668cddee)
      11-14 10:24:49.780  7543  7543 F DEBUG   :       #42 pc 00000000004b3668  /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+416) (BuildId: 43156c97789690fb5b7d8124668cddee)
      11-14 10:24:49.780  7543  7543 F DEBUG   :       #43 pc 00000000004f4190  /apex/com.android.runtime/lib64/libart.so (art::Thread::CreateCallback(void*)+1176) (BuildId: 43156c97789690fb5b7d8124668cddee)
      11-14 10:24:49.780  7543  7543 F DEBUG   :       #44 pc 00000000000e3b24  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: 13817077d0d892b63e2f982cf91d02fa)
      11-14 10:24:49.780  7543  7543 F DEBUG   :       #45 pc 0000000000085330  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 13817077d0d892b63e2f982cf91d02fa)
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              sorvig Morten Sørvig
              Reporter:
              assam Assam Boudjelthia
              PM Owner:
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes