-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherr-picam.txt
102 lines (71 loc) · 3.76 KB
/
err-picam.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
TODO:
- catch exception if the script exits because of failed camera component
sudmmal: mmal_vc_component_enable: failed to enable component: ENOSPC
Traceback (most recent call last):
File "/home/pi/snap/scripts/main.py", line 44, in <module>
camera = picamera.PiCamera()
File "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 257, in __init__
self._init_camera()
File "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 344, in _init_camera
prefix="Camera component couldn't be enabled")
File "/usr/lib/python2.7/dist-packages/picamera/exc.py", line 112, in mmal_check
raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Camera component couldn't be enabled: Out of resources (other than memory)
___ERRORS THAT HAPPEN THAT CAUSE THE PROGRAM TO EXIT:
CONNECTION ERRORS:
---------->>FIXED BY CONNECTING TO SERVER IN SEPARATE THREAD AND CONSTANTLY CHECKING
Traceback
File "./main.py", line 180, in <module>
main()
line 167, in main
s = sendIpAddr()
line 60, in sendIpAddr
s.connect((HOST, PORT))
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 111] Connection refused
-------->>>
___ERRORS THAT HAPPEN THAT DOES NOT CAUSE THE PROGRAM TO EXIT BUT HANGS THE SYSTEM REQUIRING A REBOOT:
VID ERRS:
-------> FIXED BY SETTING RESOLUTION TO CAMERA
1)
mmal: mmal_vc_port_enable: failed to enable port vc.ril.video_encode:in:0(I420): EINVAL
mmal: mmal_port_enable: failed to enable connected port (vc.ril.video_encode:in0(I420))0x10d1080 (EINVAL)
mmal: mmal_connection_enable: output port couldn't be enabled
___ERRORS THAT HAPPEN BUT THAT DOES NOT CAUSE THE PROGRAM TO EXIT OR SEEM TO HAVE ANY LASTING EFFECT:
PHOTO ERRS:
1)
mmal: mmal_port_connect: port 0x17112c0 is already connected
mmal: mmal_connection_create: connection could not be made
Traceback (most recent call last):
File "./main.py", line 127 in take_photo
result = camera.capture(filename)
File "/usr/lib/python2.7/dist-packages/picamera/encoders.py", line 122, in __init__
self._create_connection()
File "/usr/lib/python2.7/dist-packages/picamera/encoders.py", in lin 220, in _create_connection
self.input_port, self.encoders[0].input([0])
File "usr/lib/python2.7/dist-packages/picamera/camera.py", line 443, in _connect_ports
prefix="Failed to create connection")
File "/usr/lib/python2.7/dist-packages/picamera/exc.py", line 112, in mmal_check
raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Failed to create connection: Port is already connected
2)
mmal: mmal_vc_port_parameter_set: failed to set port parameter 64:3:EINVAL
Traceback (most recent call last):
File "./main.py", line 127, in take_photo
result = camera.capture(filename)
File "usr/lib/python/dist-packages/picamera/camera.py", line 1051, in capture
self, camera_port, output_port, format, resize, **options)
File "/usr/lib/python2.7/dist-packages/picamera/encoders.py", line 120, in __init__
self._create_encoder(**options)
File "/usr/lib/python2.7/dist-packages/picamera/encoders.py", line 634, in _create_encoder
prefix="Failed to set raw capture")
File "/usr/lib/python2.7/dist-packages/picamera/exc.py", line 112, in mmal_check
raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Failed to set raw capture: Argument is invalid
Traceback (most recent call last):
File "./newmain.py", line 203, in take_video
camera.stop_recording()
File "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 841, in stop_recording
encoder = self._encoders[splitter_port]
KeyError: 1