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

Open
#5,619 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
macos

Research direction

Reproduce on macOS with OBS 27.1.3 using a start scene containing an SRT media source, then stop the SRT server before restarting OBS. Trace startup while the endpoint is unreachable and use the provided log timing around the media source initialization. Done means OBS starts without freezing and the unreachable source does not block startup.

Written by the indexing model from the issue text.

Description

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

Dominant language
C
Stars
76.4k
Forks
10.2k
Avg merge
4d 23h
Merged PRs (30d)
12

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from obsproject/obs-studio

All issues in obsproject/obs-studio

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.