Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retroplayer crashes for OpenGL based cores #170

Open
BullShark opened this issue Jun 15, 2020 · 6 comments
Open

Retroplayer crashes for OpenGL based cores #170

BullShark opened this issue Jun 15, 2020 · 6 comments
Labels
cant fix Can't fix this issue without other supporting applications changing

Comments

@BullShark
Copy link

BullShark commented Jun 15, 2020

Bug report

Describe the bug

Trying to launch any Nintendo 64 game from IAGL add-on in Kodi results in Kodi crashing.

Expected Behavior

Launch the game in mupen64 emulator after downloading the game.

Actual Behavior

Crashes Kodi with a seg fault

Possible Fix

I suspect that the addons work without crashing Kodi in older versions of Kodi.

To Reproduce

Steps to reproduce the behavior:
Here's the steps I took.

Install all of these using yay.

Install kodi-x11
Install kodi-addon-game-libretro
Install kodi-addon-game-libretro-mupen64plus

Download the IAGL zipfile

In Kodi:

Add the zipfile to get the repo.
Install IAGL from the new repo.
Install Nintendo 64 Controller
Nintendo - Nintendo 64 (Muphen64Plus)
Install IAGL - Internet Archive Game Launcher

In Kodi:

IAGL -> Browse All Lists -> Internet Archives Best Of N64 -> The Legend of Zelda - Ocarina of Time or 007

It seems to happen with every Nintendo 64 game.

Results:
Crashes Kodi every time.

$ kodi --debug
/usr/bin/kodi: line 219: 349385 Segmentation fault      (core dumped) ${KODI_BINARY} $SAVED_ARGS
Crash report available at /home/bullshark/kodi_crashlog-20200615_004443.log

Is the save file being opened before checking if it exists? And a save file is expected the first time a game is ran when there has been no saves.

2020-06-15 00:44:38.748 T:140704015163264 ERROR: Failed to open savestate file /home/bullshark/.kodi/userdata/addon_data/plugin.program.iagl/temp_iagl/Legend of Zelda, The - Ocarina of Time (USA) (Rev B).sav
kodi_crashlog-20200615_004443.log

Edit:

Here's another crash log after I installed gdb.
kodi_crashlog-20200615_005007.log

http://odin.root.sx/kodi_crashlog-20200615_005007.log

Debuglog

The debuglog can be found here:

Screenshots

Here are some links or screenshots to help explain the problem:

Just before the crash:

Screenshot_20200615_072724

The crash happens immediately after the download for any N64 game.

Additional context or screenshots (if appropriate)

Here is some additional context or explanation that might help:

Your Environment

Used Operating system:
Manjaro Linux with KDE latest.

$ uname -a
Linux plasma 5.7.0-3-MANJARO #1 SMP PREEMPT Wed Jun 3 03:15:33 UTC 2020 x86_64 GNU/Linux
  • Operating system version/name:
  • Kodi version:
$ kodi --version
18.7 Git:20200603-nogitfound Media Center Kodi
Copyright (C) 2005-2020 Team Kodi - http://kodi.tv
$ pacman -Q | grep kodi
kodi 18.7.1-3
kodi-addon-game-libretro 1.1.1-5
kodi-addon-game-libretro-mupen64plus 2.5.0.6-14
kodi-addon-visualization-projectm 1:2.2.0-15
kodi-platform 20190726.809c5e9-10
kodi-x11 18.7.1-3
$ 

I created a .sav file and saved it where it was being looked for. That didn't prevent the crash.

I opened the same game in M64Py, a gui frontend to mupen64, and it opened the game without error.

@BullShark BullShark changed the title Crashes Kodi for every game Crashing Kodi everytime Internet Game Archive Launcher IGAL Jun 15, 2020
@yeahme49
Copy link
Contributor

kodi doesn't support opengl and all the libretro n64 emus use opengl. use iagl to launch retroarch or a different emu and it should work

@BullShark
Copy link
Author

kodi doesn't support opengl and all the libretro n64 emus use opengl. use iagl to launch retroarch or a different emu and it should work

I've been trying that. I haven't been able to get it to work. Can you help?

Screenshot_20200617_193135
Screenshot_20200617_193332

The game works in retroarch launched without kodi just fine.

Screenshot_20200617_193731

@BullShark
Copy link
Author

BullShark commented Jun 17, 2020

Screenshot_20200617_215932
Is it possible that Kodi is calling retroarch without passing the -L flag?

This works.
retroarch -f -L /usr/lib/libretro/parallel_n64_libretro.so Game.n64

This does not work. Retroarch will fail to launch.
retroarch -f Game.n64

I cannot tell what arguments IAGL is passing to Retroarch when trying to launch the game. I tried creating a wrapper script in bash for IAGL to launch Retroarch with the -L /path/to/emulator_libretro.so and had no luck with it yet.

@BullShark
Copy link
Author

bump

@zach-morris zach-morris changed the title Crashing Kodi everytime Internet Game Archive Launcher IGAL Retroplayer crashes when playing N64 Feb 20, 2021
@zach-morris
Copy link
Owner

This is a Kodi issue, reference xbmc/xbmc#15874.

Launching externally works. See here for troubleshooting tips on external launching.

@zach-morris zach-morris changed the title Retroplayer crashes when playing N64 Retroplayer crashes for OpenGL based cores Feb 28, 2021
@zach-morris zach-morris added the cant fix Can't fix this issue without other supporting applications changing label Feb 28, 2021
@zach-morris
Copy link
Owner

I've updated the title of this issue just so people are aware of the state of this.

Kodi currently doesn't support OGL only cores, such as N64. I think the target is v20 Kodi for this. See here.

There's nothing IAGL can do to make Retroplayer work for these since it's Kodi functionality. For these game lists, you have to launch them externally (or hide them for now).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cant fix Can't fix this issue without other supporting applications changing
Projects
None yet
Development

No branches or pull requests

3 participants