User avatar
HermannSW
Posts: 2709
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

gstreamer crash on Raspberry Pi Zero

Sat Aug 13, 2016 5:21 pm

Hi,

I want to stream a USB webcam connected to a (1.2GHz A7 quad core, no HDMI) NanoPi Neo to Raspberry Pi Zero connected to HDMI monitor.

Yesterday I successfully streamed from NanoPi Neo to old T42 Thinkpad running Ubuntu:
https://www.youtube.com/watch?v=vXccgX8 ... e=youtu.be

This article says I need to install these packages:

Code: Select all

sudo apt-get install gstreamer1.0-tools \
  gstreamer1.0-plugins-base \
  gstreamer1.0-plugins-good \
  gstreamer1.0-plugins-bad \
  gstreamer1.0-plugins-ugly
I did install the first three only because bad and ugly are missing.

After verifying with Wireshark (installed and run on Pi Zero!) that NanoPi Neo USB webcam video stream UDP packets really arrive on Pi Zero I did run simple gstreamer selftest on Pi Zero and saw a crash.

Runing the same simple selftest "gst-launch-1.0 videotestsrc ! autovideosink" on an Ubuntu Desktop just works:
Image

Doing the same on Raspberry Pi Zero gives this crash (full Raspbian install):

Code: Select all

pi@raspberrypi01:~ $ gst-launch-1.0 videotestsrc ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'autovideosink0-actual-sink-glimage': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayEGL\)\ gldisplayegl0";
Caught SIGSEGV
#0  0xb6be6c80 in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0xb6cd1528 in ?? () from /lib/arm-linux-gnueabihf/libglib-2.0.so.0
Spinning.  Please run 'gdb gst-launch-1.0 5047' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
Following the gdb instructions gives this:

Code: Select all

...
Loaded symbols for /usr/lib/arm-linux-gnueabihf/libgbm.so.1
Reading symbols from /lib/arm-linux-gnueabihf/libexpat.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/arm-linux-gnueabihf/libexpat.so.1
0xb6be6c80 in poll () at ../sysdeps/unix/syscall-template.S:81
81	../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) bt
Cannot access memory at address 0x1
#0  0xb6be6c80 in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0xb6cd1528 in ?? () from /lib/arm-linux-gnueabihf/libglib-2.0.so.0
Cannot access memory at address 0x1
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) 
Is my Zero messed up?
Or did I miss to install something?
Has anybody used gstreamer successfully with Pi Zero before?

Hermann.

P.S:
The 8$ NanoPi Neo does not have GPU and HDMI, its bigger 13$ brother NanoPi M1 does have all of that, but I don't have one or want one (Neo is good enough for me). But the missing HDMI of Neo is the reason I tried to video stream from Neo to Zero ...
https://stamm-wilbrandt.de/en/Raspberry_camera.html
https://stamm-wilbrandt.de/en#raspcatbot
https://github.com/Hermann-SW/raspiraw
https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://stamm-wilbrandt.de/github_repo_i420toh264

Stockweb
Posts: 1
Joined: Sun Aug 21, 2016 11:52 pm

Re: gstreamer crash on Raspberry Pi Zero

Sun Aug 21, 2016 11:58 pm

I'm having the exact same problem on a Raspberry Pi 3.

p1234321
Posts: 1
Joined: Mon Sep 19, 2016 2:19 pm

Re: gstreamer crash on Raspberry Pi Zero

Mon Sep 19, 2016 2:20 pm

Hello,

same issue here! any solutions? please help

thanks

kilolocs
Posts: 1
Joined: Thu Jun 01, 2017 10:20 am

Re: gstreamer crash on Raspberry Pi Zero

Thu Jun 01, 2017 10:26 am

I'm having the exact problem as yours on a Raspberry Pi 3 Model B.
Help Please... :(

RZRRASP
Posts: 1
Joined: Thu Apr 26, 2018 10:22 am

Re: gstreamer crash on Raspberry Pi Zero

Thu Apr 26, 2018 10:26 am

raspivid -t 0 -h 640 -w 480 -fps 30 -hf -b 1000000 -o -| gst-launch-1.0 -v ximagesrc use-damage=false xname=/usr/lib/torcs/torcs-bin ! videoconvert ! videoscale ! video/x-raw,width=480,height=640 ! vp8enc ! rtpvp8pay ! udpsink host=52.88.76.93 port=5100


I ran this code and it worked.
i guess there was some issue with the width&height

Return to “General discussion”