[Bug] Game Crashes with OBS Open When Game Loses Focus

Kurazarrh

New Member
I have been having this issue ever since OBS 28 and have not found a solution aside from continuing to use OBS 27.2.4, but I've been missing out on some really useful features and improvements, so I'm posting here.

I am trying to record some Vintage Story content. For reference, Vintage Story is unfortunately rendered using OpenGL3.3, in case that is relevant here. I can play and record just fine; however, if the game loses focus, such as by pressing the Windows key, alt-tabbing, or minimizing the game, then the game crashes within a few seconds.

This has been a problem for YEARS, across three different PCs with different hardware vendors (AMD and Nvidia cards) and in both Windows 10 and 11 with and without Hardware Accelerated Graphics Switching enabled, so I have been able to rule out those as potential culprits. It seems to be an interaction specifically with OBS and Vintage Story, and since OBS 27.x and earlier continue to work just fine with Vintage Story, it looks like it's an OBS issue. What I cannot determine if it is Vintage Story-specific, OpenGL-specific, or specific to this version of OpenGL.

Any help resolving this will be appreciated. I've attached a log file. OBS itself does not crash and thus generates no crash log. Similarly, the game is not generating a crash log when this happens.
 

Attachments

  • 2023-08-28 21-02-49.txt
    16.5 KB · Views: 8

Kurazarrh

New Member
Oh jeez. I think I know what the problem is. New laptop, forgot to force OBS to run on the dedicated GPU. >.< I'll give that a shot, and if it doesn't work, I'll post back here.
 

Harold

Active Member
You actually need to force the game to run on the dedicated gpu. OBS already runs on dedicated gpus because it asks for it and windows listens.
 

Kurazarrh

New Member
Ok I checked, and already had Windows set to force using the dedicated GPU for both the game and OBS. Still crashes when I un-focus the game. Wasn't a user error... THIS time, at least!

Any further ideas of potential solutions? My current working solution is, sadly, to use something other than OBS. =/ But OBS has way better audio input and options than the freeware competition.
 

Harold

Active Member
A lot of this comes from opengl games and either the igpu or the dgpu drivers being out of date.
This sort of problem almost exclusively happens on opengl game son dual gpu laptops though and doesn't happen on desktops.
 

Kurazarrh

New Member
A lot of this comes from opengl games and either the igpu or the dgpu drivers being out of date.
This sort of problem almost exclusively happens on opengl game son dual gpu laptops though and doesn't happen on desktops.
So on this computer, I've checked and all the drivers are fully up-to-date, so I don't think the drivers are the problem... UNLESS... On my previous laptop, which was AMD integrated + AMD RX6800M, I actually had to use OLD drivers from AMD in order to get the game to play ball with OBS. In July of 2022, they overhauled how the driver handles OpenGL. It worked great, as long as you were only playing the game. But playing AND recording with OBS became completely untenable.

I'm not sure that I want to use older drivers on this newer PC now, considering that driver is now older than the CPU the new PC has installed. My solution might just be to ditch OBS for recording this game and record through Shadowplay, though the audio isn't anywhere near as good.
 
Top