CommonLoon102 / hode-vs

hode is a rewrite of the engine used in the game Heart of Darkness made by Amazing Studio.
http://cyxdown.free.fr/hode/
3 stars 1 forks source link

Game crash in Release build #11

Open CommonLoon102 opened 3 years ago

CommonLoon102 commented 3 years ago

When the pink monster captures you, and you are with the dog, you have to use the special power to get the seed. After the seed drops, the game will crash. Only version 0.2.9f is affected, e and d are fine. It is only happening in Release build. The crash is only happening with the nearest and linear scaling, but not with xbr. If I set the xbr scaler, then there won't be any crash, just a short flickering. If I set the scale factor to 1 instead of 3, then the crash also doesn't happen. If I set widescreen to true, then the crash also does not happen.

So it is happening in case of this configuration only:

scale_factor=3
scale_algorithm=nearest/linear
fullscreen=false/true
widescreen=false

@cyxx: you might be interested.

Exception thrown at 0x000007FED65FAB98 (nvd3dumx.dll) in hode.exe: 0xC0000005: Access violation reading location 0x0000000000000010.

Crash happens due to screen shaking, in this method: https://github.com/CommonLoon102/hode-vs/blob/master/system_sdl2.cpp#L417

CommonLoon102 commented 1 year ago

Possibly fixed in here: https://github.com/usineur/hode/commit/ee94cba13a9484be41dbb0c180a3759869e9b67c I'd need to test.