Bug Report Segmentation fault with media source from current git code

Using git sources at May,2 on updated Fedora 25 (kernel 4.10.12, GNOME-X11 session, intel native driver)

Allways reproducible:
Starting on a fresh install ( just by rm'ing $HOME/.config/obs-studio)
Just open a Media source and choose any avi or mp4 file. It works
Exit program and try to launch again: obs segfaults

Console output:
Code:
[jantonio@server .config]$ obs-studio.sh
Attempted path: ../../data/obs-studio/locale/en-US.ini
Attempted path: ../../data/obs-studio/themes/Default.qss
Attempted path: ../../data/obs-studio/license/gplv2.txt
info: Processor: 4 logical cores
info: Processor: Intel(R) Core(TM) i3-3225 CPU @ 3.30GHz
info: Physical Memory: 15730MB Total
info: Kernel Version: Linux 4.10.12-200.fc25.x86_64
info: Distribution: Fedora 25
info: Portable mode: false
info: OBS 0.14.1-980-gf94cad4 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
   samples per sec: 44100
   speakers:  2
info: ---------------------------------
info: Initializing OpenGL...
info: OpenGL version: 3.3 (Core Profile) Mesa 13.0.4
info: ---------------------------------
info: video settings reset:
   base resolution:  1920x1200
   output resolution: 1152x720
   downscale filter:  Bicubic
   fps:  30/1
   format:  NV12
info: ---------------------------------
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
info: No blackmagic support
error: os_dlopen(libnvidia-encode.so.1->libnvidia-encode.so.1): libnvidia-encode.so.1: cannot open shared object file: No such file or directory

info: VLC found, VLC video source enabled
info: ---------------------------------
info:  Loaded Modules:
info:  vlc-video.so
info:  text-freetype2.so
info:  rtmp-services.so
info:  obs-x264.so
info:  obs-transitions.so
info:  obs-outputs.so
info:  obs-libfdk.so
info:  obs-filters.so
info:  obs-ffmpeg.so
info:  linux-v4l2.so
info:  linux-pulseaudio.so
info:  linux-decklink.so
info:  linux-capture.so
info:  linux-alsa.so
info:  image-source.so
info:  frontend-tools.so
info: ==== Startup complete ===============================================
error: Service '' not found
info: All scene data cleared
info: ------------------------------------------------
info: pulse-input: Server name: 'pulseaudio 10.0'
error: pulse-input: An error occurred while getting the source info!
info: pulse-input: Server name: 'pulseaudio 10.0'
error: pulse-input: An error occurred while getting the source info!
info: [Media Source 'Media Source']: settings:
   input:  /home/jantonio/Vídeos/pdae.avi
   input_format:  (null)
   is_looping:  yes
   is_hw_decoding:  no
   is_clear_on_media_end:  yes
   restart_on_activate:  yes
   close_when_inactive:  no
info: Switched to scene 'Scene'
info: ------------------------------------------------
info: Loaded scenes:
info: - scene 'Scene':
info:  - source: 'Media Source' (ffmpeg_source)
info: ------------------------------------------------
/home/jantonio/bin/obs-studio.sh: línea 4: 22897 Segmentation fault  (`core' generado) LANG=C ./obs

I've tested with several videos and video formats. Seems that there is some problem with scene restoration from Media source

¿Any help?
Thanks in advance
Juan Antonio
 
Now works again (¿perhaps by mean of pull request #907? )

UPDATE: May 8,2017
Sorry, no luck yet. Sometimes works, other crashes. Debug log shows nothing apart my first post

Any hint to help finding error?

Juan Antonio
 
Last edited:
Are you using the Media Source? If so I have seen this happen on Linux when the media source is set to Open even when it isn't the active view. The only way I got around this was to manually go into the configuration json file for this, and remove the offending source from the scene, and then re-add it back with OBS with the close the media source when not active.
 
Yes: I also needed to clear source entry in configuration to get obs running back....I think it's a configuration problem too.

Not sure that this is the problem, but here comes a patch to fix a variable not to being default set in Linux/Mac:
Code:
--- plugins/obs-ffmpeg/obs-ffmpeg-source.c.orig   2017-05-11 08:32:44.017440248 +0200
+++ plugins/obs-ffmpeg/obs-ffmpeg-source.c   2017-05-11 08:40:53.442690025 +0200
@@ -85,6 +85,8 @@
   obs_data_set_default_bool(settings, "restart_on_activate", true);
#if defined(_WIN32)
   obs_data_set_default_bool(settings, "hw_decode", true);
+#else
+   obs_data_set_default_bool(settings, "hw_decode", false);
#endif
}

Additionally, when adding Media source, configuration file does not store every properties, just declared. If I manually set/unset every properties in dialog, then associated source in configuration file stores every ones.... and then obs never hangs ( at least I've not been able to crash )

( or when in crash state, adding every missing properties for media source makes obs work again )
Expect this helps
 
Top