Closed anumerico closed 1 year ago
Same. obs[42954] general protection fault ip:7f8914256efb sp:7f88e2b013c0 error:0 in libonnxruntime.so.1.10.0[7f89138d5000+b10000]
.
Seems like there is a PR that may fix the error. I ended up installing obs with apt and adding obs-backgroundremoval with GPU with pr #57.
the same happened on my obs-studio-git on archlinux, assumed its my lack of actual gpu but this issue is still here as opened...
I can reproduce the problem on arch using the obs-studio 27.1.3-3
package from the community repository too.
After cloning the github repository for obs-backgroundremoval
on commit e078002
and building the plugin, obs crashes if you add the filter to a camera with the following error:
[1] 203030 segmentation fault (core dumped) obs
Same.
Same. Core dump: http://y.uo1.net/core.18275.gz
$ snap list | grep obs
obs-studio 27.1.3 1284 latest/stable snapcrafters -
$ obs-studio
(process:18275): Gtk-WARNING **: 07:37:46.849: Locale not supported by C library.
Using the fallback 'C' locale.
Attempted path: share/obs/obs-studio/locale/en-US.ini
Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
Attempted path: share/obs/obs-studio/themes/Dark.qss
Attempted path: /usr/share/obs/obs-studio/themes/Dark.qss
info: User enabled --multi flag and is now running multiple instances of OBS.
info: Command Line Arguments: --multi
info: CPU Name: Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz
info: CPU Speed: 1200.000MHz
info: Physical Cores: 6, Logical Cores: 12
info: Physical Memory: 23979MB Total, 239MB Free
info: Kernel Version: Linux 5.15.0-35-generic
info: Distribution: "Ubuntu Core" "20"
info: Session Type: tty
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
info: Portable mode: false
Attempted path: share/obs/obs-studio/themes/Dark/no_sources.svg
Attempted path: /usr/share/obs/obs-studio/themes/Dark/no_sources.svg
QMetaObject::connectSlotsByName: No matching signal for on_tbar_position_valueChanged(int)
QMetaObject::connectSlotsByName: No matching signal for on_actionShowTransitionProperties_triggered()
QMetaObject::connectSlotsByName: No matching signal for on_actionHideTransitionProperties_triggered()
info: OBS 27.1.3-modified (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
samples per sec: 48000
speakers: 2
info: ---------------------------------
info: Initializing OpenGL...
info: Loading up OpenGL on adapter NVIDIA Corporation NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2
info: OpenGL loaded successfully, version 3.3.0 NVIDIA 510.73.05, shading language 3.30 NVIDIA via Cg compiler
info: ---------------------------------
info: video settings reset:
base resolution: 1920x1080
output resolution: 1920x1080
downscale filter: Bicubic
fps: 60/1
format: NV12
YUV mode: 709/Partial
info: NV12 texture support not available
info: Audio monitoring device:
name: Default
id: default
info: ---------------------------------
info: [StreamFX] Loading Version 0.11.0.0c1-g2d7fce5a
info: [StreamFX] <gfx::opengl> Version 3.3 initialized.
info: [StreamFX] Loaded Version 0.11.0.0c1-g2d7fce5a
info: [adv-ss] version: 1.16.5
info: [adv-ss] version: 82da6b32175081a3c8ca9c3aeed267999f460dcb
info: [adv-ss] curl loaded successfully
info: [adv-ss] found curl library
warning: Failed to load 'en-US' text for module: 'decklink-captions.so'
warning: Failed to load 'en-US' text for module: 'decklink-ouput-ui.so'
info: [Downstream Keyer] loaded version 0.2.1
info: [Freeze Filter] loaded version 0.3.2
info: [Gradient Source] loaded version 0.2.0
warning: Failed to load 'en-US' text for module: 'liblooking-glass-obs.so'
Looking Glass OBS Client (B4)
info: [pango]: Loaded system fontconfig
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
warning: A DeckLink iterator could not be created. The DeckLink drivers may not be installed
info: No blackmagic support
error: [linux-vkcapture] linux-vkcapture cannot run on non-EGL platforms
warning: Failed to initialize module 'linux-vkcapture.so'
info: [Move Transition] loaded version 2.5.2
warning: Failed to load 'en-US' text for module: 'obs-audio-pan-filter.so'
info: [obs-audio-pan-filter] plugin loaded successfully (version 0.1.2)
warning: Failed to load 'en-US' text for module: 'obs-backgroundremoval.so'
info: [obs-backgroundremoval] plugin loaded successfully (version 0.4.0)
info: [obs-browser]: Version 2.16.3
info: [obs-browser]: CEF Version 87.1.14+ga29e9a3+chromium-87.0.4280.141
info: NVENC supported
info: FFMPEG VAAPI supported
warning: Failed to load 'en-US' text for module: 'obs-gphoto.so'
info: obs-gstreamer build: 219a629
info: [obs-ndi] hello ! (version 4.9.1)
info: [obs-ndi] Trying ''
info: [obs-ndi] Trying '/usr/lib'
info: [obs-ndi] Trying '/usr/local/lib'
info: [obs-ndi] Found NDI library at '/usr/local/lib/libndi.so.4'
info: [obs-ndi] NDI runtime loaded successfully
info: [obs-ndi] NDI library initialized successfully (NDI SDK LINUX 18:32:11 Jun 30 2020 4.5.3)
warning: Failed to load 'en-US' text for module: 'obs-vnc.so'
info: [obs-vnc] plugin loaded successfully (version 0.4.0)
info: [obs-websocket] you can haz websockets (version 4.9.1)
info: [obs-websocket] qt version (compile-time): 5.15.2 ; qt version (run-time): 5.15.2
info: [obs-websocket] module loaded!
info: [Replay Source] loaded version 1.6.9
info: [Source Copy] loaded version 0.1.3
info: [Source Record] loaded version 0.2.6
info: [Source Switcher] loaded version 0.3.0
info: [spectralizer] Loading v1.3.2 build time 2021.12.20 11:59
info: [TimeWarpScan] loaded version 0.1.6
info: [Transition Table] loaded version 0.2.2
info: VLC found, VLC video source enabled
info: ---------------------------------
info: Loaded Modules:
info: vlc-video.so
info: transition-table.so
info: time-warp-scan.so
info: text-freetype2.so
info: spectralizer.so
info: source-switcher.so
info: source-record.so
info: source-copy.so
info: sndio.so
info: scale-to-sound.so
info: rtmp-services.so
info: replay-source.so
info: recursion-effect.so
info: obs-x264.so
info: obs-websocket.so
info: obs-vst.so
info: obs-vnc.so
info: obs-transitions.so
info: obs-rtspserver.so
info: obs-rgb-levels-filter.so
info: obs-outputs.so
info: obs-ndi.so
info: obs-libfdk.so
info: obs-gstreamer.so
info: obs-gphoto.so
info: obs-filters.so
info: obs-ffmpeg.so
info: obs-browser.so
info: obs-backgroundremoval.so
info: obs-audio-pan-filter.so
info: nvfbc.so
info: move-transition.so
info: linux-vkcapture.so
info: linux-v4l2.so
info: linux-pulseaudio.so
info: linux-jack.so
info: linux-decklink.so
info: linux-capture.so
info: linux-alsa.so
info: libtext-pango.so
info: liblooking-glass-obs.so
info: image-source.so
info: gradient-source.so
info: frontend-tools.so
info: freeze-filter.so
info: dynamic-delay.so
info: dvd-screensaver.so
info: downstream-keyer.so
info: dir-watch-media.so
info: decklink-ouput-ui.so
info: decklink-captions.so
info: advanced-scene-switcher.so
info: StreamFX.so
info: ---------------------------------
info: ==== Startup complete ===============================================
info: All scene data cleared
info: ------------------------------------------------
info: pulse-input: Server name: 'pulseaudio 15.99.1'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_output.pci-0000_00_1b.0.analog-stereo.monitor'
info: [Loaded global audio device]: 'Desktop Audio'
info: pulse-input: Server name: 'pulseaudio 15.99.1'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_input.usb-Sonix_Technology_Co.__Ltd._USB_Live_camera_SN0001-02.analog-stereo'
info: [Media Source 'rtsp://m2103k19pg:5554/']: settings:
input: rtsp://m2103k19pg:5554/
input_format:
speed: 100
is_looping: no
is_linear_alpha: no
is_hw_decoding: yes
is_clear_on_media_end: no
restart_on_activate: yes
close_when_inactive: no
info: v4l2-input: Start capture from /dev/video0
info: v4l2-input: Input: 0
info: v4l2-input: Resolution: 1920x1080
info: v4l2-input: Pixelformat: BGR3
info: v4l2-input: Linesize: 5760 Bytes
info: v4l2-input: Framerate: 60.00 fps
info: v4l2-input: /dev/video0: select timeout set to 83333us (5x frame periods)
info: Switched to scene 'Scene'
info: [adv-ss] trying to reconnect to in 10 seconds.
info: [adv-ss] started
info: ------------------------------------------------
info: Loaded scenes:
info: - scene 'Scene':
info: - source: 'rtsp://m2103k19pg:5554/' (ffmpeg_source)
info: - source: 'Audio Input Capture (PulseAudio)' (pulse_input_capture)
info: - source: 'Video Capture Device (V4L2)' (v4l2_input)
info: ------------------------------------------------
error: v4l2-input: /dev/video0: select timed out
error: v4l2-input: /dev/video0: failed to log status
Attempted path: share/obs/obs-studio/images/overflow.png
Attempted path: /usr/share/obs/obs-studio/images/overflow.png
[tcp @ 0x7f3b5c003480] Connection to tcp://m2103k19pg:5554?timeout=30000000 failed: Connection refused
warning: MP: Failed to open media: 'rtsp://m2103k19pg:5554/'
warning: [Media Source 'rtsp://m2103k19pg:5554/']: Disconnected. Reconnecting...
info: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Audio Input Capture (PulseAudio))
info: v4l2-input: /dev/video0: stream reset successful
[tcp @ 0x7f3b5c003a00] Connection to tcp://m2103k19pg:5554?timeout=30000000 failed: Connection refused
[tcp @ 0x7f3b740dc7c0] Connection to tcp://m2103k19pg:5554?timeout=30000000 failed: Connection refused
[tcp @ 0x7f3b74006540] Connection to tcp://m2103k19pg:5554?timeout=30000000 failed: Connection refused
[tcp @ 0x7f3b740b2cc0] Connection to tcp://m2103k19pg:5554?timeout=30000000 failed: Connection refused
[tcp @ 0x7f3b740b2cc0] Connection to tcp://m2103k19pg:5554?timeout=30000000 failed: Connection refused
[tcp @ 0x7f3b5c003880] Connection to tcp://m2103k19pg:5554?timeout=30000000 failed: Connection refused
[tcp @ 0x7f3b740b2cc0] Connection to tcp://m2103k19pg:5554?timeout=30000000 failed: Connection refused
info: [obs-backgroundremoval] Destroy scalers.
error: [obs-backgroundremoval] /onnxruntime_src/onnxruntime/core/platform/posix/env.cc:183 onnxruntime::{anonymous}::PosixThread::PosixThread(const char*, int, unsigned int (*)(int, Eigen::ThreadPoolInterface*), Eigen::ThreadPoolInterface*, const onnxruntime::ThreadOptions&) pthread_setaffinity_np failed, error code: 11 error msg: Resource temporarily unavailable
info: User added filter 'Background Removal' (background_removal) to source 'Video Capture Device (V4L2)'
Segmentation fault (core dumped)```
Latest releases should fix this.
Ubuntu 20.04, obs-studio installed through snap, OBS 27.1.3-modified installed through snap. obs-background removal gives segmentation fault. The last relevant lines and error messages for debugging: https://pastebin.com/raw/4KaqtT1W Hope you can help me figure it out.