Hi all,
after installation of my RasperryPi Mars RobotCar the server will not start. When starting server.py the following messages appear, which indicate a memory shortage problem. However when checking memory allocation there does not appear to be a shortage (see following reports). Also I have checked that the camera is enabled in configuration!
Any suggestions?
pi@raspberrypi:~/Adeept_PiCar-B/server $ python3 server.py mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM) mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1) Traceback (most recent call last): File "/usr/lib/python3/dist-packages/picamera/camera.py", line 456, in _init_camera self._camera = mo.MMALCamera() File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 2279, in __init__ super(MMALCamera, self).__init__() File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 633, in __init__ prefix="Failed to create MMAL component %s" % self.component_type) File "/usr/lib/python3/dist-packages/picamera/exc.py", line 184, in mmal_check raise PiCameraMMALError(status, prefix) picamera.exc.PiCameraMMALError: Failed to create MMAL component b'vc.ril.camera': Out of memory
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "server.py", line 692, in <module> camera = picamera.PiCamera() #Camera initialization File "/usr/lib/python3/dist-packages/picamera/camera.py", line 431, in __init__ self._init_camera(camera_num, stereo_mode, stereo_decimate) File "/usr/lib/python3/dist-packages/picamera/camera.py", line 460, in _init_camera "Camera is not enabled. Try running 'sudo raspi-config' " picamera.exc.PiCameraError: Camera is not enabled. Try running 'sudo raspi-config' and ensure that the camera has been enabled. pi@raspberrypi:~/Adeept_PiCar-B/server $ cat /proc/meminfo MemTotal: 895524 kB MemFree: 529472 kB MemAvailable: 722876 kB Buffers: 27384 kB Cached: 217264 kB SwapCached: 0 kB Active: 184720 kB Inactive: 138792 kB Active(anon): 79212 kB Inactive(anon): 11892 kB Active(file): 105508 kB Inactive(file): 126900 kB Unevictable: 0 kB Mlocked: 0 kB SwapTotal: 102396 kB SwapFree: 102396 kB Dirty: 28 kB Writeback: 0 kB AnonPages: 78860 kB Mapped: 69724 kB Shmem: 12244 kB Slab: 24404 kB SReclaimable: 11904 kB SUnreclaim: 12500 kB KernelStack: 1616 kB PageTables: 2928 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 550156 kB Committed_AS: 779408 kB VmallocTotal: 1163264 kB VmallocUsed: 0 kB VmallocChunk: 0 kB Percpu: 416 kB CmaTotal: 8192 kB CmaFree: 6156 kB
Thank you very much for any help.
|