Details
-
Bug
-
Resolution: Incomplete
-
P1: Critical
-
None
-
6.7.0
-
None
-
-
2024wk20s2FOQtforAndroid
Description
The Following code snipped works fine on Windows but crashes on Android 13 after selecting a file.
FileDialog
{
nameFilters: ["Image files (*.png *.jpeg *.jpg *.bmp)"]
onAccepted: () => customBackGround.source = selectedFile
currentFolder: StandardPaths.standardLocations(StandardPaths.PicturesLocation)[0]
}
Looking at the debug logs, I see:
W ContentProvider: Error parsing userId.
W ContentProvider: java.lang.NumberFormatException: For input string: "com.android.providers.media"
W ContentProvider: at java.lang.Integer.parseInt(Integer.java:797)
W ContentProvider: at java.lang.Integer.parseInt(Integer.java:915)
W ContentProvider: at android.content.ContentProvider.getUserIdFromAuthority(ContentProvider.java:2670)
It seems we are hitting:
The problem seems to be the returned path content://com.android.providers.media.documents/document/image%3A1000006719
when it is assigned to a qml image.