Project

General

Profile

Issue #1920

RuntimeException: Camera is being used after Camera.release() was called

Added by Michael Rogers 19 days ago. Updated 15 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Camera
Target version:
Start date:
04/02/2019
Due date:
% Done:

0%

Resolution:
Device:

Description

I'm one of the developers of Briar, an Android messaging app that uses the camera for scanning QR codes. We've received four crash reports with the same stacktrace. One of the reports mentions that the user is running Replicant 6.003 and the other reports have the same Android version, which is too recent to be a stock ROM for these devices. I suspect this may be a Replicant bug as we haven't had any other reports.

  • Android version: 6.0.1
  • Phone model: Samsung GT-I9100 and GT-I9300 (S2 4G and S3 Neo, respectively)
  • User feedback: "I could not scan other device. They could scan me. I have Replicant 6.003."
  • Downstream ticket: https://code.briarproject.org/briar/briar/issues/1523

Stacktrace:

java.lang.RuntimeException: Camera is being used after Camera.release() was called
        at android.hardware.Camera.native_getParameters(Native Method)
        at android.hardware.Camera.getParameters(Camera.java:1999)
        at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1152)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:148)
        at android.app.ActivityThread.main(ActivityThread.java:5461)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Keep fighting the good fight! :-)

History

#1 Updated by Fil Bergamo 15 days ago

Hi Micheal,

thank you very much for taking the time to report this issue.
This is probably related to the software rendering implementation being incomplete in Replicant.
Other barcode scanning applications are known not to work on Replicant for the same reason.

I'm going to debug the issue anyway, and report my findings here.

Thank you again.

Fil

Also available in: Atom PDF