QML Video Qt6 - Cannot make QOpenGLContext current in a different thread
-
I am trying to build an Android APK that runs a local video file. The APK builds and installs fine, but when trying to run the app i get an error (see logcat below the source)
Has anyone else ran into this issue and been able to resolve it?
Also worth noting that i even tried building the "QML Media Player Example" project and get the same error when trying to run on Android. If i target Windows, i can run the .exe and successfully play a video!
main.cpp
#include <QDir> #include <QGuiApplication> #include <QQmlEngine> #include <QQmlFileSelector> #include <QQuickView> //Not using QQmlApplicationEngine because many examples don't have a Window{} int main(int argc, char* argv[]) { QGuiApplication app(argc,argv); app.setOrganizationName("QtProject"); app.setOrganizationDomain("qt-project.org"); app.setApplicationName(QFileInfo(app.applicationFilePath()).baseName()); QQuickView view; qputenv("QML_XHR_ALLOW_FILE_READ", QByteArray("1")); view.engine()->addImportPath(QStringLiteral(":/")); if (qEnvironmentVariableIntValue("QT_QUICK_CORE_PROFILE")) { QSurfaceFormat f = view.format(); f.setProfile(QSurfaceFormat::CoreProfile); f.setVersion(4, 4); view.setFormat(f); } if (qEnvironmentVariableIntValue("QT_QUICK_MULTISAMPLE")) { QSurfaceFormat f = view.format(); f.setSamples(4); view.setFormat(f); } view.connect(view.engine(), &QQmlEngine::quit, &app, &QCoreApplication::quit); new QQmlFileSelector(view.engine(), &view); view.setSource(QUrl("qrc:///src/index.qml")); if (view.status() == QQuickView::Error) return -1; view.setResizeMode(QQuickView::SizeRootObjectToView); view.show(); return app.exec(); }
index.qml
import QtQuick 2.5 import QtMultimedia Rectangle { id: indexPage width: 1920; height: 1080; color: "white" Video { id: video width : parent.width height : parent.height anchors.top: parent.top anchors.left: parent.left muted: true //loops: MediaPlayer.Infinite onStopped: { console.log("Video Playback stopped - play to repeat") play(); } onErrorChanged: { console.log("######################## Error: " + video.error + ", " + video.errorString) if(MediaPlayer.NoError !== error) { console.log("PLAYBACK ERROR!") playBackError = true; } } Component.onCompleted: { video.source = Qt.resolvedUrl("assets/videos/Hero.mp4") video.play() } } Item { id: videoVolume; anchors { right: parent.right; bottom: parent.bottom; margins: 20 } width: 70 height: 70 Text { id: videoVolumeIcon; anchors.centerIn: parent color: "white" font { pixelSize: 30 } text: isMuted ? "Unmute" : "Mute" } MouseArea { anchors { fill : parent } onClicked: { isMuted = !isMuted } } } } //Index.qml
Logcat
2022-05-19 12:33:22.701 26374-26374/? E/Zygote: isWhitelistProcess - Process is Whitelisted 2022-05-19 12:33:22.701 26374-26374/? E/Zygote: accessInfo : 1 2022-05-19 12:33:22.708 26374-26374/? I/project.exampl: Late-enabling -Xcheck:jni 2022-05-19 12:33:22.834 26374-26395/org.qtproject.example D/vndksupport: Loading /vendor/lib/egl/libGLES_mali.so from current namespace instead of sphal namespace. 2022-05-19 12:33:22.868 26374-26395/org.qtproject.example D/libEGL: loaded /vendor/lib/egl/libGLES_mali.so 2022-05-19 12:33:22.885 26374-26374/org.qtproject.example W/System: ClassLoader referenced unknown path: 2022-05-19 12:33:22.898 26374-26374/org.qtproject.example W/project.exampl: Accessing hidden method Landroid/content/ContextWrapper;->getDisplay()Landroid/view/Display; (light greylist, linking) 2022-05-19 12:33:22.918 26374-26374/org.qtproject.example I/DecorView: createDecorCaptionView >> DecorView@9b744c3[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true 2022-05-19 12:33:22.975 26374-26374/org.qtproject.example D/OpenGLRenderer: Skia GL Pipeline 2022-05-19 12:33:23.006 26374-26374/org.qtproject.example D/Qt JAVA: Class org.qtproject.qt.android.multimedia.QtAudioDeviceManager does not implement setActivity method 2022-05-19 12:33:23.017 26374-26399/org.qtproject.example I/QtCore: Start 2022-05-19 12:33:23.090 26374-26399/org.qtproject.example I/Qt: qt started 2022-05-19 12:33:23.095 26374-26374/org.qtproject.example W/project.exampl: Accessing hidden method Landroid/graphics/drawable/StateListDrawable;->getStateCount()I (light greylist, linking) 2022-05-19 12:33:23.397 26374-26374/org.qtproject.example D/EmergencyMode: [EmergencyManager] android createPackageContext successful 2022-05-19 12:33:23.411 26374-26374/org.qtproject.example D/InputTransport: Input channel constructed: fd=61 2022-05-19 12:33:23.412 26374-26374/org.qtproject.example D/ViewRootImpl@567c5dd[QtActivity]: setView = DecorView@9b744c3[QtActivity] TM=true MM=false 2022-05-19 12:33:23.427 26374-26374/org.qtproject.example D/ViewRootImpl@567c5dd[QtActivity]: dispatchAttachedToWindow 2022-05-19 12:33:23.445 26374-26374/org.qtproject.example D/ViewRootImpl@567c5dd[QtActivity]: Relayout returned: old=[0,0][720,1384] new=[0,0][720,1384] result=0x7 surface={valid=true 3323871232} changed=true 2022-05-19 12:33:23.453 26374-26400/org.qtproject.example I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0 2022-05-19 12:33:23.453 26374-26400/org.qtproject.example I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0 2022-05-19 12:33:23.453 26374-26400/org.qtproject.example I/OpenGLRenderer: Initialized EGL, version 1.4 2022-05-19 12:33:23.453 26374-26400/org.qtproject.example D/OpenGLRenderer: Swap behavior 2 2022-05-19 12:33:23.466 26374-26400/org.qtproject.example D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000 2022-05-19 12:33:23.466 26374-26400/org.qtproject.example D/OpenGLRenderer: eglCreateWindowSurface = 0xdf005180, 0xc61e4008 2022-05-19 12:33:23.470 26374-26374/org.qtproject.example D/ViewRootImpl@567c5dd[QtActivity]: MSG_RESIZED: frame=Rect(0, 0 - 720, 1384) ci=Rect(0, 48 - 0, 0) vi=Rect(0, 48 - 0, 0) or=1 2022-05-19 12:33:23.470 26374-26374/org.qtproject.example D/ViewRootImpl@567c5dd[QtActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1 2022-05-19 12:33:23.471 26374-26374/org.qtproject.example D/InputMethodManager: prepareNavigationBarInfo() DecorView@9b744c3[QtActivity] 2022-05-19 12:33:23.471 26374-26374/org.qtproject.example D/InputMethodManager: getNavigationBarColor() -855310 2022-05-19 12:33:23.473 26374-26374/org.qtproject.example D/InputMethodManager: prepareNavigationBarInfo() DecorView@9b744c3[QtActivity] 2022-05-19 12:33:23.473 26374-26374/org.qtproject.example D/InputMethodManager: getNavigationBarColor() -855310 2022-05-19 12:33:23.473 26374-26374/org.qtproject.example V/InputMethodManager: Starting input: tba=org.qtproject.example ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false 2022-05-19 12:33:23.473 26374-26374/org.qtproject.example D/InputMethodManager: startInputInner - Id : 0 2022-05-19 12:33:23.473 26374-26374/org.qtproject.example I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus 2022-05-19 12:33:23.477 26374-26387/org.qtproject.example D/InputTransport: Input channel constructed: fd=70 2022-05-19 12:33:23.483 26374-26400/org.qtproject.example D/vndksupport: Loading /vendor/lib/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace. 2022-05-19 12:33:23.528 26374-26374/org.qtproject.example D/InputMethodManager: prepareNavigationBarInfo() DecorView@9b744c3[QtActivity] 2022-05-19 12:33:23.529 26374-26374/org.qtproject.example D/InputMethodManager: getNavigationBarColor() -855310 2022-05-19 12:33:23.529 26374-26374/org.qtproject.example V/InputMethodManager: Starting input: tba=org.qtproject.example ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false 2022-05-19 12:33:23.529 26374-26374/org.qtproject.example D/InputMethodManager: startInputInner - Id : 0 2022-05-19 12:33:23.595 26374-26399/org.qtproject.example D/AudioManager: setBluetoothScoOn false 2022-05-19 12:33:23.596 26374-26399/org.qtproject.example D/AudioManager: setSpeakerphoneOn false 2022-05-19 12:33:23.783 26374-26399/org.qtproject.example I/MediaPlayer: Need to enable context aware info 2022-05-19 12:33:23.783 26374-26399/org.qtproject.example V/MediaPlayer-JNI: native_setup 2022-05-19 12:33:23.783 26374-26399/org.qtproject.example V/MediaPlayerNative: constructor 2022-05-19 12:33:23.784 26374-26399/org.qtproject.example V/MediaPlayerNative: setListener 2022-05-19 12:33:23.790 26374-26399/org.qtproject.example V/MediaPlayer-JNI: setVolume: left 1.000000 right 1.000000 2022-05-19 12:33:23.790 26374-26399/org.qtproject.example V/MediaPlayerNative: MediaPlayer::setVolume(1.000000, 1.000000) 2022-05-19 12:33:23.791 26374-26399/org.qtproject.example V/MediaPlayer-JNI: setVideoSurface 2022-05-19 12:33:23.791 26374-26399/org.qtproject.example V/MediaPlayerNative: setVideoSurfaceTexture 2022-05-19 12:33:23.791 26374-26399/org.qtproject.example V/MediaPlayer-JNI: setDataSourceFD: fd 76 2022-05-19 12:33:23.791 26374-26399/org.qtproject.example V/MediaPlayerNative: setDataSource(76, 0, 576460752303423487) 2022-05-19 12:33:23.797 26374-26399/org.qtproject.example V/MediaPlayerNative: setVideoSurfaceTexture 2022-05-19 12:33:23.800 26374-26399/org.qtproject.example V/MediaPlayerNative: prepareAsync 2022-05-19 12:33:23.803 26374-26374/org.qtproject.example D/InputMethodManager: HSIFW - flag : 0 Pid : 26374 2022-05-19 12:33:23.803 26374-26374/org.qtproject.example I/InputMethodManager: hideSoftInputFromWindow ignore mServedView == null or mServedView.getWindowToken() != windowToken, mServedView :DecorView@9b744c3[QtActivity] 2022-05-19 12:33:23.815 26374-26374/org.qtproject.example D/SurfaceView: onWindowVisibilityChanged(0) true org.qtproject.qt.android.QtSurface{44dd3e4 V.E...... ......I. 0,0-0,0 #1} of ViewRootImpl@567c5dd[QtActivity] 2022-05-19 12:33:23.818 26374-26387/org.qtproject.example V/MediaPlayerNative: message received msg=5, ext1=1920, ext2=1080 2022-05-19 12:33:23.818 26374-26387/org.qtproject.example V/MediaPlayerNative: New video size 1920 x 1080 2022-05-19 12:33:23.818 26374-26387/org.qtproject.example V/MediaPlayerNative: callback application 2022-05-19 12:33:23.818 26374-26387/org.qtproject.example V/MediaPlayerNative: back from callback 2022-05-19 12:33:23.820 26374-26387/org.qtproject.example V/MediaPlayerNative: message received msg=1, ext1=0, ext2=0 2022-05-19 12:33:23.820 26374-26387/org.qtproject.example V/MediaPlayerNative: MediaPlayer::notify() prepared 2022-05-19 12:33:23.820 26374-26387/org.qtproject.example V/MediaPlayerNative: callback application 2022-05-19 12:33:23.820 26374-26387/org.qtproject.example V/MediaPlayerNative: back from callback 2022-05-19 12:33:23.836 26374-26374/org.qtproject.example D/ViewRootImpl@567c5dd[QtActivity]: Relayout returned: old=[0,0][720,1384] new=[0,0][720,1384] result=0x1 surface={valid=true 3323871232} changed=false 2022-05-19 12:33:23.839 26374-26374/org.qtproject.example D/SurfaceView: hide() Surface(name=SurfaceView - org.qtproject.example/org.qtproject.qt.android.bindings.QtActivity@44dd3e4@0[26374])/@0x20ae04d false true org.qtproject.qt.android.QtSurface{44dd3e4 V.E...... ......ID 0,0-720,1336 #1} 2022-05-19 12:33:23.855 26374-26374/org.qtproject.example D/SurfaceView: surfaceCreated 1 #8 org.qtproject.qt.android.QtSurface{44dd3e4 V.E...... ......ID 0,0-720,1336 #1} 2022-05-19 12:33:23.855 26374-26374/org.qtproject.example D/SurfaceView: surfaceChanged (720,1336) 1 #8 org.qtproject.qt.android.QtSurface{44dd3e4 V.E...... ......ID 0,0-720,1336 #1} 2022-05-19 12:33:23.856 26374-26424/org.qtproject.example D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000 2022-05-19 12:33:23.860 26374-26374/org.qtproject.example V/MediaPlayerNative: invoke 68 2022-05-19 12:33:23.863 26374-26374/org.qtproject.example V/MediaPlayerNative: getDuration_l 2022-05-19 12:33:23.864 26374-26374/org.qtproject.example V/MediaPlayer-JNI: getDuration: 51435 (msec) 2022-05-19 12:33:23.950 26374-26399/org.qtproject.example V/MediaPlayerNative: getDuration_l 2022-05-19 12:33:23.951 26374-26399/org.qtproject.example V/MediaPlayer-JNI: getDuration: 51435 (msec) 2022-05-19 12:33:23.951 26374-26399/org.qtproject.example V/MediaPlayer-JNI: getCurrentPosition: 0 (msec) 2022-05-19 12:33:23.951 26374-26399/org.qtproject.example V/MediaPlayer-JNI: setVolume: left 0.000000 right 0.000000 2022-05-19 12:33:23.951 26374-26399/org.qtproject.example V/MediaPlayerNative: MediaPlayer::setVolume(0.000000, 0.000000) 2022-05-19 12:33:23.953 26374-26399/org.qtproject.example A/libtest5e_armeabi-v7a: Cannot make QOpenGLContext current in a different thread 2022-05-19 12:33:23.953 26374-26399/org.qtproject.example A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 26399 (qtMainLoopThrea), pid 26374 (project.example)
-
Updated logcat of lib info, after adding "qputenv("QT_DEBUG_PLUGINS", QByteArray("1"));" into main.cpp
Logcat
2022-05-19 16:29:08.061 786-811/org.qtproject.example.mediaplayer I/QtCore: Start
2022-05-19 16:29:08.136 786-811/org.qtproject.example.mediaplayer I/Qt: qt started
2022-05-19 16:29:08.140 786-786/org.qtproject.example.mediaplayer W/ple.mediaplaye: Accessing hidden method Landroid/graphics/drawable/StateListDrawable;->getStateCount()I (light greylist, linking)
2022-05-19 16:29:08.444 786-786/org.qtproject.example.mediaplayer D/EmergencyMode: [EmergencyManager] android createPackageContext successful
2022-05-19 16:29:08.463 786-786/org.qtproject.example.mediaplayer D/InputTransport: Input channel constructed: fd=61
2022-05-19 16:29:08.463 786-786/org.qtproject.example.mediaplayer D/ViewRootImpl@7a2d395[QtActivity]: setView = DecorView@9b744c3[QtActivity] TM=true MM=false
2022-05-19 16:29:08.470 786-786/org.qtproject.example.mediaplayer D/ViewRootImpl@7a2d395[QtActivity]: dispatchAttachedToWindow
2022-05-19 16:29:08.493 786-786/org.qtproject.example.mediaplayer D/ViewRootImpl@7a2d395[QtActivity]: Relayout returned: old=[0,0][720,1384] new=[0,0][720,1384] result=0x7 surface={valid=true 3323627520} changed=true
2022-05-19 16:29:08.503 786-814/org.qtproject.example.mediaplayer I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2022-05-19 16:29:08.503 786-814/org.qtproject.example.mediaplayer I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2022-05-19 16:29:08.503 786-814/org.qtproject.example.mediaplayer I/OpenGLRenderer: Initialized EGL, version 1.4
2022-05-19 16:29:08.503 786-814/org.qtproject.example.mediaplayer D/OpenGLRenderer: Swap behavior 2
2022-05-19 16:29:08.513 786-811/org.qtproject.example.mediaplayer D/libmediaplayer_armeabi-v7a.so: QFactoryLoader::QFactoryLoader() checking directory path "/data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm" ...
2022-05-19 16:29:08.515 786-811/org.qtproject.example.mediaplayer D/libmediaplayer_armeabi-v7a.so: QFactoryLoader::QFactoryLoader() looking at "/data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libplugins_platforms_qtforandroid_armeabi-v7a.so"
2022-05-19 16:29:08.515 786-811/org.qtproject.example.mediaplayer W/libmediaplayer_armeabi-v7a.so: Found metadata in lib /data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libplugins_platforms_qtforandroid_armeabi-v7a.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"android"
]
},
"archreq": 0,
"className": "QAndroidIntegrationPlugin",
"debug": false,
"version": 393728
}
2022-05-19 16:29:08.515 786-811/org.qtproject.example.mediaplayer D/libmediaplayer_armeabi-v7a.so: Got keys from plugin meta data QList("android")
2022-05-19 16:29:08.516 786-811/org.qtproject.example.mediaplayer D/libmediaplayer_armeabi-v7a.so: loaded library "/data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libplugins_platforms_qtforandroid_armeabi-v7a.so"
2022-05-19 16:29:08.519 786-786/org.qtproject.example.mediaplayer D/ViewRootImpl@7a2d395[QtActivity]: MSG_RESIZED: frame=Rect(0, 0 - 720, 1384) ci=Rect(0, 48 - 0, 0) vi=Rect(0, 48 - 0, 0) or=1
2022-05-19 16:29:08.519 786-786/org.qtproject.example.mediaplayer D/ViewRootImpl@7a2d395[QtActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1
2022-05-19 16:29:08.520 786-786/org.qtproject.example.mediaplayer D/InputMethodManager: prepareNavigationBarInfo() DecorView@9b744c3[QtActivity]
2022-05-19 16:29:08.520 786-786/org.qtproject.example.mediaplayer D/InputMethodManager: getNavigationBarColor() -855310
2022-05-19 16:29:08.522 786-786/org.qtproject.example.mediaplayer D/InputMethodManager: prepareNavigationBarInfo() DecorView@9b744c3[QtActivity]
2022-05-19 16:29:08.522 786-786/org.qtproject.example.mediaplayer D/InputMethodManager: getNavigationBarColor() -855310
2022-05-19 16:29:08.522 786-786/org.qtproject.example.mediaplayer V/InputMethodManager: Starting input: tba=org.qtproject.example.mediaplayer ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
2022-05-19 16:29:08.523 786-786/org.qtproject.example.mediaplayer D/InputMethodManager: startInputInner - Id : 0
2022-05-19 16:29:08.523 786-786/org.qtproject.example.mediaplayer I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
2022-05-19 16:29:08.523 786-814/org.qtproject.example.mediaplayer D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
2022-05-19 16:29:08.523 786-814/org.qtproject.example.mediaplayer D/OpenGLRenderer: eglCreateWindowSurface = 0xdf005180, 0xc61a8808
2022-05-19 16:29:08.528 786-798/org.qtproject.example.mediaplayer D/InputTransport: Input channel constructed: fd=70
2022-05-19 16:29:08.534 786-814/org.qtproject.example.mediaplayer D/vndksupport: Loading /vendor/lib/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
2022-05-19 16:29:08.675 786-786/org.qtproject.example.mediaplayer D/InputMethodManager: prepareNavigationBarInfo() DecorView@9b744c3[QtActivity]
2022-05-19 16:29:08.675 786-786/org.qtproject.example.mediaplayer D/InputMethodManager: getNavigationBarColor() -855310
2022-05-19 16:29:08.675 786-786/org.qtproject.example.mediaplayer V/InputMethodManager: Starting input: tba=org.qtproject.example.mediaplayer ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
2022-05-19 16:29:08.676 786-786/org.qtproject.example.mediaplayer D/InputMethodManager: startInputInner - Id : 0
2022-05-19 16:29:08.678 786-811/org.qtproject.example.mediaplayer D/libmediaplayer_armeabi-v7a.so: QFactoryLoader::QFactoryLoader() checking directory path "/data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm" ...
2022-05-19 16:29:08.725 786-836/org.qtproject.example.mediaplayer W/MediaPlayer Example: Found metadata in lib /data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libqml_QtQuick_Controls_qtquickcontrols2plugin_armeabi-v7a.so, metadata=
{
"IID": "org.qt-project.Qt.QQmlExtensionInterface/1.0",
"archreq": 0,
"className": "QtQuickControls2Plugin",
"debug": false,
"uri": [
"QtQuick.Controls"
],
"version": 393728
}
2022-05-19 16:29:08.726 786-836/org.qtproject.example.mediaplayer D/MediaPlayer Example: loaded library "/data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libqml_QtQuick_Controls_qtquickcontrols2plugin_armeabi-v7a.so"
2022-05-19 16:29:08.728 786-836/org.qtproject.example.mediaplayer W/MediaPlayer Example: Found metadata in lib /data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libqml_QtQuick_Controls_Material_qtquickcontrols2materialstyleplugin_armeabi-v7a.so, metadata=
{
"IID": "org.qt-project.Qt.QQmlExtensionInterface/1.0",
"archreq": 0,
"className": "QtQuickControls2MaterialStylePlugin",
"debug": false,
"uri": [
"QtQuick.Controls.Material"
],
"version": 393728
}
2022-05-19 16:29:08.730 786-836/org.qtproject.example.mediaplayer D/MediaPlayer Example: loaded library "/data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libqml_QtQuick_Controls_Material_qtquickcontrols2materialstyleplugin_armeabi-v7a.so"
2022-05-19 16:29:08.841 786-836/org.qtproject.example.mediaplayer W/MediaPlayer Example: Found metadata in lib /data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libqml_QtQuick_Controls_Basic_qtquickcontrols2basicstyleplugin_armeabi-v7a.so, metadata=
{
"IID": "org.qt-project.Qt.QQmlExtensionInterface/1.0",
"archreq": 0,
"className": "QtQuickControls2BasicStylePlugin",
"debug": false,
"uri": [
"QtQuick.Controls.Basic"
],
"version": 393728
}
2022-05-19 16:29:08.844 786-836/org.qtproject.example.mediaplayer D/MediaPlayer Example: loaded library "/data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libqml_QtQuick_Controls_Basic_qtquickcontrols2basicstyleplugin_armeabi-v7a.so"
2022-05-19 16:29:08.849 786-836/org.qtproject.example.mediaplayer W/MediaPlayer Example: Found metadata in lib /data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libqml_QtMultimedia_quickmultimediaplugin_armeabi-v7a.so, metadata=
{
"IID": "org.qt-project.Qt.QQmlEngineExtensionInterface",
"archreq": 0,
"className": "QMultimediaQuickModule",
"debug": false,
"uri": [
"QtMultimedia"
],
"version": 393728
}
2022-05-19 16:29:08.851 786-836/org.qtproject.example.mediaplayer D/MediaPlayer Example: loaded library "/data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libqml_QtMultimedia_quickmultimediaplugin_armeabi-v7a.so"
2022-05-19 16:29:08.855 786-836/org.qtproject.example.mediaplayer W/MediaPlayer Example: Found metadata in lib /data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libqml_QtQuick_Templates_qtquicktemplates2plugin_armeabi-v7a.so, metadata=
{
"IID": "org.qt-project.Qt.QQmlExtensionInterface/1.0",
"archreq": 0,
"className": "QtQuickTemplates2Plugin",
"debug": false,
"uri": [
"QtQuick.Templates"
],
"version": 393728
}
2022-05-19 16:29:08.856 786-836/org.qtproject.example.mediaplayer D/MediaPlayer Example: loaded library "/data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libqml_QtQuick_Templates_qtquicktemplates2plugin_armeabi-v7a.so"
2022-05-19 16:29:08.866 786-836/org.qtproject.example.mediaplayer W/MediaPlayer Example: Found metadata in lib /data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libqml_QtQuick_Controls_Material_impl_qtquickcontrols2materialstyleimplplugin_armeabi-v7a.so, metadata=
{
"IID": "org.qt-project.Qt.QQmlEngineExtensionInterface",
"archreq": 0,
"className": "QtQuickControls2MaterialStyleImplPlugin",
"debug": false,
"uri": [
"QtQuick.Controls.Material.impl"
],
"version": 393728
}
2022-05-19 16:29:08.868 786-836/org.qtproject.example.mediaplayer D/MediaPlayer Example: loaded library "/data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libqml_QtQuick_Controls_Material_impl_qtquickcontrols2materialstyleimplplugin_armeabi-v7a.so"
2022-05-19 16:29:08.892 786-836/org.qtproject.example.mediaplayer W/MediaPlayer Example: Found metadata in lib /data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libqml_QtQuick_Window_quickwindowplugin_armeabi-v7a.so, metadata=
{
"IID": "org.qt-project.Qt.QQmlEngineExtensionInterface",
"archreq": 0,
"className": "QtQuick_WindowPlugin",
"debug": false,
"uri": [
"QtQuick.Window"
],
"version": 393728
}
2022-05-19 16:29:08.893 786-836/org.qtproject.example.mediaplayer D/MediaPlayer Example: loaded library "/data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libqml_QtQuick_Window_quickwindowplugin_armeabi-v7a.so"
2022-05-19 16:29:08.968 786-811/org.qtproject.example.mediaplayer D/AudioManager: setBluetoothScoOn false
2022-05-19 16:29:08.970 786-811/org.qtproject.example.mediaplayer D/AudioManager: setSpeakerphoneOn false
2022-05-19 16:29:08.975 786-811/org.qtproject.example.mediaplayer D/MediaPlayer Example: QFactoryLoader::QFactoryLoader() checking directory path "/data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm" ...
2022-05-19 16:29:08.976 786-811/org.qtproject.example.mediaplayer D/MediaPlayer Example: QFactoryLoader::QFactoryLoader() looking at "/data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libplugins_imageformats_qgif_armeabi-v7a.so"
2022-05-19 16:29:08.976 786-811/org.qtproject.example.mediaplayer W/MediaPlayer Example: Found metadata in lib /data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libplugins_imageformats_qgif_armeabi-v7a.so, metadata=
{
"IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
"MetaData": {
"Keys": [
"gif"
],
"MimeTypes": [
"image/gif"
]
},
"archreq": 0,
"className": "QGifPlugin",
"debug": false,
"version": 393728
}
2022-05-19 16:29:08.977 786-811/org.qtproject.example.mediaplayer D/MediaPlayer Example: Got keys from plugin meta data QList("gif")
2022-05-19 16:29:08.977 786-811/org.qtproject.example.mediaplayer D/MediaPlayer Example: QFactoryLoader::QFactoryLoader() looking at "/data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libplugins_imageformats_qico_armeabi-v7a.so"
2022-05-19 16:29:08.977 786-811/org.qtproject.example.mediaplayer W/MediaPlayer Example: Found metadata in lib /data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libplugins_imageformats_qico_armeabi-v7a.so, metadata=
{
"IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
"MetaData": {
"Keys": [
"ico",
"cur"
],
"MimeTypes": [
"image/vnd.microsoft.icon",
"image/vnd.microsoft.icon"
]
},
"archreq": 0,
"className": "QICOPlugin",
"debug": false,
"version": 393728
}
2022-05-19 16:29:08.977 786-811/org.qtproject.example.mediaplayer D/MediaPlayer Example: Got keys from plugin meta data QList("ico", "cur")
2022-05-19 16:29:08.977 786-811/org.qtproject.example.mediaplayer D/MediaPlayer Example: QFactoryLoader::QFactoryLoader() looking at "/data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libplugins_imageformats_qjpeg_armeabi-v7a.so"
2022-05-19 16:29:08.977 786-811/org.qtproject.example.mediaplayer W/MediaPlayer Example: Found metadata in lib /data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libplugins_imageformats_qjpeg_armeabi-v7a.so, metadata=
{
"IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
"MetaData": {
"Keys": [
"jpg",
"jpeg"
],
"MimeTypes": [
"image/jpeg",
"image/jpeg"
]
},
"archreq": 0,
"className": "QJpegPlugin",
"debug": false,
"version": 393728
}
2022-05-19 16:29:08.978 786-811/org.qtproject.example.mediaplayer D/MediaPlayer Example: Got keys from plugin meta data QList("jpg", "jpeg")
2022-05-19 16:29:08.978 786-811/org.qtproject.example.mediaplayer D/MediaPlayer Example: QFactoryLoader::QFactoryLoader() looking at "/data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libplugins_imageformats_qsvg_armeabi-v7a.so"
2022-05-19 16:29:08.978 786-811/org.qtproject.example.mediaplayer W/MediaPlayer Example: Found metadata in lib /data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libplugins_imageformats_qsvg_armeabi-v7a.so, metadata=
{
"IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
"MetaData": {
"Keys": [
"svg",
"svgz"
],
"MimeTypes": [
"image/svg+xml",
"image/svg+xml-compressed"
]
},
"archreq": 0,
"className": "QSvgPlugin",
"debug": false,
"version": 393728
}
2022-05-19 16:29:08.978 786-811/org.qtproject.example.mediaplayer D/MediaPlayer Example: Got keys from plugin meta data QList("svg", "svgz")
2022-05-19 16:29:08.979 786-811/org.qtproject.example.mediaplayer D/MediaPlayer Example: loaded library "/data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libplugins_imageformats_qgif_armeabi-v7a.so"
2022-05-19 16:29:08.981 786-811/org.qtproject.example.mediaplayer D/MediaPlayer Example: loaded library "/data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libplugins_imageformats_qico_armeabi-v7a.so"
2022-05-19 16:29:08.982 786-811/org.qtproject.example.mediaplayer D/MediaPlayer Example: loaded library "/data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libplugins_imageformats_qjpeg_armeabi-v7a.so"
2022-05-19 16:29:08.984 786-811/org.qtproject.example.mediaplayer D/MediaPlayer Example: loaded library "/data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm/libplugins_imageformats_qsvg_armeabi-v7a.so"
2022-05-19 16:29:09.032 786-811/org.qtproject.example.mediaplayer D/MediaPlayer Example: QFactoryLoader::QFactoryLoader() checking directory path "/data/app/org.qtproject.example.mediaplayer-2qGstnYaTbUxi2tSv3iNag==/lib/arm" ...
2022-05-19 16:29:09.100 786-786/org.qtproject.example.mediaplayer D/InputMethodManager: HSIFW - flag : 0 Pid : 786
2022-05-19 16:29:09.100 786-786/org.qtproject.example.mediaplayer I/InputMethodManager: hideSoftInputFromWindow ignore mServedView == null or mServedView.getWindowToken() != windowToken, mServedView :DecorView@9b744c3[QtActivity]
2022-05-19 16:29:09.110 786-786/org.qtproject.example.mediaplayer D/SurfaceView: onWindowVisibilityChanged(0) true -
FYI for anyone else I was using 6.2 and updated to 6.3 and the crash has gone away.
Perhaps fixed in this? QTBUG-99775 Crash on QObject::objectName access when using QThreadPool
from non-owning thread6.3 Release Notes:-
https://code.qt.io/cgit/qt/qtreleasenotes.git/about/qt/6.3.0/release-note.md -
FYI for anyone else I was using 6.2 and updated to 6.3 and the crash has gone away.
Perhaps fixed in this? QTBUG-99775 Crash on QObject::objectName access when using QThreadPool
from non-owning thread6.3 Release Notes:-
https://code.qt.io/cgit/qt/qtreleasenotes.git/about/qt/6.3.0/release-note.md@RobHills @Myko1a
I'm here because I had this problem and I solved upgrading to Qt6.4.2...but I have another issue, MediaPlayer for Android works only for the first video, then it not shows anymore videos but it emits stopped on videos end.Same code compiled for Windows works good.
Have you also this problem?