Repository navigation
Open
Description
OS
Windows 11
OBS Studio Version
32.1.2
obs-websocket Version
5.1.0?
OBS Studio Log / Crash URL
Steps to Reproduce
- Start OBS with Virtual Camera available but inactive. Ensure no output is running.
- Create a scene for temporary sources.
- Call
SetVideoSettingswith:- Base/output resolution:
1920x1080 - FPS:
60000/1001
- Base/output resolution:
- Create and remove 64 disabled
browser_sourceinputs in the temporary scene. - Call
GetVideoSettings. This should succeed and confirms that OBS is still responsive. - Call
GetOutputList. - If it does not reproduce, repeat steps 3-6 while alternating with
1280x720at30000/1001.
Expected Behavior
Both requests return normally. Existing inactive outputs continue to reference valid video state after the video reset.
Actual Behavior
OBS generates an access-violation crash report in GetOutputList
Unhandled exception: c0000005
obs.dll!obs_output_get_width
obs-websocket.dll!Utils::Obs::ArrayHelper::GetOutputList
obs.dll!obs_enum_outputs
obs-websocket.dll!RequestHandler::GetOutputList
The first argument shown for obs_output_get_width was 0x11, consistent with an invalid video_t->parent pointer.
Comment
This issue was almost entirely generated by GPT-5, but it seems to occur quite reliably.
GPT diagnostics
- The inactive Virtual Camera output is created once in
BasicOutputHandler. Raw outputs capture the currentobs_get_video()pointer when created inobs-output.c. - obs-websocket's
SetVideoSettingscallsobs_frontend_reset_video(). The reset path frees the existing video state inobs_reset_video, but the inactive Virtual Camera output is not recreated. - obs-websocket's
GetOutputListenumerates every output and callsobs_output_get_width()andobs_output_get_height(). GetVideoSettingsreads the main canvas directly and does not enumerate outputs. It consistently succeeded immediately before the crashingGetOutputListcall.
This suggests that the inactive raw virtualcam_output retains a stale video pointer after the video core is reset.
Metadata
Metadata
Assignees
Labels
No labels
Activity