Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle SIGSEGV by restarting streaming process #33

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

david-molnar-oculai
Copy link

Describe your changes

When SIGSEGV error happens in GStreamer, it tries to run the debugger by default. This then fails, since the debugger is not installed and as a result, the process is not restarted, just keeps hanging. The streaming the stops.

The PR disables the default debugger and let's the process die. Then it is restarted by Docker.

Sample SIGSEGV error:

Caught SIGSEGV
exec gdb failed: No such file or directory
Spinning.  Please run 'gdb gst-launch-1.0 8' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my own code
  • I have verified that the code builds perfectly fine on my local system
  • I have added tests that prove my fix is effective or that my feature works
  • I have commented my code, particularly in hard-to-understand areas
  • I have verified that my code follows the style already available in the repository
  • I have made corresponding changes to the documentation

@david-molnar-oculai david-molnar-oculai requested a review from a team as a code owner February 2, 2024 09:24
@@ -1,4 +1,4 @@
#!/bin/bash
gst-launch-1.0 rtspsrc \
gst-launch-1.0 --no-fault rtspsrc \
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Streaming fails without restart
1 participant