Emulator Issues #7486
closedSDL/Linux: segfault on second game launch if haptic compatible controller plugged in.
0%
Description
Issue with sdl 2.03
This bug has been forwarded upstream.
Updated by phire over 10 years ago
Bug also effects sdl 2.02
Another way to trigger this bug is the refresh button in the controller settings.
Updated by phire over 10 years ago
- Milestone set to Current
Doesn't look like upstream are rushing to fix this. We might need a work around for this.
(Maybe as simple as disabling haptic support in dolphin if sdl 2.02 or 2.03 is detected.)
Updated by flacs over 10 years ago
Fixed upstream. No stable release yet, so Dolphin could still use a workaround.
Updated by littlegreendude55 about 10 years ago
IT sounds like the sdl project is looking at a 2.0.4 release. I'm assuming that that will fix this issue. http://forums.libsdl.org/viewtopic.php?t=10532 Could still be a while before that is released and gets into ubuntu.
Updated by thePalindrome about 10 years ago
I installed the version that's posted in the link, and it doesn't seem to fix the issue. I think it's strange because it should've been fixed upstream already :/
Updated by Sonicadvance1 almost 10 years ago
Issue 7885 has been merged into this issue.
Updated by guitaristocrat3 almost 10 years ago
this issue no longer occurs for me in latest mater (4.0-4843). i can refresh my controller inputs in config and close and start multiple games in one session without the emulator crashing now. this is using Ubuntu 14.10 and a dualshock 3 controller.
Updated by littlegreendude55 almost 10 years ago
This is still an issue for me with sdl2.0.3 on 5099 using the 2 port mayflash adaptor. (Archlinux)
Updated by sergiobenrocha2 almost 10 years ago
I'm having this issue in both ubuntu 14.04 and 14.10 (4.0-5456). @guitaris, had you tested with newer version?
Updated by zype.zype almost 10 years ago
Problem solved for me.
It happened last time in 5100, after building and installing 5474 it was solved.
I use an up-to-date debian Sid:
libsdl1.2-dev 1.2.15-10+b1
libsdl2-dev 2.0.2+dfsg1-6
Updated by phire almost 10 years ago
- Regression set to Yes
- Priority set to High
As there is still no 2.0.4 release upstream (and some OS releases will never upgrade to it, this needs a workaround.
Updated by wifomstaff over 9 years ago
The current work around I'm using is the mercurial dev build.
https://www.libsdl.org/hg.php
This works as far back as 4.0-652 (as far back a build I use) and still works in the latest master I tried 4.0-5734.
I'm using Linux Mint 17.1 and Mayflash 2 port GC adapter
Updated by wifomstaff over 9 years ago
Well my work-around(mercurial dev build) now appears to have been breaking netplay for any build starting with 4.0-5681 and SDL 2.0.2 works fine with 4.0-5886 (didn't test anything earlier).
Updated by corona.gabriel over 9 years ago
A (crappy) workaround is to add this to any source file of dolphin:
#include <dlfcn.h>
static int (*real_strcmp)(const char *str1, const char *str2);
extern "C" int strcmp(const char *str1, const char *str2)
{
if (str1 == NULL)
return str2 == NULL ? 0 : 1;
else if (str2 == NULL)
return -1;
if (!real_strcmp)
real_strcmp = (int (*)(const char *str1, const char *str2)) dlsym(RTLD_NEXT, "strcmp");
return real_strcmp(str1, str2);
}
Updated by tueidj over 9 years ago
You could be a bit less crappy and actually implement strcmp, instead of praying it's exported by something else and crashing when it's not.
Updated by phire over 9 years ago
- Status changed from New to Work started
Rather than do anything crazy like overriding strcmp, disabling rumble or statically building sdl into dolphin; I'm going to remove SDL and replace it with a evdev based input backend.
SDL is more or less just a thin wrapper around evdev anyway.
Updated by JMC4789 over 9 years ago
Issue 7931 has been merged into this issue.
Updated by phire over 9 years ago
- Status changed from Work started to Fix pending