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

Signal crashes (doesn't open) | Ubuntu 24.04 with AMD Radeon™ gives "Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)" #6855

Closed
2 tasks done
SamuelMarks opened this issue Apr 7, 2024 · 13 comments

Comments

@SamuelMarks
Copy link

Using a supported version?

  • I have searched searched open and closed issues for duplicates.
  • I am using Signal-Desktop as provided by the Signal team, not a 3rd-party package.

Overall summary

Tried upgrading to signal-desktop (7.4.0) over (7.3.1); same error. Running latest Ubuntu 24.04 pre-release.

Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)

Steps to reproduce

Open Signal

Expected result

Signal opens

Actual result

Trace/breakpoint trap (core dumped)

Screenshots

No response

Signal version

7.4.0

Operating system

Ubuntu 24.04

Version of Signal on your phone

No response

Link to debug log

signal.stdout.txt
signal.stderr.txt

@trevor-signal
Copy link
Contributor

@SamuelMarks thanks for this report. Does this only occur in Ubuntu 24? Are other Electron-based apps affected?

@SamuelMarks
Copy link
Author

@trevor-signal Just Signal. Opened VSCode and Codium both work fine. Happy to try a different app also just tell me which

@trevor-signal
Copy link
Contributor

@SamuelMarks thanks. Can you try starting it with the --disable-gpu flag?

@SamuelMarks
Copy link
Author

Both --no-sandbox --no-gpu and --no-gpu gives:

ac: Unknown GPU, using 0 for raster_config
Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)
[165017:0412/183642.235712:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=139
[165017:0412/183642.235729:FATAL:gpu_data_manager_impl_private.cc(448)] GPU process isn't usable. Goodbye.
Trace/breakpoint trap (core dumped)

@ayumi-signal
Copy link
Contributor

Sorry it's still happening-- can you confirm the command line flag was --disable-gpu?

If it's still crashing with that, could you try Electron fiddle and set the electron version to ours which is 29.1.0
https://www.electronjs.org/fiddle

Then electron 29.1.5 (newest version we use)

@SamuelMarks
Copy link
Author

Confirmed that --disable-gpu or --no-sandbox --disable-gpu give the same error.

Trying that fiddle:

Selecting previously unselected package electron-fiddle.
(Reading database ... 500800 files and directories currently installed.)
Preparing to unpack .../electron-fiddle_0.36.2_amd64.deb ...
Unpacking electron-fiddle (0.36.2) ...
Setting up electron-fiddle (0.36.2) ...
Processing triggers for gnome-menus (3.36.0-1.1ubuntu3) ...
Processing triggers for desktop-file-utils (0.27-2build1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
samuel@al:~$ electron-fiddle 
Creating main window
🏁 downloading 29.1.5 - 100%
Electron's autoUpdater does not support the 'linux' platform
[187635:0412/230644.966332:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[187635:0412/230648.720802:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[187635:0412/230653.905669:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
Content: 29-x-y template loading
Content: 29-x-y downloading template
Content: 29-x-y saving template to "/tmp/electron-fiddle-tCh1xK.zip"
Content: 29-x-y unzipping template
(node:187591) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `electron-fiddle --trace-deprecation ...` to show where the warning was created)
Content: 29-x-y unzipped; removing "/tmp/electron-fiddle-tCh1xK.zip"
Got Fiddle from "/home/samuel/.config/Electron Fiddle/Templates/electron-quick-start-29-x-y". Found: [ 'index.html', 'main.js', 'preload.js', 'renderer.js', 'styles.css' ]
Creating main window

(no errors)

@ayumi-signal
Copy link
Contributor

@SamuelMarks Thank you for checking and testing further, and sorry it's still not working. It might be a GPU driver error, but I'm not sure how to reproduce it locally. I'd suggest trying different versions of the amd gpu driver.

@Ismail-Benali
Copy link

@SamuelMarks It may be necessary to install or update AMD drivers to ensure compatibility with the latest version of Ubuntu.

@SamuelMarks
Copy link
Author

Figured out the solution, from
https://dev1galaxy.org/viewtopic.php?pid=46495#p46495

Turns out I needed to run:

sudo apt remove mesa-va-drivers
# Removes `va-driver-all` also

And now it works. Signal Desktop how I've missed you!

Copy link

stale bot commented Aug 19, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@spikebike
Copy link

I'm using the current signal desktop (as of Oct 24, 2024) and ubuntu 24.04.1. I installed ROCm (the AMD software for doing compute on a GPU) and now signal-desktop won't run. Same error:

Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)
[7953:1024/050136.532432:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=139

The "sudo apt remove mesa-va-drivers" does not work. I have a radeon 7800 XT.

@spikebike
Copy link

I found a work around:
$ LIBVA_DRIVER_NAME="vdpau" signal-desktop

@ebr
Copy link

ebr commented Oct 27, 2024

I found a work around: $ LIBVA_DRIVER_NAME="vdpau" signal-desktop

Thank you!
Confirmed this works on Framework16 (AMD Phoenix1 iGPU) / Ubuntu 24.04 with all FlatPak electron-based apps that were breaking with to the Unable to find target for this triple error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

6 participants