用户您好,请详细描述您所遇到的问题:
- 系统软件版本:x3_ubuntu_v1.0.4
- 问题涉及的技术领域:例程启动不正常, MIPI相机: 官方指定的400W, GC4663
- 问题描述:脚本:start_nginx.sh和 例程:mipi_camera_web.py 先后启动nginx和python例程,均无报错,然后点击web页面1路后报错,详情附后
- 复现概率:每次必现,重启依旧
- 提供必要的问题日志:
相机查询: 0x29
sunrise@ubuntu:~$ sudo i2cdetect -y -r 1
[sudo] password for sunrise:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- 29 -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
启动python程序报错:
sunrise@ubuntu:/app/ai_inference/05_web_display_camera_sample$ clear
sunrise@ubuntu:/app/ai_inference/05_web_display_camera_sample$ sudo python3 ./mipi_camera_web.py
[C][3429][09-01][09:58:21:825][configuration.cpp:51][EasyDNN]EasyDNN version: 0.1.1
[BPU_PLAT]BPU Platform Version(1.3.1)!
[HBRT] set log level as 0. version = 3.14.5
[DNN] Runtime version = 1.9.7_(3.14.5 HBRT)
start ptf 547721327072
[]
Error: no vps chn can be get
[x3_venc_file]:[593]:Invalid image address!
connection handler failed
TypeError: expected bytes, NoneType found
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/websockets/legacy/server.py", line 232, in handler
await self.ws_handler(self)
File "/usr/local/lib/python3.8/dist-packages/websockets/legacy/server.py", line 1146, in _ws_handler
return await cast(
File "./mipi_camera_web.py", line 249, in web_service
enc.encode_file(origin_image)
SystemError: <method 'encode_file' of 'libsrcampy.Encoder' objects> returned a result with an error set
[]
Error: no vps chn can be get
[x3_venc_file]:[593]:Invalid image address!
connection handler failed
TypeError: expected bytes, NoneType found
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/websockets/legacy/server.py", line 232, in handler
await self.ws_handler(self)
File "/usr/local/lib/python3.8/dist-packages/websockets/legacy/server.py", line 1146, in _ws_handler
return await cast(
File "./mipi_camera_web.py", line 249, in web_service
enc.encode_file(origin_image)
SystemError: <method 'encode_file' of 'libsrcampy.Encoder' objects> returned a result with an error set
^A^CTraceback (most recent call last):
File "./mipi_camera_web.py", line 262, in <module>
asyncio.get_event_loop().run_forever()
File "/usr/lib/python3.8/asyncio/base_events.py", line 570, in run_forever
self._run_once()
File "/usr/lib/python3.8/asyncio/base_events.py", line 1823, in _run_once
event_list = self._selector.select(timeout)
File "/usr/lib/python3.8/selectors.py", line 468, in select
fd_event_list = self._selector.poll(timeout, max_ev)
KeyboardInterrupt
【INFO】: Offload model "fcos_512x512_nv12" Successfully.
- 软件上是否有做自定义修改: 没有修改,原装程序
mipi不带web的可以正常启动.
想咨询下该如何排查?