Zooming works for the active camera, I clicked multiple times "Zoom in" button:
But then I clicked on "Settings" tab,
selected "1: imx296" as active camera
and clicked on submit (in order to zoom in for the other camera as well).
Unfortunately that kills the server:
P.S:
Just created new issue on that:
https://github.com/signag/raspi-cam-srv/issues/14
But then I clicked on "Settings" tab,
selected "1: imx296" as active camera
and clicked on submit (in order to zoom in for the other camera as well).
Unfortunately that kills the server:
...
[2024-05-08 17:00:52,110] ERROR in camera_pi: Thread 140730206777728: CameraController.requestStop - error: Unable to stop preview.
[2024-05-08 17:00:52,110] ERROR in app: Exception on /serverconfig [POST]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 595, in stop_preview
self._preview.stop()
File "/usr/lib/python3/dist-packages/picamera2/previews/null_preview.py", line 94, in stop
self.picam2.detach_preview()
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'detach_preview'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/raspi-cam-srv/raspiCamSrv/camera_pi.py", line 221, in requestStop
cam.close()
File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 607, in close
self.stop_preview()
File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 598, in stop_preview
raise RuntimeError("Unable to stop preview.")
RuntimeError: Unable to stop preview.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/raspi-cam-srv/.venv/lib/python3.11/site-packages/flask/app.py", line 1455, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/raspi-cam-srv/.venv/lib/python3.11/site-packages/flask/app.py", line 869, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/raspi-cam-srv/.venv/lib/python3.11/site-packages/flask/app.py", line 867, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/raspi-cam-srv/.venv/lib/python3.11/site-packages/flask/app.py", line 852, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/raspi-cam-srv/raspiCamSrv/auth.py", line 273, in wrapped_view
return view(**kwargs)
^^^^^^^^^^^^^^
File "/home/pi/raspi-cam-srv/raspiCamSrv/settings.py", line 73, in serverconfig
Camera.switchCamera()
File "/home/pi/raspi-cam-srv/raspiCamSrv/camera_pi.py", line 1004, in switchCamera
Camera.stopCameraSystem()
File "/home/pi/raspi-cam-srv/raspiCamSrv/camera_pi.py", line 1877, in stopCameraSystem
Camera.cam, done = Camera.ctrl.requestStop(Camera.cam, close=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/raspi-cam-srv/raspiCamSrv/camera_pi.py", line 231, in requestStop
raise()
TypeError: exceptions must derive from BaseException
P.S:
Just created new issue on that:
https://github.com/signag/raspi-cam-srv/issues/14
Statistics: Posted by HermannSW — Wed May 08, 2024 3:07 pm