Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.12
-
None
Description
I want to load offline map on the Android R, the qml is as follow.
import QtQuick 2.0
import QtQuick.Window 2.0
import QtLocation 5.6
import QtPositioning 5.6
Window {
width: 1920
height: 1080
visible: true
Plugin {
id: mapPlugin
name: "mapboxgl"
PluginParameter
{ name: "mapboxgl.access_token"; value: "xxxxxxx" }PluginParameter
{ name: "mapboxgl.mapping.cache.directory"; value: "/storage/emulated/10/Download/offline-maps" }PluginParameter
{ name: "mapboxgl.mapping.cache.size"; value: 100 * 1024 * 1024 }}
Map
{ id: map anchors.fill: parent plugin: mapPlugin center: QtPositioning.coordinate(52.53471566, 13.29339621) activeMapType: map.supportedMapTypes[map.supportedMapTypes.length-1] zoomLevel: 14 }}
this demo can work on Android Q, but it will crash on Android R.
07-15 03:26:20.301 497 745 W ServiceManager: Permission failure: android.permission.ACCESS_SURFACE_FLINGER from uid=1010113 pid=7263
07-15 03:26:20.310 7263 7289 D libminimal_map.so: this is test code
07-15 03:26:20.328 7263 7285 W libEGL : EGLNativeWindowType 0x767632bbe0 disconnect failed
07-15 03:26:44.703 7263 7263 W QtThread: type=1400 audit(0.0:49): avc: granted { execute } for path="/data/user/10/org.qtproject.example/qt-reserved-files/qml/QtQuick.2/libqtquick2plugin.so" dev="dm-2" ino=475684 scontext=u:r:untrusted_app_27:s0:c113,c256,c522,c768 tcontext=u:object_r:app_data_file:s0:c113,c256,c522,c768 tclass=file
07-15 03:26:44.708 7263 7342 W linker : Warning: "/data/user/10/org.qtproject.example/qt-reserved-files/qml/QtQuick.2/libqtquick2plugin.so" has unsupported flags DT_FLAGS_1=0x80 (ignoring unsupported flags)
07-15 03:26:44.707 7263 7263 W QtThread: type=1400 audit(0.0:50): avc: granted { execute } for path="/data/user/10/org.qtproject.example/qt-reserved-files/qml/QtQuick/Window.2/libwindowplugin.so" dev="dm-2" ino=475687 scontext=u:r:untrusted_app_27:s0:c113,c256,c522,c768 tcontext=u:object_r:app_data_file:s0:c113,c256,c522,c768 tclass=file
07-15 03:26:44.712 7263 7342 W linker : Warning: "/data/user/10/org.qtproject.example/qt-reserved-files/qml/QtQuick/Window.2/libwindowplugin.so" has unsupported flags DT_FLAGS_1=0x80 (ignoring unsupported flags)
07-15 03:26:44.711 7263 7263 W QtThread: type=1400 audit(0.0:51): avc: granted { execute } for path="/data/user/10/org.qtproject.example/qt-reserved-files/qml/QtLocation/libdeclarative_location.so" dev="dm-2" ino=475689 scontext=u:r:untrusted_app_27:s0:c113,c256,c522,c768 tcontext=u:object_r:app_data_file:s0:c113,c256,c522,c768 tclass=file
07-15 03:26:44.715 7263 7342 W linker : Warning: "/data/user/10/org.qtproject.example/qt-reserved-files/qml/QtLocation/libdeclarative_location.so" has unsupported flags DT_FLAGS_1=0x80 (ignoring unsupported flags)
07-15 03:26:44.711 7263 7263 W QtThread: type=1400 audit(0.0:52): avc: granted { execute } for path="/data/user/10/org.qtproject.example/qt-reserved-files/qml/QtPositioning/libdeclarative_positioning.so" dev="dm-2" ino=475691 scontext=u:r:untrusted_app_27:s0:c113,c256,c522,c768 tcontext=u:object_r:app_data_file:s0:c113,c256,c522,c768 tclass=file
07-15 03:26:44.718 7263 7342 W linker : Warning: "/data/user/10/org.qtproject.example/qt-reserved-files/qml/QtPositioning/libdeclarative_positioning.so" has unsupported flags DT_FLAGS_1=0x80 (ignoring unsupported flags)
07-15 03:26:44.719 7263 7263 W qtMainLoopThrea: type=1400 audit(0.0:53): avc: granted { execute } for path="/data/user/10/org.qtproject.example/qt-reserved-files/plugins/geoservices/libqtgeoservices_mapboxgl.so" dev="dm-2" ino=475677 scontext=u:r:untrusted_app_27:s0:c113,c256,c522,c768 tcontext=u:object_r:app_data_file:s0:c113,c256,c522,c768 tclass=file
07-15 03:26:44.726 7263 7289 W linker : Warning: "/data/user/10/org.qtproject.example/qt-reserved-files/plugins/geoservices/libqtgeoservices_mapboxgl.so" has unsupported flags DT_FLAGS_1=0x80 (ignoring unsupported flags)
07-15 03:26:44.731 7263 7289 D libminimal_map.so: qml: the path is /storage/emulated/10/Download/offline-maps
07-15 03:26:44.755 7263 7263 W QtThread: type=1400 audit(0.0:54): avc: granted { execute } for path="/data/user/10/org.qtproject.example/qt-reserved-files/plugins/sqldrivers/libqsqlite.so" dev="dm-2" ino=475681 scontext=u:r:untrusted_app_27:s0:c113,c256,c522,c768 tcontext=u:object_r:app_data_file:s0:c113,c256,c522,c768 tclass=file
07-15 03:26:44.760 7263 7347 W linker : Warning: "/data/user/10/org.qtproject.example/qt-reserved-files/plugins/sqldrivers/libqsqlite.so" has unsupported flags DT_FLAGS_1=0x80 (ignoring unsupported flags)
07-15 03:26:44.769 7263 7343 W libminimal_map.so: Threaded rendering is not optimal in the Mapbox GL plugin.
07-15 03:26:44.769 7263 7353 I TetheringManager: registerTetheringEventCallback:org.qtproject.example
07-15 03:26:44.763 7263 7263 W QtThread: type=1400 audit(0.0:55): avc: denied { ioctl } for path="socket:[81106]" dev="sockfs" ino=81106 ioctlcmd=0x8b07 scontext=u:r:untrusted_app_27:s0:c113,c256,c522,c768 tcontext=u:r:untrusted_app_27:s0:c113,c256,c522,c768 tclass=netlink_route_socket permissive=0
07-15 03:26:44.792 7263 7347 E libc++abi: terminating with uncaught exception of type mapbox::sqlite::Exception: disk I/O error Unable to fetch row
07-15 03:26:44.793 7263 7347 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 7347 (QtThread), pid 7263 (project.example)
07-15 03:26:44.858 7358 7358 I crash_dump64: performing dump of process 7263 (target tid = 7347)