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

/usr/share/libdrm/amdgpu.ids: No such file or directory #31

Closed
ghost opened this issue Aug 7, 2021 · 5 comments · Fixed by #32
Closed

/usr/share/libdrm/amdgpu.ids: No such file or directory #31

ghost opened this issue Aug 7, 2021 · 5 comments · Fixed by #32

Comments

@ghost
Copy link

ghost commented Aug 7, 2021

When launching on Ubuntu 21.04 with AMD Gpu

@lotharsm
Copy link
Member

lotharsm commented Aug 7, 2021

Does this affect other snaps too? Unfortunately, I don't have the proper hardware to test, but it seems unlikely that this issue is isolated to the ScummVM snap.

@AlanGriffiths
Copy link
Contributor

it seems unlikely that this issue is isolated to the ScummVM snap.

Agreed, this is a problem in Mesa. And many snaps use that. Like you I don't have the kit to test AMD.

@AlanGriffiths
Copy link
Contributor

@lelecanfora are you up to a bit of hacking? This seems to be a problem that has been encountered before (with a different snap), and there's a description of how to edit the snap and test a solution. If you are able to confirm this works, it will help us fix the snap:

https://forum.snapcraft.io/t/amd-oss-graphics-drivers-missing-access-to-amdgpu-ids-file/12067/14

@ghost
Copy link
Author

ghost commented Aug 8, 2021

Yes I did exactly as the last message described and I encountered this other error:

me@me:~$ scummvm
+ [ -z /home/me/snap/scummvm/x1/.config ]
+ mkdir -p /run/user/1000/snap.scummvm/speech-dispatcher
+ /snap/scummvm/x1/usr/bin/speech-dispatcher -d -C /snap/scummvm/x1/etc/speech-dispatcher -S /run/user/1000/snap.scummvm/speech-dispatcher/speechd.sock -m /snap/scummvm/x1/usr/lib/speech-dispatcher-modules -t 30
[Sun Aug  8 20:14:38 2021 : 662534] speechd: Speech Dispatcher 0.8.8 starting
+ [ ! -f /home/me/snap/scummvm/x1/.config/scummvm/scummvm.ini ]
+ mkdir -p /home/me/snap/scummvm/x1/.config/scummvm/
+ echo [scummvm]\naspect_ratio=true\n
+ echo [cloud]\nrootpath=/home/me/snap/scummvm/current/.local/share/scummvm
+ [ ! -f /home/me/snap/scummvm/x1/.config/scummvm/.added-games-bundle ]
+ touch /home/me/snap/scummvm/x1/.config/scummvm/.added-games-bundle
+ grep -E comi|drascula|dreamweb|lure|myst|queen|sky|sword /home/me/snap/scummvm/x1/.config/scummvm/scummvm.ini
+ /snap/scummvm/x1/bin/scummvm -p /usr/share/scummvm/ --recursive --add
si_init_perfcounters: max_sh_per_se = 2 not supported (inaccurate performance counters)
X Error:  BadAlloc
  Request Major code 146 ()
  Request Minor code 2
  Error Serial #104
  Current Serial #105
+ exec /snap/scummvm/x1/bin/scummvm
si_init_perfcounters: max_sh_per_se = 2 not supported (inaccurate performance counters)
X Error:  BadAlloc
  Request Major code 146 ()
  Request Minor code 2
  Error Serial #104
  Current Serial #105

@AlanGriffiths
Copy link
Contributor

@lelecanfora thanks for trying that. It is hard to tell what is happening here: I wouldn't expect X Error: BadAlloc before exec /snap/scummvm/x1/bin/scummvm. Also, I would expect the error you quoted originally to also be after exec /snap/scummvm/x1/bin/scummvm.

I'll have to look more closely at the snap recipe. Could you do a couple of things?

  1. With the original, unhacked snap installed post the console log leading up to /usr/share/libdrm/amdgpu.ids: No such file or directory
  2. Post the output of snap connections scummvm

Thanks again for your help in investigating this problem.

This issue was closed.
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

Successfully merging a pull request may close this issue.

2 participants