snapcrafters / obs-studio

This is a community-supported modified build of OBS Studio.
https://snapcraft.io/obs-studio
117 stars 35 forks source link

[Bug]: OBS Studio crashes when moving the window from a display to another #205

Open brlin-tw opened 1 month ago

brlin-tw commented 1 month ago

What happened?

The application crashed when I move the window from one display to another.

What should have happened?

It shouldn't crash.

Output of snap info $snap_name

name:    obs-studio
summary: Free and open source software for live streaming and screen
  recording
publisher: Snapcrafters*
store-url: https://snapcraft.io/obs-studio
license:   GPL-2.0
description: |
  OBS Studio is software designed for capturing, compositing, encoding,
  recording, and streaming video content, efficiently.

  **NOTE: This is a community-supported modified build of OBS Studio; please
  file issues on the Snapcrafters GitHub: 
  https://github.com/snapcrafters/obs-studio/issues**

  **Batteries included**

  The snap of OBS studio comes pre-loaded with some extra features:

    * Supports **nvenc (NVIDIA) and VA-API (AMD & Intel) accelerated video
    encoding**.
    * **Advanced Scene Switcher** plugin; an automated scene switcher
    * **Browser** plugin; CEF-based OBS Studio browser plugin
    * **Directory Watch Media** plugin; filter you can add to a media source
    to load the oldest or newest file in a directory.
    * **Dynamic Delay** plugin; filter for dynamic delaying a video source.
    * **Freeze Filter** plugin; freeze a source using a filter.
    * **GStreamer** plugins; feed GStreamer launch pipelines into OBS Studio
    and use GStreamer encoder elements.
    * **Move Transition** plugin; move sources to a new position during a
    scene transition.
    * **NDI** plugin; Network A/V via NewTek's NDI.
    * **RGB Levels** plugin; simple filter to adjust RGB levels.
    * **Source Switcher** plugin; to switch between a list of sources.
    * **StreamFX** plugin; collection modern effects filters and transitions.
    * **Text Pango** plugin; Provides a text source rendered using Pango with
    multi-language support, emoji support, vertical rendering and RTL
    support.
    * **Transition Matrix** plugin; customize Any -> One or One -> One scene
    transitions.
    * **Waveform** plugin; audio visualization using fftw.
    * **Websockets** plugin; remote-control OBS Studio through WebSockets.

  **Connecting Interfaces**

  For the best experience, you'll want to connect the following interfaces.

     sudo snap connect obs-studio:alsa
     sudo snap connect obs-studio:audio-record
     sudo snap connect obs-studio:avahi-control
     sudo snap connect obs-studio:camera
     sudo snap connect obs-studio:jack1
     sudo snap connect obs-studio:kernel-module-observe

  **NDI**

  If you want to use the NDI plugin you'll need to connect the Avahi Control
  interface.

     snap connect obs-studio:avahi-control

  **Virtual Camera**

  Starting with OBS 26.1.0, Virtual Camera support is integrated. Here's how
  to install and configure `v4l2loopback`:

     sudo snap connect obs-studio:kernel-module-observe
     sudo apt -y install v4l2loopback-dkms v4l2loopback-utils
     echo "options v4l2loopback devices=1 video_nr=13 card_label='OBS Virtual
     Camera'    exclusive_caps=1" | sudo tee
     /etc/modprobe.d/v4l2loopback.conf
     echo "v4l2loopback" | sudo tee /etc/modules-load.d/v4l2loopback.conf
     sudo modprobe -r v4l2loopback
     sudo modprobe v4l2loopback devices=1 video_nr=13 card_label='OBS Virtual
     Camera' exclusive_caps=1

  **NOTE!** Using `video_nr` greater than 64 will not work.

  **Removable Storage**

  To access content on external storage, connect to the removable-media plug:

     snap connect obs-studio:removable-media

  **3rd Party plugins**

  To install pre-compiled plugins, download and extract the plugin to
  `~/snap/obs-studio/current/.config/obs-studio/plugins/`.

  This is how the Input Overlay plugin looks when correctly installed:

     /home/username/snap/obs-studio/current/.config/obs-studio/plugins/
     └── input-overlay
         ├── bin
         │   └── 64bit
         │       └── input-overlay.so
         └── data
             └── locale
                 ├── de-DE.ini
                 ├── en-US.ini
                 └── ru-RU.ini

  If you want to use the Input Overlay plugin, you'll also need to connect
  the joystick interface:

     snap connect obs-studio:joystick

  **NOTE: This is a community-supported modified build of OBS Studio; please
  file issues on the Snapcrafters GitHub: 
  https://github.com/snapcrafters/obs-studio/issues**
commands:
  - obs-studio
snap-id:      6uLU2MJmBURfLNz4rmL4WT2CmtVULE2u
tracking:     latest/stable
refresh-date: 6 days ago, at 13:55 CST
channels:
  latest/stable:    30.2.0 2024-07-14 (1302) 603MB -
  latest/candidate: 30.2.0 2024-07-13 (1302) 603MB -
  latest/beta:      ^                              
  latest/edge:      30.0.0 2023-12-22 (1296) 606MB -
installed:          30.2.0            (1302) 603MB -

Output of snap connections $snap_name

Interface                 Plug                                 Slot                            Notes
alsa                      obs-studio:alsa                      -                               -
audio-playback            obs-studio:audio-playback            :audio-playback                 -
audio-record              obs-studio:audio-record              :audio-record                   -
avahi-control             obs-studio:avahi-control             -                               -
browser-support           obs-studio:browser-support           :browser-support                -
camera                    obs-studio:camera                    :camera                         -
content[gnome-42-2204]    obs-studio:gnome-42-2204             gnome-42-2204:gnome-42-2204     -
content[gtk-3-themes]     obs-studio:gtk-3-themes              gtk-common-themes:gtk-3-themes  -
content[icon-themes]      obs-studio:icon-themes               gtk-common-themes:icon-themes   -
content[sound-themes]     obs-studio:sound-themes              gtk-common-themes:sound-themes  -
desktop                   obs-studio:desktop                   :desktop                        -
desktop-legacy            obs-studio:desktop-legacy            :desktop-legacy                 -
gsettings                 obs-studio:gsettings                 :gsettings                      -
hardware-observe          obs-studio:hardware-observe          -                               -
home                      obs-studio:home                      :home                           -
jack1                     obs-studio:jack1                     -                               -
joystick                  obs-studio:joystick                  -                               -
kernel-module-observe     obs-studio:kernel-module-observe     -                               -
network                   obs-studio:network                   :network                        -
network-bind              obs-studio:network-bind              :network-bind                   -
opengl                    obs-studio:opengl                    :opengl                         -
password-manager-service  obs-studio:password-manager-service  -                               -
process-control           obs-studio:process-control           -                               -
pulseaudio                obs-studio:pulseaudio                :pulseaudio                     -
raw-usb                   obs-studio:raw-usb                   -                               -
removable-media           obs-studio:removable-media           -                               -
screen-inhibit-control    obs-studio:screen-inhibit-control    :screen-inhibit-control         -
screencast-legacy         obs-studio:screencast-legacy         -                               -
system-observe            obs-studio:system-observe            -                               -
unity7                    obs-studio:unity7                    :unity7                         -
upower-observe            obs-studio:upower-observe            :upower-observe                 -
wayland                   obs-studio:wayland                   :wayland                        -
x11                       obs-studio:x11                       :x11                            -

Output of snap version

snap    2.63+24.04
snapd   2.63+24.04
series  16
ubuntu  24.04
kernel  6.9.3-060903-generic

Relevant log output

7月 22 16:02:35 brlin-fw13 kernel: audit: type=1400 audit(1721635355.495:15587): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.obs-studio" name="/proc/2531657/maps" pid=2531657 comm="5" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
 7月 22 16:02:36 brlin-fw13 kernel: audit: type=1400 audit(1721635356.136:15588): apparmor="DENIED" operation="open" class="file" profile="snap.obs-studio.obs-studio" name="/proc/2531637/net/unix" pid=2531637 comm="obs" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
 7月 22 16:03:03 brlin-fw13 kernel: audit: type=1400 audit(1721635383.580:15768): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.obs-studio" name="/proc/2532324/maps" pid=2532324 comm="5" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
 7月 22 16:03:03 brlin-fw13 kernel: audit: type=1400 audit(1721635383.778:15769): apparmor="DENIED" operation="open" class="file" profile="snap.obs-studio.obs-studio" name="/proc/2532305/net/unix" pid=2532305 comm="obs" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
 7月 22 16:03:48 brlin-fw13 kernel: audit: type=1400 audit(1721635428.618:15845): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.obs-studio" name="/proc/2532962/maps" pid=2532962 comm="5" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
 7月 22 16:03:48 brlin-fw13 kernel: audit: type=1400 audit(1721635428.776:15846): apparmor="DENIED" operation="open" class="file" profile="snap.obs-studio.obs-studio" name="/proc/2532945/net/unix" pid=2532945 comm="obs" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

Teminal output of app

debug: Found portal inhibitor
debug: Attempted path: ../../data/obs-studio/locale/en-US.ini
debug: Attempted path: ../../data/obs-studio/locale.ini
debug: Attempted path: ../../data/obs-studio/locale/zh-TW.ini
info: Using preferred locale 'zh-TW'
debug: Attempted path: ../../data/obs-studio/themes/Yami.qss
info: Command Line Arguments: --multi
info: Platform: Wayland
info: CPU Name: AMD Ryzen 7 7840U w/ Radeon  780M Graphics
info: CPU Speed: 2976.497MHz
info: Physical Cores: 8, Logical Cores: 16
info: Physical Memory: 60074MB Total, 12516MB Free
info: Kernel Version: Linux 6.9.3-060903-generic
info: Distribution: "Ubuntu Core" "22"
info: Desktop Environment: ubuntu:GNOME (ubuntu)
info: Session Type: wayland
info: Qt Version: 6.2.4 (runtime), 6.2.4 (compiled)
info: Portable mode: false
info: OBS 30.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...
info: Using EGL/Wayland
/usr/share/libdrm/amdgpu.ids: No such file or directory
info: Initialized EGL 1.5
info: Loading up OpenGL on adapter AMD GFX1103_R1 (gfx1103_r1, LLVM 15.0.7, DRM 3.57, 6.9.3-060903-generic)
info: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2, shading language 4.60
info: ---------------------------------
info: video settings reset:
    base resolution:   1920x1080
    output resolution: 1920x1080
    downscale filter:  Bicubic
    fps:               15/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: 預設裝置
    id: default
info: ---------------------------------
warning: Failed to load 'zh-TW' text for module: '3d-effect.so'
info: [3D Effect] loaded version 0.1.0
warning: Failed to load 'zh-TW' text for module: 'advanced-scene-switcher.so'
info: [adv-ss] version: 1.24.2
info: [adv-ss] version: 267855fded058e22e682bf2888c822fb419d8b55
info: [adv-ss] curl loaded successfully
info: [adv-ss] found curl library
info: [adv-ss] attempting to load "/snap/obs-studio/1302/obs-plugins/64bit/adv-ss-plugins/advanced-scene-switcher-midi.so"
info: [adv-ss] successfully loaded "/snap/obs-studio/1302/obs-plugins/64bit/adv-ss-plugins/advanced-scene-switcher-midi.so"
info: [adv-ss] attempting to load "/snap/obs-studio/1302/obs-plugins/64bit/adv-ss-plugins/advanced-scene-switcher-opencv.so"
info: [adv-ss] successfully loaded "/snap/obs-studio/1302/obs-plugins/64bit/adv-ss-plugins/advanced-scene-switcher-opencv.so"
info: [adv-ss] attempting to load "/snap/obs-studio/1302/obs-plugins/64bit/adv-ss-plugins/advanced-scene-switcher-twitch.so"
info: [adv-ss] successfully loaded "/snap/obs-studio/1302/obs-plugins/64bit/adv-ss-plugins/advanced-scene-switcher-twitch.so"
warning: QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0,0,0,0'
warning: QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0,0,0,0'
warning: QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0,0,0,0'
warning: QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0,0,0,0'
warning: No AJA devices found, skipping loading AJA UI plugin
warning: Failed to initialize module 'aja-output-ui.so'
warning: No AJA devices found, skipping loading AJA plugin
warning: Failed to initialize module 'aja.so'
warning: Failed to load 'zh-TW' text for module: 'browser-transition.so'
info: [Browser Transition] loaded version 0.1.2
warning: Failed to load 'en-US' text for module: 'decklink-captions.so'
warning: Failed to load 'en-US' text for module: 'decklink-output-ui.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'
warning: Failed to load 'zh-TW' text for module: 'device-switcher.so'
info: [Device Switcher] loaded version 0.1.3
warning: QLayout: Attempting to add QLayout "" to DeviceSwitcherDock "", which already has a layout
warning: Failed to load 'zh-TW' text for module: 'dir-watch-media.so'
info: [Directory watch media] loaded version 0.6.2
warning: Failed to load 'zh-TW' text for module: 'downstream-keyer.so'
info: [Downstream Keyer] loaded version 0.3.0
warning: Failed to load 'zh-TW' text for module: 'dynamic-delay.so'
info: [Dynamic Delay] loaded version 0.1.4
warning: Failed to load 'zh-TW' text for module: 'freeze-filter.so'
info: [Freeze Filter] loaded version 0.3.3
warning: Failed to load 'zh-TW' text for module: 'gradient-source.so'
info: [Gradient Source] loaded version 0.3.2
warning: Failed to load 'zh-TW' text for module: 'linux-pipewire-audio.so'
info: [pipewire] Available captures:
info: [pipewire]     - Desktop capture
info: [pipewire]     - Window capture
warning: v4l2loopback not installed, virtual camera disabled
warning: Failed to load 'zh-TW' text for module: 'linux-vkcapture.so'
info: [linux-vkcapture] plugin loaded successfully (version 1.4.3)
warning: Failed to load 'zh-TW' text for module: 'markdown.so'
info: [markdown] loaded version 0.2.2
warning: Failed to load 'zh-TW' text for module: 'media-controls.so'
info: [Media Controls] loaded version 0.3.7
warning: Failed to load 'zh-TW' text for module: 'move-transition.so'
info: [Move Transition] loaded version 2.9.7
warning: Failed to load 'zh-TW' text for module: 'obs-advanced-masks.so'
info: [Advanced Masks] loaded version 1.0.1
warning: Failed to load 'en-US' text for module: 'obs-audio-pan-filter.so'
info: [obs-audio-pan-filter] plugin loaded successfully (version 0.2.3)
warning: Failed to load 'zh-TW' text for module: 'obs-backgroundremoval.so'
info: [obs-backgroundremoval] Plugin loaded successfully (version 1.1.8)
info: [obs-backgroundremoval] Failed to open config file /home/brlin/snap/obs-studio/1302/.config/obs-studio/plugin_config/obs-backgroundremoval/config.ini
info: [obs-backgroundremoval] Failed to open config file /home/brlin/snap/obs-studio/1302/.config/obs-studio/plugin_config/obs-backgroundremoval/config.ini
info: [obs-backgroundremoval] Latest release is 1.1.13
info: [obs-browser]: Version 2.22.2
info: [obs-browser]: CEF Version 103.0.5060.134 (runtime), 103.0.0-5060-shared-textures.2594+g17f8588+chromium-103.0.5060.134 (compiled)
warning: Failed to load 'zh-TW' text for module: 'obs-command-source.so'
warning: Failed to load 'zh-TW' text for module: 'obs-composite-blur.so'
info: [Composite Blur] loaded version 1.1.0
warning: Failed to load 'zh-TW' text for module: 'obs-dvd-screensaver.so'
info: [obs-dvd-screensaver] plugin loaded successfully (version 0.0.2)
warning: Failed to load 'zh-TW' text for module: 'obs-face-tracker.so'
info: [obs-face-tracker] registering face_tracker_filter_info (version 0.7.1)
info: [obs-face-tracker] ft_docks_init: Adding face tracker dock menu action=0x5620c257fc30
info: VAAPI: API version 1.20
info: FFmpeg VAAPI H264 encoding supported
info: FFmpeg VAAPI HEVC encoding supported
info: [obs-gstreamer] build: 7dd3e69, gst-runtime: 1.20.3
warning: Failed to load 'zh-TW' text for module: 'obs-localvocal.so'
info: [obs-localvocal] plugin loaded successfully (version 0.0.8)
warning: QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
warning: Failed to load 'en-US' text for module: 'obs-multisource-effect.so'
info: [obs-multisource-effect] plugin loaded successfully (version 0.2.1)
warning: Failed to load 'en-US' text for module: 'obs-mute-filter.so'
info: [obs-mute-filter] plugin loaded successfully (version 0.2.2)
warning: Failed to load 'zh-TW' text for module: 'obs-ndi.so'
info: [obs-ndi] obs_module_load: you can haz obs-ndi (Version 4.13.0)
info: [obs-ndi] obs_module_load: Qt Version: 6.2.4 (runtime), 6.2.4 (compiled)
info: [obs-ndi] load_ndilib: Trying '/usr/lib/libndi.so.5'
info: [obs-ndi] load_ndilib: Found NDI library at '/usr/lib/libndi.so.5'
info: [obs-ndi] load_ndilib: NDI runtime loaded successfully
info: [obs-ndi] load_ndilib: NDIlib_v5_load found
info: [obs-ndi] obs_module_load: NDI library initialized successfully ('NDI SDK LINUX 09:57:02 Feb  2 2023 5.5.3')
info: [obs-ndi] preview_output_init('OBS Preview')
info: [obs-ndi] +ndi_output_create('OBS Preview'...)
info: [obs-ndi] ndi_output_update('OBS Preview'...)
info: [obs-ndi] -ndi_output_create('OBS Preview'...)
warning: Failed to load 'zh-TW' text for module: 'obs-plugin-countdown.so'
info: [obs-plugin-countdown] plugin loaded successfully (version 1.3.3)
warning: Failed to load 'zh-TW' text for module: 'obs-rgb-levels-filter.so'
info: [obs-rgb-levels-filter] plugin loaded successfully (version 1.0.2)
warning: Failed to load 'zh-TW' text for module: 'obs-shaderfilter.so'
info: [obs-shaderfilter] loaded version 2.1.3
warning: Failed to load 'zh-TW' text for module: 'obs-soundboard.so'
info: [obs-soundboard] Soundboard plugin version 1.1.0 is loaded
warning: Failed to load 'zh-TW' text for module: 'obs-stroke-glow-shadow.so'
info: [Stroke Glow Shadow] loaded version 1.0.2
info: [obs-teleport] version: 0.6.6
warning: Failed to load 'en-US' text for module: 'obs-text-pthread.so'
info: [obs-text-pthread] plugin loaded successfully (version 2.0.2)
warning: Failed to load 'en-US' text for module: 'obs-urlsource.so'
info: [obs-urlsource] plugin loaded successfully (version 0.2.5)
info: [obs-vaapi] version: 0.4.1, gst-runtime: 1.20.3
warning: Failed to load 'zh-TW' text for module: 'obs-vintage-filter.so'
warning: Failed to load 'zh-TW' text for module: 'obs-websocket-compat.so'
info: [obs-websocket 4.9.1-compat] you can haz websockets (version 4.9.1-compat)
info: [obs-websocket 4.9.1-compat] qt version (compile-time): 6.2.4 ; qt version (run-time): 6.2.4
info: [obs-websocket 4.9.1-compat] [obs_module_load] Linked ASIO Version: 101201
info: [obs-websocket 4.9.1-compat] module loaded!
info: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.3.4 | 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: 101801
info: [obs-websocket] [obs_module_load] Module loaded.
warning: Failed to load 'zh-TW' text for module: 'pixel-art.so'
info: [pixel-art] plugin loaded successfully (version 0.0.4)
warning: Failed to load 'zh-TW' text for module: 'recursion-effect.so'
info: [Recursion Effect] loaded version 0.0.6
warning: Failed to load 'zh-TW' text for module: 'replay-source.so'
info: [Replay Source] loaded version 1.6.12
warning: Failed to load 'zh-TW' text for module: 'scene-as-transition.so'
info: [Scene As Transition] loaded version 1.1.0
warning: Failed to load 'zh-TW' text for module: 'scene-notes-dock.so'
info: [Scene Notes Dock] loaded version 0.2.0
warning: QLayout: Attempting to add QLayout "" to SceneNotesDock "SceneNotesDock", which already has a layout
warning: Failed to load 'zh-TW' text for module: 'source-clone.so'
info: [Source Clone] loaded version 0.1.5
warning: Failed to load 'zh-TW' text for module: 'source-copy.so'
info: [Source Copy] loaded version 0.2.2
warning: Failed to load 'zh-TW' text for module: 'source-dock.so'
info: [Source Dock] loaded version 0.3.6
warning: Failed to load 'zh-TW' text for module: 'source-record.so'
info: [Source Record] loaded version 0.3.2
warning: Failed to load 'zh-TW' text for module: 'source-switcher.so'
info: [Source Switcher] loaded version 0.4.2
warning: Failed to load 'zh-TW' text for module: 'time-warp-scan.so'
info: [TimeWarpScan] loaded version 0.1.7
warning: Failed to load 'zh-TW' text for module: 'transition-table.so'
info: [Transition Table] loaded version 0.2.7
warning: Failed to load 'zh-TW' text for module: 'vertical-canvas.so'
info: [Vertical Canvas] loaded version 1.3.1
info: [vlc-video]: VLC 3.0.16 Vetinari found, VLC video source enabled
info: [phandasm_waveform]: Registered v1.7.0 x64
info: [phandasm_waveform]: Using CPU capabilities: AVX2 AVX FMA3 SSE2
info: ---------------------------------
info:   Loaded Modules:
info:     waveform.so
info:     vlc-video.so
info:     vertical-canvas.so
info:     transition-table.so
info:     time-warp-scan.so
info:     text-freetype2.so
info:     source-switcher.so
info:     source-record.so
info:     source-dock.so
info:     source-copy.so
info:     source-clone.so
info:     scene-notes-dock.so
info:     scene-as-transition.so
info:     scale-to-sound.so
info:     rtmp-services.so
info:     replay-source.so
info:     recursion-effect.so
info:     pixel-art.so
info:     obs-x264.so
info:     obs-websocket.so
info:     obs-websocket-compat.so
info:     obs-vst.so
info:     obs-vintage-filter.so
info:     obs-vaapi.so
info:     obs-urlsource.so
info:     obs-transitions.so
info:     obs-text-pthread.so
info:     obs-teleport.so
info:     obs-stroke-glow-shadow.so
info:     obs-soundboard.so
info:     obs-shaderfilter.so
info:     obs-rgb-levels-filter.so
info:     obs-qsv11.so
info:     obs-plugin-countdown.so
info:     obs-outputs.so
info:     obs-ndi.so
info:     obs-mute-filter.so
info:     obs-multisource-effect.so
info:     obs-multi-rtmp.so
info:     obs-localvocal.so
info:     obs-libfdk.so
info:     obs-gstreamer.so
info:     obs-filters.so
info:     obs-ffmpeg.so
info:     obs-face-tracker.so
info:     obs-dvd-screensaver.so
info:     obs-composite-blur.so
info:     obs-command-source.so
info:     obs-browser.so
info:     obs-backgroundremoval.so
info:     obs-audio-pan-filter.so
info:     obs-advanced-masks.so
info:     move-transition.so
info:     media-controls.so
info:     markdown.so
info:     linux-vkcapture.so
info:     linux-v4l2.so
info:     linux-pulseaudio.so
info:     linux-pipewire.so
info:     linux-pipewire-audio.so
info:     linux-jack.so
info:     linux-capture.so
info:     image-source.so
info:     gradient-source.so
info:     frontend-tools.so
info:     freeze-filter.so
info:     dynamic-delay.so
info:     downstream-keyer.so
info:     dir-watch-media.so
info:     device-switcher.so
info:     decklink-output-ui.so
info:     decklink-captions.so
info:     browser-transition.so
info:     advanced-scene-switcher.so
info:     3d-effect.so
info: ---------------------------------
info: [Vertical Canvas] Loaded configuration file
warning: QLayout: Attempting to add QLayout "" to CanvasDock "contextContainer", which already has a layout
info: NV12 texture support not available
info: P010 texture support not available
warning: QMetaObject::connectSlotsByName: No matching signal for on_nextButton_clicked()
warning: QMetaObject::connectSlotsByName: No matching signal for on_previousButton_clicked()
warning: The object name of the added dock is empty or already used, a temporary one will be set to avoid conflicts
info: [obs-ndi] obs_module_post_load: ...
info: ==== Startup complete ===============================================
info: [adv-ss] trying to reconnect to  in 10 seconds.
info: [adv-ss] reset transition behaviour to adjust active transition type
info: All scene data cleared
info: ------------------------------------------------
info: pulse-input: Server name: 'PulseAudio (on PipeWire 1.0.5) 15.0.0'
info: pulse-input: Audio format: s16le, 48000 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_output.usb-GeneralPlus_USB_Audio_Device-00.analog-stereo.monitor' (default)
info: [Loaded global audio device]: '輸出音效 1'
info: pulse-input: Server name: 'PulseAudio (on PipeWire 1.0.5) 15.0.0'
info: pulse-input: Audio format: s16le, 48000 Hz, 1 channels
info: pulse-input: Started recording from 'alsa_input.usb-GeneralPlus_USB_Audio_Device-00.mono-fallback' (default)
info: [Loaded global audio device]: '麥克風/輸入音效 1'
info: Switched to scene '場景'
info: [Media Source 'Soundboard']: settings:
    input:                   
    input_format:            (null)
    speed:                   100
    is_looping:              no
    is_linear_alpha:         no
    is_hw_decoding:          no
    is_clear_on_media_end:   yes
    restart_on_activate:     yes
    close_when_inactive:     no
    full_decode:             no
    ffmpeg_options:          
info: [obs-face-tracker] save_load_ft_docks saving=0
info: [adv-ss] trying to reconnect to  in 10 seconds.
info: ------------------------------------------------
info: Loaded scenes:
info: - scene '場景':
info: - scene 'Vertical Scene':
info: ------------------------------------------------
info: [obs-websocket 4.9.1-compat] WSServer::start: Not locked to IPv4 bindings
info: [obs-websocket 4.9.1-compat] server started successfully on port 4444
info: [obs-websocket 4.9.1-compat] IO thread started.
warning: Wayland does not support QWindow::requestActivate()
warning: QLayout: Attempting to add QLayout "" to DeviceWidget "輸出音效 1", which already has a layout
warning: QLayout: Attempting to add QLayout "" to DeviceWidget "麥克風/輸入音效 1", which already has a layout
info: adding 21 milliseconds of audio buffering, total audio buffering is now 21 milliseconds (source: 輸出音效 1)

info: adding 21 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: 麥克風/輸入音效 1)

wl_surface@31: error 2: Buffer size (1071x353) must be an integer multiple of the buffer_scale (2).
warning: The Wayland connection experienced a fatal error: Protocol error
brlin-tw commented 1 month ago

I've connected all the unconnected security confinement interfaces, however, the problem can still be reproduced.

brlin-tw commented 1 month ago

From the relevant error output:

wl_surface@31: error 2: Buffer size (1071x353) must be an integer multiple of the buffer_scale (2).
warning: The Wayland connection experienced a fatal error: Protocol error

I suspect that the issue is related to my display configuration which the internal display has a scale factor of 150% while the external one has 100%. Here's my display configurations in the gnome-control-center utility:

Screenshot of the display settings of the gnome-control-center

Screenshot of the internal display settings of the gnome-control-center

Screenshot of the external display settings of the gnome-control-center

When I changed the scale factor of my internal display to 100%, the problem could no longer be reproduced.

brlin-tw commented 1 month ago

I've tried the Flatpak distribution of OBS Studio(30.2.0) and found that the problem is not reproduced.