Freescale / libimxvpuapi

i.MX VPU API Library
GNU Lesser General Public License v2.1
88 stars 54 forks source link

SIGSEG while closing VPU decoder #10

Closed Bilb closed 5 years ago

Bilb commented 8 years ago

Hi,

I am not sure this is the correct place for this issue.

When stopping and restarting some times ( > 20times) this pipeline, I get a segfault. I am changing the udport of the source, so I am setting the pipeline to NULL state, update the port and set the pipeline to PLAYING.

The pipeline: udpsrc port=5001 name=udpsrc caps=\"application/x-rtp,pt=96,encoding-name=H264\" ! rtph264depay ! h264parse ! imxvpudec ! appsink name=sink

Here is the backtrace:

Thread 1 "Program" received signal SIGSEGV, Segmentation fault.
0x2ae33b90 in ?? () from /usr/lib/libglib-2.0.so.0
(gdb) bt
#0  0x2ae33b90 in ?? () from /usr/lib/libglib-2.0.so.0
#1  0x2ae34130 in g_slice_free1 () from /usr/lib/libglib-2.0.so.0
#2  0x37915620 in ?? () from /usr/lib/gstreamer-1.0/libgstimxvpu.so
#3  0x3792d268 in imx_vpu_dec_close ()
   from /usr/lib/libimxvpuapi.so.0
#4  0x37912aac in ?? () from /usr/lib/gstreamer-1.0/libgstimxvpu.so
#5  0x37912bfc in ?? () from /usr/lib/gstreamer-1.0/libgstimxvpu.so
#6  0x2af0ea44 in ?? () from /usr/lib/libgstvideo-1.0.so.0
#7  0x37911270 in ?? () from /usr/lib/gstreamer-1.0/libgstimxvpu.so
#8  0x2ace645c in gst_element_change_state ()
   from /usr/lib/libgstreamer-1.0.so.0
#9  0x2ace98b0 in ?? () from /usr/lib/libgstreamer-1.0.so.0
#10 0x2ace57c8 in gst_element_set_state ()
   from /usr/lib/libgstreamer-1.0.so.0
#11 0x2acc6b7c in ?? () from /usr/lib/libgstreamer-1.0.so.0
#12 0x2ad0eff0 in ?? () from /usr/lib/libgstreamer-1.0.so.0
#13 0x2ace645c in gst_element_change_state ()
   from /usr/lib/libgstreamer-1.0.so.0
#14 0x2ace64d8 in gst_element_change_state ()
   from /usr/lib/libgstreamer-1.0.so.0
#15 0x2ace98b0 in ?? () from /usr/lib/libgstreamer-1.0.so.0
#16 0x2ace57c8 in gst_element_set_state ()
   from /usr/lib/libgstreamer-1.0.so.0
#17 0x000550ec in Program::updateVideoMode(unsigned int) ()
#18 0x00058f58 in CommandManager::executeAndFlush(boost::shared_ptr<node>, Program*) ()
#19 0x00054904 in Program::onUpdate(boost::chrono::duration<long long, boost::ratio<1ll, 1000ll> >) ()

Ask me if you need any information.

Regards