-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Issue Report]: Game crashes on switching audio output device when Windows language is set to Russian #7507
Comments
I've recorded a couple of videos to show how it works:
Maybe this system language thing is somehow connected with my audio devices' names -- for some reason, system recorded both of them in Russian! Even if I switch system language, names stay in Russian -- you can see it comparing two screenshots: |
I'm not finding anything useful from a code review. Can you check the Windows Event Viewer for new logs under the |
Done. Started the game from command line with "--verbose" key and checked event viewer afterwards: |
Okay, so exception code https://stackoverflow.com/a/1504307 Conventional wisdom seems to suggest reproducing the issue in a debugger. However, that would basically require me to set up a VM with the Russian language packs installed, get dev tools installed, and try to mock your audio setup. It's a lot of effort, and I'm not even sure if that last part is possible. I'm pretty much out of ideas on how to approach the issue for a solution, unless maybe we can enlist a developer who actually does speak Russian and is able to reproduce the issue on their developer system. |
We're going to need output from a debug build of DevilutionX to diagnose this further. @Venyam-N, can you please install Visual Studio from https://visualstudio.microsoft.com/vs/community/? There is no need for you to compile anything, it simply has to be installed for the debug build to be able to run at all. Once you have it installed, we can send you a debug build. |
@glebm Done. What's next? |
@Venyam-N Nice 👍 |
Please follow these steps as closely as you can. In particular, if you don't provide the EDIT: If you encounter an issue where the game doesn't launch on step 3, try double-clicking the exe and see if you get an error popup. |
For some reason, debug version doesn’t crash and works just fine, while generic 1.5.3 still crashes. Anyway, here are the logs: https://disk.yandex.ru/i/_sP3EACkBls8JQ |
Seems that's okay. I think we still got what we needed from the logs.
|
Operating System
Windows x64
DevilutionX version
1.5.3
Describe
This is a part 2 of an old issue #7452 that strikes back -- now after updating SDL to 2.30.9
I have a HP ProBook 445 G7 laptop with AMD Zen Audio Processor / HD Audio Controller ( Realtek High Definition Audio driver v. 6.0.9703.1) running Windows 10 22H2 19045.5011. When Windows language is set to Russian, the game crashes while changing audio output devices from built-in speakers to aux headphones. When Windows language is set to English, everything works properly.
To Reproduce
Expected Behavior
Sound output device should change to headphones with no crashes
Additional context
When the headphones are plugged before I run the game, unplugging them don't crash the game -- output switches to speakers with no glitches (that appeared on previous SDL version), but plugging them back still crashes the game.
Previous investigation by @StephenCWills: libsdl-org/SDL#11122
Also, the game's behavior with system language set to RU end to EN differed on previous SDL version too.
The text was updated successfully, but these errors were encountered: