eebssk1 / SRBeep2

Plays a sound when obs-studio starts/stops streaming/recording
Other
24 stars 2 forks source link

OBS hangs with the plugin #2

Closed eebssk1 closed 1 year ago

eebssk1 commented 1 year ago
          A big thank you for keeping the tool alive. Just tried your updated release SRBeep2-win64. The download package does not contain the bin folder with SDL2.dll. So, used the one from earlier release. This time however, when you activate the record function via a hotkey or the UI, the entire OBS client hangs before crashing. It's the same behaviour upon deleting SDL2.dll.

Upon removing the concerned SRBEEP2 files, OBS works as normal.

The logs however say SRBeep2 is loaded.

22:08:57.223: video settings reset:
22:08:57.223:   base resolution:   1366x768
22:08:57.223:   output resolution: 1024x576
22:08:57.223:   downscale filter:  Bicubic
22:08:57.223:   fps:               30/1
22:08:57.223:   format:            NV12
22:08:57.223:   YUV mode:          Rec. 709/Partial
22:08:57.318: NV12 texture support not available
22:08:57.318: P010 texture support not available
22:08:57.319: Audio monitoring device:
22:08:57.319:   name: Default
22:08:57.319:   id: default
22:08:57.396: ---------------------------------
22:08:59.550: No AJA devices found, skipping loading AJA UI plugin
22:08:59.550: Failed to initialize module 'aja-output-ui.dll'
22:09:03.275: No AJA devices found, skipping loading AJA plugin
22:09:03.275: Failed to initialize module 'aja.dll'
22:09:03.416: Skipping module '../../obs-plugins/64bit/chrome_elf.dll', not an OBS plugin
22:09:03.590: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
22:09:03.895: Failed to load 'en-US' text for module: 'decklink-captions.dll'
22:09:04.506: Failed to load 'en-US' text for module: 'decklink-output-ui.dll'
22:09:05.019: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
22:09:05.019: Failed to initialize module 'decklink.dll'
22:09:06.905: [AMF] Unable to load 'amfrt64.dll', error code 126.
22:09:06.911: [AMF] AMF Test failed due to one or more errors.
22:09:06.911: Failed to initialize module 'enc-amf.dll'
22:09:10.949: Skipping module '../../obs-plugins/64bit/libcef.dll', not an OBS plugin
22:09:11.044: Skipping module '../../obs-plugins/64bit/libEGL.dll', not an OBS plugin
22:09:11.445: Skipping module '../../obs-plugins/64bit/libGLESv2.dll', not an OBS plugin
22:09:25.740: [obs-browser]: Version 2.21.1
22:09:25.740: [obs-browser]: CEF Version 103.0.5060.134 (runtime), 103.0.0-5060-shared-textures.2591+g4204d54+chromium-103.0.5060.134 (compiled)
22:09:38.718: [noise suppress]: NVIDIA denoiser disabled, redistributable not found or could not be loaded.
22:09:38.722: Failed to get NVVideoEffects.dll version info size
22:09:38.731: [NVIDIA VIDEO FX]: FX disabled, redistributable not found or could not be loaded.
22:09:45.897: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.2.2 | RPC Version: 1)
22:09:45.897: [obs-websocket] [obs_module_load] Qt version (compile-time): 6.4.3 | Qt version (run-time): 6.4.3
22:09:45.897: [obs-websocket] [obs_module_load] Linked ASIO Version: 101201
22:09:47.135: [obs-websocket] [obs_module_load] Module loaded.
22:09:51.123: [vlc-video]: VLC 3.0.18 Vetinari found, VLC video source enabled
22:09:54.097: ---------------------------------
22:09:54.097:   Loaded Modules:
22:09:54.097:     win-wasapi.dll
22:09:54.097:     win-dshow.dll
22:09:54.097:     win-capture.dll
22:09:54.097:     vlc-video.dll
22:09:54.097:     text-freetype2.dll
22:09:54.097:     SRBeep2.dll
22:09:54.097:     rtmp-services.dll
22:09:54.097:     obs-x264.dll
22:09:54.097:     obs-websocket.dll
22:09:54.097:     obs-vst.dll
22:09:54.097:     obs-transitions.dll
22:09:54.097:     obs-text.dll
22:09:54.097:     obs-qsv11.dll
22:09:54.097:     obs-outputs.dll
22:09:54.097:     obs-filters.dll
22:09:54.097:     obs-ffmpeg.dll
22:09:54.098:     obs-browser.dll
22:09:54.098:     image-source.dll
22:09:54.098:     frontend-tools.dll
22:09:54.098:     decklink-output-ui.dll
22:09:54.098:     decklink-captions.dll
22:09:54.098:     coreaudio-encoder.dll
22:09:54.098: ---------------------------------
22:09:54.195: ==== Startup complete ===============================================
22:09:56.085: All scene data cleared
22:09:56.085: ------------------------------------------------
22:09:56.650: [win-wasapi: 'Desktop Audio'] update settings:
22:09:56.650:   device id: default
22:09:56.650:   use device timing: 1
22:09:56.652: [Loaded global audio device]: 'Desktop Audio'
22:09:56.653: [win-wasapi: 'Mic/Aux'] update settings:
22:09:56.653:   device id: default
22:09:56.653:   use device timing: 0
22:09:56.666: [Loaded global audio device]: 'Mic/Aux'
22:09:56.836: [WASAPISource::TryInitialize]:[Microphone / Line In (IDT High Definition Audio CODEC)] Failed to initialize audio client: 80070005
22:09:56.836: WASAPI: Device 'default' failed to start (source: Mic/Aux)
22:09:56.862: [duplicator-monitor-capture: 'Display Capture'] update settings:
22:09:56.862:   display:  (1366x768)
22:09:56.862:   cursor: true
22:09:56.862:   method: DXGI
22:09:56.862:   id: \\?\DISPLAY#LGD0266#4&19079f18&2&UID67568640#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}
22:09:56.862:   alt_id: \\.\DISPLAY1
22:09:56.862:   setting_id: \\?\DISPLAY#LGD0266#4&19079f18&2&UID67568640#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}
22:09:56.862:   force SDR: false
22:09:57.054: Switched to scene 'Scene'
22:09:57.062: WASAPI: Device 'Speakers / Headphones (IDT High Definition Audio CODEC)' [48000 Hz] initialized
22:09:57.343: adding 192 milliseconds of audio buffering, total audio buffering is now 192 milliseconds (source: Desktop Audio)
22:09:57.343: 
22:09:57.408: ------------------------------------------------
22:09:57.408: Loaded scenes:
22:09:57.408: - scene 'Scene':
22:09:57.412:     - source: 'Display Capture' (monitor_capture)
22:09:57.413: ------------------------------------------------
22:10:24.312: Starting recording due to hotkey
22:10:24.352: ---------------------------------
22:10:24.352: [x264 encoder: 'advanced_video_recording'] preset: ultrafast
22:10:24.378: [x264 encoder: 'advanced_video_recording'] settings:
22:10:24.378:   rate_control: ABR
22:10:24.378:   bitrate:      1000
22:10:24.378:   buffer size:  1000
22:10:24.378:   crf:          23
22:10:24.378:   fps_num:      30
22:10:24.378:   fps_den:      1
22:10:24.378:   width:        1024
22:10:24.378:   height:       576
22:10:24.378:   keyint:       250
22:10:24.378: 
22:10:24.495: ---------------------------------
22:10:24.535: [FFmpeg aac encoder: 'Track1'] bitrate: 160, channels: 2, channel_layout: stereo
22:10:24.535: 

Originally posted by @CRBRC217 in https://github.com/eebssk1/SRBeep2/issues/1#issuecomment-1604542354

eebssk1 commented 1 year ago

Are you using the latest OBS? What's your windows version? Also based on configuration from the logs , it looks like you are running on a rather older computer. This module is currently built by my custom toolchain which only supports current/modern CPU variants that may be the cause of your issue.

CRBRC217 commented 1 year ago

OS: Windows 10 22H2 3036 OBS: 29.1.0

only supports current/modern CPU variants This is likely the cause. You're right I'm on a very older generation spec. Thank you for your effort anyway.

eebssk1 commented 1 year ago

OS: Windows 10 22H2 3036 OBS: 29.1.0

only supports current/modern CPU variants This is likely the cause. You're right I'm on a very older generation spec. Thank you for your effort anyway.

I'll recompile the module with generic toolchain after figured out how to make the module smaller. The SDL.dll is not needed as it's already included in the module.

CRBRC217 commented 1 year ago

Thank you for the consideration. Appreciate it :)

eebssk1 commented 1 year ago

Thank you for the consideration. Appreciate it :)

Hi.Pls try the SRBeep2-legacy_rmv_me.dll in the same release section.Remember to remove "-legacy_rmv_me".

CRBRC217 commented 1 year ago

Thank you again for the custom build. Works flawlessly like before.

Don't want take up anymore of your time. Does modifying this particular dll to re-link the library require programming know-how or is it something that can be achieved by editing in Hex editor as you mentioned over on the OBS forum? If it is the latter, we would appreciate some instructions so we don't have to bother you every time an OBS update breaks the link again. :)

eebssk1 commented 1 year ago

Thank you again for the custom build. Works flawlessly like before.

Don't want take up anymore of your time. Does modifying this particular dll to re-link the library require programming know-how or is it something that can be achieved by editing in Hex editor as you mentioned over on the OBS forum? If it is the latter, we would appreciate some instructions so we don't have to bother you every time an OBS update breaks the link again. :)

This version of mine is self contained(Also the case of the size) so it does not depend on external dll, which should normally work even obs updates.

CRBRC217 commented 1 year ago

Thank you

Great to hear that.