Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Snap version 0.6 fails to launch on Ubuntu 17.10 #35
Comments
|
You need a patched snapd - my guess is you do not? |
Raytar
commented
Nov 12, 2017
|
Ah, I guess that might be the problem. For the record, I have snapd 2.29.3. |
|
Looking more at this we're gonna need to add support to snapd for 32-bit drivers on Ubuntu too. I would assume this would launch and work without the proprietary drivers, but I mean, who wants to do that? Don't get me wrong, I'd still be hella interested to know if it does launch on open source drivers on Ubuntu! |
|
Out of curiosity, on the proprietary drivers, just to make sure Solus can see the NVIDIA, please try:
|
Raytar
commented
Nov 12, 2017
|
|
Oooo interesting. OK, change to
|
Raytar
commented
Nov 12, 2017
|
|
OK thats nasty, What is Also whats the listing for |
|
FWIW I can see the biarch code is deeply confused about what should be where :D |
Raytar
commented
Nov 12, 2017
•
|
Oh cool! So at least open source graphics work :D Would be interesting to see if Vulkan works there
|
Raytar
commented
Nov 12, 2017
|
this is what i get from vulkaninfo: https://pastebin.com/hCFQbbVh |
Raytar
commented
Nov 12, 2017
|
also this
|
|
Awesome - so at least vulkan works! So our TODO is initially to get LSI to understand how to deal with the 64-bit portion of NVIDIA drivers on multiarch systems. We'll also need to patch snapd to expose the 32-bit drivers and vulkan ICD on multiarch too in a consistent fashion. |
|
Oh I meant |
|
Ok so to debug this further I need:
|
Raytar
commented
Nov 12, 2017
|
From the Intel or Nvidia ? |
|
NVIDIA sorry |
Raytar
commented
Nov 12, 2017
|
ls -lRa /var/lib/snapd/lib/gl/
file /usr/lib64/lib{E,GL}*
|
|
blink does |
Raytar
commented
Nov 12, 2017
|
I assume you wanted them to be run in the linux-steam-integration bash prompt? |
|
right |
Raytar
commented
Nov 12, 2017
|
From regular shell:
|
|
OK can you ldd the glxgears binary again without LD_AUDIT this time? I think LSI blew a gasket somewhere |
Raytar
commented
Nov 12, 2017
|
Like this?
|
Raytar
commented
Nov 12, 2017
|
Not sure if it's relevant, but I also ran glxgears on the intel laptop, and it works when i use LD_AUDIT, but without it, I get the same error |
|
no i need the ldd on it in the shell
|
Raytar
commented
Nov 12, 2017
|
|
This is my local for an LD_AUDIT:
|
Raytar
commented
Nov 12, 2017
|
|
Ugly one here
|
Raytar
commented
Nov 12, 2017
|
Now glxgears starts, shall I send all of the output? |
|
Yes please pastebin! |
Raytar
commented
Nov 12, 2017
Raytar
commented
Nov 12, 2017
|
the error on the end is because I closed it |
|
Does this one work? testing if its actually LIBGL_DRIVERS_PATH |
Raytar
commented
Nov 12, 2017
|
yup. works fine |
Raytar
commented
Nov 12, 2017
|
Output if you need it:
|
|
And how about now:
|
Raytar
commented
Nov 12, 2017
|
yeah, still works |
|
o_O
|
Raytar
commented
Nov 12, 2017
|
still going strong! same output as before |
|
Ah ok. And if you remove the LD_LIBRARY_PATH? |
Raytar
commented
Nov 12, 2017
|
|
Aha! OK I think this is because your setup has the separate So - all we need now is 32-bit support! |
Raytar
commented
Nov 13, 2017
|
And that requires the snapd patches? |
|
It requires a new patch for snapd actually :) |
|
Right now our patches are just the biarch side, this is the multiarch side. Basically I wanna get Ubuntu systems to have |
added a commit
that referenced
this issue
Nov 13, 2017
Raytar
commented
Nov 13, 2017
|
Ok. Is there anything else you want me to check right now? If not, I think I'll go to bed :) |
|
Nah go on you can go bed :D Thanks for all the assistance! I'll make sure to help get 32-bit nvidia support into snapd so you'll be able to play with this properly soon :) |
Raytar
commented
Nov 13, 2017
|
Cool! I am very much a noob at this, but I think I'll try to get snapd compiled from source tomorrow so that I can help with testing the patches. Also thanks for all the great work you do for linux :) |
|
Sent the PR out: snapcore/snapd#4207 |
Raytar
commented
Nov 13, 2017
|
Ok. So here is what I have done:
This happens when I try to run it:
|
|
On the host side you need some new directories now:
These would be handled by the packaged snapd |
|
Also its |
Raytar
commented
Nov 13, 2017
|
Hmm. I am still not getting to the login ui. Is there anything I can do to verify that I have it set up correctly? |
|
Yeah you need the new snaps with the new directory support, sorry totally forgot.
|
Raytar
commented
Nov 13, 2017
|
|
Have you restarted apparmor stuff so that the profiles are loaded? Might need a reboot I'm not sure. If you |
|
Aha. That's certainly a difference.. ty. |
|
Yeah it turns out we're building our glibc at too high an ABI and we've dropped the global unversioned symbols (which'd default to the @2.0 symbol here) - I'm gonna fix that now and get new snaps out for you. Thanks for your patience and help!! |
Raytar
commented
Nov 13, 2017
|
Hey no problem man. Happy to help! |
|
Cooking now: $ readelf -Ws /var/cache/solbuild/unstable-x86_64/glibc/union/home/build/YPKG/root/glibc/install/usr/lib32/libpthread.so.0|grep pthread_setname_np
130: 00013610 326 FUNC GLOBAL DEFAULT 13 pthread_setname_np@@GLIBC_2.12
886: 00013610 326 FUNC GLOBAL DEFAULT 13 pthread_setname_npLooks much more promising! |
|
Stripping it appears to be the issue.. |
Raytar
commented
Nov 13, 2017
|
:/
Also ran this again: |
|
Argh. Guess I'll be installing Ubuntu then |
|
This looks like your root is trashed, see this in steam.sh:
Could you remove the existing eopkgs, and nuke your |
Raytar
commented
Nov 13, 2017
|
Didn't make any difference :( |
Raytar
commented
Nov 13, 2017
|
I will check if the newer snaps work on my laptop (intel graphics). Does that also need the snapd patches or is 2.29.3 good enough? |
|
I think 2.29.3 should be good |
Raytar
commented
Nov 13, 2017
|
So far so good on the laptop. It is updating steam now. One thing I have noticed is that the terms of service is displayed in a window on the laptop, whereas on the desktop it is displayed on the command line. |
|
Oh? So is Zenity failing then I wonder, look further back up in the log, I think you still have GL issues |
Raytar
commented
Nov 13, 2017
|
On the nvidia desktop this appears before the Terms of service:
|
|
OK so lets find out why it falls to xterm.. |
|
Aha! Because Zenity does fail. So your 64-bit drivers crapped |
|
|
Raytar
commented
Nov 13, 2017
|
|
Oh right, I need to get to grips with these paths.
|
Raytar
commented
Nov 13, 2017
|
|
Aha - getting somewhere!!
|
Raytar
commented
Nov 13, 2017
|
Raytar
commented
Nov 13, 2017
|
|
Host side:
whats the output? |
Raytar
commented
Nov 13, 2017
|
|
I wonder if the problem is our glibc is built with |
|
Aagh! I'm such an idiot, sorry. It's obvious, we updated glibc since your test and then broke it. |
|
Right I just restored the old glibc and I'll do a build now and get some new snaps for you (sorry) |
Raytar
commented
Nov 13, 2017
|
Still no graphical terms of service
aand still broken :(
So, earlier you said that stripping glibc might be a problem. Is that fixed now? |
|
I put the old glibc back... Can you try running Zenity again please? |
Raytar
commented
Nov 13, 2017
|
|
No I mean running zenity.. |
Raytar
commented
Nov 13, 2017
|
oh zenity works |
|
OK - so we're back to having 64-bit drivers working, which is where we wanted to be. Now back to:
|
Raytar
commented
Nov 13, 2017
|
I need to run it like this though
|
|
Sure, it doesn't know about those directories. :) |
Raytar
commented
Nov 13, 2017
|
Raytar
commented
Nov 13, 2017
|
|
What if you remove the LD_AUDIT part? |
Raytar
commented
Nov 13, 2017
|
Now it starts updating |
|
OK so there is something super wonky |
Raytar
commented
Nov 13, 2017
|
I am now logged into the steam client but if I understand correctly, this is without LSI? |
|
Yeah so shit is gonna hit the fan. Lemme patch LSI.. This is the bit that goes boom:
|
Raytar
commented
Nov 13, 2017
|
So I was just about to finish downloading a game... And then steam broke XD https://steamstat.us/ |
|
OH ok so its not just me then. XD
|
Raytar
commented
Nov 13, 2017
|
I now have Hand of Fate running in fullscreen with max settings and xbox 360 controller support |
|
Sure but the question is - why is the intercept thing cacking up |
|
Ah fuckin of course, the tls directory is separate |
|
If you're still willing...
|
|
Mildly hilarious fact, turns out LSI_DEBUG is helping it to crash. Doing a v5 which should just work ootb as long as no debugging is used ... |
Raytar
commented
Nov 14, 2017
|
Trying v5 ... |
|
@ikeydoherty Can we test those snap on other distro too? I want to test them on Fedora :) |
Raytar
commented
Nov 14, 2017
|
You would need a patched snapd if you are using proprietary graphics drivers. |
Raytar
commented
Nov 14, 2017
|
Gonna close this issue since it now works on both of my machines running Ubuntu. Maybe create a new issue to track which other distros work? |
Raytar
closed this
Nov 14, 2017
GloriousEggroll
commented
Dec 18, 2017
|
question - I have a friend who was having the same problem with his nvidia drivers, are these changes merged into master or should i make a patch from the full-nvidia-support branch commits? |

Raytar commentedNov 12, 2017
After downloading updates, it shows the message "glXChooseVisual failed" before I get to the login screen. The output on the command line is:
I am using proprietary nvidia drivers version 387.22 and I had to update snapd from the "Snappy Edge" ppa. Hope this can help!