peyton-howe / simple-cam

0 stars 1 forks source link

Segmentation fault #1

Open darkjake opened 8 months ago

darkjake commented 8 months ago

Damn I want this to work so bad, but yeah segmentation fault. I think its not setting params right or something strange is happening where its trying to start 4 streams using all available resolutions. I am using a CM4 with 1 Noir imx708 (for now).

pi@raspberrypi:~/simple-cam $ ./simple-cam -w 2304 -h 1296 -f 50 Usage: ./simple-cam [-d dual cameras] [-w width] [-h height] [-p width,height,x_off,y_off][-f fps] [-s shutter-speed-ns] [-e exposure] [-t timeout] [1:40:11.198804561] [12309] INFO Camera camera_manager.cpp:284 libcamera v0.2.0+50-1bf2d707 [1:40:11.252299852] [12310] WARN CameraSensorProperties camera_sensor_properties.cpp:262 No static properties available for 'imx708_noir' [1:40:11.252514813] [12310] WARN CameraSensorProperties camera_sensor_properties.cpp:264 Please consider updating the camera sensor properties database [1:40:11.460075112] [12310] WARN RPiSdn sdn.cpp:40 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise [1:40:11.475411560] [12310] INFO RPI vc4.cpp:401 Registered camera /base/soc/i2c0mux/i2c@0/imx708@1a to Unicam device /dev/media3 and ISP device /dev/media1 Acquired Camera: /base/soc/i2c0mux/i2c@0/imx708@1a Default viewfinder configuration is: 800x600-XRGB8888 [1:40:11.478351007] [12309] INFO Camera camera.cpp:1183 configuring streams: (0) 800x600-XRGB8888 [1:40:11.479615918] [12310] INFO RPI vc4.cpp:570 Sensor: /base/soc/i2c0mux/i2c@0/imx708@1a - Selected sensor format: 1536x864-SBGGR10_1X10 - Selected unicam format: 1536x864-pBAA Validated viewfinder configuration is: 2304x1296-YUV420 [1:40:11.483672203] [12309] INFO Camera camera.cpp:1183 configuring streams: (0) 2304x1296-YUV420 [1:40:11.484520304] [12310] INFO RPI vc4.cpp:570 Sensor: /base/soc/i2c0mux/i2c@0/imx708@1a - Selected sensor format: 2304x1296-SBGGR10_1X10 - Selected unicam format: 2304x1296-pBAA [1:40:11.487065070] [12309] INFO Camera camera.cpp:1183 configuring streams: (0) 2304x1296-YUV420 [1:40:11.488130854] [12310] INFO RPI vc4.cpp:570 Sensor: /base/soc/i2c0mux/i2c@0/imx708@1a - Selected sensor format: 2304x1296-SBGGR10_1X10 - Selected unicam format: 2304x1296-pBAA Allocated 4 buffers for stream Requests created Segmentation fault

peyton-howe commented 8 months ago

It's currently hard coded for two cameras being connected, so the segmentation fault is most definitely due to trying to start a camera that isn't connected. I wanted to implement the ability to select how many cameras are connected via command line, but haven't gotten around to it yet, but I'll try and work on that soon.