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

general protection fault libswscale.so.5.5.100 #70

Closed
jnewbigin opened this issue Aug 18, 2020 · 3 comments
Closed

general protection fault libswscale.so.5.5.100 #70

jnewbigin opened this issue Aug 18, 2020 · 3 comments

Comments

@jnewbigin
Copy link

Hi,
I wanted to get V4L2 Video Output (via v4l2sync) so I updated --channel=latest/edge as per #55

Name        Version  Rev   Tracking     Publisher     Notes
obs-studio  25.0.8   1113  latest/edge  snapcrafters  -

Hooray, I have the plugin now.

When I use the plugin with video format YUV420, I get a crash:
[6016161.467415] traps: video-io: video[5423] general protection fault ip:7f578e8d21c6 sp:7f57667fb818 error:0 in libswscale.so.5.5.100[7f578e87b000+81000]

I think this is an ffmpeg bug - perhaps http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=ba3e771a42c29ee02c34e7769cfc1b2dbc5c760a

I tried using the other formats which sometimes report
[swscaler @ 0x563d71465940] Warning: data is not aligned! This can lead to a speed loss

Additionally, when I click Stop, obs-studio crashes

free(): invalid pointer
Segmentation fault

[6017583.212390] traps: obs[8326] general protection fault ip:7ffb46213eae sp:7ffcd804e858 error:0 in libc-2.27.so[7ffb461d5000+1e7000]

@flexiondotorg
Copy link
Member

I've forked obs-v4l2sink and cherry-picked some fixed from pull-requests awaiting merges on the upstream project.

I'll include my fork in this build of OBS as I am hopeful it will fix the issue with obs-studio crashing when V4L2 Video Output is stopped.

@jnewbigin
Copy link
Author

Working great now!
Thanks

@flexiondotorg
Copy link
Member

The FFmpeg bug you referenced is fixed in the 4.3/release branch of FFmpeg which is now used in this snap via 4a67404

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

No branches or pull requests

2 participants