Giter Site home page Giter Site logo

photobarcode's People

Contributors

ivan200 avatar vicktor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

photobarcode's Issues

App Crashes after scanning barcode

The library retrieves the barcode number but immediately crashes with this error:

java.lang.RuntimeException: Unable to destroy activity {com.test.testapp/com.ivan200.photobarcodelib.PhotoBarcodeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Thread$State java.lang.Thread.getState()' on a null object reference
        at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5390)
        at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5423)
        at android.app.servertransaction.DestroyActivityItem.execute(DestroyActivityItem.java:47)
        at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
        at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2214)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loopOnce(Looper.java:201)
        at android.os.Looper.loop(Looper.java:288)
        at android.app.ActivityThread.main(ActivityThread.java:7842)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Thread$State java.lang.Thread.getState()' on a null object reference
        at com.ivan200.photobarcodelib.CameraSource$FrameProcessingRunnable.release(CameraSource.java:1257)
        at com.ivan200.photobarcodelib.CameraSource.release(CameraSource.java:323)
        at com.ivan200.photobarcodelib.CameraSourcePreview.release(CameraSourcePreview.java:144)
        at com.ivan200.photobarcodelib.PhotoBarcodeActivity.clean(PhotoBarcodeActivity.java:927)
        at com.ivan200.photobarcodelib.PhotoBarcodeActivity.onDestroy(PhotoBarcodeActivity.java:914)
        at android.app.Activity.performDestroy(Activity.java:8316)
        at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1364)
        at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5377)
        at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5423) 
        at android.app.servertransaction.DestroyActivityItem.execute(DestroyActivityItem.java:47) 
        at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45) 
        at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176) 
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2214) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loopOnce(Looper.java:201) 
        at android.os.Looper.loop(Looper.java:288) 
        at android.app.ActivityThread.main(ActivityThread.java:7842) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) 

Unable to destroy activity

Hi, i am getting this error afeter back to activity ( on backpressed or read the barcode ) i am using the example in README. any idea?

java.lang.RuntimeException: Unable to destroy activity {com.reyes.refreyes/com.ivan200.photobarcodelib.PhotoBarcodeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Thread$State java.lang.Thread.getState()' on a null object reference

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Thread$State java.lang.Thread.getState()' on a null object reference at com.ivan200.photobarcodelib.CameraSource$FrameProcessingRunnable.release(CameraSource.java:1257) at com.ivan200.photobarcodelib.CameraSource.release(CameraSource.java:323) at com.ivan200.photobarcodelib.CameraSourcePreview.release(CameraSourcePreview.java:144) at com.ivan200.photobarcodelib.PhotoBarcodeActivity.clean(PhotoBarcodeActivity.java:927) at com.ivan200.photobarcodelib.PhotoBarcodeActivity.onDestroy(PhotoBarcodeActivity.java:914) at android.app.Activity.performDestroy(Activity.java:7241)

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.