-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Crash on launch in KMS mode #6972
Comments
Smells like permissions |
Until this and other video permission problems are solved RA in KMS is only really usable in Lakka. |
Its still working here in Slackware with the current master. I wonder what the difference is? Edit: I guess it could be libglvnd again? |
@Themaister Do you have any ideas how we could honor these DRM permissions? |
@i30817 It has always worked fine on my Arch Linux setup though. |
never worked here... the reason is #6763 for me. Or some variant of it. Maybe #2248 (comment) explains better. As mentioned in the issue (somewhere, i rambled) it's easy to test on a recent ubuntu by opening a tty at any time (including before wayland starts on the gdm login screen), loading a ps1 game on beetle hardware and just change the internal resolution and try to resume. Instant crash with Since i'm not going to run retroarch with sudo, this is dead in the water for me - or possibly ubuntu as a whole. |
Does running RetroArch as root even work around it? I do agree that its not a good solution, but its worth trying once to see if that is the problem. When you vt switch with Xorg it drops the DRM master and allows another DRM master to work, like kms RetroArch. Unfortunately RetroArch still needs to be taught how to do this in reverse to get back to the Xorg session. Maybe wayland needs to be taught this too? |
Using sudo doesn't seem to help ( |
KMS works for me on Ubuntu 18.04 as a regular user. I don't use any display server (X, Wayland etc.) on that system though, not sure if related. |
Sudo does work here but i had to do some 'monkeying around' because of the owner. So i first rebooted and moved out of gdm to a tty (to make sure a running wayland session didn't interfere, although it's unlikely), then i recursively changed the owner of ~/.config/retroarch to root (actually i copied and then changed but details). Then i created a 'new' directory on the home with owner 'root'. then i ran with: This worked fine always. A small detail that is probably important but may be a gdm bug: when i quit retroarch and tried to return to gdm, it showed the screen for a fraction of a second then the systemd log (like the boot) then stayed hanged on 'color calibration' (or something like that, the point is that either retroarch doesn't 'return' a permission on exiting (this was a normal exit, not crash) or gdm flakes out sometimes. I have to stress that my two posts are not because it crashes right away like the OP, but when it tries to create the context when you change resolution (retroarch even shows the cmd line on the tty and then tries to return to the core) and are obviously a permission problem. |
This is probably why you don't see it. There can only be one DRM master, Xorg will drop it on vt switch so you can have multiple xorg servers running. RetroArch just hogs it and prevents vt switching, but it would probably be better to follow Xorg's example here. My hypothesis is that this needs to be fixed in wayland too. |
My mesa's got to be more up to date as well. |
I think this started to be an issue on Ubuntu 16.04 too, after the latest graphical drivers update: https://retropie.org.uk/forum/topic/18598/libretro-stopped-working-on-16-04-after-latest-drivers-update. If this is not related, please, just remove this comment. |
Xubuntu 16.04.5 LTS amd64 with |
@Jj0YzL5nvJ I tried |
This could easily be a different issue, there is not enough information to tell. First question is what video card and driver? When does it crash? I would suggest making a new issue report to not potentially derail this one, thanks! |
It's weird, maybe a different update priority to "newer" or maybe a corrupted software list?
To confirm, example:
cya |
Here we go again, I guess. I've checked kmscube just in case.
Log
Version/Commit
Environment information
The text was updated successfully, but these errors were encountered: