Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.9.3
Description
When loading qml file from storage location e.g. /storage/self/primary/Download/main.qml causes application to crash.
Steps to reproduce the issue.
1. Copy main.qml to /storage/self/primary/Download/ on the Android device
./adb push main.qml /storage/self/primary/Download
2. Run attached application
Expected outcome:
Application launches and displays the qml file.
Actual outcome:
Application crashes.
Notes:
If the qml file contains only one rectangle it is not crashing and gets displayed on the screen.
Adding another item (rectangle, text, etc.) causes the crash.
Tested with:
Android 7 and 8 crashes
Android 6 doesn't crash
Console log:
I zygote : Late-enabling -Xcheck:jni W System : ClassLoader referenced unknown path: I QtCore : Start W linker : "/data/app/org.qtproject.example.TestApp-gGKhl10EXjLsVv_SFFovPg==/lib/arm/libQt5Network.so" has unsupported flags DT_FLAGS_1=0x81 W linker : "/data/app/org.qtproject.example.TestApp-gGKhl10EXjLsVv_SFFovPg==/lib/arm/libQt5Qml.so" has unsupported flags DT_FLAGS_1=0x81 W linker : "/data/app/org.qtproject.example.TestApp-gGKhl10EXjLsVv_SFFovPg==/lib/arm/libQt5Gui.so" has unsupported flags DT_FLAGS_1=0x81 W linker : "/data/app/org.qtproject.example.TestApp-gGKhl10EXjLsVv_SFFovPg==/lib/arm/libQt5Quick.so" has unsupported flags DT_FLAGS_1=0x81 W linker : "/data/app/org.qtproject.example.TestApp-gGKhl10EXjLsVv_SFFovPg==/lib/arm/libQt5QuickParticles.so" has unsupported flags DT_FLAGS_1=0x81 W linker : "/data/data/org.qtproject.example.TestApp/qt-reserved-files/plugins/platforms/android/libqtforandroid.so" has unsupported flags DT_FLAGS_1=0x81 I Qt : qt start W linker : "/data/data/org.qtproject.example.TestApp/qt-reserved-files/plugins/bearer/libqandroidbearer.so" has unsupported flags DT_FLAGS_1=0x81 D OpenGLRenderer: HWUI GL Pipeline I zygote : Do partial code cache collection, code=31KB, data=30KB I zygote : After code cache collection, code=29KB, data=30KB I zygote : Increasing code cache capacity to 128KB I zygote : Do partial code cache collection, code=62KB, data=59KB I zygote : After code cache collection, code=62KB, data=59KB I zygote : Increasing code cache capacity to 256KB W linker : "/data/app/org.qtproject.example.TestApp-gGKhl10EXjLsVv_SFFovPg==/lib/arm/libTestApp.so" unused DT entry: type 0xf arg 0x61f D : (null):0 ((null)): QML debugging is enabled. Only use this in a safe environment. D NvOsDebugPrintf: NvRmPrivGetChipPlatform: Could not read platform information D NvOsDebugPrintf: Expected on kernels without fuse support, using silicon D vndksupport: Loading /vendor/lib/hw/gralloc.tegra.so from current namespace instead of sphal namespace. I zygote : android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0 I OpenGLRenderer: Initialized EGL, version 1.4 D OpenGLRenderer: Swap behavior 2 D vndksupport: Loading /vendor/lib/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace. D vndksupport: Loading /vendor/lib/hw/gralloc.tegra.so from current namespace instead of sphal namespace. D vndksupport: Loading /vendor/lib/hw/gralloc.tegra.so from current namespace instead of sphal namespace. W linker : "/data/data/org.qtproject.example.TestApp/qt-reserved-files/qml/QtQuick.2/libqtquick2plugin.so" has unsupported flags DT_FLAGS_1=0x81 W linker : "/data/data/org.qtproject.example.TestApp/qt-reserved-files/qml/QtQuick/Window.2/libwindowplugin.so" has unsupported flags DT_FLAGS_1=0x81 F libc : Fatal signal 11 (SIGSEGV), code 2, fault addr 0xeb82b770 in tid 7068 (QtThread), pid 6936 (example.TestApp)