OBS Crashes on manual close.

It almost looks like to me that Aitum Multistream youtube output isn't trying to stop until after OBS is closed and happened at the same second of the crash from the time in the crash log (6:31:57). By chance are you not stopping the youtube stream separately or not allowing enough time for it to turn off completely before closing OBS?


06:31:55.461: ==== Shutting down ==================================================
06:31:55.507: [Vertical Canvas] Saved settings
06:31:55.517: [obs-scripting]: Unloaded lua script: source-toggler.lua
06:31:55.518: [obs-scripting]: Unloaded lua script: find-source-location.lua
06:31:55.536: WASAPI: Device 'Line In (ASUS Xonar Essence STX Audio Device)' Terminated
06:31:56.955: Tried to sort VolumeControl for 'Mic/Aux' but source is null
06:31:56.977: All scene data cleared
06:31:56.977: ------------------------------------------------
06:31:56.990: [Aitum Multistream] Saved settings
06:31:57.014: [rtmp stream: 'aitum_multi_output_YouTube Output'] User stopped the stream
06:31:57.014: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.014: [rtmp stream: 'aitum_multi_output_YouTube Output'] Socket send buffer is 2097152 bytes
06:31:57.014: Output 'aitum_multi_output_YouTube Output': stopping
06:31:57.014: Output 'aitum_multi_output_YouTube Output': Total frames output: 706904
06:31:57.014: Output 'aitum_multi_output_YouTube Output': Total drawn frames: 706937
06:31:57.016: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.019: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.060: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.062: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.063: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.064: [obs-websocket] [obs_module_unload] Shutting down...
06:31:57.065: [obs-websocket] [WebSocketServer::onClose] WebSocket client `[::ffff:192.168.1.103]:53151` has disconnected with code `1001` and reason: Server stopping.
06:31:57.065: [obs-websocket] [WebSocketServer::ServerRunner] IO thread exited.
06:31:57.075: [obs-websocket] [WebSocketServer::Stop] Server stopped successfully
06:31:57.075: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.075: [obs-websocket] [obs_module_unload] Finished shutting down.
06:31:57.095: Tried to call obs_frontend_get_current_scene with no callbacks!
06:31:57.095: Tried to call obs_frontend_get_current_scene with no callbacks!
06:31:57.096: Tried to call obs_frontend_get_current_preview_scene with no callbacks!
06:31:57.099: Tried to call obs_frontend_get_current_scene with no callbacks!
06:31:57.168: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.168: [Scripting] Total detached callbacks: 3
06:31:57.169: [adv-ss] stopped
06:31:57.171: Freeing OBS context data
 
Yeah, that ending wasn't too graceful.

Check all of your plugins, make sure they are up to date.

I haven't looked at the entire log yet. Set-up looked OK at first but there's way too many Media Sources using acceleration. I stopped counting @ 20. The 5080 has dual decoders but even so the max that should be using it is somewhere around 4 - 6 in your main Scene only. Go through & disable it for the rest of them & see if things improve.

Scene Collection looks like a bunch of filters, no doubt all sucking resources. If the above fails to help, a good troubleshooting step is to create a New Scene Collection, add just (1) Source.

01:29:00.286: [Media Source 'Game to Office/Sec Room (Stinger)']: settings:
01:29:00.286: input: C:/Program Files/obs-studio-portable/assets/OBS Source Files/Asylum 3.0/Transitions/tv_fold_reverse.webm
01:29:00.286: input_format: (null)
01:29:00.286: speed: 100
01:29:00.286: is_looping: no
01:29:00.286: is_linear_alpha: no
01:29:00.286: is_hw_decoding: yes
01:29:00.286: is_clear_on_media_end: yes
01:29:00.286: restart_on_activate: yes
01:29:00.286: close_when_inactive: no
01:29:00.286: full_decode: no
01:29:00.286: ffmpeg_options:
 
It almost looks like to me that Aitum Multistream youtube output isn't trying to stop until after OBS is closed and happened at the same second of the crash from the time in the crash log (6:31:57). By chance are you not stopping the youtube stream separately or not allowing enough time for it to turn off completely before closing OBS?


06:31:55.461: ==== Shutting down ==================================================
06:31:55.507: [Vertical Canvas] Saved settings
06:31:55.517: [obs-scripting]: Unloaded lua script: source-toggler.lua
06:31:55.518: [obs-scripting]: Unloaded lua script: find-source-location.lua
06:31:55.536: WASAPI: Device 'Line In (ASUS Xonar Essence STX Audio Device)' Terminated
06:31:56.955: Tried to sort VolumeControl for 'Mic/Aux' but source is null
06:31:56.977: All scene data cleared
06:31:56.977: ------------------------------------------------
06:31:56.990: [Aitum Multistream] Saved settings
06:31:57.014: [rtmp stream: 'aitum_multi_output_YouTube Output'] User stopped the stream
06:31:57.014: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.014: [rtmp stream: 'aitum_multi_output_YouTube Output'] Socket send buffer is 2097152 bytes
06:31:57.014: Output 'aitum_multi_output_YouTube Output': stopping
06:31:57.014: Output 'aitum_multi_output_YouTube Output': Total frames output: 706904
06:31:57.014: Output 'aitum_multi_output_YouTube Output': Total drawn frames: 706937
06:31:57.016: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.019: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.060: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.062: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.063: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.064: [obs-websocket] [obs_module_unload] Shutting down...
06:31:57.065: [obs-websocket] [WebSocketServer::onClose] WebSocket client `[::ffff:192.168.1.103]:53151` has disconnected with code `1001` and reason: Server stopping.
06:31:57.065: [obs-websocket] [WebSocketServer::ServerRunner] IO thread exited.
06:31:57.075: [obs-websocket] [WebSocketServer::Stop] Server stopped successfully
06:31:57.075: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.075: [obs-websocket] [obs_module_unload] Finished shutting down.
06:31:57.095: Tried to call obs_frontend_get_current_scene with no callbacks!
06:31:57.095: Tried to call obs_frontend_get_current_scene with no callbacks!
06:31:57.096: Tried to call obs_frontend_get_current_preview_scene with no callbacks!
06:31:57.099: Tried to call obs_frontend_get_current_scene with no callbacks!
06:31:57.168: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.168: [Scripting] Total detached callbacks: 3
06:31:57.169: [adv-ss] stopped
06:31:57.171: Freeing OBS context data
Now that you mention it, I have not been manually stopping the YouTube output in Aitum Multistream. I've simply been pressing the "Stop Streaming" button on OBS to cut my main stream output to Twitch.

I'll have to try and stop YouTube's stream manually and see if that fixes the crashing issue.

Thank you so much for your time. I'll reach back out if the issue persists after trying this potential fix.
 
Yeah, that ending wasn't too graceful.

Check all of your plugins, make sure they are up to date.

I haven't looked at the entire log yet. Set-up looked OK at first but there's way too many Media Sources using acceleration. I stopped counting @ 20. The 5080 has dual decoders but even so the max that should be using it is somewhere around 4 - 6 in your main Scene only. Go through & disable it for the rest of them & see if things improve.

Scene Collection looks like a bunch of filters, no doubt all sucking resources. If the above fails to help, a good troubleshooting step is to create a New Scene Collection, add just (1) Source.

01:29:00.286: [Media Source 'Game to Office/Sec Room (Stinger)']: settings:
01:29:00.286: input: C:/Program Files/obs-studio-portable/assets/OBS Source Files/Asylum 3.0/Transitions/tv_fold_reverse.webm
01:29:00.286: input_format: (null)
01:29:00.286: speed: 100
01:29:00.286: is_looping: no
01:29:00.286: is_linear_alpha: no
01:29:00.286: is_hw_decoding: yes
01:29:00.286: is_clear_on_media_end: yes
01:29:00.286: restart_on_activate: yes
01:29:00.286: close_when_inactive: no
01:29:00.286: full_decode: no
01:29:00.286: ffmpeg_options:
Interesting So I shouldn't be enabling Hardware Acceleration for video files? I guess I thought that would make things work at their best, and that these settings only ever make an impact on PC resources once they become visible on OBS' main stage.

Can you please enlighten me a bit on this subject. I'm very curious.

Thanks for your time!
 
Delete/remove the option from the encodes.
Ok, so I had to look this up. I'm assuming you're talking about the "Look-ahead" checkbox under File>Settings>Output with Output Mode set to Advanced. Correct?

I had to do a little research on this, but apparently the Look-ahead setting ties in with the B-Frames setting. Is the B-Frames setting what is making lookaheadDepth equal to 4? If so, why? All of my encode B-Frame settings are set to 2.

Also, I can turn if off, but I was reading about how having Look-ahead turned on/off depends on how fast-moving the game I'm streaming is.

Perhaps it's worthy to note that I have a dedicated Streaming PC.
 
No, not the checkbox. The user option that you typed in is not needed. You're wasting resources.

user opts: lookaheadDepth=4
I understand that I'm wasting resources, but I apologize, I don't recall ever typing in any "lookaheadDepth=4" setting anywhere.

I see it in the log file, but I cannot, for the life of me, find a "lookaheadDepth" setting anywhere in OBS.

Please explain this to me like I'm 5. WHERE is this option? lol

Please be thorough in your description.
 
No can do. All of the encodes that have the option are in the Twitch enhanced stuff. I don't use it, never have, & have no idea how it even looks. Dig in there & find it yourself.

01:36:53.901: Enhanced broadcasting config_id: 'cd538408-cbe7-4d1c-b78f-78d059dd69ac'
01:36:53.902: encoder 'multitrack video video encoder 0': Scaled resolution matches output resolution, scaling disabled
01:36:53.902: Setting frame rate divisor to 2 for encoder 1
01:36:53.902: encoder 'multitrack video video encoder 2': Scaled resolution matches output resolution, scaling disabled
01:36:53.902: Setting frame rate divisor to 2 for encoder 3
01:36:53.902: Using stream key supplied by autoconfig
01:36:53.902: Using URL template: 'rtmp://ingest.global-contribute.live-video.net/app/{stream_key}'
01:36:53.903: NV12 texture support enabled
01:36:53.903: P010 texture support not available
01:36:53.928: [obs-nvenc: 'multitrack video video encoder 0'] settings:
01:36:53.928: codec: H264
01:36:53.928: rate_control: CBR
01:36:53.928: bitrate: 6000
01:36:53.928: keyint: 120
01:36:53.928: preset: p6
01:36:53.928: tuning: hq
01:36:53.928: multipass: qres
01:36:53.928: profile: high
01:36:53.928: width: 1920
01:36:53.928: height: 1080
01:36:53.928: b-frames: 3
01:36:53.928: b-ref-mode: 0
01:36:53.928: lookahead: true (4 frames)
01:36:53.928: aq: true
01:36:53.928: user opts: lookaheadDepth=4
01:36:53.928:
01:36:53.975: NV12 texture support enabled
01:36:53.975: P010 texture support not available
01:36:53.976: [obs-nvenc] GPU scaling enabled
01:36:53.997: [obs-nvenc: 'multitrack video video encoder 1'] settings:
01:36:53.997: codec: H264
01:36:53.997: rate_control: CBR
01:36:53.997: bitrate: 500
01:36:53.997: keyint: 60
01:36:53.997: preset: p6
01:36:53.997: tuning: hq
01:36:53.997: multipass: qres
01:36:53.997: profile: main
01:36:53.997: width: 640
01:36:53.997: height: 360
01:36:53.997: b-frames: 3
01:36:53.997: b-ref-mode: 0
01:36:53.997: lookahead: true (2 frames)
01:36:53.997: aq: true
01:36:53.997: user opts: lookaheadDepth=2
01:36:53.997:
01:36:54.036: NV12 texture support enabled
01:36:54.036: P010 texture support not available
01:36:54.058: [obs-nvenc: 'multitrack video video encoder 2'] settings:
01:36:54.058: codec: HEVC
01:36:54.058: rate_control: CBR
01:36:54.058: bitrate: 5000
01:36:54.058: keyint: 120
01:36:54.058: preset: p5
01:36:54.058: tuning: hq
01:36:54.058: multipass: qres
01:36:54.058: profile: main
01:36:54.058: width: 1080
01:36:54.058: height: 1920
01:36:54.058: b-frames: 3
01:36:54.058: b-ref-mode: 0
01:36:54.058: lookahead: true (4 frames)
01:36:54.058: aq: false
01:36:54.058: user opts: lookaheadDepth=4
01:36:54.058:
01:36:54.102: NV12 texture support enabled
01:36:54.102: P010 texture support not available
01:36:54.103: [obs-nvenc] GPU scaling enabled
01:36:54.125: [obs-nvenc: 'multitrack video video encoder 3'] settings:
01:36:54.125: codec: H264
01:36:54.125: rate_control: CBR
01:36:54.125: bitrate: 500
01:36:54.125: keyint: 60
01:36:54.125: preset: p6
01:36:54.125: tuning: hq
01:36:54.125: multipass: qres
01:36:54.125: profile: main
01:36:54.125: width: 360
01:36:54.125: height: 640
01:36:54.125: b-frames: 3
01:36:54.125: b-ref-mode: 0
01:36:54.125: lookahead: true (2 frames)
01:36:54.125: aq: false
01:36:54.125: user opts: lookaheadDepth=2
01:36:54.125:
 
No can do. All of the encodes that have the option are in the Twitch enhanced stuff. I don't use it, never have, & have no idea how it even looks. Dig in there & find it yourself.

01:36:53.901: Enhanced broadcasting config_id: 'cd538408-cbe7-4d1c-b78f-78d059dd69ac'
01:36:53.902: encoder 'multitrack video video encoder 0': Scaled resolution matches output resolution, scaling disabled
01:36:53.902: Setting frame rate divisor to 2 for encoder 1
01:36:53.902: encoder 'multitrack video video encoder 2': Scaled resolution matches output resolution, scaling disabled
01:36:53.902: Setting frame rate divisor to 2 for encoder 3
01:36:53.902: Using stream key supplied by autoconfig
01:36:53.902: Using URL template: 'rtmp://ingest.global-contribute.live-video.net/app/{stream_key}'
01:36:53.903: NV12 texture support enabled
01:36:53.903: P010 texture support not available
01:36:53.928: [obs-nvenc: 'multitrack video video encoder 0'] settings:
01:36:53.928: codec: H264
01:36:53.928: rate_control: CBR
01:36:53.928: bitrate: 6000
01:36:53.928: keyint: 120
01:36:53.928: preset: p6
01:36:53.928: tuning: hq
01:36:53.928: multipass: qres
01:36:53.928: profile: high
01:36:53.928: width: 1920
01:36:53.928: height: 1080
01:36:53.928: b-frames: 3
01:36:53.928: b-ref-mode: 0
01:36:53.928: lookahead: true (4 frames)
01:36:53.928: aq: true
01:36:53.928: user opts: lookaheadDepth=4
01:36:53.928:
01:36:53.975: NV12 texture support enabled
01:36:53.975: P010 texture support not available
01:36:53.976: [obs-nvenc] GPU scaling enabled
01:36:53.997: [obs-nvenc: 'multitrack video video encoder 1'] settings:
01:36:53.997: codec: H264
01:36:53.997: rate_control: CBR
01:36:53.997: bitrate: 500
01:36:53.997: keyint: 60
01:36:53.997: preset: p6
01:36:53.997: tuning: hq
01:36:53.997: multipass: qres
01:36:53.997: profile: main
01:36:53.997: width: 640
01:36:53.997: height: 360
01:36:53.997: b-frames: 3
01:36:53.997: b-ref-mode: 0
01:36:53.997: lookahead: true (2 frames)
01:36:53.997: aq: true
01:36:53.997: user opts: lookaheadDepth=2
01:36:53.997:
01:36:54.036: NV12 texture support enabled
01:36:54.036: P010 texture support not available
01:36:54.058: [obs-nvenc: 'multitrack video video encoder 2'] settings:
01:36:54.058: codec: HEVC
01:36:54.058: rate_control: CBR
01:36:54.058: bitrate: 5000
01:36:54.058: keyint: 120
01:36:54.058: preset: p5
01:36:54.058: tuning: hq
01:36:54.058: multipass: qres
01:36:54.058: profile: main
01:36:54.058: width: 1080
01:36:54.058: height: 1920
01:36:54.058: b-frames: 3
01:36:54.058: b-ref-mode: 0
01:36:54.058: lookahead: true (4 frames)
01:36:54.058: aq: false
01:36:54.058: user opts: lookaheadDepth=4
01:36:54.058:
01:36:54.102: NV12 texture support enabled
01:36:54.102: P010 texture support not available
01:36:54.103: [obs-nvenc] GPU scaling enabled
01:36:54.125: [obs-nvenc: 'multitrack video video encoder 3'] settings:
01:36:54.125: codec: H264
01:36:54.125: rate_control: CBR
01:36:54.125: bitrate: 500
01:36:54.125: keyint: 60
01:36:54.125: preset: p6
01:36:54.125: tuning: hq
01:36:54.125: multipass: qres
01:36:54.125: profile: main
01:36:54.125: width: 360
01:36:54.125: height: 640
01:36:54.125: b-frames: 3
01:36:54.125: b-ref-mode: 0
01:36:54.125: lookahead: true (2 frames)
01:36:54.125: aq: false
01:36:54.125: user opts: lookaheadDepth=2
01:36:54.125:
Ok, you mentioning Enhanced Broadcasting I think helps a bit. I did set something to 4 when setting up Enhanced Broadcasting, but the setting was not named lookaheadDepth, or anything remotely similar. The setting I changed was called "Maximum Video Tracks" under File>Settings>Stream>Multitrack Video.

The official Twitch page explaining how to set up Enhanced Broadcasting suggests setting this to 3 or 4 if one is multistreaming to avoid overload.

This is the only thing I changed. If this is not what you're talking about, I'm completely lost.

Thanks anyway.
 

Attachments

  • image.png
    image.png
    15.9 KB · Views: 1,478
It almost looks like to me that Aitum Multistream youtube output isn't trying to stop until after OBS is closed and happened at the same second of the crash from the time in the crash log (6:31:57). By chance are you not stopping the youtube stream separately or not allowing enough time for it to turn off completely before closing OBS?


06:31:55.461: ==== Shutting down ==================================================
06:31:55.507: [Vertical Canvas] Saved settings
06:31:55.517: [obs-scripting]: Unloaded lua script: source-toggler.lua
06:31:55.518: [obs-scripting]: Unloaded lua script: find-source-location.lua
06:31:55.536: WASAPI: Device 'Line In (ASUS Xonar Essence STX Audio Device)' Terminated
06:31:56.955: Tried to sort VolumeControl for 'Mic/Aux' but source is null
06:31:56.977: All scene data cleared
06:31:56.977: ------------------------------------------------
06:31:56.990: [Aitum Multistream] Saved settings
06:31:57.014: [rtmp stream: 'aitum_multi_output_YouTube Output'] User stopped the stream
06:31:57.014: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.014: [rtmp stream: 'aitum_multi_output_YouTube Output'] Socket send buffer is 2097152 bytes
06:31:57.014: Output 'aitum_multi_output_YouTube Output': stopping
06:31:57.014: Output 'aitum_multi_output_YouTube Output': Total frames output: 706904
06:31:57.014: Output 'aitum_multi_output_YouTube Output': Total drawn frames: 706937
06:31:57.016: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.019: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.060: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.062: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.063: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.064: [obs-websocket] [obs_module_unload] Shutting down...
06:31:57.065: [obs-websocket] [WebSocketServer::onClose] WebSocket client `[::ffff:192.168.1.103]:53151` has disconnected with code `1001` and reason: Server stopping.
06:31:57.065: [obs-websocket] [WebSocketServer::ServerRunner] IO thread exited.
06:31:57.075: [obs-websocket] [WebSocketServer::Stop] Server stopped successfully
06:31:57.075: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.075: [obs-websocket] [obs_module_unload] Finished shutting down.
06:31:57.095: Tried to call obs_frontend_get_current_scene with no callbacks!
06:31:57.095: Tried to call obs_frontend_get_current_scene with no callbacks!
06:31:57.096: Tried to call obs_frontend_get_current_preview_scene with no callbacks!
06:31:57.099: Tried to call obs_frontend_get_current_scene with no callbacks!
06:31:57.168: Tried to call obs_frontend_remove_event_callback with no callbacks!
06:31:57.168: [Scripting] Total detached callbacks: 3
06:31:57.169: [adv-ss] stopped
06:31:57.171: Freeing OBS context data
Your suggestion seems to have worked. OBS isn't crashing on close anymore. Thank you!
 
Nice.

I don't use Atium but do use the RTMP Multi-out. It has a setting that you can sync the normal output with the multi-out. Stop the main stream, they all stop. Atium more than likely has a similar setting.
 
Back
Top