Open bietekwiet opened 5 years ago
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?
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
Little update.
Just spoke with someone using RA v1.7.4 on Android with a GW core update yesterday. Games are working.
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.
@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.
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.
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.
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?
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.
@webgeek1234 any news?
@leiradel I reverted that commit, so we'll see if that fixes the problem. If not, we can reopen the issue.
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.
Is this still ongoing or is Android no longer supported ?
Its working fine for me on Android 10 (Pixel 1 XL). I have tried 4-5 games without any issues.
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.
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