Summary: | Cannot save on Android app | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Matt McFarland <mattmcfarland.art> |
Component: | File formats | Assignee: | sh_zam <shzam> |
Status: | RESOLVED FIXED | ||
Severity: | critical | CC: | shzam |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Android | ||
OS: | Android 10.x | ||
Latest Commit: | https://invent.kde.org/graphics/krita/commit/8fd4bee9648113321bcdd65ce06c190a224caab3 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: |
Device Settings Log
Krita logs generated while error was occurring Screenshot of in-app logs with permission error |
Description
Matt McFarland
2020-07-22 15:32:35 UTC
Hello! Thanks for the detailed report! Unfortunately, there is no straight way to reproduce this :( So, could you please do these to give us more insight into this bug: 1) Click on Menu (Top Left) > Settings > Dockers > Check "Log Viewer". 2) Log Viewer docker should be created and then you can enable "File loading and saving" and then perform the buggy action. 3) Then you can try to save the log from Log Viewer by clicking save button in it. If it doesn't work, perhaps you can scroll and see some additional relevant info about the error, which you can screenshot and attach? Created attachment 130340 [details]
Device Settings Log
Created attachment 130341 [details]
Krita logs generated while error was occurring
I noticed not much was happening on the logs until the error, then it was flooded with permission denied errors as I tried to save or even just navigate my files.
(In reply to Matt McFarland from comment #3) > Created attachment 130341 [details] > Krita logs generated while error was occurring > > I noticed not much was happening on the logs until the error, then it was > flooded with permission denied errors as I tried to save or even just > navigate my files. Thanks for the logs! A quick thing which comes to mind from this is if the permission was revoked by the system (I doubt this would happen, but Android docs suggest not to assume anything about system). Could you check if Krita's has been given Storage permission in App Info? https://support.google.com/android/answer/9431959?hl=en (In reply to Sharaf from comment #4) > Thanks for the logs! A quick thing which comes to mind from this is if the > permission was revoked by the system (I doubt this would happen, but Android > docs suggest not to assume anything about system). > > Could you check if Krita's has been given Storage permission in App Info? > https://support.google.com/android/answer/9431959?hl=en Just checked, storage permissions are allowed and it also says nothing is denied. Also as a note, I was able to save successfully 2 or 3 times before the error came in again, it seems like it starts failing after I use Krita for a little bit, like 5-10 minutes, so I don't think it's necessarily a simple storage issue. I don't see anything permission related in the logs you shared :( If you can either type out one or two errors or screenshot them, please do. I have to see what exactly is denying the permission to find the locus. Created attachment 130369 [details]
Screenshot of in-app logs with permission error
Strange that the error wasn't included in the logs. I still had the app open from before, so the screenshot attached are the same errors I was getting while recording the logs last time.
Thanks! Yes, this is certainly a bug. I will try to look into the whole saving mess tomorrow. Git commit 1fbe9652548e5eaf5bc195efb6bd0c0de9e131bf by Sharaf Zaman. Committed on 25/09/2020 at 10:20. Pushed by szaman into branch 'krita/4.3'. Android: Use Storage Access Framework for all file operations Related: bug 423670 A +973 -0 3rdparty/ext_qt/0047-platform-android-Add-native-file-dialog.patch A +165 -0 3rdparty/ext_qt/0048-Android-Properly-close-the-File-Descriptor.patch A +171 -0 3rdparty/ext_qt/0049-Android-Workarounds-to-explicitly-handle-content-URI.patch M +8 -0 3rdparty/ext_qt/CMakeLists.txt M +21 -0 libs/koplugin/KisMimeDatabase.cpp M +30 -0 libs/ui/KisAndroidFileManager.cpp M +5 -1 libs/ui/KisAndroidFileManager.h M +0 -4 libs/ui/KisDocument.cpp M +0 -6 libs/ui/KisMainWindow.cpp M +3 -0 libs/ui/dialogs/kis_dlg_preferences.cc M +10 -0 libs/widgetutils/KoFileDialog.cpp https://invent.kde.org/graphics/krita/commit/1fbe9652548e5eaf5bc195efb6bd0c0de9e131bf Git commit cd48cc01a36693aa831d857e3a89227c2e9abeee by Sharaf Zaman. Committed on 25/09/2020 at 10:27. Pushed by szaman into branch 'master'. Android: Use Storage Access Framework for all file operations Related: bug 423670 (cherry-picked from 1fbe9652548e5eaf5bc195efb6bd0c0de9e131bf) # Conflicts: # libs/ui/KisMainWindow.cpp A +973 -0 3rdparty/ext_qt/0047-platform-android-Add-native-file-dialog.patch A +165 -0 3rdparty/ext_qt/0048-Android-Properly-close-the-File-Descriptor.patch A +171 -0 3rdparty/ext_qt/0049-Android-Workarounds-to-explicitly-handle-content-URI.patch M +8 -0 3rdparty/ext_qt/CMakeLists.txt M +21 -0 libs/koplugin/KisMimeDatabase.cpp M +30 -0 libs/ui/KisAndroidFileManager.cpp M +5 -1 libs/ui/KisAndroidFileManager.h M +0 -4 libs/ui/KisDocument.cpp M +0 -6 libs/ui/KisMainWindow.cpp M +3 -0 libs/ui/dialogs/kis_dlg_preferences.cc M +10 -0 libs/widgetutils/KoFileDialog.cpp https://invent.kde.org/graphics/krita/commit/cd48cc01a36693aa831d857e3a89227c2e9abeee Git commit 8fd4bee9648113321bcdd65ce06c190a224caab3 by Dmitry Kazakov, on behalf of Sharaf Zaman. Committed on 28/09/2020 at 06:48. Pushed by dkazakov into branch 'krita/4.4.0'. Android: Use Storage Access Framework for all file operations Related: bug 423670 A +973 -0 3rdparty/ext_qt/0047-platform-android-Add-native-file-dialog.patch A +165 -0 3rdparty/ext_qt/0048-Android-Properly-close-the-File-Descriptor.patch A +171 -0 3rdparty/ext_qt/0049-Android-Workarounds-to-explicitly-handle-content-URI.patch M +8 -0 3rdparty/ext_qt/CMakeLists.txt M +21 -0 libs/koplugin/KisMimeDatabase.cpp M +30 -0 libs/ui/KisAndroidFileManager.cpp M +5 -1 libs/ui/KisAndroidFileManager.h M +0 -4 libs/ui/KisDocument.cpp M +0 -6 libs/ui/KisMainWindow.cpp M +3 -0 libs/ui/dialogs/kis_dlg_preferences.cc M +10 -0 libs/widgetutils/KoFileDialog.cpp https://invent.kde.org/graphics/krita/commit/8fd4bee9648113321bcdd65ce06c190a224caab3 |