gw-libretro icon indicating copy to clipboard operation
gw-libretro copied to clipboard

gw-libretro latest Retroarch(and 64) Android not working

Open bietekwiet opened this issue 5 years ago • 15 comments

Hi there,

I tried following the install procedure both in Retroarch and Retroarch 64 from play store and on multiple devices (Xiaomi mi pad 4 and Oneplus 5) the Handheld Electronic GW Core does not load any .mgw game.
Clicking "run" results in Retroarch hanging and/or a black screen.

Is there a solution or should I give up on Game&Watch for Android?

Cheers,

Chris

bietekwiet avatar Jul 04 '19 13:07 bietekwiet

Thanks for the report.

I'll need some info to investigate the issue. What are the RetroArch and the gw-libretro versions? Can you get the log and paste it here?

leiradel avatar Jul 04 '19 15:07 leiradel

Just following up on this, Error has been persistent for a couple of months at least. I tried about 8 weeks ago and again today.

Updated core today and grabbed some content from the Content downloader. When starting the game Retroarch freezes. After jumping out of the app and back again all i am getting is a black screen.

This is something I noticed in the log

08-17 11:18:25.389 I/RetroArch(31486): [string "system.lua"]:6: attempt to perform arithmetic on a nil value (local 'major') 08-17 11:18:25.389 I/RetroArch(31486): stack traceback: 08-17 11:18:25.389 I/RetroArch(31486): [string "system.lua"]:6: in function <[string "system.lua"]:1> 08-17 11:18:25.389 I/RetroArch(31486): [C]: in ? 08-17 11:18:25.389 I/RetroArch(31486): ------------------------------ 08-17 11:18:25.389 I/RetroArch(31486): Error inializing gwlua

Full log here https://pastebin.com/4g8tWSLZ

thatman84 avatar Aug 17 '19 10:08 thatman84

Little update.

Just spoke with someone using RA v1.7.4 on Android with a GW core update yesterday. Games are working.

thatman84 avatar Aug 17 '19 11:08 thatman84

Good to know, thanks for the feedback.

However, I think something could be wrong in this commit: https://github.com/libretro/gw-libretro/commit/fd7349e73ce9022ff71184cd08bb641622fa29f0

I'll investigate further.

leiradel avatar Aug 17 '19 11:08 leiradel

@webgeek1234 I believe the commit in the previous comment is responsible for the issues some people are having with gw-libretro.

GW_VERSIONSTR must always have the core version in major.minor.patch format, but on Android this value ends up being the git commit hash which leads to a crash in system.lua:

08-17 11:18:25.389 I/RetroArch(31486): ==============================
08-17 11:18:25.389 I/RetroArch(31486): [string "system.lua"]:6: attempt to perform arithmetic on a nil value (local 'major')
08-17 11:18:25.389 I/RetroArch(31486): stack traceback:
08-17 11:18:25.389 I/RetroArch(31486):  [string "system.lua"]:6: in function <[string "system.lua"]:1>
08-17 11:18:25.389 I/RetroArch(31486):  [C]: in ?
08-17 11:18:25.389 I/RetroArch(31486): ------------------------------
08-17 11:18:25.389 I/RetroArch(31486): Error inializing gwlua

Can you take a look? Thanks.

leiradel avatar Aug 17 '19 14:08 leiradel

Ah, yeah. I don't think I could figure out how to get the version number from jni, but didn't see where it had to be that format. Assumed it was just printing it somewhere, and seems that assumption bit back. I'll add this to my log of things to do.

webgeek1234 avatar Aug 17 '19 14:08 webgeek1234

Thanks. Currently the version is hardcoded in the Makefile, so I'm open to better ways to manage the core version that fits all builds.

leiradel avatar Aug 17 '19 17:08 leiradel

Could the last commit be reverted to fix the Android version? Some of the other cores (bsnes, prboom) have their version in the libretro.c(pp) file. Could we follow that same standard here?

rockyk avatar Oct 19 '19 19:10 rockyk

Same problem on Nvidia shield TV with retroarch 1.8.1. No problem on pc/archlinux. No game can be loaded, hanging with black screen.

kamelie1706 avatar Dec 06 '19 13:12 kamelie1706

@webgeek1234 any news?

leiradel avatar Dec 06 '19 13:12 leiradel

@leiradel I reverted that commit, so we'll see if that fixes the problem. If not, we can reopen the issue.

hizzlekizzle avatar Dec 30 '19 21:12 hizzlekizzle

Sorry I never got back to this. Pretty sure Android still will not work because the version isn't defined in the Android makefile like it is in the main makefile.

webgeek1234 avatar Dec 30 '19 22:12 webgeek1234

Is this still ongoing or is Android no longer supported ?

ghost avatar Feb 18 '20 15:02 ghost

Its working fine for me on Android 10 (Pixel 1 XL). I have tried 4-5 games without any issues.

rockyk avatar Feb 18 '20 16:02 rockyk

Core doesn't load on Android KitKat. Just says 'No Core'. I can't even remove it because it doesn't load it to begin with. @twinaphex Is there a working version available somewhere ? I've had this core working in the past.

ghost avatar Mar 07 '20 14:03 ghost