obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
60.32k stars 7.99k forks source link

macOS: OBS refuses to start (freezes) if start scene contains unreachable SRT mediasource #5619

Open rmoriz opened 2 years ago

rmoriz commented 2 years ago

Operating System Info

macOS 12.0

Other OS

No response

OBS Studio Version

27.1.3

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/none

OBS Studio Crash Log URL

-

Expected Behavior

OBS should start

Current Behavior

OBS freezes/crashes on start

Steps to Reproduce

  1. add scene with Mediasource and SRT
  2. receive stream
  3. quit OBS
  4. quit SRT server
  5. start OBS ...

I can't upload the logfile due to privacy reasons hence at the end of this description.

Click to expand. Please note the timestamp before "02:15:50.161:": Usually OBS hangs until it gets killed. I started the srt endpoint and OBS unfroze and started. OBS 27.1.3 (mac) log file uploaded at 2021-12-05, 02:17:28 02:10:15.022: CPU Name: Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz 02:10:15.022: CPU Speed: 4200MHz 02:10:15.023: Physical Cores: 4, Logical Cores: 8 02:10:15.023: Physical Memory: 65536MB Total 02:10:15.023: OS Name: Mac OS X 02:10:15.023: OS Version: Version 12.0.1 (Build 21A559) 02:10:15.023: Kernel Version: 21.1.0 02:10:15.032: hotkeys-cocoa: Using layout 'com.apple.keylayout.German' 02:10:15.034: Current Date/Time: 2021-12-05, 02:10:15 02:10:15.034: Browser Hardware Acceleration: true 02:10:15.034: Portable mode: false 02:10:15.200: OBS 27.1.3 (mac) 02:10:15.200: --------------------------------- 02:10:15.201: --------------------------------- 02:10:15.201: audio settings reset: 02:10:15.201: samples per sec: 48000 02:10:15.201: speakers: 2 02:10:15.215: --------------------------------- 02:10:15.215: Initializing OpenGL... 02:10:15.260: Loading up OpenGL on adapter ATI Technologies Inc. AMD Radeon Pro 580 OpenGL Engine 02:10:15.261: OpenGL loaded successfully, version 4.1 ATI-4.7.29, shading language 4.10 02:10:15.366: --------------------------------- 02:10:15.366: video settings reset: 02:10:15.366: base resolution: 1920x1080 02:10:15.366: output resolution: 1920x1080 02:10:15.366: downscale filter: Lanczos 02:10:15.366: fps: 60/1 02:10:15.366: format: NV12 02:10:15.366: YUV mode: 709/Partial 02:10:15.366: NV12 texture support not available 02:10:15.366: Audio monitoring device: 02:10:15.366: name: Default 02:10:15.366: id: default 02:10:15.367: --------------------------------- 02:10:15.378: Failed to load 'en-GB' text for module: 'coreaudio-encoder.so' 02:10:15.386: Failed to load 'en-US' text for module: 'decklink-captions.so' 02:10:15.397: Failed to load 'en-US' text for module: 'decklink-ouput-ui.so' 02:10:15.434: os_dlopen(libpython3.9.dylib->libpython3.9.dylib): dlopen(libpython3.9.dylib, 0x0101): tried: '/Applications/OBS.app/Contents/MacOS/../Frameworks/libpython3.9.dylib' (no such file), '/Applications/OBS.app/Contents/MacOS/../Frameworks/libpython3.9.dylib' (no such file), '/Applications/OBS.app/Contents/MacOS/../Frameworks/libpython3.9.dylib' (no such file), '/Applications/OBS.app/Contents/MacOS/../Frameworks/libpython3.9.dylib' (no such file), 'libpython3.9.dylib' (no such file), '/usr/lib/libpython3.9.dylib' (no such file), '//libpython3.9.dylib' (no such file), '/usr/lib/libpython3.9.dylib' (no such file) 02:10:15.434: 02:10:15.434: [Python] Could not load library: libpython3.9.dylib 02:10:15.600: Failed to load 'en-GB' text for module: 'mac-capture.so' 02:10:15.609: A DeckLink iterator could not be created. The DeckLink drivers may not be installed 02:10:15.609: No blackmagic support 02:10:15.627: [mac-virtualcam] version=1.3.0 02:10:15.635: Failed to load 'en-GB' text for module: 'mac-vth264.so' 02:10:15.700: obs_register_encoder: Encoder id 'com.apple.videotoolbox.videoencoder.h264.gva' already exists! Duplicate library? 02:10:15.700: [VideoToolbox encoder]: Adding VideoToolbox H264 encoders 02:10:15.719: Failed to load 'en-GB' text for module: 'obs-browser.so' 02:10:15.719: [obs-browser]: Version 2.16.3 02:10:15.719: [obs-browser]: CEF Version 85.0.0-HEAD.2273+g93b66a0+chromium-85.0.4183.121 02:10:15.899: Failed to load 'en-GB' text for module: 'obs-vst.so' 02:10:15.907: Failed to load 'en-GB' text for module: 'obs-x264.so' 02:10:15.916: Failed to load 'en-GB' text for module: 'rtmp-services.so' 02:10:15.968: VLC found, VLC video source enabled 02:10:16.065: Failed to load 'en-GB' text for module: 'advanced-scene-switcher.so' 02:10:16.065: [adv-ss] version: 1.16.4 02:10:16.065: [adv-ss] version: 5dfed8ac2ae27289d79f7900be460188aba747ab 02:10:16.067: [adv-ss] curl loaded successfully 02:10:16.067: [adv-ss] found curl library 02:10:16.096: Failed to load 'en-GB' text for module: 'obs-websocket.so' 02:10:16.096: [obs-websocket] you can haz websockets (version 4.9.1) 02:10:16.096: [obs-websocket] qt version (compile-time): 5.15.2 ; qt version (run-time): 5.15.2 02:10:16.099: [obs-websocket] module loaded! 02:10:16.099: --------------------------------- 02:10:16.099: Loaded Modules: 02:10:16.099: obs-websocket.so 02:10:16.099: advanced-scene-switcher.so 02:10:16.099: vlc-video.so 02:10:16.099: text-freetype2.so 02:10:16.099: rtmp-services.so 02:10:16.099: obs-x264.so 02:10:16.099: obs-vst.so 02:10:16.099: obs-transitions.so 02:10:16.099: obs-outputs.so 02:10:16.099: obs-filters.so 02:10:16.099: obs-ffmpeg.so 02:10:16.099: obs-browser.so 02:10:16.099: mac-vth264.so 02:10:16.099: mac-virtualcam.so 02:10:16.099: mac-syphon.so 02:10:16.099: mac-decklink.so 02:10:16.099: mac-capture.so 02:10:16.099: mac-avcapture.so 02:10:16.099: image-source.so 02:10:16.100: frontend-tools.so 02:10:16.100: decklink-ouput-ui.so 02:10:16.100: decklink-captions.so 02:10:16.100: coreaudio-encoder.so 02:10:16.100: --------------------------------- 02:10:16.100: ==== Startup complete =============================================== 02:10:16.157: All scene data cleared 02:10:16.157: ------------------------------------------------ 02:10:16.817: coreaudio: device 'Built-in Microphone' initialized 02:10:16.817: [Loaded global audio device]: 'Mic/Aux' 02:10:16.853: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Mic/Aux) 02:10:16.853: 02:10:17.370: [Media Source '1080p.mov']: settings: 02:10:17.370: input: /Users/user/1080p.mov 02:10:17.370: input_format: (null) 02:10:17.370: speed: 100 02:10:17.370: is_looping: yes 02:10:17.370: is_linear_alpha: no 02:10:17.370: is_hw_decoding: yes 02:10:17.370: is_clear_on_media_end: yes 02:10:17.370: restart_on_activate: yes 02:10:17.370: close_when_inactive: yes 02:10:18.117: Video Capture Device: Could not initialize device with unique ID '0x14613000534d2109' 02:10:18.117: [Media Source 'Media Source']: settings: 02:10:18.117: input: srt://srt.example.com:9201 02:10:18.117: input_format: 02:10:18.117: speed: 100 02:10:18.117: is_looping: no 02:10:18.117: is_linear_alpha: no 02:10:18.117: is_hw_decoding: yes 02:10:18.117: is_clear_on_media_end: yes 02:10:18.117: restart_on_activate: yes 02:10:18.117: close_when_inactive: no 02:15:50.161: MP: Failed to seek: Operation not permitted 02:15:50.313: Switched to scene 'LIVE' 02:15:50.315: [adv-ss] trying to reconnect to in 10 seconds. 02:15:50.315: ------------------------------------------------ 02:15:50.315: Loaded scenes: 02:15:50.315: - scene 'NONE': 02:15:50.315: - scene 'STARTING': 02:15:50.315: - source: 'VLC Video Source' (vlc_source) 02:15:50.315: - source: 'Logo' (image_source) 02:15:50.315: - source: 'VLC Audio' (vlc_source) 02:15:50.315: - source: 'Welcome' (text_ft2_source_v2) 02:15:50.315: - source: 'SOON' (text_ft2_source_v2) 02:15:50.315: - scene 'BRB': 02:15:50.315: - source: '1080p.mov' (ffmpeg_source) 02:15:50.315: - source: 'Logo 3' (image_source) 02:15:50.315: - source: 'BRB…' (text_ft2_source_v2) 02:15:50.315: - scene 'RECONNECTING': 02:15:50.315: - source: 'Clips' (vlc_source) 02:15:50.315: - monitoring: monitor and output 02:15:50.315: - source: 'low signal / reconnecting' (text_ft2_source_v2) 02:15:50.315: - source: 'Logo 3 2' (image_source) 02:15:50.315: - source: 'low signal / reconnecting 2' (text_ft2_source_v2) 02:15:50.315: - scene 'GOODBYE': 02:15:50.315: - scene 'Test GP': 02:15:50.315: - source: 'Video Capture Device' (av_capture_input) 02:15:50.315: - scene 'TEST': 02:15:50.315: - source: 'test-patterns-tv-test-card-wallpaper.jpg' (image_source) 02:15:50.315: - source: 'Text (FreeType 2)' (text_ft2_source_v2) 02:15:50.316: - source: '1khz' (vlc_source) 02:15:50.316: - scene 'LIVE': 02:15:50.320: - source: 'Logo 2' (image_source) 02:15:50.320: ------------------------------------------------ 02:15:50.376: [obs-websocket] WSServer::start: Not locked to IPv4 bindings 02:15:50.377: [obs-websocket] server started successfully on port 4444 02:15:50.377: [obs-websocket] IO thread started. ### Anything else we should know? _No response_
WizardCM commented 2 years ago

Adding a source that points to a nonexistent SRT stream does result in OBS hanging for a second or two on shutdown, but I cannot reproduce a hang on startup on either Windows or macOS.

rmoriz commented 2 years ago

Adding a source that points to a nonexistent SRT stream does result in OBS hanging for a second or two on shutdown, but I cannot reproduce a hang on startup on either Windows or macOS.

In my case the SRT source was once working (last broadcast). When I restarted OBS a couple of days later with the source now being offline, the freeze happened.

What can I provide to allow further debugging? A scene collection? An example SRT source that can be started/stopped? Anything else?

Thanks in advance!