Stuck in an endless loop executing in gstDecoder::checkMsgBus method and unable to exit
Pi-Boss opened this issue · comments
This is a very strange phenomenon. I'm using os/exec in Golang to launch this C++ program for video decoding, and after running for a while, I encounter an issue where the video cannot be decoded. When I debugged the code and traced it back to the jetson-utils library, I found that the code was stuck in a continuous loop calling the checkMsgBus method in gstDecoder. However, when I directly run the C++ program in the shell terminal, I don't encounter this issue. It's really perplexing!
Below is a partial screenshot of my log recorder
After closely examining the running status of jetson-utils, I found that gstDecoder::onBuffer method keeps triggering continuously, and gstDecoder::checkMsgBus() method returns null when using gst_bus_pop.
@dusty-nv Please help me pinpoint this tricky issue.Thanks~~
@Pi-Boss what is the videoSource file/device/stream you are decoding? Does the issue occur running on a different stream?
It seems you have gotten familiar with the internal workings, so if needed you could start changing code to prevent this - however I'm unsure why it would occur outside of normal working conditions.