Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

Open Camera crashed when using NR mode or DRO

  • /e/ version: 0.9-p-2020060957753-stable-FP3
  • Device model: Fairphone 3
  • When it started to occur: since purchase
  • Reproducible with the last /e/ version:
  • Reproducible with LineageOS:

Summary

OpenCamera crashes when shotting picture using NR and DRO mode

  • The device is unusable
  • The bug is the source of a data loss or a big waste of time
  • The bug concerns a third party app
  • The bug concerns security
  • The bug concerns privacy

The problem

Steps to reproduce

Open Camera App, select NR or DRO mode. Snap a picture. I have seen the same issue on 2 different FP3 We have tested with @rhunault on S8 running on Pie and we see the same issue.

What is the current behavior?

App crashes when snapping a picture with NR and DRO mode selected.

What is the expected correct behavior?

Open Camera App, select NR or DRO mode. Snap a picture.

Technical informations

Relevant logs (adb logcat)

2020-06-30 15:39:05.355 9096-9096/foundation.e.camera I/CameraManagerGlobal: Connecting to camera service
2020-06-30 15:39:05.440 9096-9096/foundation.e.camera D/OpenGLRenderer: Skia GL Pipeline
2020-06-30 15:39:05.454 9096-9138/foundation.e.camera I/OMXClient: IOmx service obtained
2020-06-30 15:39:05.520 9096-9139/foundation.e.camera I/Adreno: QUALCOMM build                   : 4daeac4, I85e9875322
    Build Date                       : 06/01/19
    OpenGL ES Shader Compiler Version: EV031.25.03.04
    Local Branch                     : 
    Remote Branch                    : 
    Remote Branch                    : 
    Reconstruct Branch               : 
2020-06-30 15:39:05.520 9096-9139/foundation.e.camera I/Adreno: Build Config                     : S L 6.0.7 AArch64
2020-06-30 15:39:05.539 9096-9139/foundation.e.camera I/Adreno: PFP: 0x005ff112, ME: 0x005ff066
2020-06-30 15:39:05.548 9096-9139/foundation.e.camera I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2020-06-30 15:39:05.548 9096-9139/foundation.e.camera I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2020-06-30 15:39:05.551 9096-9139/foundation.e.camera I/OpenGLRenderer: Initialized EGL, version 1.4
2020-06-30 15:39:05.551 9096-9139/foundation.e.camera D/OpenGLRenderer: Swap behavior 2
2020-06-30 15:39:05.615 9096-9148/foundation.e.camera I/OMXClient: IOmx service obtained
2020-06-30 15:39:05.770 9096-9143/foundation.e.camera E/SoundPool: error loading /product/media/audio/ui/VideoRecord.ogg
2020-06-30 15:39:05.770 9096-9143/foundation.e.camera E/SoundPool: error loading /product/media/audio/ui/VideoStop.ogg
2020-06-30 15:39:05.770 9096-9143/foundation.e.camera E/SoundPool: error loading /product/media/audio/ui/camera_click.ogg
2020-06-30 15:39:05.789 9096-9184/foundation.e.camera I/OMXClient: IOmx service obtained
2020-06-30 15:39:05.871 9096-9147/foundation.e.camera I/Gralloc2: Adding additional valid usage bits: 0x200000
2020-06-30 15:39:05.929 9096-9201/foundation.e.camera I/OMXClient: IOmx service obtained
2020-06-30 15:39:06.048 9096-9218/foundation.e.camera I/OMXClient: IOmx service obtained
2020-06-30 15:39:22.584 9096-9146/foundation.e.camera W/dation.e.camer: Long monitor contention with owner main (9096) at void android.hardware.camera2.impl.CameraDeviceImpl.createCaptureSessionInternal(android.hardware.camera2.params.InputConfiguration, java.util.List, android.hardware.camera2.CameraCaptureSession$StateCallback, java.util.concurrent.Executor, int, android.hardware.camera2.CaptureRequest)(CameraDeviceImpl.java:636) waiters=0 in void android.hardware.camera2.impl.CameraDeviceImpl$4.run() for 237ms
2020-06-30 15:39:29.752 9096-9146/foundation.e.camera W/AudioTrack: AUDIO_OUTPUT_FLAG_FAST denied by server; frameCount 0 -> 18213
2020-06-30 15:39:30.184 9096-9105/foundation.e.camera W/System: A resource failed to call release. 
2020-06-30 15:39:30.189 9096-9105/foundation.e.camera W/System: A resource failed to call release. 
2020-06-30 15:39:30.464 9096-9128/foundation.e.camera D/RenderScript HIDL Adaptation: IRenderScriptDevice::getService()
2020-06-30 15:39:30.487 9096-9128/foundation.e.camera D/RenderScript HIDL Adaptation: IRenderScriptDevice::getService() returned 0x7e272442c0
2020-06-30 15:39:30.487 9096-9128/foundation.e.camera D/RenderScript HIDL Adaptation: HIDL successfully loaded.
2020-06-30 15:39:30.517 9096-9300/foundation.e.camera V/RenderScript: Successfully loaded runtime: libRSDriver_adreno.so
2020-06-30 15:39:30.519 9096-9128/foundation.e.camera D/RenderScript: Setting cache dir: /data/user_de/0/foundation.e.camera/code_cache
2020-06-30 15:39:30.624 9096-9300/foundation.e.camera E/RenderScript: Unable to open shared library (/data/user_de/0/foundation.e.camera/code_cache/com.android.renderscript.cache/librs.histogram_compute.so): dlopen failed: couldn't map "/data/user_de/0/foundation.e.camera/code_cache/com.android.renderscript.cache/librs.histogram_compute.so" segment 0: Permission denied
2020-06-30 15:39:30.625 9096-9300/foundation.e.camera V/RenderScript: Invoking /system/bin/bcc with args '/system/bin/bcc -unroll-runtime -scalarize-load-store -rs-global-info -rs-global-info-skip-constant -o histogram_compute -output_path /data/user_de/0/foundation.e.camera/code_cache/com.android.renderscript.cache -bclib /system/lib64/libclcore.bc -mtriple aarch64-none-linux-gnueabi -O 3 -aarch64-fix-cortex-a53-835769 -plugin libbccQTI.so -fPIC -embedRSInfo /data/user_de/0/foundation.e.camera/code_cache/com.android.renderscript.cache/histogram_compute.bc -build-checksum 1d1063b4'
2020-06-30 15:39:30.621 9096-9096/foundation.e.camera W/Thread-3: type=1400 audit(0.0:86): avc: denied { execute } for path="/data/user_de/0/foundation.e.camera/code_cache/com.android.renderscript.cache/librs.histogram_compute.so" dev="mmcblk0p62" ino=1835497 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file permissive=0
2020-06-30 15:39:31.251 9096-9300/foundation.e.camera V/RenderScript: Invoking /system/bin/ld.mc with args '/system/bin/ld.mc -shared -nostdlib /system/lib64/vndk-sp-28/libcompiler_rt.so -mtriple=aarch64-none-linux-gnueabi --library-path=/system/vendor/lib64 --library-path=/system/lib64/vndk-sp-28 --library-path=/system/lib64 -lRSDriver_adreno -lm -lc /data/user_de/0/foundation.e.camera/code_cache/com.android.renderscript.cache/histogram_compute.o -o /data/user_de/0/foundation.e.camera/code_cache/com.android.renderscript.cache/librs.histogram_compute.so'
2020-06-30 15:39:31.391 9096-9096/foundation.e.camera W/Thread-3: type=1400 audit(0.0:87): avc: denied { execute } for path="/data/user_de/0/foundation.e.camera/code_cache/com.android.renderscript.cache/librs.histogram_compute.so" dev="mmcblk0p62" ino=1835497 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file permissive=0
2020-06-30 15:39:31.400 9096-9300/foundation.e.camera E/RenderScript: Unable to open shared library (/data/user_de/0/foundation.e.camera/code_cache/com.android.renderscript.cache/librs.histogram_compute.so): dlopen failed: couldn't map "/data/user_de/0/foundation.e.camera/code_cache/com.android.renderscript.cache/librs.histogram_compute.so" segment 0: Permission denied
2020-06-30 15:39:31.400 9096-9300/foundation.e.camera E/RenderScript: Unable to load 'histogram_compute'
2020-06-30 15:39:31.401 9096-9107/foundation.e.camera I/dation.e.camer: ThreadFlipBegin blocked for 785.246ms
2020-06-30 15:39:31.402 9096-9128/foundation.e.camera E/AndroidRuntime: FATAL EXCEPTION: Thread-3
    Process: foundation.e.camera, PID: 9096
    android.renderscript.RSRuntimeException: Loading of ScriptC script failed.
        at android.renderscript.ScriptC.<init>(ScriptC.java:82)
        at net.sourceforge.opencamera.ScriptC_histogram_compute.<init>(ScriptC_histogram_compute.java:37)
        at net.sourceforge.opencamera.HDRProcessor.computeHistogramAllocation(HDRProcessor.java:2575)
        at net.sourceforge.opencamera.HDRProcessor.computeHistogram(HDRProcessor.java:2636)
        at net.sourceforge.opencamera.HDRProcessor.processSingleImage(HDRProcessor.java:969)
        at net.sourceforge.opencamera.HDRProcessor.processHDR(HDRProcessor.java:383)
        at net.sourceforge.opencamera.ImageSaver.saveImageNow(ImageSaver.java:1516)
        at net.sourceforge.opencamera.ImageSaver.run(ImageSaver.java:476)
2020-06-30 15:39:31.421 9096-9107/foundation.e.camera I/dation.e.camer: NativeAlloc concurrent copying GC freed 5111(307KB) AllocSpace objects, 1(4MB) LOS objects, 84% free, 2MB/14MB, paused 539us total 806.109ms
2020-06-30 15:39:31.422 9096-9105/foundation.e.camera W/System: A resource failed to call destroy. 
2020-06-30 15:39:31.422 9096-9105/foundation.e.camera I/chatty: uid=10087(foundation.e.camera) FinalizerDaemon identical 1 line
2020-06-30 15:39:31.422 9096-9105/foundation.e.camera W/System: A resource failed to call destroy. 
2020-06-30 15:39:31.437 9096-9128/foundation.e.camera I/Process: Sending signal. PID: 9096 SIG: 9

Relevant screenshots

Solutions

Workaround

Possible fixes

Edited by Alexis Noetinger