libretro / beetle-pce-libretro

Standalone hard fork of Mednafen PCE to libretro
GNU General Public License v2.0
25 stars 26 forks source link

Aero Blasters crashed #52

Open AngelofMe opened 2 years ago

AngelofMe commented 2 years ago

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

vanfanel commented 1 year ago

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.

Tatsuya79 commented 1 year ago

Doesn't happen on win10 x64.

ghost commented 1 year ago

Okay on win7 x86 and winxp x86.

Don't know if #69 affects this game.

ghost commented 1 year ago

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

vanfanel commented 3 months ago

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!

rtomasa commented 2 weeks ago

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.

stonegrimm commented 1 week ago

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.