OBS Studio encoder freezes mid-stream with no crash log

OBS 29.0.2 64 Bit
Touch Portal V3.1 Build 12

Windows 11
EVGA 3070ti
Intel i5 12600
16GB DDR4
Logitech C920
Logitech C270

Drivers are up-to-date, as far as I can tell.

I've been encountering an error more frequently while streaming where what seems to be the encoder is just freezing completely for no apparent reason. Nothing shows in the logs, and there is no crash report since it's not OBS itself that's crashing. It occurs sometimes within a few minutes of opening OBS (even if I'm not streaming), and sometimes I'll stream for a couple of hours before it happens.

The preview freezes on the screen, and the stream is cut off on the Twitch end. When I click "Stop Stream" within OBS, the button changes to "Stopping Stream" but nothing happens. If I try to close OBS via the X on the window, nothing happens until I click a dozen or so times, then I get the message from Windows that the program has stopped responding, and it's trying to send an error report, then OBS finally closes.

A new thing that I just tried was switching the scene after clicking "Stop Streaming" and it seems that it unlocked the program/encoder and the stream was able to be stopped? And then I'm able to start the stream again without issue--for at least a while.

I've seen some errors in the log regarding a text source that is reading from a file, starting with "invalid video parameters specified" sometimes when I show the source, but I have no idea what that could be about.

It seems to sometimes correlate with closing a fullscreen application, but not always. And even closing the *same* fullscreen application that "caused" the crash, doesn't repeat the result.

It also seems to correlate with increased GPU load, such as if I'm streaming while rendering video, or trying to record while streaming--but again, not every time.

It sometimes seemed to be triggered when I would change the camera settings within OBS (Logitech C920), so I tried both moving it to a different USB port and just unplugging it completely, neither seemed to help.

I've even gone so far as getting an RMA for my 3070ti thinking that could be the issue, but it's still happening randomly.

I briefly thought it might be my stinger transition causing an issue, but the problem happens when I'm just sitting on a scene, not during the transition. I did try disabling the stinger and using both the cut and fade transitions, with nothing showing in the log and nothing different happening to the stream.

If anyone is looking at this within the next couple of weeks, this is a test VOD that crashes after 26 minutes, and I'm doing literally nothing when it crashes: https://www.twitch.tv/videos/1795524030

Most Recent Log File: https://obsproject.com/logs/qZVcpa7wLVu8ltBm

The last few lines before it froze, then I was able to restart the stream after changing scenes:

13:23:09.892: User switched to scene 'Current Game Overlay' \\The scene with the text source reading from a file

13:23:09.899: Invalid video parameters specified

13:23:09.916: NV12 texture support enabled

13:23:09.916: P010 texture support not available

13:23:13.999: [Current Game 2] TextSource::CalculateTextSizes: MeasureString (non-wrapped) failed (2)

13:23:13.999: [Current Game 2] TextSource::RemoveNewlinePadding: MeasureString (without newline) failed (2)

13:23:13.999: [Current Game 2] TextSource::RemoveNewlinePadding: MeasureString (with newline) failed (2)

13:23:14.000: [Current Game 2] TextSource::RenderText: path.AddString failed (2)

13:23:35.967: [Current Game 2] TextSource::CalculateTextSizes: MeasureString (non-wrapped) failed (2)

13:23:35.967: [Current Game 2] TextSource::RemoveNewlinePadding: MeasureString (without newline) failed (2)

13:23:35.967: [Current Game 2] TextSource::RemoveNewlinePadding: MeasureString (with newline) failed (2)

13:23:35.967: [Current Game 2] TextSource::RenderText: path.AddString failed (2)

13:25:09.537: User switched to scene 'Gameplay'

13:25:09.599: Invalid video parameters specified

13:25:09.622: NV12 texture support enabled

13:25:09.622: P010 texture support not available

13:25:10.860: [obs-browser: 'Now Playing'] Error: Uncaught (in promise) Error: Network Error (https://pixel.chat/route-overlay~route-scene.chunk.ebf70.esm.js:1)

13:26:27.833: Settings changed (outputs) \\Changed "Multipass Mode" to "Single Pass" to see whether it would help

13:26:27.833: ------------------------------------------------

13:33:30.500: User switched to scene 'Trigon BRB'

13:33:31.250: User switched to scene 'Chatting'

13:33:31.260: [rtmp stream: 'adv_stream'] Stream shutdown timeout reached (30 second(s))

13:33:31.260: [rtmp stream: 'adv_stream'] User stopped the stream

13:33:31.260: [rtmp stream: 'adv_stream'] Socket send buffer is 65536 bytes

13:33:31.260: Output 'adv_stream': stopping

13:33:31.260: Output 'adv_stream': Total frames output: 96337

13:33:31.260: Output 'adv_stream': Total drawn frames: 96133 (108115 attempted)

13:33:31.260: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 11982 (11.1%)

13:33:31.263: Video stopped, number of skipped frames due to encoding lag: 261/96348 (0.3%)

13:33:31.265: ==== Streaming Stop ================================================

13:33:31.555: warning: 2 frames left in the queue on closing

13:33:34.560: User switched to scene 'Gameplay'

13:33:39.392: User switched to scene 'Trigon BRB'

13:33:39.851: [obs-browser: 'Clippy BRB Player'] Error: ResizeObserver loop limit exceeded (https://efuse.gg/sidekick-overlay/53c40b06ec7dfadc1de77d7ccfcca040brb:0)

13:33:46.881: User switched to scene 'Chatting'

13:33:48.288: [obs-browser: 'Now Playing'] Error: Uncaught (in promise) Error: Network Error (https://pixel.chat/route-overlay~route-scene.chunk.ebf70.esm.js:1)

13:33:59.034: User switched to scene 'Gameplay'

13:38:43.171: [jim-nvenc: 'advanced_video_stream'] settings:

13:38:43.171: codec: H264

13:38:43.171: rate_control: CBR

13:38:43.171: bitrate: 2500

13:38:43.171: cqp: 20

13:38:43.171: keyint: 120

13:38:43.171: preset: p5

13:38:43.171: tuning: hq

13:38:43.171: multipass: disabled

13:38:43.171: profile: high

13:38:43.171: width: 1920

13:38:43.171: height: 1080

13:38:43.171: b-frames: 2

13:38:43.171: lookahead: false

13:38:43.171: psycho_aq: true

13:38:43.171:

13:38:43.208: ---------------------------------

13:38:43.208: [FFmpeg aac encoder: 'adv_stream_aac'] bitrate: 160, channels: 2, channel_layout: stereo

13:38:43.208:

13:38:43.209: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://dfw.contribute.live-video.net/app...

13:38:43.241: [rtmp stream: 'adv_stream'] Interface: Realtek Gaming 2.5GbE Family Controller (ethernet, 1000 mbps)

13:38:43.836: [rtmp stream: 'adv_stream'] Connection to rtmp://dfw.contribute.live-video.net/app successful

13:38:43.837: [rtmp stream: 'adv_stream'] Socket send buffer is 65536 bytes

13:38:43.843: ==== Streaming Start ===============================================
 
Last edited:
Top