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

RPI: crash during startup #9

Closed
gizmo98 opened this issue Dec 24, 2014 · 7 comments
Closed

RPI: crash during startup #9

gizmo98 opened this issue Dec 24, 2014 · 7 comments

Comments

@gizmo98
Copy link

gizmo98 commented Dec 24, 2014

RetroArch reports an 2410 segfault:
RetroArch: rarch_log_libretro: libretro INFO :: Got size: 320x320
RetroArch: rarch_log_libretro: libretro INFO :: Quake Libretro -- TyrQuake Version 0.62
RetroArch WARN :: gl_glsl_init :: GL : Stock GLSL shaders will be used.
2410 Segfault

I compiled tyrquake with retropie https://github.com/petrockblog/RetroPie-Setup/blob/master/scriptmodules/libretrocores/tyrquake.sh. Was anything important changed this month? The script worked Nov. 16.

@inactive123
Copy link
Contributor

Do a git bisect and report back.

@joolswills
Copy link

I bisected it to this commit - 4a14dd2

@inactive123
Copy link
Contributor

I guess they're on an old version of RetroArch that did not yet have this environ callback.

@joolswills
Copy link

this is with retroarch v1.0.0.3 - ce57697 so not old

@inactive123
Copy link
Contributor

Try if this fixes anything -

c2ee3b5

@joolswills
Copy link

funnily enough I just did that - well

diff --git a/common/sys_libretro.c b/common/sys_libretro.c
index d86ba85..cfd2884 100644
--- a/common/sys_libretro.c
+++ b/common/sys_libretro.c
@@ -618,7 +618,7 @@ static void update_env_variables(void)

    if (environ_cb(RETRO_ENVIRONMENT_GET_USERNAME, &default_username))
    {
-      if (default_username[0] != '\0')
+      if (default_username != NULL && default_username[0] != '\0')
       {
          char setplayer[256];
          sprintf(setplayer, "name %s", default_username);

works with above code

@joolswills
Copy link

I see the fix is in. Cheers :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants