Giter Site home page Giter Site logo

Comments (7)

babanomania avatar babanomania commented on July 19, 2024

Can you share the logs may be we can find some errors from there

from cleanscan.

babanomania avatar babanomania commented on July 19, 2024

check an manually assign the camera permission and check if works fine, may be we need to use a different camera2 permissions for this scenario

from cleanscan.

ElucGeek avatar ElucGeek commented on July 19, 2024

Hello, thanks for addressing this. Sorry I'm not sure how to safely extra a log of this? I've tried again, in fact I always have the second scenario now. It open my default camera app, that is OpenCamera (from F-Droid) and I have the complete app UI like if I take a normal picture from OpenCamera but the picture is black. However if I still shoot a picture blindinly, it work and the picture end up in CleanScan. Even better, from the OpenCamera UI I open the gallery with the thumb from last picture taken (bottom right) it show me the gallery and when I hit back, I'm back to OpenCamera and this time I see the camera stream and I can take the picture correctly.

I went even further in my testing. If I remove the default "Open by default" setting for Camera (the native camera app) and OpenCamera I then have the choice again to use either of them from CleanScan with the selection screen "Capture image with Camera. -> Just once. or -> Always or Use a different app: "Open Camera". If I select any of these app but use the "just one" button, it works directly fine. But as soon as I select one or the other app as default camera app for CleanScan, the issue is happening (so it happens with both camera app). So it doesn't looks like an issue with the camera app.

I checked the camera permission of CleanScan and it was on. Just to be sure I turned it off and on again but it didn't solve the issue.

Then I found 2 others issues but I might report them separately.

from cleanscan.

ghanimkhan avatar ghanimkhan commented on July 19, 2024

the same issue after taping on scan button it again shows (your list is empty) given all permission

2020-11-10 21:28:28.202 14723-14723/com.babanomania.pdfscanner E/WindowManager: android.view.WindowLeaked: Activity com.scanlibrary.ScanActivity has leaked window DecorView@b193ced[ScanActivity] that was originally added here at android.view.ViewRootImpl.<init>(ViewRootImpl.java:623) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:377) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:96) at android.app.Dialog.show(Dialog.java:344) at com.scanlibrary.ScanActivity.onTrimMemory(ScanActivity.java:140) at android.app.ActivityThread.handleTrimMemory(ActivityThread.java:6105) at android.app.ActivityThread.access$1200(ActivityThread.java:224) at android.app.ActivityThread$ApplicationThread.lambda$scheduleTrimMemory$0(ActivityThread.java:1584) at android.app.-$$Lambda$ActivityThread$ApplicationThread$tUGFX7CUhzB4Pg5wFd5yeqOnu38.accept(Unknown Source:8) at com.android.internal.util.function.pooled.PooledLambdaImpl.doInvoke(PooledLambdaImpl.java:271) at com.android.internal.util.function.pooled.PooledLambdaImpl.invoke(PooledLambdaImpl.java:195) at com.android.internal.util.function.pooled.OmniFunction.run(OmniFunction.java:86) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1031) at android.view.Choreographer.doCallbacks(Choreographer.java:854) at android.view.Choreographer.doFrame(Choreographer.java:791) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1016) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:224) at android.app.ActivityThread.main(ActivityThread.java:7560) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)

    at com.scanlibrary.ScanActivity.onTrimMemory(ScanActivity.java:140)

from cleanscan.

fityanrahman avatar fityanrahman commented on July 19, 2024

2020-12-10 14:36:12.121 21204-21204/com.babanomania.pdfscanner W/System.err: java.lang.NullPointerException: Attempt to get length of null array 2020-12-10 14:36:12.121 21204-21204/com.babanomania.pdfscanner W/System.err: at com.scanlibrary.PickImageFragment.clearTempImages(PickImageFragment.java:75) 2020-12-10 14:36:12.121 21204-21204/com.babanomania.pdfscanner W/System.err: at com.scanlibrary.PickImageFragment.createImageFile(PickImageFragment.java:141) 2020-12-10 14:36:12.121 21204-21204/com.babanomania.pdfscanner W/System.err: at com.scanlibrary.PickImageFragment.openCamera(PickImageFragment.java:125) 2020-12-10 14:36:12.121 21204-21204/com.babanomania.pdfscanner W/System.err: at com.scanlibrary.PickImageFragment.handleIntentPreference(PickImageFragment.java:85) 2020-12-10 14:36:12.121 21204-21204/com.babanomania.pdfscanner W/System.err: at com.scanlibrary.PickImageFragment.init(PickImageFragment.java:66) 2020-12-10 14:36:12.121 21204-21204/com.babanomania.pdfscanner W/System.err: at com.scanlibrary.PickImageFragment.onCreateView(PickImageFragment.java:56)

I found this error. It seems like final File sd = Environment.getExternalStorageDirectory(); is deprecated on android 10. So that, the directory is not created.

from cleanscan.

RabieMohimane avatar RabieMohimane commented on July 19, 2024

Same Issue ,

the app open the phone native camera app then return null data in result.
2021-07-05 12:54:08.234 15090-15090/com.babanomania.pdfscanner E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.babanomania.pdfscanner, PID: 15090
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2, result=0, data=null} to activity {com.babanomania.pdfscanner/com.babanomania.pdfscanner.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.Bundle android.content.Intent.getExtras()' on a null object reference
at android.app.ActivityThread.deliverResults(ActivityThread.java:4938)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4979)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2044)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7562)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.Bundle android.content.Intent.getExtras()' on a null object reference
at com.babanomania.pdfscanner.MainActivity.onActivityResult(MainActivity.java:345)
at android.app.Activity.dispatchActivityResult(Activity.java:8249)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4931)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4979) 
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51) 
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2044) 
at android.os.Handler.dispatchMessage(Handler.java:107) 
at android.os.Looper.loop(Looper.java:224) 
at android.app.ActivityThread.main(ActivityThread.java:7562) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950) 
2021-07-05 12:54:08.243 15090-15090/com.babanomania.pdfscanner I/Process: Sending signal. PID: 15090 SIG: 9

from cleanscan.

ElucGeek avatar ElucGeek commented on July 19, 2024

Short update as I see there are still activity in this ticket. I'm now on LineageOS 18.1 (Android 11) and it looks like it work now, not sure if it's Android 11 that is better supported or if this was somehow corrected in an update.

from cleanscan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.