Details
-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
6.4.2, 6.5.0 Beta2
-
None
-
Tested on Android 11 & 13 compiled with Clang arm64-v8a
Also on Android emulator with Clang x86_64
-
-
2023wk04FOQtforAndroid
Description
This works fine on Windows Desktop, the freezes only occurs on Android.
Here is the minimal code that provokes the freeze :
import QtQuick 6.4 import QtQuick.Window 6.4 import QtQuick.Controls 6.4 import QtMultimedia ApplicationWindow { id: window visible: true width: Screen.desktopAvailableWidth height: Screen.desktopAvailableHeight Loader { id: loader anchors.fill: parent active: activeBtn.checked sourceComponent: Component { Item { id: item Camera { id: camera active: true focusMode: Camera.FocusModeAutoNear } CaptureSession { camera: camera videoOutput: videoOutput } VideoOutput { id: videoOutput anchors.fill: parent fillMode: VideoOutput.Stretch } } } } Button { id : activeBtn text: "Active CAM" checkable: true anchors { right: parent.right bottom: parent.bottom } } }
When you release the button to unload the CaptureSession, the app freezes and crashes.
Error message just before the freeze is :
"D Camera : app passed NULL surface"
Attachments
Issue Links
- duplicates
-
QTBUG-109168 Unloading Camera (QML) item on Android hangs app.
- Closed
-
QTBUG-110797 On android devices, when a 'Video' object is destroyed, the screen does not detect mouse events any more
- Closed