FWGS / xash3d-fwgs

Xash3D FWGS engine
1.58k stars 240 forks source link

Game crashes with latest OBS. #1870

Open CortexReaver opened 3 weeks ago

CortexReaver commented 3 weeks ago

GPU: AMD Radeon RX6600 OS: Windows 10 22H2 19045.3448 OBS v.31.0.0-beta2 64bit (the only plugin that I am using is this one: https://github.com/sorayuki/obs-multi-rtmp) Xash build: 6bdb3f6

How to reproduce:

  1. Run OBS, add new "Game capture" source, set it to "capture any fullscreen application".
  2. run Xash and then go to "Custom game" as fast as possible, before OBS manages to capture a screen (a preview screen should be black for a couple of seconds).
  3. when you see picture in OBS preview, try to click on some of the mods. Game just hangs there.

Might be just an OBS problem, but I better report it anyway just in case. Also this crash is still present on earlier versions of Xash (from July of 2024).

UPD: seems like it have troubles capturing main menu, because I haven't noticed any crashes if you try to capture the actual 3d scene of the game. I having some really ugly stutters from time to time, but no crashes.

mittorn commented 3 weeks ago

Looks like some obs bug. Try run with debugger and look where it hangs

CortexReaver commented 3 weeks ago

Debugger of what? OBS or Xash? How to run debugging on Xash? And where is does save the logs, so I can attach them here.

mittorn commented 3 weeks ago

Attach debugger to xash after OBS injected. If it injects some code that hangs, you possibly will see it in debugger stack trace

31 октября 2024 г. 1:15:01 GMT+03:00, CortexReaver @.***> пишет:

Debugger of what? OBS or Xash? How to run debugging on Xash?

CortexReaver commented 3 weeks ago

Oh, I see what you mean. I am not a programmer nor I have any IDE of some sort. I thought there are some command that I run Xash binary with and it makes a log file that I can attach to a message here.

No, disabling "run as admin" do nothing. I was just lucky.

mittorn commented 3 weeks ago

Ok, someone with dev environment need to reproduce this. Can you describe exact OBS platform and capture plugin used?

CortexReaver commented 3 weeks ago

Yes, read first post please. I've added all the necessary details here.

CortexReaver commented 3 weeks ago

UPD: I've deleted all unnecessary OBS plugins and seems like all the stutters all gone now. Not sure about crashes though.

a1batross commented 3 weeks ago

@SNMetamorph could you check it?

SNMetamorph commented 3 weeks ago

@SNMetamorph could you check it?

I tried, but fullscreen mode itself works very weird. Mouse cursor position being mismatched after going to fullscreen, and then game just stopped to running with such error image

SNMetamorph commented 3 weeks ago

Seems that video modes switching are broken

a1batross commented 3 weeks ago

.. again? D:

It's true fullscreen, not borderless, right?

SNMetamorph commented 3 weeks ago

Yeah, exactly fullscreen, not borderless. I even can't test OBS with it. But with windowed mode, OBS worked flawlessly, even when switching mods.