Akylas / OSS-DocumentScanner

Android document document scanning app
https://www.akylas.fr
MIT License
607 stars 22 forks source link

[BUG] permission_error when exporting PDF #178

Closed FineFindus closed 2 months ago

FineFindus commented 3 months ago

Version

1.5.6 Build 56

What platform are you using?

Android

OS Version

Android 10

What happened?

When exporting a scanned document as a PDF, it fails with the message 'permission_error'. I tried it both with the default settings, as well as with a custom export directory set.

permission error dialog

Relevant log output

1712583955.880 11576  3484  3650 D ProfileInstaller: Skipping profile installation for com.akylas.documentscanner
1712583957.421 11576  3484  3524 D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
1712583957.448 11576  3484  3484 I HwViewRootImpl: removeInvalidNode all the node in jank list is out of time
1712583958.634 11576  3484  3484 I FragmentManager: Older versions of AndroidX Transition do not support seeking. Add dependency on AndroidX Transition 1.5.0 or higher to enable seeking.
1712583958.634 11576  3484  3484 I chatty  : uid=11576(com.akylas.documentscanner) identical 1 line
1712583958.635 11576  3484  3484 I FragmentManager: Older versions of AndroidX Transition do not support seeking. Add dependency on AndroidX Transition 1.5.0 or higher to enable seeking.
1712583959.966 11576  3484  3524 D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
1712583963.165 11576  3484  3524 W libEGL  : EGLNativeWindowType 0x7b0bf8a690 disconnect failed
1712583963.408 11576  3484  3484 W InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed.
1712583963.416 11576  3484  3711 W HiTouch_HiTouchSensor: depended package hiTouch does n't exist!
1712583963.416 11576  3484  3711 I HiTouch_HiTouchSensor: HiTouch restricted: system app HiTouch don't exist.
1712583963.416 11576  3484  3711 D HiTouch_PressGestureDetector: onAttached, package=com.akylas.documentscanner, windowType=2, mHiTouchRestricted=true
1712583963.428 11576  3484  3524 D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
1712583963.442 11576  3484  3484 I HwViewRootImpl: removeInvalidNode all the node in jank list is out of time
1712583963.828 11576  3484  3524 W libEGL  : EGLNativeWindowType 0x7b0bf8a690 disconnect failed
1712583963.851 11576  3484  3737 W HiTouch_HiTouchSensor: depended package hiTouch does n't exist!
1712583963.851 11576  3484  3737 I HiTouch_HiTouchSensor: HiTouch restricted: system app HiTouch don't exist.
1712583963.851 11576  3484  3737 D HiTouch_PressGestureDetector: onAttached, package=com.akylas.documentscanner, windowType=2, mHiTouchRestricted=true
1712583963.862 11576  3484  3524 D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
1712583964.667 11576  3484  3484 V AudioManager: querySoundEffectsEnabled...
1712583964.674 11576  3484  3524 W libEGL  : EGLNativeWindowType 0x7b0bf8a690 disconnect failed
1712583964.674 11576  3484  3524 D OpenGLRenderer: endAllActiveAnimators on 0x7b303c4000 (RippleDrawable) with handle 0x79ffe8ba80
1712583965.473 11576  3484  3524 D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
1712583966.584 11576  3484  3524 W libEGL  : EGLNativeWindowType 0x7b84c24ed0 disconnect failed
1712583966.622 11576  3484  3484 E Resource: printErrorResource, maybe not a error because module has entative access to resource called by =android.content.res.HwResourcesImpl.printErrorResource:2634 android.content.res.ResourcesImpl.getResourceName:344 android.content.res.Resources.getResourceName:2181 android.view.View.saveAttributeData:6178 android.view.View.<init>:5249 android.widget.ImageView.<init>:213
1712583966.622 11576  3484  3484 I ResourcesImplEx: The apk asset path = ApkAssets{path=/system/framework/framework-res.apk}
1712583966.622 11576  3484  3484 I ResourcesImplEx: The apk asset path = ApkAssets{path=/system/framework/framework-res-hwext.apk}
1712583966.622 11576  3484  3484 I ResourcesImplEx: The apk asset path = ApkAssets{path=/preas/oversea/overlay/GmsConfigOverlay.apk}
1712583966.622 11576  3484  3484 I ResourcesImplEx: The apk asset path = ApkAssets{path=/preas/oversea/overlay/GmsGsaConfigOverlay.apk}
1712583966.622 11576  3484  3484 I ResourcesImplEx: The apk asset path = ApkAssets{path=/preas/oversea/overlay/GoogleExtServicesConfigOverlay.apk}
1712583966.622 11576  3484  3484 I ResourcesImplEx: The apk asset path = ApkAssets{path=/preas/oversea/overlay/GoogleModuleMetadataConfigOverlay.apk}
1712583966.622 11576  3484  3484 I ResourcesImplEx: The apk asset path = ApkAssets{path=/preas/oversea/overlay/GooglePermissionControllerConfigOverlay.apk}
1712583966.622 11576  3484  3484 I ResourcesImplEx: The apk asset path = ApkAssets{path=/hw_product/overlay/frameworkResOverlay.apk}
1712583966.622 11576  3484  3484 I ResourcesImplEx: The apk asset path = ApkAssets{path=/odm/overlay/frameworkResOverlay.apk}
1712583966.622 11576  3484  3484 I ResourcesImplEx: The apk asset path = ApkAssets{path=/data/app/com.akylas.documentscanner-z949jDLYv_fMQVZzO2ILwg==/base.apk}
1712583966.622 11576  3484  3484 I ResourcesImplEx: The apk asset path = ApkAssets{path=/system/emui/base/overlay/frameworkhwexthonor/frameworkhwexthonor.apk}
1712583966.710 11576  3484  3484 W InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed.
1712583966.714 11576  3484  3741 W HiTouch_HiTouchSensor: depended package hiTouch does n't exist!
1712583966.714 11576  3484  3741 I HiTouch_HiTouchSensor: HiTouch restricted: system app HiTouch don't exist.
1712583966.714 11576  3484  3741 D HiTouch_PressGestureDetector: onAttached, package=com.akylas.documentscanner, windowType=2, mHiTouchRestricted=true
1712583966.734 11576  3484  3524 D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
1712583967.674 11576  3484  3484 V AudioManager: querySoundEffectsEnabled...
1712583967.687 11576  3484  3524 W libEGL  : EGLNativeWindowType 0x7b84c24ed0 disconnect failed
1712583967.687 11576  3484  3524 D OpenGLRenderer: endAllActiveAnimators on 0x7b28387600 (RippleDrawable) with handle 0x79f925b6c0
1712583967.774 11576  3484  3744 W HiTouch_HiTouchSensor: depended package hiTouch does n't exist!
1712583967.774 11576  3484  3744 I HiTouch_HiTouchSensor: HiTouch restricted: system app HiTouch don't exist.
1712583967.774 11576  3484  3744 D HiTouch_PressGestureDetector: onAttached, package=com.akylas.documentscanner, windowType=2, mHiTouchRestricted=true
1712583967.784 11576  3484  3524 D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
1712583967.937 11576  3484  3524 W libEGL  : EGLNativeWindowType 0x7b84c24ed0 disconnect failed
1712583967.964 11576  3484  3747 W HiTouch_HiTouchSensor: depended package hiTouch does n't exist!
1712583967.964 11576  3484  3747 I HiTouch_HiTouchSensor: HiTouch restricted: system app HiTouch don't exist.
1712583967.964 11576  3484  3747 D HiTouch_PressGestureDetector: onAttached, package=com.akylas.documentscanner, windowType=2, mHiTouchRestricted=true
1712583967.973 11576  3484  3524 D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
1712583968.923 11576  3484  3484 V AudioManager: querySoundEffectsEnabled...
1712583968.930 11576  3484  3524 W libEGL  : EGLNativeWindowType 0x7b84c24ed0 disconnect failed
1712583968.930 11576  3484  3524 D OpenGLRenderer: endAllActiveAnimators on 0x79ff9fd200 (RippleDrawable) with handle 0x79ffe8b260
1712583970.664 11576  3484  3524 W libEGL  : EGLNativeWindowType 0x7b18909d50 disconnect failed

Code of Conduct

farfromrefug commented 3 months ago

@FineFindus thanks for reporting. It is a regression. Will be fixed in next version (hopefully in the next hour)

FineFindus commented 3 months ago

Updated to v1.5.7 Build 64, the dialog now correctly displays "Storage permission is needed", the issue of not being able to export is not fixed.

farfromrefug commented 3 months ago

@FineFindus is the permission given ? you can check if you go into the app info settings from your drawer.

AlbertoFabbri93 commented 3 months ago

Updated to v1.5.7 Build 64, the dialog now correctly displays "Storage permission is needed", the issue of not being able to export is not fixed.

Yes, it is exactly the same for me. The error is still there but the message is different.

My phone is on Android 9.

FineFindus commented 3 months ago

Permission is given

farfromrefug commented 3 months ago

@AlbertoFabbri93 @FineFindus i just published a new version which fixes it. Sorry for the trouble

FineFindus commented 2 months ago

Can confirm that it is fixed now. Thanks :)