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

Anchor will not launch on Ubuntu or Pop!_OS 22.04 with Nvidia GPU #1298

Open
includenull opened this issue Aug 11, 2022 · 7 comments
Open

Anchor will not launch on Ubuntu or Pop!_OS 22.04 with Nvidia GPU #1298

includenull opened this issue Aug 11, 2022 · 7 comments
Assignees
Labels
anchor bug Something isn't working

Comments

@includenull
Copy link

includenull commented Aug 11, 2022

Description

Anchor will not launch on Pop!_OS 22.04 with Nvidia GPU. Previous versions of Pop OS (21.04 and 21.10) work OK, and 22.04 works fine with integrated Intel graphics. I have also tested multiple nvidia driver versions 470, 510 and 515.

I tested without the nvidia driver installed and it works correctly, so this seems to be related specifically to the nvidia driver on Pop OS 22.04.

Pop OS is based on Ubuntu so I also tested with Ubuntu 22.04 and it worked, but the test may have been inconclusive since I'm not sure I had the nvidia drivers installed during that test as I was using the live os. I will try that next.

I'm not sure if this is something that Anchor can fix, or if its something that Pop OS will need to resolve, or something I can fix like a dependency issue.

Tested systems:
AMD Ryzen 7 5800X + NVIDIA GTX 1650 (not working)
Intel i5-6600K + NVIDIA GTX 1050 Ti (not working)
Intel i5-6600K + Integrated graphics (working)
Intel i5-6600K + AMD RX 5500 XT (working)

Platform

Desktop (Linux)

Steps To Reproduce

  1. Use Pop!_OS 22.04 with Nvidia GPU
  2. Install Anchor
  3. Try to launch Anchor

Relevant log output

user@pop-os:~$ anchor-wallet 
06:04:40.767 › anchor: initializing
(node:4750) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `anchor-wallet --trace-deprecation ...` to show where the warning was created)
06:04:40.865 › anchor: ready
06:04:40.865 › enableSigningRequests
06:04:40.899 › tray menu: creating
06:04:40.915 › creating tray menu
06:04:40.915 › /opt/Anchor Wallet/resources/app.asar/renderer/assets/icons/png/[email protected]
06:04:40.935 › wallet ui: creating
06:04:40.962 › protocol handler: creating ui
06:04:40.962 › initial request false
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[4750:0811/060441.850370:FATAL:gpu_data_manager_impl_private.cc(415)] GPU process isn't usable. Goodbye.
Trace/breakpoint trap (core dumped)
kernel: [  109.829294] traps: Chrome_IOThread[5929] trap int3 ip:56153f3bfd18 sp:7f7d49bcf320 error:0 in anchor-wallet[56153f190000+626e000]

Contact Details

No response

Anything else?

No response

@includenull includenull added anchor bug Something isn't working labels Aug 11, 2022
@includenull
Copy link
Author

includenull commented Aug 11, 2022

Further research seems that there was a issue with Electron due to changes in Ubuntu, it was fixed in Electron 14 and backported to 13 electron/electron#31091 but I am not sure about 12, it doesn't seem so.

@includenull
Copy link
Author

I have also now confirmed that this error happens on Ubuntu 22.04 with Nvidia driver too.

@includenull includenull changed the title Anchor will not launch on Pop!_OS 22.04 with Nvidia GPU Anchor will not launch on Ubuntu or Pop!_OS 22.04 with Nvidia GPU Aug 11, 2022
@aaroncox
Copy link
Member

Further research seems that there was a issue with Electron due to changes in Ubuntu, it was fixed in Electron 14 and backported to 13 electron/electron#31091 but I am not sure about 12, it doesn't seem so.

Awesome, thanks for this bit - that should make resolving this (hopefully) easy.

I'll see if we can upgrade electron without breaking anything and get us off v12.

@aaroncox aaroncox self-assigned this Aug 11, 2022
@aaroncox
Copy link
Member

The upgrade to a higher version of Electron has proven to be somewhat problematic due to some dependencies that also need upgrading, as well as parts of the app that will need to be retrofitted. Sadly there are some breaking changes from v12 onwards, which is why we're still on v12.

I was hoping to be able to do a quick upgrade and things would just work, but unfortunately not the case. I'll keep this open as a reminder we need to go through these upgrades, but unfortunately for the next few releases we probably won't be able to get this resolved.

@stevang
Copy link

stevang commented Jan 4, 2023

Add Linux Mint 21.1 to the list. Any Update when a solution could be coming?

anchor-wallet
10:32:06.811 › anchor: initializing
(node:8421) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use anchor-wallet --trace-deprecation ... to show where the warning was created)
10:32:07.045 › anchor: ready
10:32:07.046 › enableSigningRequests
10:32:07.160 › tray menu: creating
10:32:07.199 › creating tray menu
10:32:07.200 › /opt/Anchor Wallet/resources/app.asar/renderer/assets/icons/png/[email protected]
10:32:07.242 › wallet ui: creating
10:32:07.301 › protocol handler: creating ui
10:32:07.301 › initial request false
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[8421:0104/103212.274003:FATAL:gpu_data_manager_impl_private.cc(415)] GPU process isn't usable. Goodbye.
Trace/Breakpoint ausgelöst (Speicherabzug geschrieben)

@aaroncox
Copy link
Member

aaroncox commented Jan 5, 2023

We just had a developer run into this issue yesterday, and discovered that starting the app with the --no-sandbox flag allows it to run. So when starting from the command line (or edit your shortcut to include this):

anchor-wallet --no-sandbox

@stevang
Copy link

stevang commented Jan 5, 2023

Thank you! its working again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
anchor bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants