ffmpeg error "Segmentation fault (core dumped)"
Ortimis opened this issue · comments
Using Windows Subsystem Linux (WSL) I run into the error Segmentation fault (core dumped)
. Updating ffmpeg to 4.2.2. does not help. Not quite sure how to solve.
Full output:
$ ./reStream.sh
Your remarkable does not have lz4.
Falling back to gzip, your experience may not be optimal.
Go to https://github.com/rien/reStream/#sub-second-latency for a better experience.
ffplay version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2003-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Segmentation fault (core dumped)
Turns out libmirclient-dev
is missing in WSL, which causes the error.
A hint in the readme for WSL users would probably be helpful.
But now I am running into an other error instead: error: XDG_RUNTIME_DIR not set in the environment.
Got it to work by restarting my X-Server (VcXsrv) and running export DISPLAY=:0
Hi! Thank you for making an issue posting the solution. This will make it easier when others have the same kind of issue in the future.
Was there anything else you needed to install to get this script working on WSL?
No, it was just
- libmirclient-dev on WSL
- A X-Server on Windows (used VcXsrv)
Hints on using an X-Server with WSL are here microsoft/WSL#4793
However, setting export DISPLAY=:0
worked for me
@rien and @Ortimis I have it working now on WSL (with libmirclient-dev), VcXsrv, export DISPLAY:=0.0
, and with lz4.
Many thanks for this, it saved me! I'm using it for online teaching with MS Teams and if you share the whole screen it is very smooth (for some reason there is a lot of flickering if sharing only the windows where executing). I haven't tried the webcam thingy though.
Glad to hear!
I'm afraid the webcam emulation is probably native linux only, since it needs a kernel module.