Menu

Open camera on Nougat 7.1.2

Anonymous
2017-06-12
2022-10-03
  • Anonymous

    Anonymous - 2017-06-12

    When starting Open Camera on Android 7.1.2 it crashes with the message, Open Camera has stopped.
    I have updated Open Camera to the latest version 1.38.2 and it still crashes.
    On Android 6.0.1 Version it works like a charm.
    Am I doing something wrong on my 7.1.2. system or doesn't Open Camera support this Android version?
    Regards, Joost

     
    • Mark

      Mark - 2018-01-17

      Sorry for the delay - does this still happen after uninstall/reinstalling Open Camera? Do other third party camerea applications work?

       
  • Anonymous

    Anonymous - 2018-02-16

    Same problem here!

    It crashes right after "Camera" permission is set.
    BUT It starts normally when "Camera" permission is NOT SET.
    Some logs from catlog recorded:

    build.board: smdk4x12
    build.bootloader: N7100XXUFNL1
    build.brand: samsung
    build.cpu_abi: armeabi-v7a
    build.cpu_abi2: armeabi
    build.device: t03g
    build.display: lineage_n7100-userdebug 7.1.2 NJH47F d6fa5921bc release-keys
    build.fingerprint: samsung/t03gxx/t03g:4.3/JSS15J/N7100XXUEMK4:user/release-keys
    build.hardware: smdk4x12
    build.host: RR
    build.id: NJH47F
    build.manufacturer: samsung
    build.model: GT-N7100
    build.product: t03gxx
    build.radio: unknown
    build.serial: 4df7f3107c8fbf31
    build.tags: release-keys
    build.time: 1512521447000
    build.type: user
    build.user: hibi
    version.codename: REL
    version.incremental: d6fa5921bc
    version.release: 7.1.2
    version.sdk_int: 25

    02-16 22:32:15.421 I/ActivityManager(2929): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=net.sourceforge.opencamera/.MainActivity bnds=[8,60][184,313] (has extras)} from uid 10033 on display 0
    02-16 22:32:15.431 I/WindowManager(2929): setFocusedApp token: Token{dd9841b ActivityRecord{1108e2a u0 net.sourceforge.opencamera/.MainActivity t234}} requestedOrientation: 0
    02-16 22:32:15.459 I/ActivityManager(2929): Start proc 11289:net.sourceforge.opencamera/u0a114 for activity net.sourceforge.opencamera/.MainActivity
    02-16 22:32:15.696 W/System (11289): ClassLoader referenced unknown path: /data/app/net.sourceforge.opencamera-1/lib/arm
    02-16 22:32:15.953 I/WindowManager(2929): setAppOrientation token: Token{dd9841b ActivityRecord{1108e2a u0 net.sourceforge.opencamera/.MainActivity t234}} requestedOrientation: 0
    02-16 22:32:16.349 I/ActivityManager(2929): Displayed net.sourceforge.opencamera/.MainActivity: +903ms
    02-16 22:32:16.410 I/WindowManager(2929): Screen frozen for +908ms due to Window{981f7d0 u0 Starting net.sourceforge.opencamera}
    02-16 22:32:16.520 I/CameraService(2122): CameraService::connect call (PID -1 "net.sourceforge.opencamera", camera ID 0) for HAL version default and Camera API version 1
    02-16 22:32:17.019 F/libc (11289): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 11289 (orge.opencamera)
    02-16 22:32:17.043 F/DEBUG (11345): pid: 11289, tid: 11289, name: orge.opencamera >>> net.sourceforge.opencamera <<<
    02-16 22:32:17.677 W/ActivityManager(2929): Force finishing activity net.sourceforge.opencamera/.MainActivity
    02-16 22:32:17.693 I/WindowManager(2929): WIN DEATH: Window{b2675a6 u0 net.sourceforge.opencamera/net.sourceforge.opencamera.MainActivity}
    02-16 22:32:17.695 W/WindowManager(2929): Force-removing child win Window{92af500 u0 SurfaceView - net.sourceforge.opencamera/net.sourceforge.opencamera.MainActivity} from container Window{b2675a6 u0 net.sourceforge.opencamera/net.sourceforge.opencamera.MainActivity}
    02-16 22:32:17.827 I/ActivityManager(2929): Process net.sourceforge.opencamera (pid 11289) has died
    02-16 22:32:21.071 W/ActivityManager(2929): Ignoring remove of inactive process: ProcessRecord{b9cdbe7 0:net.sourceforge.opencamera/u0a114}

    Other third party camera application is working.

     
  • Mark

    Mark - 2018-02-17

    It looks like it's crashing during or shortly after oepning the camera (which would explain why it doesn't happen if camera permission isn't available). Unfortunately it's hard for me to do much about this without such a device to test on :(

     
  • Henk Demper

    Henk Demper - 2018-04-24

    Hi Mark. I have the same issue on a rooted Samsung Galaxy Note 2 with Resurrection Remix, Nougat 7.1.2. You see the UI come up, but then immediately the app crashes. As per advice on http://opencamera.org.uk/help.html#contact I have tried the following:

    1. Reported the crash via Google Report function today
    2. Tried to deinstall/install Open Camera but still crashes
    3. Tried A Better Camera: It works Ok with and without 'Force use Camera1 interface' setting (there is no Camera2 interface setting)
    4. Tried Footej: It also crashes at startup
    5. AZ Camera is not available for my device
    6. Tried Snap Camera HDR (Trial): It works Ok with and without 'Use Camera2 API' setting

    Can I do any tests to help this get resolved ?
    I do have Android Studio installed, not sure if that would help ?

     
    • Mark

      Mark - 2018-04-24

      Thanks for the info, I see the crash reported as:

      Native crash at /system/lib/libmedia.so

      in /system/lib/libmedia.so (_ZNK7android13MediaProfiles30getCamcorderProfileParamByNameEPKciNS_17camcorder_qualityE+307), /system/lib/libmedia_jni.so


      LineageOS Version: 'unknown'
      Build fingerprint: 'samsung/t03gxx/t03g:4.3/JSS15J/N7100XXUEMK4:user/release-keys'
      Revision: '0'
      ABI: 'arm'
      pid: 31345, tid: 31345, name: orge.opencamera >>> net.sourceforge.opencamera <<<
      signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
      r0 00000000 r1 6c5fcd30 r2 01010101 r3 00800000
      r4 00000007 r5 00000000 r6 42cf3d80 r7 6c5fcd25
      r8 00000000 r9 42c84400 sl 42c99230 fp bee3e884
      ip 00006100 sp bee3e730 lr 40a34427 pc 40a344d0 cpsr 600f0030

      backtrace:
      #00 pc 000a84d0 /system/lib/libmedia.so (_ZNK7android13MediaProfiles30getCamcorderProfileParamByNameEPKciNS_17camcorder_qualityE+307)
      #01 pc 0002e345 /system/lib/libmedia_jni.so
      #02 pc 73cf4b35 /data/dalvik-cache/arm/system@framework@boot.oat (offset 0x2840000)


      I've got this crash a few times, it's only on the Note 2 and all Android 7.1, they all seem to be reported as LineageOS.

      So this seems to be specific to LineageOS/Resurrection Remix on the Note 2, and probably seems to be related to the Android API call CamcorderProfile.get().

      I don't know if it's possible to report this to LineageOS or Resurrection Remix to see if they have any idea?

      For A Better Camera and Snap Camera HDR, do they work okay recording video?

       
  • Henk Demper

    Henk Demper - 2018-04-26

    Hi Mark, thanks for responding.

    I think it will be difficult to re-open any LineageOS/Resurrection Remix issues in Nougat 7.x, the final build for N7100 was made some months ago... Next stop will be (another ?) Lineage-based ROM for Orea 8.x I guess..

    Meanwhile:

    • A Better Camera records video Ok with/without the 'Force use Camera1 interface' setting.
    • Snap Camera HDR records video Ok in the default setup, but when you set 'Use Camera2 API' the video (not the application) will freeze during recording and no video file will be made.

    Not sure if the conclusion is that Camera2 API is broken on the OS level (because A Better Camera mentions Camera1) or that it might be solved on the application level ?

    On CamcorderProfileParamByName(): Maybe some profile name is too long (for the N7100) and there is insufficient buffer space supplied to store that name ?

    Would be as simple that I download the Open Camera source from GitHub and run it in Android Studio with my phone connected in the Debugger... ? Or won't that work ?

     
    • Mark

      Mark - 2018-05-20

      Sorry for the delay - yes you can get the Open Camera source either from https://sourceforge.net/p/opencamera/code/ for the latest development, or get particular versions at https://sourceforge.net/projects/opencamera/files/ . Should work fine in Android Studio. Make sure that MyDebug.LOG is set to true to get logging enabled.

       
      • Henk Demper

        Henk Demper - 2019-01-07

        Hi Mark, sorry for the even longer delay in reply, but my Samsung Galaxy Note 2 (after serving me well for 7 years) died since your reply, so I can't test/debug this anymore... On my new Samsung Galaxy S9+ OpenCamera works fine :-)

         
        • Mark

          Mark - 2019-01-07

          That's good to hear. Is that with LineageOS, or the standard Samsung OS, out of interest?

          Also how are things if Settings/"Use Camera2 API" enabled - do things like manual exposure, or taking photos with flash, work okay? (I'm still trying to assess how well different OEMs support Camera2 API.)

           
  • Anonymous

    Anonymous - 2022-10-03

    These days, it's so easy to find playlists and RadioFMLuisteren makes it even easier. You can listen to the radio online at any time and from anywhere. all you need is a computer or phone and an internet connection. Try listening to your radio like this for a week, and you'll find that surfing the Internet to find playlists is much easier. So you can adapt your music to your preferences and mood. You will undoubtedly enjoy this way of listening to your radio. RadioFMLuisteren broadcasts everything you want.

     

Anonymous
Anonymous

Add attachments
Cancel