Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#79063 - [bitwarden] [electron24] crash when enabling IME support on wayland

Attached to Project: Arch Linux
Opened by BryanLiang (BryanLiang) - Tuesday, 11 July 2023, 13:36 GMT
Last edited by Alexander Epaneshnikov (alex19EP) - Sunday, 23 July 2023, 13:37 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Caleb Maclennan (alerque)
Alexander Epaneshnikov (alex19EP)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

My DE is KDE Plasma 5.27.6 on wayland.

I run the Bitwarden with these two flags `--ozone-platform-hint=auto --enable-wayland-ime`, which make it run on wayland mode and enable IME support for Electron on wayland. The application crash few seconds after the window pop up. I download the official appimage from github, which crash too. But the reasons are different. The electron version of appimage is 24.1.1, which includes a bug from chromium(https://bugs.chromium.org/p/chromium/issues/detail?id=1431532). This bug has been fixed in 24.5.1 and the electron24 version of Arch repository is 24.6.2, which includes the fix accordingly. So I do not know if the bug is related to Electron or Bitwarden itself.


Additional info:
* package version(s) 2023.5.1-1
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:

1. Open the terminal
2. run the command `bitwarden-desktop --ozone-platform-hint=auto --enable-wayland-ime`

Here is the log: https://pastebin.com/TTS6mnbY
This task depends upon

Closed by  Alexander Epaneshnikov (alex19EP)
Sunday, 23 July 2023, 13:37 GMT
Reason for closing:  Upstream
Additional comments about closing:  sorry. I don't see how we can fix this. and given the fragility of the bitwarden codebase, I won't update the electron version until the binary clients do.
Comment by Toolybird (Toolybird) - Wednesday, 12 July 2023, 07:22 GMT
> terminated by signal SIGILL (Illegal instruction)

That means your CPU tried to execute an instruction it doesn't understand. What CPU hardware model is this?
Comment by BryanLiang (BryanLiang) - Wednesday, 12 July 2023, 07:44 GMT
My CPU model name is AMD Ryzen 7 5800H with Radeon Graphics.

Here is the output from /proc/cpuinfo

processor : 0
vendor_id : AuthenticAMD
cpu family : 25
model : 80
model name : AMD Ryzen 7 5800H with Radeon Graphics
stepping : 0
microcode : 0xa50000b
cpu MHz : 3213.454
cache size : 512 KB
physical id : 0
siblings : 16
core id : 0
cpu cores : 8
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 16
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd cppc arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip pku ospke vaes vpclmulqdq rdpid overflow_recov succor smca fsrm
bugs : sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass
bogomips : 6387.54
TLB size : 2560 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
Comment by Toolybird (Toolybird) - Wednesday, 12 July 2023, 07:52 GMT
> CPU model name is AMD Ryzen 7 5800H

So, pretty recent. Doesn't make much sense..

Do you get a coredump?

$ coredumpctl list

If yes, can you post a backtrace with debug symbols? It might shed some light.

It's usually as simple as:

$ coredumpctl gdb (then answer y when it asks "Enable debuginfod for this session?")
(gdb) set logging enabled
(gdb) bt (or bt full)

Then post gdb.txt
Comment by BryanLiang (BryanLiang) - Wednesday, 12 July 2023, 08:07 GMT
Here is the gdb.txt.
   gdb.txt (4.2 KiB)
Comment by Toolybird (Toolybird) - Wednesday, 12 July 2023, 23:35 GMT
Seems to be going wrong somewhere inside the chromium wayland code. Lets see if the PM's have any ideas...but to be honest, it's hard to see this being a simple Arch packaging issue. You might have to report it upstream, but because the whole electron/chromium source base is a complex morass, good luck with that! Plus, it could easily have already been fixed in more recent electron25/chromium. We will probably end up closing this as "upstream".

Loading...