beetle-pce-libretro icon indicating copy to clipboard operation
beetle-pce-libretro copied to clipboard

Aero Blasters crashed

Open AngelofMe opened this issue 3 years ago • 7 comments
trafficstars

open content Aero Blasters (Japan) Aero Blasters (USA) crashed

AngelofMe avatar Aug 27 '22 07:08 AngelofMe

I can confirm that game causes the core to segfault. It can be avoided by setting the “Show horizontal overscan” core option to OFF.

Happens in arm, aarch64 and x86_64, on GNU/Linux.

It doesn't happen in the pce_fast core.

vanfanel avatar Jan 25 '23 20:01 vanfanel

Doesn't happen on win10 x64.

Tatsuya79 avatar Jan 25 '23 23:01 Tatsuya79

Okay on win7 x86 and winxp x86.

Don't know if #69 affects this game.

ghost avatar Aug 20 '23 01:08 ghost

@vanfanel Can you compile the core in debug mode and test the crash? Maybe it's the optimizer doing bad things.

ghost avatar Aug 20 '23 14:08 ghost

I found out that changing the Last Scanline core option to 238 or less, the segfault doesn't appear.

I hope it helps debugging this long-standing issue!

vanfanel avatar Jun 15 '24 18:06 vanfanel

Definetively the problem is when setting pce_h_overscan = auto. This option tries to make auto croping based on some formulas in vce.cpp in the next condition: if(MDFN_GetSettingB("pce.crop_h_overscan")) resulting in incorrect width (16) and height (30) which is reported as the game geometry, leading to a crash due to libretro frontend not able to manage such bad resolutions.

rtomasa avatar Aug 27 '24 21:08 rtomasa

Confirmed in other content too, not only Aero Blasters. Sometimes RA just crashes, sometimes audio works but no viewport shows. Both PCE FAST and Supergrafx work fine however.

stonegrimm avatar Sep 06 '24 19:09 stonegrimm