protonscr

Bully scholarship edition Crash while loading the game

dxvkclosed d3d9can't reproduce
doitsujin/dxvk#2623 · opened 2022-04-20 by emanuelect · updated 2026-06-16 · 35 comments · github
Eemanuelect 2022-04-20 github

I can get to the main menu of the game, starting the game during loading the game crashes. The movies of the rockstar logos are opened in window mode with a lot of stuttering.

Software information

Bully Scholarship Edition
resolution: 1920x1080
Antialiasing 8x
Vsync On

System information

  • GPU: Nvidia Gtx 1050 Ti
  • Driver:
  • Wine version:
  • DXVK version: 1.10.1

Apitrace file(s)

  • Put a link here

Log files

KK0bin maintainer 2022-04-20 github

Please add an apitrace.

Eemanuelect 2022-04-20 github

I tried, even following the guide, but I can't figure out how apitrace works.

BBlisto91 2022-04-21 github

Just download apitrace from https://github.com/apitrace/apitrace/releases and from x86/lib/wrappers extract d3d9.dll (I'm assuming this is a 32 bit dx9 game) into the same folder as the games main .exe file.
Then start the game as normal and get to or just past the point where the issue occurs and shut down the game. A .trace file should have been created on your desktop.

After that compress (zip or other) the file and upload it to a common file sharing site.

Also @K0bin isn't DxvkMemoryAllocator: Memory allocation failed maybe a 32 bit memory issue? Even tho the allocated seem low.

Eemanuelect 2022-04-21 github

I have done so, but no file is created. I noticed that the error that appears, is a conflict between dxvk and the silent patch for bully, which I had to apply to the game to fix bugs and crashes.

BBlisto91 2022-04-21 github

Is it the steam version you are using?
Does the crash also happen without the silent patch?

Eemanuelect 2022-04-21 github

Yes, I use the steam version, the crashes are there even without the silent patch.
With the silent patch when starting logos I get an error that I can ignore, movies are skipped and during loading the game crashes.
Without the silent patch the game crashes before the movies.
If instead from steam I enter this string: -force-d3d10
I can start the game, but upon exiting the dormitory, it starts having some freezes and then crashes.

BBlisto91 2022-04-21 github

I will see if i can reproduce later and make a apitrace.

Looking at comments online this seems to be a pretty crappy port.

Eemanuelect 2022-04-21 github

Thanks

BBlisto91 2022-04-21 github

Could you try and see if the issue is also present with the latest gpu driver?
Which windows version do you use.

Eemanuelect 2022-04-21 github

I use windows 10, unfortunately I can't test with the latest version of video drivers, I had to remove them because they had a bug with video recording. However i don't think it's a problem with the drivers, because i tried dxvk with half life 2 deathmatch and sitting ducks. they worked perfectly, also having an increase of fps in both.

BBlisto91 2022-04-21 github

Ye it crashes on windows 10 on my amd setup too. With both the standard steam version and silent patch. Also it seems to have issues grabbing onto the window or something as the screen might show black until you do a quick alt tab.
Made apitraces with and without the silent patch.
https://mega.nz/file/UxIiySzQ#jKMsKLofr_CdVefbw2o4NVkivDZd7dZuv2S-5Atqf-g

It seems to work on linux tho.

Eemanuelect 2022-04-21 github

so can it be fixed?

BBlisto91 2022-04-22 github

I'm not a dev, so dunno. I just tried to help gather some data 😁

Eemanuelect 2022-04-22 github

ah ok, thank you very much.

KK0bin maintainer 2022-04-22 github

Also @K0bin isn't DxvkMemoryAllocator: Memory allocation failed maybe a 32 bit memory issue? Even tho the allocated seem low.

Yes. That indicates it's just #1318 again. That would also explain why the Steam version works on Linux. Proton automatically enables LAA, so the game gets another gigabyte of address space.

Try using an LAA patcher with the exe.

On the other hand, it's a bit weird that it happens when we've only used 145MB of system memory for Vulkan allocations.

The apitrace replays just fine, so there's not a lot I can do.

BBlisto91 2022-04-22 github

I will try to take a peek at it again on windows. Tho i don't have much technical insight into dxvk or debugging stuff like this.

Eemanuelect 2022-04-22 github

I tried LLA patcher, initially I got a steam error and the game would not start, So I thought I would try using a crack on the game and it started. Also msi afterburner which wasn't working before, now works. I have noticed improvements in the performance of the game, before I could play it in 2k maximum, now I can play it in 4k. The only problem is that the game seems to block randomly and looking at msiafterburner, when it crashes for a few moments the writing d3d9 pops up, as if trying to replace the vulkan.

BBlisto91 2022-04-22 github

When i try to LAA patch it then it just refuses to launch 😁

Eemanuelect 2022-04-22 github

It does not work because there is a conflict between steam and LLA patcher, I wrote it above, you need a crack to disable steam.

BBlisto91 2022-04-22 github

Oh yea. Misread that part.

Edit: Could you post new logs?

Eemanuelect 2022-04-22 github
Eemanuelect 2022-04-23 github

I've played a few games and I think the freezes are caused by the shaders, because walking into areas that have already been visited, the game doesn't freeze. I also tried restarting the game after long games. I noticed that the game has its own folder called shader-binaries, maybe vulkan can't use it.

BBlisto91 2022-04-23 github

You could try to add dxvk.enableStateCache = False to the conf file and see if it makes a difference.

I still plan on testing this more at some point when i get a crack to i can run it with LAA without steam complaining.
Unless you figure everything out beforehand ofc.

Eemanuelect 2022-04-23 github

I was reading that the configuration file is called dxvk.conf and that it should be in the game folder, but it's not there.

Eemanuelect 2022-04-23 github

Sorry, I didn't think it couldn't be done having the original game.

BBlisto91 2022-04-23 github

I was reading that the configuration file is called dxvk.conf and that it should be in the game folder, but it's not there.

You have to create one yourself. Make sure the file extension is .conf and you aren't creating a text file called dxvk.conf.txt.
You can put the hud in there dxvk.hud = 1 also to verify it picks it up.

Sorry, I didn't think it couldn't be done having the original game.

Wdym

Eemanuelect 2022-04-23 github

Bully Scholarship Edition Screenshot 2022 04 23 - 20 16 50 23
The hud works. I moved the cache file and tried the string:
dxvk.enableStateCache = False
Unfortunately I didn't notice any difference. However it doesn't matter, because the game freezes are now almost completely gone.
When I complete the game, maybe it would be useful to share the bully.dxvk-cache file.

BBlisto91 2022-04-23 github

On linux they are shared through the steam shader downloads (afaik) so it would mostly be useful for windows users.
Also i think the other person need to have a similar gpu and driver and dxvk. Else i think it will just generate new cache anyway. Tho i'm not sure about it.

Eemanuelect 2022-04-23 github

I had read on reddit a page dedicated to apex, where users were sharing the file to not have freezes.
https://www.reddit.com/r/linux_gaming/comments/t5xrho/dxvk_state_cache_for_fixing_stutter_in_apex/

BBlisto91 2022-06-03 github

Can you check if K0bin's new PR https://github.com/doitsujin/dxvk/pull/2663 helps with the crashes/freezes with and without a LAA patch or probably more important without a cache if this was your issue.
Link to latest version as of this moment: https://github.com/doitsujin/dxvk/actions/runs/2570371500

Edit: Updated. K0bin has further improved it and fixed some crash issues introduced in the branch

KK0bin maintainer 2022-07-29 github

This should be fixed now. Please reopen if it's not.

LLethalManBoob 2024-11-14 github

For me, its still borked with dxvk

KK0bin maintainer 2024-11-14 github

Then please make an apitrace so I can look into it.
https://github.com/doitsujin/dxvk/wiki/Using-Apitrace

LLethalManBoob 2024-11-14 github

Okay as completly strange, random and annoying as this is. Somewhere long the lines this began working again with no issue. It might have somthing to do with the mods I installed that improve the games compatability. I will try later with an un modded build.

Mmehmetcb02 2024-11-15 github

I tried this game today with DXVK 2.5, it mostly runs great but there is an issue where you open some kind of a stat menu and fps suddenly dips to 6 and 7ish values. and if you open and close that menu constantly it crashes but I couldn't find a proper reproduce steps for this. I used both SilentPatch and WideScreenFix and fps was locked to 120

Upstream links

DLLs