bsnes-mercury icon indicating copy to clipboard operation
bsnes-mercury copied to clipboard

BSNES Mercury cores (Balanced and Performance tested) crash on various games when pressing volume up or down on Android device.

Open gannon345 opened this issue 8 years ago • 6 comments

Description

BSNES Mercury cores (Balanced and Performance tested) crash on various games when pressing volume up or down on Android device. Tested on a Nvidia Shield K1 tablet.

Issue is specific to BSNES cores. Does not occur in SNES9x core.

Expected behavior

Volume turns up or down.

Actual behavior

Retroarch crashes with an unexpected error

Steps to reproduce the bug

Launch a SNES game with the BSNES Mercury Performance or Balanced core. Press volume up or volume down hardware keys on Android phone or tablet.

I tested the problem on a Shield k1 tablet and confirmed it across multiple games. Tested 1.0 and 1.1 known good dumps of Mega Man X, as well as F-Zero, Legend of Zelda: Link to the Past, and Starfox.

All games not impacted. Tested Super Baseball 2020 and volume controls work.

Bisect Results

Unsure when issue started occurring, only encountered it today (9/16/2017) on RA 1.6.7.

Version/Commit

Google Play Store current version (1.6.7)

  • RetroArch: 1.6.7

Environment information

  • OS: Android 7 on Shield K1 tablet.
  • Compiler: Unknown

gannon345 avatar Sep 17 '17 02:09 gannon345

Yup, it also crashes for me. I was wondering why it constantly kept crashing. lmao It even crashes randomly!

anyputer avatar Nov 25 '17 18:11 anyputer

cant seem to replicate this on my crappy android device using Legend of Zelda: Link to the Past with latest f-droid-available retroarch and bsnes-mercury balanced core. possible to get and post logcat?

ghost avatar Nov 26 '17 02:11 ghost

How do I pull a logcat? I'll test it out when I can.

gannon345 avatar Dec 01 '17 01:12 gannon345

Logs from my OnePlus 5, one when I was running stock OOS OB3 8.0.0. Forgot which RetroArch version.

https://hastebin.com/emahufekaw.sql

Today's logs from latest Phoenix 8.1.0 ROM. Today's are using RetroArch 1.7.0 from play store.

Both times using bsnes-mercury-balanced.

https://hastebin.com/qigojeqowe.scala

spinktvis avatar Jan 27 '18 14:01 spinktvis

As evidenced by this line in your last log @spinktvis:

01-27 15:23:47.893 F/DEBUG (17643): signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0xd0842d2c

This looks like the same problem as https://github.com/libretro/QuickNES_Core/issues/37 which was able to be fixed in software with a gcc workaround. The same should apply here, but the trick would be to find exactly what variable/struct it is that is somehow being misaligned.

@fr500 @twinaphex Maybe one of you guys could test other cores on similar devices with such kernel issues, like the Shield Tablet?

ghost avatar Mar 31 '18 01:03 ghost

I was never able to replicate this on my devices but there was a related recent crash that was fixed by https://github.com/libretro/bsnes-mercury/commit/b62603777f0353f62c00540ee2e104aaf1be91ac

andres-asm avatar Apr 19 '18 14:04 andres-asm