vcmi-mods / horn-of-the-abyss

Port of Horn of The Abyss to the VCMI
20 stars 23 forks source link

Game will crash when you open some creatures info window #118

Closed lishaoxia1985 closed 4 days ago

lishaoxia1985 commented 2 months ago

The creatures contain these: Automatons, Dreadnoughts, Ayssids, Haspids. I have not tested all of the creatues.

Laserlicht commented 2 months ago

Not able to reproduce on PC, only on android. What version you're testing?

@IvanSavenko Any idea how to debug? Or what's the reason? Happens only on creatures with missing bonus symbol.

IvanSavenko commented 2 months ago

Can you show call stack of the crash? This sounds vaguely familiar...

Laserlicht commented 2 months ago

Can you show call stack of the crash? This sounds vaguely familiar...

I don't have a callstack on android. :D Or is it in any logs?

IvanSavenko commented 2 months ago

Ah, Android only. Well, in theory you can try to get call stack using ADB - should be visible in log from what I remember.

Also - try both debug & release builds on your system. Release-only crashes might happen due to uninitialized memory. So if this is the reason then release build might also crash on your system

Laserlicht commented 2 months ago

Tested it on gcc-debug and clang-release. Not reproducible for me.

Also no ADB running yet. :(

IvanSavenko commented 2 months ago

Reproduced on PC. Happens only if xbrz is active. Will fix.

Laserlicht commented 2 months ago

Reproduced on PC. Happens only if xbrz is active. Will fix.

Nice find, yeah - have xbrz enabled on mobile. :)