Segmentation Fault by working with Browser Dock

rimach

New Member
Hello,
I'm installed the animated Lower Third Plugin for my fresh installed Obs-Studio V.29.02 (Kubuntu 22.04)

It seems to work in general, but there is the possibility to change an icon which will be displayed together with the text.
If I click the button to open the file dialog (<input type="file" id="logo-file" accept="image/*" onchange="showPreview(this);">)
the obs application crashed immediately with a Segmentation Fault message only "Segmentation fault (core dumped)"

If I open this browser dock plugin control.html file in chrome directly it is working perfectly fine.
Does anyone can help here to find a solution?
 

rimach

New Member
Here the link to the logfile: Obs Log
Because obs crashes the last informations are not logged into the logfile anymore but only in the terminal window:
[00007f4564002ab0] main filter error: Failed to create video converter
[00007f4564002ab0] main filter error: Failed to create video converter
info: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Mikrofon-/AUX-Audio)

kf.service.services: KApplicationTrader: mimeType "x-scheme-handler/file" not found
kf.service.services: KApplicationTrader: mimeType "x-scheme-handler/file" not found
Qt: Session management error: networkIdsList argument is NULL
Segmentation fault (core dumped)

I hope this helps?
 

AaronD

Active Member
Probably a bug, or an incompatibility between the browser code that the plugin generates and OBS's Browser source. You might get better help on the plugin-specific thread. (Discussion tab, starting from your link)

I also noticed on the page that you linked directly:
Requirements
Unfortunately, OBS doesn't support browser panels on MacOs. It only works on Windows. And can be used on Linux using the snap installation. More info: https://obsproject.com/forum/thread...with-most-of-the-plugins-and-features.137672/
Unfortunately, the snap version was last updated in December 2021, so it's grossly out of date now. But if it works, it works.
 

rimach

New Member
I was able to isolate the problem.
I don't need a full plugin to show the issue.
I just need a very small html file which I open as Browser Dock:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Simple Choose File</title>
</head>
<body>
<label for="logo-file">Choose File</label>
<input type="file" >
</body>
</html>
 

AaronD

Active Member
That works for me. Copy/pasted it into test.html, and opened it in Firefox. That worked. Then put it in a Browser source on OBS. That worked too.

Screenshot of the Program output from OBS:
Screenshot_2023-04-27_Thu_18-16-46.png

That's the one Browser source by itself in a new scene, set to 1920x1080 on the same-size canvas.

OBS 29.0.2 from the official repo, on Ubuntu Studio 22.04 LTS.
 

rimach

New Member
Hello Aaron, thanks a lot for your answers and that you spend time to reproduce this issue.
I'm sorry I was not clearly describing how to reproduce the issue. It's not Browser Source related.
1. Open Menu "Docks"
2. Choose "Custom Browser Docks..."
3. Enter any Dock Name
4. As Url choose path to local html file with code snippet I added in POST 5 (e.g. "file:///home/path/to/html")
5. for any reason here the Browser Dock will not rendered correctly -> restart OBS
6. Click on "Choose File" Button in new Browser Dock => OBS crashes after 2 seconds

I tried other input types like color, text. They work correctly. So there is something wrong with creation of file menu?
 

rimach

New Member
Does anybody else can confirm this issue in Linux?
In the meantime I was able to test a windows installation. There is no issue.
 

AaronD

Active Member
Can confirm. Click the Choose File button here -> immediate crash.
1682952619794.png

Verbose log:
That's a different session than the one shown here. I removed the browser dock, removed all the scenes except for a new Blackout with no sources, disabled all of the global audio, restarted OBS, then added the browser dock again, and clicked the button. This log is after that reboot.

A different session again - repeating the procedure after the reboot - produces the 2 posts after this in a terminal. (limit 15k characters per post)

Unfortunately, I don't have a solution. Maybe someone else does?
It appears to be a button that does nothing, and OBS just doesn't like the button.
 
Last edited:

AaronD

Active Member
Part 1:
Code:
aaron@aaron-ubuntustudio-m6800:~$ obs --verbose --unfiltered_log --multi --studio-mode --profile "00_Sandbox" --collection "00_Sandbox"
debug: Found portal inhibitor
debug: Attempted path: share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: share/obs/obs-studio/locale.ini
debug: Attempted path: /usr/share/obs/obs-studio/locale.ini
debug: Attempted path: share/obs/obs-studio/themes/Yami.qss
debug: Attempted path: /usr/share/obs/obs-studio/themes/Yami.qss
info: Command Line Arguments: --verbose --unfiltered_log --multi --studio-mode --profile 00_Sandbox --collection 00_Sandbox
info: Using EGL/X11
info: CPU Name: Intel(R) Core(TM) i7-4940MX CPU @ 3.10GHz
info: CPU Speed: 3200.000MHz
info: Physical Cores: 4, Logical Cores: 8
info: Physical Memory: 32039MB Total, 26596MB Free
info: Kernel Version: Linux 5.15.0-71-lowlatency
info: Distribution: "Ubuntu" "22.04"
info: Session Type: x11
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
debug: found alternate keycode 62 for OBS_KEY_SHIFT which already has keycode 50
debug: found alternate keycode 105 for OBS_KEY_CONTROL which already has keycode 37
debug: found alternate keycode 108 for OBS_KEY_ALT which already has keycode 64
debug: found alternate keycode 129 for OBS_KEY_NUMPERIOD which already has keycode 91
debug: found alternate keycode 190 for OBS_KEY_REDO which already has keycode 137
debug: found alternate keycode 208 for OBS_KEY_VK_MEDIA_PLAY_PAUSE which already has keycode 172
debug: found alternate keycode 215 for OBS_KEY_VK_MEDIA_PLAY_PAUSE which already has keycode 172
debug: found alternate keycode 218 for OBS_KEY_PRINT which already has keycode 107
debug: found alternate keycode 231 for OBS_KEY_CANCEL which already has keycode 136
info: Qt Version: 6.2.4 (runtime), 6.2.4 (compiled)
info: Portable mode: false
debug: Attempted path: share/obs/obs-studio/themes/Dark/no_sources.svg
debug: Attempted path: /usr/share/obs/obs-studio/themes/Dark/no_sources.svg
qt.core.qmetaobject.connectslotsbyname: QMetaObject::connectSlotsByName: No matching signal for on_tbar_position_valueChanged(int)
info: OBS 29.0.2 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
        samples per sec: 48000
        speakers:        2
        max buffering:   960 milliseconds
        buffering type:  dynamically increasing
info: ---------------------------------
info: Initializing OpenGL...
debug: Created EGLDisplay 0x55a46a297260
info: Loading up OpenGL on adapter NVIDIA Corporation Quadro K5100M/PCIe/SSE2
info: OpenGL loaded successfully, version 3.3.0 NVIDIA 470.182.03, shading language 3.30 NVIDIA via Cg compiler
info: ---------------------------------
info: video settings reset:
        base resolution:   1920x1080
        output resolution: 1920x1080
        downscale filter:  Lanczos
        fps:               30/1
        format:            NV12
        YUV mode:          Rec. 709/Partial
info: NV12 texture support not available
info: P010 texture support not available
info: Audio monitoring device:
        name: Default
        id: default
info: ---------------------------------
debug: ---------------------------------
debug: Required module function 'obs_module_load' in module '/usr//lib/x86_64-linux-gnu/obs-plugins/advanced-scene-switcher-lib.so' not found, loading of module failed
debug: Failed to load module file '/usr//lib/x86_64-linux-gnu/obs-plugins/advanced-scene-switcher-lib.so', not an OBS plugin
debug: ---------------------------------
debug: Loading module: advanced-scene-switcher.so
info: [adv-ss] version: 7d9858b
info: [adv-ss] version: 7d9858b4777b7d7e756fcdbb4e66acbdb396e0c7
info: [adv-ss] curl loaded successfully
info: [adv-ss] found curl library
info: [adv-ss] attempting to load "/usr/lib/x86_64-linux-gnu/obs-plugins/adv-ss-plugins/advanced-scene-switcher-opencv.so"
info: [adv-ss] successfully loaded "/usr/lib/x86_64-linux-gnu/obs-plugins/adv-ss-plugins/advanced-scene-switcher-opencv.so"
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0,0,0,0'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0,0,0,0'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0,0,0,0'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0,0,0,0'
debug: ---------------------------------
debug: Loading module: aja-output-ui.so
warning: No AJA devices found, skipping loading AJA UI plugin
warning: Failed to initialize module 'aja-output-ui.so'
debug: ---------------------------------
debug: Loading module: aja.so
warning: No AJA devices found, skipping loading AJA plugin
warning: Failed to initialize module 'aja.so'
debug: ---------------------------------
debug: Loading module: decklink-captions.so
warning: Failed to load 'en-US' text for module: 'decklink-captions.so'
debug: ---------------------------------
debug: Loading module: decklink-output-ui.so
warning: Failed to load 'en-US' text for module: 'decklink-output-ui.so'
debug: ---------------------------------
debug: Loading module: decklink.so
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
warning: Failed to initialize module 'decklink.so'
debug: ---------------------------------
debug: Loading module: frontend-tools.so
debug: ---------------------------------
debug: Loading module: image-source.so
debug: ---------------------------------
debug: Required module function 'obs_module_load' in module '/usr//lib/x86_64-linux-gnu/obs-plugins/libcef.so' not found, loading of module failed
debug: Failed to load module file '/usr//lib/x86_64-linux-gnu/obs-plugins/libcef.so', not an OBS plugin
debug: ---------------------------------
debug: Required module function 'obs_module_load' in module '/usr//lib/x86_64-linux-gnu/obs-plugins/libEGL.so' not found, loading of module failed
debug: Failed to load module file '/usr//lib/x86_64-linux-gnu/obs-plugins/libEGL.so', not an OBS plugin
debug: ---------------------------------
debug: Required module function 'obs_module_load' in module '/usr//lib/x86_64-linux-gnu/obs-plugins/libGLESv2.so' not found, loading of module failed
debug: Failed to load module file '/usr//lib/x86_64-linux-gnu/obs-plugins/libGLESv2.so', not an OBS plugin
debug: ---------------------------------
debug: Required module function 'obs_module_load' in module '/usr//lib/x86_64-linux-gnu/obs-plugins/libvk_swiftshader.so' not found, loading of module failed
debug: Failed to load module file '/usr//lib/x86_64-linux-gnu/obs-plugins/libvk_swiftshader.so', not an OBS plugin
debug: ---------------------------------
debug: Loading module: linux-alsa.so
debug: ---------------------------------
debug: Loading module: linux-capture.so
debug: ---------------------------------
debug: Loading module: linux-jack.so
debug: ---------------------------------
debug: Loading module: linux-pipewire.so
info: [pipewire] Available captures:
info: [pipewire]     - Desktop capture
info: [pipewire]     - Window capture
debug: ---------------------------------
debug: Loading module: linux-pulseaudio.so
debug: ---------------------------------
debug: Loading module: linux-v4l2.so
debug: ---------------------------------
debug: Loading module: obs-browser.so
info: [obs-browser]: Version 2.19.0
info: [obs-browser]: CEF Version 103.0.5060.134 (runtime), 103.0.0-5060-shared-textures_143.2591+g4204d54+chromium-103.0.5060.134 (compiled)
debug: ---------------------------------
debug: Loading module: obs-ffmpeg.so
info: NVENC supported
debug: VAAPI: Initializing display in vaapi_device_h264_supported
debug: Libva: VA-API version 1.14.0
debug: Libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
debug: Libva: Found init function __vaDriverInit_1_14
debug: Libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
debug: Libva: va_openDriver() returns 1
debug: Libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
debug: Libva: Found init function __vaDriverInit_1_10
debug: Libva: va_openDriver() returns 0
debug: VAAPI: Display initialized
info: VAAPI: API version 1.14
debug: VAAPI: 'Intel i965 driver for Intel(R) Haswell Mobile - 2.4.1' in use for device '/dev/dri/renderD128'
debug: '/dev/dri/renderD128' support encoding with VAProfileH264ConstrainedBaseline
debug: '/dev/dri/renderD128' support encoding with VAProfileH264Main
debug: '/dev/dri/renderD128' support encoding with VAProfileH264High
info: FFmpeg VAAPI H264 encoding supported
debug: ---------------------------------
debug: Loading module: obs-filters.so
debug: ---------------------------------
debug: Loading module: obs-libfdk.so
debug: ---------------------------------
debug: Loading module: obs-outputs.so
debug: ---------------------------------
debug: Loading module: obs-transitions.so
debug: ---------------------------------
debug: Loading module: obs-vst.so
debug: ---------------------------------
debug: Loading module: obs-websocket.so
info: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.1.0 | RPC Version: 1)
info: [obs-websocket] [obs_module_load] Qt version (compile-time): 6.2.4 | Qt version (run-time): 6.2.4
info: [obs-websocket] [obs_module_load] Linked ASIO Version: 101201
info: [obs-websocket] [obs_module_load] Module loaded.
debug: ---------------------------------
debug: Loading module: obs-x264.so
debug: ---------------------------------
debug: Loading module: rtmp-services.so
debug: ---------------------------------
debug: Loading module: source-defaults.so
warning: Failed to load 'en-US' text for module: 'source-defaults.so'
info: [source-defaults] plugin loaded successfully (version 1.0.1)
debug: ---------------------------------
debug: Loading module: text-freetype2.so
debug: ---------------------------------
debug: Loading module: vlc-video.so
info: [vlc-video]: VLC 3.0.16 Vetinari found, VLC video source enabled
debug: ---------------------------------
debug: Loading module: source-copy.so
info: [Source Copy] loaded version 0.2.2
info: ---------------------------------
info:   Loaded Modules:
info:     source-copy.so
info:     vlc-video.so
info:     text-freetype2.so
info:     source-defaults.so
info:     rtmp-services.so
info:     obs-x264.so
info:     obs-websocket.so
info:     obs-vst.so
info:     obs-transitions.so
info:     obs-outputs.so
info:     obs-libfdk.so
info:     obs-filters.so
info:     obs-ffmpeg.so
info:     obs-browser.so
info:     linux-v4l2.so
info:     linux-pulseaudio.so
info:     linux-pipewire.so
info:     linux-jack.so
info:     linux-capture.so
info:     linux-alsa.so
info:     image-source.so
info:     frontend-tools.so
info:     decklink-output-ui.so
info:     decklink-captions.so
info:     advanced-scene-switcher.so
info: ---------------------------------
QLayout: Attempting to add QLayout "" to OBSBasic "OBSBasic", which already has a layout
QWidget::setTabOrder: 'first' and 'second' must be in the same window
info: ==== Startup complete ===============================================
 

AaronD

Active Member
Part 2:
Code:
info: ==== Startup complete ===============================================
debug: output 'virtualcam_output' (virtualcam_output) created
debug: output 'adv_file_output' (ffmpeg_muxer) created
debug: encoder 'advanced_video_stream' (ffmpeg_nvenc) created
debug: AAC encoder bitrate mapping:
         32 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
         64 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
         96 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        128 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        160 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        192 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        224 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        256 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        288 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        320 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        352 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        384 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        416 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        448 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        480 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        512 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        544 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        576 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        608 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        640 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        672 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        704 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        736 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        768 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        800 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        832 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        864 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        896 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        928 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        960 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        992 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        1024 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
debug: encoder 'adv_aac0' (libfdk_aac) created
debug: encoder 'adv_aac1' (libfdk_aac) created
debug: encoder 'adv_aac2' (libfdk_aac) created
debug: encoder 'adv_aac3' (libfdk_aac) created
debug: encoder 'adv_aac4' (libfdk_aac) created
debug: encoder 'adv_aac5' (libfdk_aac) created
debug: encoder 'adv_stream_aac' (libfdk_aac) created
debug: encoder 'adv_archive_aac' (libfdk_aac) created
debug: service 'default_service' (rtmp_common) created
debug: obs_source_get_name: Null 'source' parameter
debug: obs_scene_duplicate: Null 'scene' parameter
debug: obs_transition_set: Null 'transition' parameter
info: Switched to Preview/Program mode
info: ------------------------------------------------
debug: obs_source_get_name: Null 'source' parameter
debug: obs_source_get_name: Null 'source' parameter
info: All scene data cleared
info: ------------------------------------------------
debug: private source 'Cut' (cut_transition) created
debug: private source 'Fade' (fade_transition) created
debug: source 'Blackout' (scene) created
debug: obs_source_get_name: Null 'source' parameter
info: Switched to scene 'Blackout'
debug: private source 'Blackout' (scene) created
info: [adv-ss] trying to reconnect to  in 10 seconds.
info: ------------------------------------------------
info: Loaded scenes:
info: - scene 'Blackout':
info: ------------------------------------------------
info: [adv-ss] started
info: [obs-websocket] [WebSocketServer::onObsLoaded] WebSocket server is enabled, starting...
info: [obs-websocket] [WebSocketServer::Start] Not locked to IPv4 bindings
info: [obs-websocket] [WebSocketServer::ServerRunner] IO thread started.
info: [obs-websocket] [WebSocketServer::Start] Server started successfully on port 4455. Possible connect address: 192.168.20.99
debug: Attempted path: share/obs/obs-studio/images/overflow.png
debug: Attempted path: /usr/share/obs/obs-studio/images/overflow.png
[0501/100120.274076:WARNING:task_impl.cc(32)] No task runner for threadId 0
Segmentation fault (core dumped)
aaron@aaron-ubuntustudio-m6800:~$
 
Top