Asked
Resolved Resolved by amin!

Ezbpi Server Camera Error

I realized that I am not able to flip the Raspberry Pi's camera, I get the following error message?

Error Camera.SetCaptureImage: AForge.Imaging.UnsupportedImageFormatException: Source pixel format is not supported by the filter. bei AForge.Imaging.Filters.BaseTransformationFilter.CheckSourceFormat(PixelFormat pixelFormat) bei AForge.Imaging.Filters.BaseTransformationFilter.Apply(BitmapData imageData) bei AForge.Imaging.Filters.BaseTransformationFilter.Apply(Bitmap image) bei EZ_B.Camera.x5wORRJh49(Object )


Related Hardware Raspberry Pi
Related Control Camera Device

ARC Pro

Upgrade to ARC Pro

Discover the limitless potential of robot programming with Synthiam ARC Pro – where innovation and creativity meet seamlessly.

#1  

Also I am getting timeout errors... Camera Initialized: EZB://192.168.178.60:24 @ 640x480

EZ-B v4 Camera Error: System.TimeoutException: Timeout für den Vorgang wurde überschritten. bei EZ_B.EZBv4Video.DwiGDUj2lU(Int32 , Object ) Camera Disabled

PRO
Canada
#2  

Can you please share the log for EZBPi from your Raspberry Pi console? Do you see any errors? Which Raspberry Pi are you using?

#3  

Most of the times I will just have to connect a few times and eventually it will work out and stay stable... I am running a Pi Zero W

But here is on example error the EZBPi logged...

Raspberry EZBPi Version: 2019.3.29.0 Verbose logging is: False Serial port is: /dev/serial0 EZB: TCP Started on port 23 EZ-B Server started on TCP Port: 23 Camera: TCP Started on port 24 Camera Server started on TCP Port: 24 Press ESC to quit Camera: TCP Connection from: 192.168.178.61 Camera disconnected on tty:0 Camera: TCP Connection from: 192.168.178.61 *** Error in `mono': free(): invalid pointer: 0xb3e59f68 *** Stacktrace:

at <0xffffffff> at (wrapper managed-to-native) MMALSharp.Native.MMALUtil.mmal_port_pool_destro y (MMALSharp.Native.MMAL_PORT_T*,MMALSharp.Native.MMAL_POOL_T*) <0x0003b> at MMALSharp.Ports.PortBase.DestroyPortPool () <0x00043> at MMALSharp.MMALComponentBase.CleanPortPools () <0x001c7> at MMALSharp.MMALConnectionImpl.Destroy () <0x0002b> at MMALSharp.MMALConnectionImpl.Dispose () <0x00043> at MMALSharp.Components.MMALDownstreamComponent.ClosePipelineConnections () <0 x00133> at MMALSharp.Components.MMALDownstreamComponent.Dispose () <0x00043> at EZBPi.EZBProgram._CAMServer_OnConnection (System.Net.Sockets.TcpClient,Syst em.Net.Sockets.NetworkStream,int) <0x0071f> at EZBPi.TCPServer.handleClientScriptCommand (object) <0x000c7> at System.Threading.ThreadHelper.ThreadStart_Context (object) <0x0010f> at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionCo ntext,System.Threading.ContextCallback,object,bool) <0x001bf> at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,Sy stem.Threading.ContextCallback,object,bool) <0x0002b> at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,Sy stem.Threading.ContextCallback,object) <0x0005b> at System.Threading.ThreadHelper.ThreadStart (object) <0x00047> at (wrapper runtime-invoke) .runtime_invoke_void__this___object (objec t,intptr,intptr,intptr) <0x000df>

Native stacktrace:

Debug info from gdb:

[New LWP 1095] [New LWP 1096] [New LWP 1097] [New LWP 1098] [New LWP 1099] [New LWP 1101] [New LWP 1102] [New LWP 1103] [New LWP 1104] [New LWP 1105] [New LWP 1106] [New LWP 1107] [New LWP 1108] [New LWP 1109] [New LWP 1114] [New LWP 1115] [New LWP 1116] [New LWP 1119] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1". 0xb6eaf3c0 in read () at ../sysdeps/unix/syscall-template.S:84 84 ../sysdeps/unix/syscall-template.S: Datei oder Verzeichnis nicht gefunde n. Id Target Id Frame

  • 1 Thread 0xb6fd6000 (LWP 1094) "Main" 0xb6eaf3c0 in read () at ../sysdeps/u nix/syscall-template.S:84 2 Thread 0xb63ff470 (LWP 1095) "SGen worker" 0xb6eab94c in __pthread_cond_w ait (cond=0x3258f0, mutex=0x3258bc) at pthread_cond_wait.c:186 3 Thread 0xb6adb470 (LWP 1096) "Finalizer" 0xb6eae014 in futex_abstimed_wai t_cancelable (private=0, abstime=0x0, expected=1, futex_word=0x31d8c0) at ../sys deps/unix/sysv/linux/futex-internal.h:205 4 Thread 0xb40ad470 (LWP 1097) "TCP Server for " 0xb6eaf6a0 in accept () at ../sysdeps/unix/syscall-template.S:84 5 Thread 0xb3dff470 (LWP 1098) "TCP Server for " 0xb6eaf6a0 in accept () at ../sysdeps/unix/syscall-template.S:84 6 Thread 0xb3cff470 (LWP 1099) "Timer-Scheduler" 0xb6eabce8 in __pthread_co nd_timedwait (cond=0xc11930, mutex=0xc11914, abstime=0xb3cfe35c) at pthread_cond _timedwait.c:198 7 Thread 0xb3fad470 (LWP 1101) "Timer-Scheduler" 0xb6eabce8 in __pthread_co nd_timedwait (cond=0x3260c0, mutex=0x3260a8, abstime=0xb3facd54) at pthread_cond _timedwait.c:198 8 Thread 0xb3aff470 (LWP 1102) "Threadpool work" 0xb6eabce8 in _pthread_co nd_timedwait (cond=0xb3e032f0, mutex=0xb3e03320, abstime=0xb3afed60) at pthread cond_timedwait.c:198 9 Thread 0xb38bc470 (LWP 1103) "VCHIQ completio" 0xb6e2980c in ioctl () at ../sysdeps/unix/syscall-template.S:84 10 Thread 0xb30bc470 (LWP 1104) "HDispmanx Notif" 0xb6eae014 in futex_abstim ed_wait_cancelable (private=0, abstime=0x0, expected=1, futex_word=0xb39da6e8 ) at ../sysdeps/unix/sysv/linux/futex-internal .h:205 11 Thread 0xb28bc470 (LWP 1105) "HTV Notify" 0xb6eae014 in futex_abstimed_wa it_cancelable (private=0, abstime=0x0, expected=1, futex_word=0xb39d9864 ) at ../sysdeps/unix/sysv/linux/futex-internal.h:2 05 12 Thread 0xb20bc470 (LWP 1106) "HCEC Notify" 0xb6eae014 in futex_abstimed_w ait_cancelable (private=0, abstime=0x0, expected=1, futex_word=0xb39da5ec ) at ../sysdeps/unix/sysv/linux/futex-internal.h :205 13 Thread 0xb188f470 (LWP 1107) "Threadpool work" 0xb6eabce8 in _pthread_co nd_timedwait (cond=0xb3e032f0, mutex=0xb3e03320, abstime=0xb188ed60) at pthread cond_timedwait.c:198 14 Thread 0xb11ff470 (LWP 1108) "vc.ril.camera" 0xb6eae014 in futex_abstimed _wait_cancelable (private=0, abstime=0x0, expected=1, futex_word=0xb14d41d8) at ../sysdeps/unix/sysv/linux/futex-internal.h:205 15 Thread 0xb09ff470 (LWP 1109) "vc.camera_info" 0xb6eae014 in futex_abstime d_wait_cancelable (private=0, abstime=0x0, expected=1, futex_word=0xb14e70c8) at ../sysdeps/unix/sysv/linux/futex-internal.h:205 16 Thread 0xb3bff470 (LWP 1114) "TCP Server for " 0xb6eb04cc in __waitpid (p id=1120, stat_loc=0xb3bfd900, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c :29 17 Thread 0xaf2ff470 (LWP 1115) "vc.ril.video_sp" 0xb6eae014 in futex_abstim ed_wait_cancelable (private=0, abstime=0x0, expected=1, futex_word=0xeb80d8) at ../sysdeps/unix/sysv/linux/futex-internal.h:205 18 Thread 0xaeaff470 (LWP 1116) "vc.ril.image_en" 0xb6eae014 in futex_abstim ed_wait_cancelable (private=0, abstime=0x0, expected=1, futex_word=0xe4b4e8) at ../sysdeps/unix/sysv/linux/futex-internal.h:205 19 Thread 0xad8ff470 (LWP 1119) "Threadpool work" 0xb6eabce8 in _pthread_co nd_timedwait (cond=0xb3e032f0, mutex=0xb3e03320, abstime=0xad8fed60) at pthread cond_timedwait.c:198

Thread 19 (Thread 0xad8ff470 (LWP 1119)): #0 0xb6eabce8 in __pthread_cond_timedwait (cond=0xb3e032f0, mutex=0xb3e03320, a bstime=0xad8fed60) at pthread_cond_timedwait.c:198 #1 0x001918c0 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 18 (Thread 0xaeaff470 (LWP 1116)): #0 0xb6eae014 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expect ed=1, futex_word=0xe4b4e8) at ../sysdeps/unix/sysv/linux/futex-internal.h:205 #1 do_futex_wait (sem=sem@entry=0xe4b4e8, abstime=0x0) at sem_waitcommon.c:115 #2 0xb6eae158 in _new_sem_wait_slow (sem=0xe4b4e8, abstime=0x0) at sem_waitcom mon.c:282 #3 0xb13679bc in mmal_component_action_thread_func () from /opt/vc/lib/libmmal core.so #4 0xb3987cc4 in vcos_thread_entry (arg=0xe4b400) at /home/dc4/projects/staging /userland/interface/vcos/pthreads/vcos_pthreads.c:144 #5 0xb6ea4fc4 in start_thread (arg=0xaeaff470) at pthread_create.c:335 #6 0xb6e30bc8 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:76 from /lib/a rm-linux-gnueabihf/libc.so.6 Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 17 (Thread 0xaf2ff470 (LWP 1115)): #0 0xb6eae014 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expect ed=1, futex_word=0xeb80d8) at ../sysdeps/unix/sysv/linux/futex-internal.h:205 #1 do_futex_wait (sem=sem@entry=0xeb80d8, abstime=0x0) at sem_waitcommon.c:115 #2 0xb6eae158 in _new_sem_wait_slow (sem=0xeb80d8, abstime=0x0) at sem_waitcom mon.c:282 #3 0xb136795c in mmal_component_action_thread_func () from /opt/vc/lib/libmmal core.so #4 0xb3987cc4 in vcos_thread_entry (arg=0xeb7ff0) at /home/dc4/projects/staging /userland/interface/vcos/pthreads/vcos_pthreads.c:144 #5 0xb6ea4fc4 in start_thread (arg=0xaf2ff470) at pthread_create.c:335 #6 0xb6e30bc8 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:76 from /lib/a rm-linux-gnueabihf/libc.so.6 Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 16 (Thread 0xb3bff470 (LWP 1114)): #0 0xb6eb04cc in __waitpid (pid=1120, stat_loc=0xb3bfd900, options=0) at ../sys deps/unix/sysv/linux/waitpid.c:29 #1 0x000bbb44 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 15 (Thread 0xb09ff470 (LWP 1109)): #0 0xb6eae014 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expect ed=1, futex_word=0xb14e70c8) at ../sysdeps/unix/sysv/linux/futex-internal.h:205 #1 do_futex_wait (sem=sem@entry=0xb14e70c8, abstime=0x0) at sem_waitcommon.c:11 5 #2 0xb6eae158 in _new_sem_wait_slow (sem=0xb14e70c8, abstime=0x0) at sem_waitc ommon.c:282 #3 0xb136795c in mmal_component_action_thread_func () from /opt/vc/lib/libmmal core.so #4 0xb3987cc4 in vcos_thread_entry (arg=0xb14e6fe0) at /home/dc4/projects/stagi ng/userland/interface/vcos/pthreads/vcos_pthreads.c:144 #5 0xb6ea4fc4 in start_thread (arg=0xb09ff470) at pthread_create.c:335 #6 0xb6e30bc8 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:76 from /lib/a rm-linux-gnueabihf/libc.so.6 Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 14 (Thread 0xb11ff470 (LWP 1108)): #0 0xb6eae014 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expect ed=1, futex_word=0xb14d41d8) at ../sysdeps/unix/sysv/linux/futex-internal.h:205 #1 do_futex_wait (sem=sem@entry=0xb14d41d8, abstime=0x0) at sem_waitcommon.c:11 5 #2 0xb6eae158 in _new_sem_wait_slow (sem=0xb14d41d8, abstime=0x0) at sem_waitc ommon.c:282 #3 0xb136795c in mmal_component_action_thread_func () from /opt/vc/lib/libmmal core.so #4 0xb3987cc4 in vcos_thread_entry (arg=0xb14d40f0) at /home/dc4/projects/stagi ng/userland/interface/vcos/pthreads/vcos_pthreads.c:144 #5 0xb6ea4fc4 in start_thread (arg=0xb11ff470) at pthread_create.c:335 #6 0xb6e30bc8 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:76 from /lib/a rm-linux-gnueabihf/libc.so.6 Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 13 (Thread 0xb188f470 (LWP 1107)): #0 0xb6eabce8 in __pthread_cond_timedwait (cond=0xb3e032f0, mutex=0xb3e03320, a bstime=0xb188ed60) at pthread_cond_timedwait.c:198 #1 0x001918c0 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 12 (Thread 0xb20bc470 (LWP 1106)): #0 0xb6eae014 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expect ed=1, futex_word=0xb39da5ec ) at ../sysdep s/unix/sysv/linux/futex-internal.h:205 #1 do_futex_wait (sem=sem@entry=0xb39da5ec , abstime=0x0) at sem_waitcommon.c:115 #2 0xb6eae158 in __new_sem_wait_slow (sem=0xb39da5ec , abstime=0x0) at sem_waitcommon.c:282 #3 0xb39c0c44 in cecservice_notify_func () from /opt/vc/lib/libbcm_host.so #4 0xb3987cc4 in vcos_thread_entry (arg=0xb39da600 ) at /home/dc4/projects/staging/userland/interface/vcos/pthreads/vcos_pthreads.c:144 #5 0xb6ea4fc4 in start_thread (arg=0xb20bc470) at pthread_create.c:335 #6 0xb6e30bc8 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:76 from /lib/a rm-linux-gnueabihf/libc.so.6 Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 11 (Thread 0xb28bc470 (LWP 1105)): #0 0xb6eae014 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expect ed=1, futex_word=0xb39d9864 ) at ../sysdeps /unix/sysv/linux/futex-internal.h:205 #1 do_futex_wait (sem=sem@entry=0xb39d9864 , abstime=0x0) at sem_waitcommon.c:115 #2 0xb6eae158 in __new_sem_wait_slow (sem=0xb39d9864 , abstime=0x0) at sem_waitcommon.c:282 #3 0xb39c0084 in tvservice_notify_func () from /opt/vc/lib/libbcm_host.so #4 0xb3987cc4 in vcos_thread_entry (arg=0xb39d9878 ) at /home/dc4/projects/staging/userland/interface/vcos/pthreads/vcos_pthreads.c:144 #5 0xb6ea4fc4 in start_thread (arg=0xb28bc470) at pthread_create.c:335 #6 0xb6e30bc8 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:76 from /lib/a rm-linux-gnueabihf/libc.so.6 Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 10 (Thread 0xb30bc470 (LWP 1104)): #0 0xb6eae014 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expect ed=1, futex_word=0xb39da6e8 ) at ../sysdeps/ unix/sysv/linux/futex-internal.h:205 #1 do_futex_wait (sem=sem@entry=0xb39da6e8 , abstime=0x0) at sem_waitcommon.c:115 #2 0xb6eae158 in __new_sem_wait_slow (sem=0xb39da6e8 , abstime=0x0) at sem_waitcommon.c:282 #3 0xb39c4150 in dispmanx_notify_func () from /opt/vc/lib/libbcm_host.so #4 0xb3987cc4 in vcos_thread_entry (arg=0xb39db428 ) at / home/dc4/projects/staging/userland/interface/vcos/pthreads/vcos_pthreads.c:144 #5 0xb6ea4fc4 in start_thread (arg=0xb30bc470) at pthread_create.c:335 Backtrace stopped: Cannot access memory at address 0x0

Thread 9 (Thread 0xb38bc470 (LWP 1103)): #0 0xb6e2980c in ioctl () at ../sysdeps/unix/syscall-template.S:84 #1 0xb39a1010 in completion_thread () from /opt/vc/lib/libvchiq_arm.so #2 0xb3987cc4 in vcos_thread_entry (arg=0xb39b4318 ) at /hom e/dc4/projects/staging/userland/interface/vcos/pthreads/vcos_pthreads.c:144 #3 0xb6ea4fc4 in start_thread (arg=0xb38bc470) at pthread_create.c:335 Backtrace stopped: Cannot access memory at address 0x8d720f8

Thread 8 (Thread 0xb3aff470 (LWP 1102)): #0 0xb6eabce8 in __pthread_cond_timedwait (cond=0xb3e032f0, mutex=0xb3e03320, a bstime=0xb3afed60) at pthread_cond_timedwait.c:198 #1 0x001918c0 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 7 (Thread 0xb3fad470 (LWP 1101)): #0 0xb6eabce8 in __pthread_cond_timedwait (cond=0x3260c0, mutex=0x3260a8, absti me=0xb3facd54) at pthread_cond_timedwait.c:198 #1 0x002488f4 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 6 (Thread 0xb3cff470 (LWP 1099)): #0 0xb6eabce8 in __pthread_cond_timedwait (cond=0xc11930, mutex=0xc11914, absti me=0xb3cfe35c) at pthread_cond_timedwait.c:198 #1 0x0021caf8 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 5 (Thread 0xb3dff470 (LWP 1098)): #0 0xb6eaf6a0 in accept () at ../sysdeps/unix/syscall-template.S:84 #1 0x0022e1c0 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 4 (Thread 0xb40ad470 (LWP 1097)): #0 0xb6eaf6a0 in accept () at ../sysdeps/unix/syscall-template.S:84 #1 0x0022e1c0 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 3 (Thread 0xb6adb470 (LWP 1096)): #0 0xb6eae014 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expect ed=1, futex_word=0x31d8c0) at ../sysdeps/unix/sysv/linux/futex-internal.h:205 #1 do_futex_wait (sem=sem@entry=0x31d8c0, abstime=0x0) at sem_waitcommon.c:115 #2 0xb6eae158 in __new_sem_wait_slow (sem=0x31d8c0, abstime=0x0) at sem_waitcom mon.c:282 #3 0x001ac174 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (Thread 0xb63ff470 (LWP 1095)): #0 0xb6eab94c in __pthread_cond_wait (cond=0x3258f0, mutex=0x3258bc) at pthread _cond_wait.c:186 #1 0x002158e8 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 1 (Thread 0xb6fd6000 (LWP 1094)): #0 0xb6eaf3c0 in read () at ../sysdeps/unix/syscall-template.S:84 #1 0x0021f17c in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?)

================================================================= Got a SIGABRT while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application.

Abgebrochen

#4   — Edited

Normally it gives me a few disconnects and logs something like this...

Raspberry EZBPi Version: 2019.3.29.0 Verbose logging is: False Serial port is: /dev/serial0 EZB: TCP Started on port 23 EZ-B Server started on TCP Port: 23 Camera: TCP Started on port 24 Camera Server started on TCP Port: 24 Press ESC to quit Camera: TCP Connection from: 192.168.178.61 Camera: TCP Connection from: 192.168.178.61 mmal: mmal_port_enable: vc.ril.camera:ctr:0(0xb14cb4a0) already enabled Camera disconnected on tty:1 Camera disconnected on tty:0 Camera: TCP Connection from: 192.168.178.61

#5  

Once I am connected the camera seems to stay stable!

#7  

Sweet, thanks a lot...I will try later today!!:D

#8  

Same thing...here is the error log...it quite long so I will put it to a new comment!