jetson-utils icon indicating copy to clipboard operation
jetson-utils copied to clipboard

Stuck in an endless loop executing in gstDecoder::checkMsgBus method and unable to exit

Open Pi-Boss opened this issue 2 years ago • 3 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 image

Pi-Boss avatar Sep 19 '23 03:09 Pi-Boss

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.

Pi-Boss avatar Sep 19 '23 03:09 Pi-Boss

@dusty-nv Please help me pinpoint this tricky issue.Thanks~~

Pi-Boss avatar Sep 19 '23 03:09 Pi-Boss

@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.

dusty-nv avatar Sep 19 '23 12:09 dusty-nv