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

(LINUX) RetroArch not launching: [CDROM] No sg devices found and sg kernel module is not loaded. #9392

Closed
PKGaspi opened this issue Aug 29, 2019 · 15 comments

Comments

@PKGaspi
Copy link

PKGaspi commented Aug 29, 2019

Description

RetroArch not not starting after 1.7.8 update.

Expected behavior

Retroarch to launch correctly.

Actual behavior

Retroarch doesn't launch.

Steps to reproduce the bug

  1. Run RetroArch.

Bisect Results

This started happening after 1.7.8 update. The error it gives when starting the program on a terminal is as follows:

$ retroarch
-----------------------------------------
[CDROM] No sg devices found and sg kernel module is not loaded.
*** buffer overflow detected ***: retroarch terminated
[1]    9357 abort (core dumped)  retroarch

Version/Commit

$ retroarch --version
-----------------------------------------
RetroArch: Frontend for libretro -- v1.7.8 -- 045a4cce10 --
Compiler: GCC (9.1.0) 64-bitBuilt: Aug 26 2019

Environment information

  • OS: Arch Linux 4.19.68-1-lts
    Edit: The machine I'm getting the issue on doesn't have a CDROM reader. Maybe that is important.
@ghost
Copy link

ghost commented Aug 29, 2019

Can you output a log of running retroarch -v as well as a backtrace from the core that was dumped?

@PKGaspi
Copy link
Author

PKGaspi commented Aug 29, 2019

Here they are.
retroarch.log
backtrace.txt

@ghost
Copy link

ghost commented Aug 29, 2019

This issue may be unrelated to CDROM, but without a backtrace from a debug build, it is hard to say where the issue is at all. Can you build RetroArch with make DEBUG=1 SANITIZER=address,undefined and re-post the log?

Thanks

@Jamiras
Copy link
Contributor

Jamiras commented Aug 29, 2019

I noticed it's a build from a couple days ago:

Compiler: GCC (9.1.0) 64-bitBuilt: Aug 26 2019

so it might be the problem reported in #9363

@PKGaspi
Copy link
Author

PKGaspi commented Aug 29, 2019

Confirmed that the problem is for that specific build. Latest buld (listed bellow) launches as expected. The build I was using was the submited to the official Arch repositories. Please, submit the new build asap.

$ ./retroarch --version
-----------------------------------------
RetroArch: Frontend for libretro -- v1.7.8 -- 4e9cd6ff3e --
Compiler: GCC (9.1.0) 64-bitBuilt: Aug 30 2019

Thank you for your time and help.

@ghost
Copy link

ghost commented Aug 30, 2019

Unfortunately we have no control over what Arch does.

@Brottweiler
Copy link
Contributor

Reinstall the package with pacman -Syu retroarch. RetroArch fixed this issue but didn't bump the version number;

[...] upstream just retagged the same version instead of bumping it when they fixed the issue.

@ahstro
Copy link

ahstro commented Sep 3, 2019

@Brottweiler That does not seem to work

@Brottweiler
Copy link
Contributor

@ahstro The maintainer actually did a bump on the arch package about an hour ago and I am using that version now (1.7.8-2) without issues.

@PKGaspi
Copy link
Author

PKGaspi commented Jan 2, 2020

I think this can be closed as it was a build issue.

@PKGaspi PKGaspi closed this as completed Jan 2, 2020
@ghost
Copy link

ghost commented Jan 5, 2020

similar updated to recent 4.5.7 retropie it has retroarch 1.7.9 and Sharp no go to load... tried everything uninstall / reinstall from source/bin. But this did work 1.7.6 / 4.5.3 after upgrade no go...

:~/RetroPie/roms/x68000 $ /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-px68k/px68k_libretro.so --config /opt/retropie/configs/x68000/retroarch.cfg Alien\ Syndrome\ (1992)(Dempa).m3u
[CDROM] No sg devices found and sg kernel module is not loaded.
Segmentation fault

running Pi3B+

@pommmme
Copy link

pommmme commented Jan 9, 2020

Just wanted to chime in and say I've duplicated the exact issue @virtual-man007 describes above.

@jalbarracinv
Copy link

Same thing!

[CDROM] No sg devices found and sg kernel module is not loaded.

@StayPirate
Copy link

Same here on Archlinux.

RetroArch: Frontend for libretro -- v1.8.4 -- 9e25601a56 --
Compiler: GCC (9.2.0) 64-bit Built: Jan 17 2020

@Sanaki
Copy link
Contributor

Sanaki commented Feb 2, 2020

The sg line just means you don't have a CD-ROM drive attached to your system. It's standard. Your problem is likely due to something else entirely, but you'll need to produce a log for anyone to attempt to verify.

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

8 participants