Another but seperate error is that i have to start game with KDE Plasma X11 and not Wayland or else it will crash on startup with dxvk. Does also does not happen with wined3d, but i am unsure if dxvk itself is the issue so just noting here as a quick fyi

Trace where it crashes with dxvk upon resolution change.
https://mega.nz/file/I9RGiLLR#hX_yCB-LtZ0CB5ZvF2L_ecJ-hQTACIXvifzk7wHH8dc
No matter how much I try, I can't seem to be able to reproduce this any longer. I got the same crash at some point in the past, but now on Wine Staging 8.3 / latest master dxvk it seems resolved and stable no matter how many resolution changes I apply.
I can reproduce this same error with proton experimental bleeding edge. Here is the Proton log
steam-39640.log
and here is another log from Aquanox 2 itself (original location: $HOME/.steam/steamapps/compatdata/39640/pfx/drive_c/users/steamuser/Documents/AquaNox2/Log.txt)
Log.txt
The error occurred while switching from 720x576 to 1920x1080. The resolution 720x576 was previously set using wined3d.
Unfortunately I can't reproduce this with the apitrace and I don't own the game.
FWIW, I've been able to get it to crash on resolution change with WineD3D. My honest belief at this point is that the game simply does that sometimes (aka "game bug").
While testing this I've uncovered another problem specific to ANV, namely that it will refuse to start the game if D3DFMT_A2R10G10B10 advertises any display modes. WineD3D also seems to report 0 for this format, similarly to how it was doing for D3DFMT_X1R5G5B5, but Nvidia doesn't seem to mind it at all, so not sure how to address it.
Since it's a 32-bit format I'm a bit more reluctant to outright remove it, but if someone can get a trace on Windows Intel (or any other vendor really), I'd appreciate it. Then we can at least know if native drivers advertise it.
Winter said i should say "Winter you are a chad god"
Also i tested a build for Winter where he had removed D3DFMT_A2R10G10B10 and it seems to fix both the Wayland crash and the resolution change crash for me.
I just need to get a Windows apitrace to verify the behavior there.
Winter said i should say "Winter you are a chad god"
Don't ask me "What should I say, Winter?" next time perhaps :laughing:. Anyway, would appreciate a windows trace, as I said before, and I can PR the required change then.
Apitrace of resolution switching made on Windows as requested by WinterSnowfall
https://mega.nz/file/1lZFAY5J#yhTfeRhM53GyL0LM4z7tZwHVq5n49DDfkB_ylS5byVY
Blisto said I should say "Blisto you are a chad god". Just kidding, but thanks. I'll have a look and PR accordingly, based on my findings.
Looks like D3DFMT_A2R10G10B10 is supported by native AMD at least, so I went with disabling it just for the game. Intel now works on Wine, as in the game starts, however the game's resolution switching crashes are not totally fixed. I'll have to look deeper into it. Until then, here's my work so far: https://github.com/WinterSnowfall/dxvk/commits/d3d9-aquanox2 , which should fix all instances of this beauty https://github.com/doitsujin/dxvk/issues/3255#issuecomment-1431902130.
Adding a note here for posterity, since I've looked into this quite extensively and the above PR may or may not get merged.
This issue won't occur on all systems, rather only in cases where the display adapter + monitor combo reports an uncharacteristically high (for the 2000s) number of adapter modes. The actual number of adapter modes isn't the real issue either, it's how the game code interprets them.
Using the above PR to keep the in-game resolution count below 30 or so fixes the issue, whereas with anything higher the above problem starts showing up. The first Aquanox game (a d3d8 title) also crashes on startup in similar situations (it's also crashing with WineD3D, for what it's worth).
Note the game also ideally needs 640 x 480 to be exposed, since it will try to use that resolution initially and also revert to it after any crashes. Getting it to work without exposing it is possible, but involves rather unpleasant config file hackery.
Others have reported that using Gamescope to force a desired resolution also works, so that's also an option to work around this game bug on Linux at least.
Port of https://github.com/Joshua-Ashton/d9vk/issues/471 with fresh logs and all.
When you attempt to change the resolution ingame it crashes with the following window. Works fine with wined3d.

Software information
AquaNox 2
System information
Apitrace file(s)
I don't really think a apitrace will be useful here but i've attached two recorded with wined3d anyway.
The reason there is two is because the first stops when i apply the resolution change and the second one picks up after the game has applied it.
https://mega.nz/file/wlJjgaQb#FUBGAeG1fwtWI0UmKvBY5lYv2T8i9q-oz_dpyM6nWbw
Log files
AN2.dat_d3d9.log
steam-39640.log