libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
9.79k stars 1.78k forks source link

Crash to desktop when launching MegaDrive roms using BlastEm Core on Mac OS with Intel CPU and GPU #15703

Open Sethur opened 9 months ago

Sethur commented 9 months ago

Description

When launching any Sega MegaDrive ROM using BlastEm and default settings on a fresh install, I get a crash to desktop without any error message. I tried all available video drivers and got the same error every time.

BlastEm was working fine on a previous version with my hardware.

Steps to reproduce the bug

  1. Do a fresh install of RetroArch on an Intel Mac with Intel GPU (OS version Monterey 12.6.7)
  2. Launch any Sega MegaDrive ROM with BlastEM core
  3. Experience immediate crash to desktop

Bisect Results

This issue started sometime during the last year. It was working fine with previous versions of RetroArch. I don't think this is a core bug, as BlastEm was apparently not updated for a long time.

Version/Commit

RetroArch: 1.16.0 Build Aug 20, 2023

Environment information

sonninnos commented 9 months ago

So it does not happen with any other core then?

Sethur commented 9 months ago

From the cores I use, I only get a CTD with BlastEm, other cores work fine. And as I said, BlastEm was working fine with a previous version of RetroArch. It is probably not a core issue, since the core wasn't updated for a long time. I also posted this issue in the BlastEm core, but I don't think it is actively developed any more.

When I launch Retroarch via the CLI, when the CTD happens, the following message is shown:

alloc_code: Cannot allocate memory
Failed to allocate memory for generated code
Sethur commented 9 months ago

Can anybody reproduce this on an Intel Mac?

fmaida commented 3 months ago

Yes. I'm having the very same problem on my MacBook Air with an old Intel i5 processor and MacOS 12.7.3

Product ID: 76334511
SHA1: ca2c05c070dac4b2ad7f2425ccad1b7d65949e49
Not found in ROM DB, examining header

alloc_code: Cannot allocate memory
Failed to allocate memory for generated code