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

[Bug]: Hyprland Plugin Bar #2634

Open
3 of 5 tasks
m24ih opened this issue Nov 24, 2024 · 5 comments
Open
3 of 5 tasks

[Bug]: Hyprland Plugin Bar #2634

m24ih opened this issue Nov 24, 2024 · 5 comments
Labels
bug Something isn't working cannot-reproduce Bug cannot be reproduced

Comments

@m24ih
Copy link

m24ih commented Nov 24, 2024

Preflight Checklist

  • I use the latest version of YouTube Music (Application).
  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.
  • I understand that th-ch/youtube-music has NO affiliation with Google or YouTube

YouTube Music (Application) Version

3.6.2

Checklists

What operating system are you using?

Other Linux

Operating System Version

Fedora 41 + Hyprland

What CPU architecture are you using?

x64

Last Known Working YouTube Music (Application) version

No response

Reproduction steps

When i use hyprland as window manager for fedora, if i click 'Plugins' bar on the navigation bar it crashes. When i switch to Gnome DE, plugin bar works as expected.

Expected Behavior

The Plugin bar opens

Actual Behavior

Checking for beta autoupdate feature for deb/rpm distributions
Found package-type: rpm
[YTMusic] i18n loaded
[YTMusic] Loading all plugins
[YTMusic] Plugin precise-volume::backend executed at 3.25ms
[YTMusic] Plugin lyrics-genius::backend executed at 3.38ms
[YTMusic] Plugin discord::backend executed at 0.80ms
[YTMusic] Plugin adblocker::backend executed at 1.49ms
[YTMusic] Plugin api-server::backend executed at 2.90ms
[YTMusic] Plugin "synced-lyrics::menu" loaded
[YTMusic] Plugin "precise-volume::menu" loade
d
[YTMusic] Plugin "lyrics-genius::menu" loaded
[YTMusic] Plugin "discord::menu" loaded
[YTMusic] Plugin "api-server::menu" loaded
[YTMusic] Plugin "adblocker::menu" loaded
[YTMusic] Plugin "synced-lyrics::menu" loaded
[YTMusic] Plugin "precise-volume::menu" loaded
[YTMusic] Plugin "lyrics-genius::menu" loaded
[YTMusic] Plugin "discord::menu" loaded
[YTMusic] Plugin "api-server::menu" loaded
[YTMusic] Plugin "adblocker::menu" loaded
[YTMusic] Plugin "synced-lyrics::menu" loaded
[YTMusic] Plugin "precise-volume::menu" loaded
[YTMusic] Plugin "lyrics-genius::menu" loaded
[YTMusic] Plugin "discord::menu" loaded
[YTMusic] Plugin "api-server::menu" loaded
[YTMusic] Plugin "adblocker::menu" loaded
Checking for update
[1]    559262 illegal hardware instruction (core dumped)  youtube-music

This is the output when i open app through the terminal

Enabled plugins

[YTMusic] i18n loaded
[YTMusic] Loading all plugins
[YTMusic] Plugin precise-volume::backend executed at 3.25ms
[YTMusic] Plugin lyrics-genius::backend executed at 3.38ms
[YTMusic] Plugin discord::backend executed at 0.80ms
[YTMusic] Plugin adblocker::backend executed at 1.49ms
[YTMusic] Plugin api-server::backend executed at 2.90ms
[YTMusic] Plugin "synced-lyrics::menu" loaded
[YTMusic] Plugin "precise-volume::menu" loaded
[YTMusic] Plugin "lyrics-genius::menu" loaded
[YTMusic] Plugin "discord::menu" loaded
[YTMusic] Plugin "api-server::menu" loaded
[YTMusic] Plugin "adblocker::menu" loaded
[YTMusic] Plugin "synced-lyrics::menu" loaded
[YTMusic] Plugin "precise-volume::menu" loaded
[YTMusic] Plugin "lyrics-genius::menu" loaded
[YTMusic] Plugin "discord::menu" loaded
[YTMusic] Plugin "api-server::menu" loaded
[YTMusic] Plugin "adblocker::menu" loaded
[YTMusic] Plugin "synced-lyrics::menu" loaded
[YTMusic] Plugin "precise-volume::menu" loaded
[YTMusic] Plugin "lyrics-genius::menu" loaded
[YTMusic] Plugin "discord::menu" loaded
[YTMusic] Plugin "api-server::menu" loaded
[YTMusic] Plugin "adblocker::menu" loaded

Additional Information

No response

@m24ih
Copy link
Author

m24ih commented Nov 24, 2024

Update:
When i tried with .appimage version, the plugins bar opens as expected
Update 2:
And also .flatpak version just works perfectly. Only problem is .rpm version.

@h-banii
Copy link
Contributor

h-banii commented Nov 24, 2024

Interesting, I don't have this problem on Hyprland+NixOS (master version)

@biguard1
Copy link

biguard1 commented Dec 2, 2024

Same here on Arch Linux+Hyprland, I installed from AUR via yay, and when I'm launching with auto/wayland ozone-platform-hint flag, when I'm clicking on plugins, It crashes with the same message. On xwayland and with .flatpak, It works fine

Checking for beta autoupdate feature for deb/rpm distributions
Found package-type: deb
[YTMusic] i18n загружен
[YTMusic] Загружаем все плагины
[YTMusic] Плагин sponsorblock::backend загружен за 3.06мс
[YTMusic] Плагин discord::backend загружен за 0.51мс
[YTMusic] Плагин adblocker::backend загружен за 1.13мс
[YTMusic] Плагин api-server::backend загружен за 2.85мс
[YTMusic] Плагин "discord::menu" загружен
[YTMusic] Плагин "api-server::menu" загружен
[YTMusic] Плагин "ambient-mode::menu" загружен
[YTMusic] Плагин "adblocker::menu" загружен
[YTMusic] Плагин "discord::menu" загружен
[YTMusic] Плагин "api-server::menu" загружен
[YTMusic] Плагин "ambient-mode::menu" загружен
[YTMusic] Плагин "adblocker::menu" загружен
[YTMusic] Плагин "discord::menu" загружен
[YTMusic] Плагин "api-server::menu" загружен
[YTMusic] Плагин "ambient-mode::menu" загружен
[YTMusic] Плагин "adblocker::menu" загружен
Checking for update
Update for version 3.6.2 is not available (latest version: 3.6.2, downgrade is disallowed).
checkForUpdatesAndNotify called, downloadPromise is null
[1]    4049 illegal hardware instruction (core dumped)  youtube-music --ozone-platform-hint=auto

Mine fastfetch

    コンピューター
┌──────────────────────────────────────────┐
   OS : Arch Linux x86_64
   Kernel : Linux 6.12.1-arch1-1
   Packages : 772 (pacman), 10 (flatpak-system), 36 (flatpak-user)
   Display : 2560x1440 @ 165 Hz (as 2048x1152) in 27" [External]
   Display : 1920x1080 @ 60 Hz in 22" [External]
   WM : Hyprland (Wayland)
   Terminal : kitty 0.37.0
└──────────────────────────────────────────┘
   : b_guard@bguard
┌──────────────────────────────────────────┐
   CPU : Intel(R) Core(TM) i5-14600KF
   GPU : GeForce RTX 3070 Lite Hash Rate
   GPU Driver : nvidia (proprietary) 565.57.01
  ﬙ Memory : 3.16 GiB / 31.15 GiB (10%)
  󱦟 OS Age  : 2 days
  󱫐 Uptime  : 4 mins
└──────────────────────────────────────────┘

@h-banii
Copy link
Contributor

h-banii commented Dec 2, 2024

I just tried both youtube-music and youtube-music-bin from the AUR and I could not reproduce the bug. I also tried the .rpm on a Fedora Server 41 with Hyprland using qemu and no problems as well.

The bug seems to only happen on certain hardware (judging by the error message). Maybe I could reproduce this on qemu if I disable some CPU flags?

here's my /proc/cpuinfo for reference
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 165
model name	: Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz
stepping	: 5
microcode	: 0xfc
cpu MHz		: 2800.711
cache size	: 12288 KB
physical id	: 0
siblings	: 12
core id		: 0
cpu cores	: 6
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 22
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts vnmi pku ospke md_clear flush_l1d arch_capabilities
vmx flags	: vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs pml ept_violation_ve ept_mode_based_exec
bugs		: spectre_v1 spectre_v2 spec_store_bypass swapgs itlb_multihit srbds mmio_stale_data retbleed eibrs_pbrsb gds bhi
bogomips	: 5799.77
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:

OBS.: I think the ozone-platform-hint is already set to auto by default

youtube-music/src/index.ts

Lines 115 to 116 in f84e77e

// Ozone platform hint: Required for Wayland support
app.commandLine.appendSwitch('ozone-platform-hint', 'auto');

@biguard1
Copy link

biguard1 commented Dec 2, 2024

I have ozone-platform-hint enabled for all applications to auto using env on hyprland config, but I tried to remove it, and for some reason it launched in xwayland (maybe some configs from hyprdots that I missed), and I just added it for clarity

And here's my /proc/cpuinfo
processor	: 19
vendor_id	: GenuineIntel
cpu family	: 6
model		: 183
model name	: Intel(R) Core(TM) i5-14600KF
stepping	: 1
microcode	: 0x12b
cpu MHz		: 3999.116
cache size	: 24576 KB
physical id	: 0
siblings	: 20
core id		: 31
cpu cores	: 14
apicid		: 62
initial apicid	: 62
fpu		: yes
fpu_exception	: yes
cpuid level	: 32
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect user_shstk avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi vnmi umip pku ospke waitpkg gfni vaes vpclmulqdq rdpid movdiri movdir64b fsrm md_clear serialize arch_lbr ibt flush_l1d arch_capabilities
vmx flags	: vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_violation_ve ept_mode_based_exec tsc_scaling usr_wait_pause
bugs		: spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb rfds bhi
bogomips	: 6991.00
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:

UPDATE: Here's comparison of flags

Flags comparison
Flag i5-10400F i5-14600KF
fpu
vme
de
pse
tsc
msr
pae
mce
cx8
apic
sep
mtrr
pge
mca
cmov
pat
pse36
clflush
dts
acpi
mmx
fxsr
sse
sse2
ss
ht
tm
pbe
syscall
nx
pdpe1gb
rdtscp
lm
constant_tsc
art
arch_perfmon
pebs
bts
rep_good
nopl
xtopology
nonstop_tsc
cpuid
aperfmperf
pni
pclmulqdq
dtes64
monitor
ds_cpl
vmx
est
tm2
ssse3
sdbg
fma
cx16
xtpr
pdcm
pcid
sse4_1
sse4_2
x2apic
movbe
popcnt
tsc_deadline_timer
aes
xsave
avx
f16c
rdrand
lahf_lm
abm
3dnowprefetch
cpuid_fault
epb
ssbd
ibrs
ibpb
stibp
ibrs_enhanced
tpr_shadow
flexpriority
ept
vpid
ept_ad
fsgsbase
tsc_adjust
bmi1
avx2
smep
bmi2
erms
invpcid
mpx
rdseed
adx
smap
clflushopt
intel_pt
xsaveopt
xsavec
xgetbv1
xsaves
dtherm
ida
arat
pln
pts
vnmi
pku
ospke
md_clear
flush_l1d
arch_capabilities
tsc_known_freq
clwb
sha_ni
split_lock_detect
user_shstk
avx_vnni
hwp
hwp_notify
hwp_act_window
hwp_epp
hwp_pkg_req
hfi
umip
waitpkg
gfni
vaes
vpclmulqdq
rdpid
movdiri
movdir64b
fsrm
serialize
arch_lbr
ibt
VMX flags comparison
VMX flag i5-10400F i5-14600KF
vnmi
preemption_timer
posted_intr
invvpid
ept_x_only
ept_ad
ept_1gb
flexpriority
apicv
tsc_offset
vtpr
mtf
vapic
ept
vpid
unrestricted_guest
vapic_reg
vid
ple
shadow_vmcs
pml
ept_violation_ve
ept_mode_based_exec
tsc_scaling
usr_wait_pause

@JellyBrick JellyBrick added bug Something isn't working cannot-reproduce Bug cannot be reproduced labels Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cannot-reproduce Bug cannot be reproduced
Projects
None yet
Development

No branches or pull requests

4 participants