Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Software Development
  3. Video and Image Sensors
  4. Snapshot crashes voxl-camera-server

Snapshot crashes voxl-camera-server

Scheduled Pinned Locked Moved Video and Image Sensors
7 Posts 2 Posters 2.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rddrone
    wrote on last edited by
    #1
    • What hardware are you using? MDK-M0204-1-02 (VOXL 2 Mini) + M0161 (IMX412 4K camera)
    • What version of software are you using? (SDK 1.6.3 with all packages updated today) voxl-camera-server 2.2.23
    • How have you configured the software? What is the output of voxl-inspect-services -> not relevant I think, I can provide this on request
    • Do you have any logs? See below
    • Can you share pictures of your setup? no
    • Have you looked at the source code? If so, can you point to any potential issues? see below

    voxl-send-command hires_snapshot snapshot causes voxl-camera-server to crash.
    journalctl -b -u voxl-camera-server --no-pager --follow shows the server crashes with a segfault:

    Apr 15 13:38:12 m0104 voxl-camera-server[6083]: ------ voxl-camera-server: Started 1 of 1 cameras
    Apr 15 13:38:12 m0104 voxl-camera-server[6083]: ------ voxl-camera-server: Camera server is now running
    Apr 15 13:38:24 m0104 voxl-camera-server[6083]: Camera: hires taking snapshot (destination: /data/snapshots/hires-2026-04-15_13:38:24.703.jpg)
    Apr 15 13:38:25 m0104 voxl-camera-server[6083]: ERROR:   bufferGetBufferInfo wan't able to successfully find the requested buffer
    Apr 15 13:38:25 m0104 voxl-camera-server[6083]: Segmentation fault:   
    Apr 15 13:38:25 m0104 voxl-camera-server[6083]: Fault thread: cam0-result(tid: 6161)
    Apr 15 13:38:25 m0104 systemd[1]: voxl-camera-server.service: Main process exited, code=killed, status=11/SEGV   
    Apr 15 13:38:25 m0104 systemd[1]: voxl-camera-server.service: Failed with result 'signal'.                                                                                                     
    Apr 15 13:38:27 m0104 systemd[1]: voxl-camera-server.service: Service hold-off time over, scheduling restart.
    Apr 15 13:38:27 m0104 systemd[1]: voxl-camera-server.service: Scheduled restart job, restart counter is at 1.
    Apr 15 13:38:27 m0104 systemd[1]: Stopped voxl-camera-server.           
    

    Output when running voxl-camera-server -d 0 (verbose log):

    ...
    VERBOSE: Received metadata for frame 45 from camera hires
    VERBOSE:        Timestamp: 5666431218886
    VERBOSE:        Gain: 104
    VERBOSE:        Exposure: 4488219
    VERBOSE:        Readout Time: 16328284
    VERBOSE: Find 1 buffer in result ring for frame 45
    VERBOSE: Received result from HAl3 for frame number 44
    VERBOSE: Received 1 buffers from camera hires, partial result:0
    VERBOSE: Received output buffer 44 from camera hires
    VERBOSE: hires procesing new buffer
    VERBOSE: Camera: hires processing small vid frame
    VERBOSE: hires procesing new buffer
    VERBOSE: Camera: hires processing snapshot frame
    ERROR:   bufferGetBufferInfo wan't able to successfully find the requested buffer
    
    Segmentation fault:
    Fault thread: cam0-result(tid: 6554)
    Segmentation fault
    

    https://gitlab.com/voxl-public/voxl-sdk/services/voxl-camera-server/-/blob/4909f89ce65ef5dee3181193487bbde42052a1bb/src/hal3_camera_mgr.cpp#L3124 is likely the call that crashes.
    When searching for references for snap_bufferGroup I find no use of this variable.
    Maybe the snapshot functionality was overlooked when converting to the mpa_ion_buf_* API?

    Alex KushleyevA 1 Reply Last reply
    0
    • R rddrone
      • What hardware are you using? MDK-M0204-1-02 (VOXL 2 Mini) + M0161 (IMX412 4K camera)
      • What version of software are you using? (SDK 1.6.3 with all packages updated today) voxl-camera-server 2.2.23
      • How have you configured the software? What is the output of voxl-inspect-services -> not relevant I think, I can provide this on request
      • Do you have any logs? See below
      • Can you share pictures of your setup? no
      • Have you looked at the source code? If so, can you point to any potential issues? see below

      voxl-send-command hires_snapshot snapshot causes voxl-camera-server to crash.
      journalctl -b -u voxl-camera-server --no-pager --follow shows the server crashes with a segfault:

      Apr 15 13:38:12 m0104 voxl-camera-server[6083]: ------ voxl-camera-server: Started 1 of 1 cameras
      Apr 15 13:38:12 m0104 voxl-camera-server[6083]: ------ voxl-camera-server: Camera server is now running
      Apr 15 13:38:24 m0104 voxl-camera-server[6083]: Camera: hires taking snapshot (destination: /data/snapshots/hires-2026-04-15_13:38:24.703.jpg)
      Apr 15 13:38:25 m0104 voxl-camera-server[6083]: ERROR:   bufferGetBufferInfo wan't able to successfully find the requested buffer
      Apr 15 13:38:25 m0104 voxl-camera-server[6083]: Segmentation fault:   
      Apr 15 13:38:25 m0104 voxl-camera-server[6083]: Fault thread: cam0-result(tid: 6161)
      Apr 15 13:38:25 m0104 systemd[1]: voxl-camera-server.service: Main process exited, code=killed, status=11/SEGV   
      Apr 15 13:38:25 m0104 systemd[1]: voxl-camera-server.service: Failed with result 'signal'.                                                                                                     
      Apr 15 13:38:27 m0104 systemd[1]: voxl-camera-server.service: Service hold-off time over, scheduling restart.
      Apr 15 13:38:27 m0104 systemd[1]: voxl-camera-server.service: Scheduled restart job, restart counter is at 1.
      Apr 15 13:38:27 m0104 systemd[1]: Stopped voxl-camera-server.           
      

      Output when running voxl-camera-server -d 0 (verbose log):

      ...
      VERBOSE: Received metadata for frame 45 from camera hires
      VERBOSE:        Timestamp: 5666431218886
      VERBOSE:        Gain: 104
      VERBOSE:        Exposure: 4488219
      VERBOSE:        Readout Time: 16328284
      VERBOSE: Find 1 buffer in result ring for frame 45
      VERBOSE: Received result from HAl3 for frame number 44
      VERBOSE: Received 1 buffers from camera hires, partial result:0
      VERBOSE: Received output buffer 44 from camera hires
      VERBOSE: hires procesing new buffer
      VERBOSE: Camera: hires processing small vid frame
      VERBOSE: hires procesing new buffer
      VERBOSE: Camera: hires processing snapshot frame
      ERROR:   bufferGetBufferInfo wan't able to successfully find the requested buffer
      
      Segmentation fault:
      Fault thread: cam0-result(tid: 6554)
      Segmentation fault
      

      https://gitlab.com/voxl-public/voxl-sdk/services/voxl-camera-server/-/blob/4909f89ce65ef5dee3181193487bbde42052a1bb/src/hal3_camera_mgr.cpp#L3124 is likely the call that crashes.
      When searching for references for snap_bufferGroup I find no use of this variable.
      Maybe the snapshot functionality was overlooked when converting to the mpa_ion_buf_* API?

      Alex KushleyevA Offline
      Alex KushleyevA Offline
      Alex Kushleyev
      ModalAI Team
      wrote on last edited by
      #2

      @rddrone , can you please provide your voxl-camera-server.conf to help us debug / reproduce?

      Alex

      R 1 Reply Last reply
      0
      • Alex KushleyevA Alex Kushleyev

        @rddrone , can you please provide your voxl-camera-server.conf to help us debug / reproduce?

        Alex

        R Offline
        R Offline
        rddrone
        wrote on last edited by
        #3

        /etc/modalai/voxl-camera-server.conf:

        {
          "version": 0.1,
          "fsync_en": true,
          "fsync_gpio": 109,
          "cameras": [
            {
              "type": "imx412",
              "name": "hires",
              "enabled": true,
              "camera_id": 0,
              "fps": 15,
              "en_rotate": false,
              "en_preview": false,
              "preview_width": 1024,
              "preview_height": 768,
              "en_raw_preview": false,
              "en_small_video": true,
              "small_video_width": 1024,
              "small_video_height": 768,
              "small_venc_mode": "h264",
              "small_venc_br_ctrl": "cqp",
              "small_venc_Qfixed": 30,
              "small_venc_Qmin": 15,
              "small_venc_Qmax": 40,
              "small_venc_nPframes": 9,
              "small_venc_mbps": 2,
              "en_large_video": true,
              "large_video_width": 4056,
              "large_video_height": 3040,
              "large_venc_mode": "h264",
              "large_venc_br_ctrl": "cqp",
              "large_venc_Qfixed": 30,
              "large_venc_Qmin": 15,
              "large_venc_Qmax": 50,
              "large_venc_nPframes": 29,
              "large_venc_mbps": 40,
              "en_snapshot": true,
              "en_snapshot_width": 4056,
              "en_snapshot_height": 3040,
              "exif_focal_length": 3.1,
              "exif_focal_length_in_35mm_format": 17,
              "exif_fnumber": 1.24,
              "snapshot_jpeg_quality": 75,
              "ae_mode": "isp",
              "gain_min": 54,
              "gain_max": 8000
            }
          ]
        }
        
        Alex KushleyevA 1 Reply Last reply
        0
        • R rddrone

          /etc/modalai/voxl-camera-server.conf:

          {
            "version": 0.1,
            "fsync_en": true,
            "fsync_gpio": 109,
            "cameras": [
              {
                "type": "imx412",
                "name": "hires",
                "enabled": true,
                "camera_id": 0,
                "fps": 15,
                "en_rotate": false,
                "en_preview": false,
                "preview_width": 1024,
                "preview_height": 768,
                "en_raw_preview": false,
                "en_small_video": true,
                "small_video_width": 1024,
                "small_video_height": 768,
                "small_venc_mode": "h264",
                "small_venc_br_ctrl": "cqp",
                "small_venc_Qfixed": 30,
                "small_venc_Qmin": 15,
                "small_venc_Qmax": 40,
                "small_venc_nPframes": 9,
                "small_venc_mbps": 2,
                "en_large_video": true,
                "large_video_width": 4056,
                "large_video_height": 3040,
                "large_venc_mode": "h264",
                "large_venc_br_ctrl": "cqp",
                "large_venc_Qfixed": 30,
                "large_venc_Qmin": 15,
                "large_venc_Qmax": 50,
                "large_venc_nPframes": 29,
                "large_venc_mbps": 40,
                "en_snapshot": true,
                "en_snapshot_width": 4056,
                "en_snapshot_height": 3040,
                "exif_focal_length": 3.1,
                "exif_focal_length_in_35mm_format": 17,
                "exif_fnumber": 1.24,
                "snapshot_jpeg_quality": 75,
                "ae_mode": "isp",
                "gain_min": 54,
                "gain_max": 8000
              }
            ]
          }
          
          Alex KushleyevA Offline
          Alex KushleyevA Offline
          Alex Kushleyev
          ModalAI Team
          wrote on last edited by
          #4

          @rddrone , thanks for the information. I will look into this. I have not heard of this issue before, so maybe something new, but i will test it out today.

          Alex

          R 1 Reply Last reply
          0
          • Alex KushleyevA Alex Kushleyev

            @rddrone , thanks for the information. I will look into this. I have not heard of this issue before, so maybe something new, but i will test it out today.

            Alex

            R Offline
            R Offline
            rddrone
            wrote on last edited by
            #5

            One more thing, not sure if relevant: I use com.qti.sensormodule.imx412_fpv_flip_20250919_1.bin from https://forum.modalai.com/post/23837

            Alex KushleyevA 1 Reply Last reply
            0
            • R rddrone

              One more thing, not sure if relevant: I use com.qti.sensormodule.imx412_fpv_flip_20250919_1.bin from https://forum.modalai.com/post/23837

              Alex KushleyevA Offline
              Alex KushleyevA Offline
              Alex Kushleyev
              ModalAI Team
              wrote on last edited by
              #6

              @rddrone , you are absolutely right, the snapshot feature was broken. We somehow missed it.

              I just fixed it :

              • https://gitlab.com/voxl-public/voxl-sdk/services/voxl-camera-server/-/commit/6e02fdf2fe6a893b1c9e102a346050dece3e1a7d

              and removed references to old buffer groups

              • https://gitlab.com/voxl-public/voxl-sdk/services/voxl-camera-server/-/commit/b84e10c326ad5abd4077c71f28c6d6a4522cc8a0

              Please try it out!

              Alex

              1 Reply Last reply
              0
              • Alex KushleyevA Alex Kushleyev referenced this topic on
              • R Offline
                R Offline
                rddrone
                wrote on last edited by
                #7

                I tested the fix and snapshots work now, thank you very much!

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                ModalAI
                Categories Recent Tags ModalAI.com Docs
                © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups