Failed to start voxl-streamer
-
Setup
- Voxl m500
- voxl-suite
-------------------------------------------------------------------------------- system-image: ModalAI 3.3.0 BUILDER: ekatzfey BUILD_TIME: 2021-06-06_19:28 kernel: #1 SMP PREEMPT Sun Jun 6 19:41:01 UTC 2021 3.18.71-perf factory-bundle: 1.0.1 (Yocto installation) -------------------------------------------------------------------------------- architecture: aarch64 processor: apq8096 os: GNU/Linux -------------------------------------------------------------------------------- voxl-suite: Package: voxl-suite Version: 0.4.6 Depends: libmodal_exposure (>= 0.0.2), libmodal_json (>= 0.3.5), librc_math (>= 1.1.5), libvoxl_cutils (>= 0.0.2), libvoxl_io (>= 0.5.4), opencv (>= 4.5.2-1), voxl-mavlink (>= 0.0.2), libmodal_pipe (>= 2.0.7), voxl-camera-server (>= 0.7.1), voxl-cpu-monitor (>= 0.1.7), voxl-dfs-server (>= 0.2.0), voxl-imu-server (>= 0.8.1), voxl-mpa-tools (>= 0.2.6), voxl-qvio-server (>= 0.3.1), voxl-tag-detector (>= 0.0.2), voxl-tflite-server (>= 0.1.0), voxl-vision-px4 (>= 0.9.2), openmp (>= 10.0.2), voxl-tflite (>= 0.0.1), voxl-nodes (>= 0.1.6), mavlink-camera-manager (>= 0.0.2), voxl-docker-support (>= 1.1.3), voxl-gphoto2 (>= 0.0.5), voxl-modem (>= 0.12.0), voxl-streamer (>= 0.2.3), voxl-utils (>= 0.7.1), voxl-vpn (>= 0.0.3) Replaces: voxl-suite-dev Status: install user installed Section: base Architecture: all Maintainer: james@modalai.com MD5Sum: a800fd5f7c98cfa4e6ed1638cf25d909 Size: 1902 Filename: voxl-suite_0.4.6.ipk Description: meta-package for voxl-suite software collection Installed-Time: 4206 Package: voxl-suite Version: 0.2.0 Depends: docker, imu_app (= 0.0.6), libvoxl_io (= 0.5.2), voxl-cam-manager (= 0.2.2), voxl-docker-support (= 1.1.1), voxl-hal3-tof-cam-ros (= 0.0.2), voxl-modem (= 0.10.0), voxl-nodes (= 0.0.8), voxl-rtsp (= 1.0.2), voxl-utils (= 0.5.2), voxl-vision-px4 (= 0.6.8), voxl_imu (= 0.0.4), voxl-time-sync (= 0.0.1), voxl-vpn (= 0.0.2), librc_math (= 1.1.2), libmodal_pipe (= 1.2.2), modalai-vl (= 0.1.3) Status: unknown ok not-installed Section: base Architecture: armv7a Maintainer: james@modalai.com MD5Sum: af706cd3c1ea59f274f2ed9b93141f1d Size: 870 Filename: voxl-suite_0.2.0.ipk Description: meta-package to install all of the voxl-suite
Steps to reproduce error
- Setup camera using
voxl-camera-configure
and choose option 3 - Run the streamer
voxl-streamer -c hires
/ # voxl-streamer -c hires Using configuration hires Error in json_read_file while parsing file /etc/modalai/voxl-streamer.conf The syntax error occured immediately BEFORE the following line: "configuration":"tracking","hires":{"input":{"interface":"mpa","mpa-camera":"hires"},"output":{"stream":{"rotation":0,"width":640,"height":480,"decimator":2,"bitrate":1000000}}},"hires-logo":{"input":{"interface":"mpa","mpa-camera":"hires"},"output":{"stream":{"rotation":0,"width":640,"height":480,"decimator":2,"bitrate":1000000}},"overlay":{"location":"/etc/modalai/modalai.png","offset_x":-1,"offset_y":-1}},"stereo":{"input":{"interface":"mpa","mpa-camera":"stereo"},"output":{"stream":{"width":640,"height":960,"decimator":2,"bitrate":1000000}}},"tracking":{"input":{"interface":"mpa","mpa-camera":"tracking"},"output":{"stream":{"width":640,"height":480,"decimator":2,"bitrate":1000000}}},"dfs-disparity":{"input":{"interface":"mpa","mpa-camera":"dfs_disparity"},"output":{"stream":{"width":640,"height":480,"decimator":2,"bitrate":1000000}}},"qvio-overlay":{"input":{"interface":"mpa","mpa-camera":"qvio_overlay"},"output":{"stream":{"width":640,"height":544,"decimator":2,"bitrate":1000000}}},"tflite-overlay":{"input":{"interface":"mpa","mpa-camera":"tflite"},"output":{"stream":{"width":640,"height":480,"decimator":2,"bitrate":1000000}}},"hdmi-mpa":{"input":{"interface":"mpa","mpa-camera":"v4l2"},"output":{"stream":{"width":640,"height":360,"decimator":2,"bitrate":1000000}}},"gphoto2-mpa":{"input":{"interface":"mpa","mpa-camera":"gphoto2"},"output":{"stream":{"width":640,"height":360,"decimator":2,"bitrate":1000000}}},"video-test":{"input":{"interface":"test","frame":{"width":1280,"height":720,"format":"uyvy"}},"output":{"stream":{"rotation":0,"width":640,"height":360,"rate":15,"bitrate":1000000}}},"uvc-video":{"input":{"interface":"uvc","device":"/dev/video0"},"output":{"stream":{"rotation":0,"width":640,"height":360,"rate":15,"bitrate":1000000}}}} Failed to open configuration file /etc/modalai/voxl-streamer.conf ERROR: Could not parse the configuration data
Configuration file wasn't edited.
{ "conf-version":"1.0" "configuration": "tracking", "hires": { "input": { "interface": "mpa", "mpa-camera": "hires" }, "output": { "stream": { "rotation": 0, "width": 640, "height": 480, "decimator": 2, "bitrate": 1000000 } } }, "hires-logo": { "input": { "interface": "mpa", "mpa-camera": "hires" }, "output": { "stream": { "rotation": 0, "width": 640, "height": 480, "decimator": 2, "bitrate": 1000000 } }, "overlay": { "location": "/etc/modalai/modalai.png", "offset_x": -1, "offset_y": -1 } }, "stereo": { "input": { "interface": "mpa", "mpa-camera": "stereo" }, "output": { "stream": { "width": 640, "height": 960, "decimator": 2, "bitrate": 1000000 } } }, "tracking": { "input": { "interface": "mpa", "mpa-camera": "tracking" }, "output": { "stream": { "width": 640, "height": 480, "decimator": 2, "bitrate": 1000000 } } }, "dfs-disparity": { "input": { "interface": "mpa", "mpa-camera": "dfs_disparity" }, "output": { "stream": { "width": 640, "height": 480, "decimator": 2, "bitrate": 1000000 } } }, "qvio-overlay": { "input": { "interface": "mpa", "mpa-camera": "qvio_overlay" }, "output": { "stream": { "width": 640, "height": 544, "decimator": 2, "bitrate": 1000000 } } }, "tflite-overlay": { "input": { "interface": "mpa", "mpa-camera": "tflite" }, "output": { "stream": { "width": 640, "height": 480, "decimator": 2, "bitrate": 1000000 } } }, "hdmi-mpa": { "input": { "interface": "mpa", "mpa-camera": "v4l2" }, "output": { "stream": { "width": 640, "height": 360, "decimator": 2, "bitrate": 1000000 } } }, "gphoto2-mpa": { "input": { "interface": "mpa", "mpa-camera": "gphoto2" }, "output": { "stream": { "width": 640, "height": 360, "decimator": 2, "bitrate": 1000000 } } }, "video-test": { "input": { "interface": "test", "frame": { "width": 1280, "height": 720, "format": "uyvy" } }, "output": { "stream": { "rotation": 0, "width": 640, "height": 360, "rate": 15, "bitrate": 1000000 } } }, "uvc-video": { "input": { "interface": "uvc", "device": "/dev/video0" }, "output": { "stream": { "rotation": 0, "width": 640, "height": 360, "rate": 15, "bitrate": 1000000 } } } }
Could you please advise what is going wrong here. Our other modalai seems to working fine.
-
It looks line the newline / CR characters in the configuration file are incorrect. It looks like it thinks the entire configuration file is a single line. Did you install everything from a Linux host computer?
-
Hi,
This is a bug with the recently pushed 0.2.5 voxl-streamer, the config file is missing a comma after the conf-version line, a patch will be up shortly, but you can add it yourself to the file in /etc/modalai/voxl-streamer.conf to get it working in the meantime
-
Thanks for th quick reply. Highly appreciate it.