{"action":"created","issue":{"url":"https://api.github.com/repos/dm77/barcodescanner/issues/428","repository_url":"https://api.github.com/repos/dm77/barcodescanner","labels_url":"https://api.github.com/repos/dm77/barcodescanner/issues/428/labels{/name}","comments_url":"https://api.github.com/repos/dm77/barcodescanner/issues/428/comments","events_url":"https://api.github.com/repos/dm77/barcodescanner/issues/428/events","html_url":"https://github.com/dm77/barcodescanner/issues/428","id":320155127,"node_id":"MDU6SXNzdWUzMjAxNTUxMjc=","number":428,"title":"sending message to a Handler on a dead thread","user":{"login":"yhassanzadeh13","id":19204398,"node_id":"MDQ6VXNlcjE5MjA0Mzk4","avatar_url":"https://avatars1.githubusercontent.com/u/19204398?v=4","gravatar_id":"","url":"https://api.github.com/users/yhassanzadeh13","html_url":"https://github.com/yhassanzadeh13","followers_url":"https://api.github.com/users/yhassanzadeh13/followers","following_url":"https://api.github.com/users/yhassanzadeh13/following{/other_user}","gists_url":"https://api.github.com/users/yhassanzadeh13/gists{/gist_id}","starred_url":"https://api.github.com/users/yhassanzadeh13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yhassanzadeh13/subscriptions","organizations_url":"https://api.github.com/users/yhassanzadeh13/orgs","repos_url":"https://api.github.com/users/yhassanzadeh13/repos","events_url":"https://api.github.com/users/yhassanzadeh13/events{/privacy}","received_events_url":"https://api.github.com/users/yhassanzadeh13/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-04T05:08:06Z","updated_at":"2018-07-16T06:01:47Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI am starting a ZXing barcode scanner activity from a broadcast receiver. The first time everything goes well, however, from the second time I am receiving the following exception. I have also double checked that I do not make a call to startCamera two times in the current activity. Also, I stop the camera as it said in the lifecycle callbacks.\r\n\r\n`E/libc: Access denied finding property \"camera.hal1.packagelist\"\r\nW/MessageQueue: Handler (android.hardware.Camera$EventHandler) {18e7467} sending message to a Handler on a dead thread\r\n                java.lang.IllegalStateException: Handler (android.hardware.Camera$EventHandler) {18e7467} sending message to a Handler on a dead thread\r\n                    at android.os.MessageQueue.enqueueMessage(MessageQueue.java:638)\r\n                    at android.os.Handler.enqueueMessage(Handler.java:661)\r\n                    at android.os.Handler.sendMessageAtTime(Handler.java:630)\r\n                    at android.os.Handler.sendMessageDelayed(Handler.java:600)\r\n                    at android.os.Handler.sendMessage(Handler.java:537)\r\n                    at android.hardware.Camera.postEventFromNative(Camera.java:1284)\r\nD/AndroidRuntime: Shutting down VM\r\nE/AndroidRuntime: FATAL EXCEPTION: main\r\n                  Process: com.stackparse.barcodescanner, PID: 26729\r\n                  java.lang.RuntimeException: getParameters failed (empty parameters)\r\n                      at android.hardware.Camera.native_getParameters(Native Method)\r\n                      at android.hardware.Camera.getParameters(Camera.java:2027)\r\n                      at me.dm7.barcodescanner.core.CameraUtils.isFlashSupported(CameraUtils.java:47)\r\n                      at me.dm7.barcodescanner.core.BarcodeScannerView.setFlash(BarcodeScannerView.java:253)\r\n                      at me.dm7.barcodescanner.core.BarcodeScannerView.setupCameraPreview(BarcodeScannerView.java:190)\r\n                      at me.dm7.barcodescanner.core.CameraHandlerThread$1$1.run(CameraHandlerThread.java:31)\r\n                      at android.os.Handler.handleCallback(Handler.java:789)\r\n                      at android.os.Handler.dispatchMessage(Handler.java:98)\r\n                      at android.os.Looper.loop(Looper.java:251)\r\n                      at android.app.ActivityThread.main(ActivityThread.java:6589)\r\n                      at java.lang.reflect.Method.invoke(Native Method)\r\n                      at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)\r\n                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)`\r\n\r\n`    @Override\r\n    public void onDestroy()\r\n    {\r\n         mScannerView.stopCameraPreview(); //stopPreview\r\n         mScannerView.stopCamera();\r\n         mScannerView.destroyDrawingCache();      \r\n        super.onDestroy();\r\n    }\r\n\r\n @Override\r\n    public void onPause()\r\n    {\r\n        super.onPause();\r\n         mScannerView.stopCamera();\r\n    }\r\n\r\n`"},"comment":{"url":"https://api.github.com/repos/dm77/barcodescanner/issues/comments/405155434","html_url":"https://github.com/dm77/barcodescanner/issues/428#issuecomment-405155434","issue_url":"https://api.github.com/repos/dm77/barcodescanner/issues/428","id":405155434,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTE1NTQzNA==","user":{"login":"n002213f","id":186062,"node_id":"MDQ6VXNlcjE4NjA2Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/186062?v=4","gravatar_id":"","url":"https://api.github.com/users/n002213f","html_url":"https://github.com/n002213f","followers_url":"https://api.github.com/users/n002213f/followers","following_url":"https://api.github.com/users/n002213f/following{/other_user}","gists_url":"https://api.github.com/users/n002213f/gists{/gist_id}","starred_url":"https://api.github.com/users/n002213f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n002213f/subscriptions","organizations_url":"https://api.github.com/users/n002213f/orgs","repos_url":"https://api.github.com/users/n002213f/repos","events_url":"https://api.github.com/users/n002213f/events{/privacy}","received_events_url":"https://api.github.com/users/n002213f/received_events","type":"User","site_admin":false},"created_at":"2018-07-16T06:01:47Z","updated_at":"2018-07-16T06:01:47Z","author_association":"NONE","body":"Any luck with the issue, i'm also getting the same issue on Android 8.0"}}
{"actor":{"display_login":"n002213f"}}