Signal-Desktop icon indicating copy to clipboard operation
Signal-Desktop copied to clipboard

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)"

Open SamuelMarks opened this issue 1 year ago • 9 comments

Using a supported version?

  • [X] I have searched searched open and closed issues for duplicates.
  • [X] 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

SamuelMarks avatar Apr 07 '24 01:04 SamuelMarks

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

trevor-signal avatar Apr 09 '24 01:04 trevor-signal

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

SamuelMarks avatar Apr 09 '24 02:04 SamuelMarks

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

trevor-signal avatar Apr 11 '24 16:04 trevor-signal

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)

SamuelMarks avatar Apr 12 '24 22:04 SamuelMarks

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)

ayumi-signal avatar Apr 12 '24 23:04 ayumi-signal

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)

SamuelMarks avatar Apr 13 '24 03:04 SamuelMarks

@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.

ayumi-signal avatar Apr 15 '24 20:04 ayumi-signal

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

Ismail-Benali avatar May 03 '24 00:05 Ismail-Benali

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!

SamuelMarks avatar May 17 '24 20:05 SamuelMarks

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.

stale[bot] avatar Aug 19 '24 02:08 stale[bot]