Closed MortalP0ison closed 6 months ago
no clue, looks like an issue on your end tho
Like which one? @vaxerski
dont ping me for no reason pls
looks like wayland itself is having a hard time. But I've never seen this so I can't help much.
Sorry for pinging you. Do you think it is a wayland problem? Should I post the problem in wayland communities?
I have no clue what kind of problem this is, honestly. Looks like wayland dying, but it's just certain apps. You may ask around wayland devs, but I have no clue.
I've been researching, and it seems to be a Wayland issue. Although I'm not as certain as you are, could you recommend another display server protocol besides Wayland? I'd like to test and install it to see if it resolves the problem. Afterward, I can report back whether that was the solution or not.
wayland is not a display server, it's just a protocol.
If you want a different wayland implementation, KDE, Gnome, Sway are three.
True, my mistake. I will change to Sway. I will reply here ASAP if it's solving the error or not. Don't close until I will have an answer, please. Thank you.
Hey, I just tried Plasma and it seems everything is working fine (I mean, I can't trigger the windows closing when I start two machines in VirtualBox at the same time, for example). So, I don't know what is happening. Do you think it can affect the rice that I'm using?
https://github.com/prasanthrangan/hyprdots
I don't think so, but I would like your opinion, please. Thank you.
EXACT same issue for me, been using hyprland with no issues for months, this only started happening after the most recent update
ill be on application and suddenly it closes, all other open applications except terminal are also closed and cannot be reopened without a reboot
EXACT same issue for me, been using hyprland with no issues for months, this only started happening after the most recent update
ill be on application and suddenly it closes, all other open applications except terminal are also closed and cannot be reopened without a reboot
What are your system specs?
if possible, provide an ASan trace: https://wiki.hyprland.org/Crashes-and-Bugs/#building-the-wayland-stack-with-asan
I think the important one was asan.log.3296. I hope I did correctly. I just open Netbeans and other java applications and it just quit me from the Hyprland to the TTY.
Unfortunately, I couldn't open virtutalbox (this is a trigger that I know) to log with ASan (because as is in the documentation, it is not possible to open some apps in that 'mode').
Thank you.
hell yea thats a proper log, thanks. Will fix in a sec.
aw fuck yea I see it, it's a typical oopsie from me.
Hahah I'm just wondering why it happens to some of us and not to everyone
fixed the UAF above. Check with that one. If you still have issues, try ASan again, this might be multiple bugs.
Hahah I'm just wondering why it happens to some of us and not to everyone
It's a memory bug and when you have memory bugs vastly different things can happen depending on the hardware.
I have attempted to open NetBeans and other applications that might trigger the error, but unsurprisingly, I can't open them (obviously, with ASan). However, the problem still occurs: If I start a machine in VirtualBox and another one at the same time, it closes all the applications except Firefox and the terminal.
Below is the core dump. However, how can we attempt to trigger the error since NetBeans will not open for ASan?
Tue 2024-02-20 13:45:06 -05 18093 1000 1000 SIGABRT none /usr/lib/drkonqi -
Tue 2024-02-20 13:45:07 -05 17963 1000 1000 SIGABRT none /usr/bin/krita -
Tue 2024-02-20 13:45:49 -05 19109 1000 1000 SIGABRT none /usr/lib/virtualbox/VirtualBox -
coredumpctl info 19109
PID: 19109 (VirtualBox)
UID: 1000 (pois0n)
GID: 1000 (pois0n)
Signal: 6 (ABRT)
Timestamp: Tue 2024-02-20 13:45:49 -05 (17min ago)
Command Line: /usr/lib/virtualbox/VirtualBox
Executable: /usr/lib/virtualbox/VirtualBox
Control Group: /user.slice/user-1000.slice/session-2.scope
Unit: session-2.scope
Slice: user-1000.slice
Session: 2
Owner UID: 1000 (pois0n)
Boot ID: b1555b3b29404449ab92cb5f83b611f0
Machine ID: 1a3542789b7249db9d2f9774b6a62a4b
Hostname: pois0n
Storage: none
Message: Process 19109 (VirtualBox) of user 1000 terminated abnormally without generating a coredump.
❯ coredumpctl debug 19109
PID: 19109 (VirtualBox)
UID: 1000 (pois0n)
GID: 1000 (pois0n)
Signal: 6 (ABRT)
Timestamp: Tue 2024-02-20 13:45:49 -05 (17min ago)
Command Line: /usr/lib/virtualbox/VirtualBox
Executable: /usr/lib/virtualbox/VirtualBox
Control Group: /user.slice/user-1000.slice/session-2.scope
Unit: session-2.scope
Slice: user-1000.slice
Session: 2
Owner UID: 1000 (pois0n)
Boot ID: b1555b3b29404449ab92cb5f83b611f0
Machine ID: 1a3542789b7249db9d2f9774b6a62a4b
Hostname: pois0n
Storage: none
Message: Process 19109 (VirtualBox) of user 1000 terminated abnormally without generating a coredump.
Coredump entry has no core attached (neither internally in the journal nor externally on disk).
yeah that's the annoying part of ASan. I've never tried this, but what if you recompile wayland and install it while hyprland is running on ASan? It should allow newly spawned apps to use ASan-free libwayland while hyprland stays on asan'd
If I understand that, I can do that. However, I'm not sure if I'm following the procedure correctly. If I run Hyprland in ASan, am I correct in understanding that I should not compile Wayland while Hyprland is running in ASan? But once I am in Hyprland, running in ASan, should I then open a terminal within Hyprland to compile Wayland?
yeah launch hyprland with asan and then inside hyprland compile no-asan wayland and install it
I've just started Hyprland with ASan enabled, without involving Wayland directly. After Hyprland launched, I opened a terminal and executed the following commands:
meson ./build --prefix=/usr --buildtype=release
sudo ninja -C build install
I believe this setup configures Wayland without ASan, right? However, even after these steps, I'm unable to open VirtualBox or any applications that could trigger the error. Any ideas?
Btw, do you think you can catch the error with the VBox logs?
that was a random shot in the dark, if it didnt work that sucks
one thing I will note is clean the build dir first (rm -rf ./build
) as some flags might persist
Btw, do you think you can catch the error with the VBox logs?
Nope, I am not a vbox dev
I did the rm -rf ./build but it says that does not exist. For that reason I just run the meson and after ninja. I was saying to you about VBox logs because it can show why is crashing, but I'm not sure about it. The problem is that we can't trigger the problem if we will not be able to open at least VBox or Opera in Hyprland + Walynd - ASan mode.
Is there other debugger like ASan? We can try prob other way...
Not that I am aware of. Valgrind is for memory leaks mostly + it's so slow it wont run hl. You can try finding one, though...
Do you think we can run VirtualBox in headless mode? It's an idea that came to my mind just now...
no clue
I'm trying to run with valgrind, but it returns an error about ASan. I have good specs, so, I don't know if you said that valgrind won't run because valgrind itself or because resources? 🤔. If so, can you explain me and I'll run with Valgrind? It returns an error with LD_PRELOAD
valgrind runs only without asan
So, I need uninstall ASan? When the hyprland is compiling, I see some ASan parameters. How can I just run or compile without ASan?
The instructions I sent have "undo" instructions at the bottom. You need to clean recompile hyprland and wayland without ASan flags.
Hey, after several things, I was be able to run valgrind with Hyprland. Obviously, it was too slow but I think it can be good to find the error. I would like also to create a guide to run valgrind + hyprland :).
I'm attaching the error log:
I have triggered the error with VirtualBox. Hope it helps. Let me know, please. Thank you!
Edit: I'm trying to get with other ways, and right now with dmesg I just get this when I start two machines at the same time in VirtualBox for example:
[ 92.649143] hid-generic 0003:2516:01C1.000F: hiddev106,hidraw14: USB HID v1.01 Device [Coolermaster HAF700] on usb-0000:00:14.0-12.4.2/input0
[ 92.702497] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 92.702555] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 92.702671] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 92.702732] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 92.713940] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 92.713996] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 92.722372] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 92.722423] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 92.850865] hid-sensor-hub 0003:2516:01C1.000F: hiddev106,hidraw14: USB HID v1.01 Device [Coolermaster HAF700] on usb-0000:00:14.0-12.4.2/input0
[ 92.870708] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 92.870772] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 92.941157] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 92.941218] [drm:drm_new_set_master] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 98.371333] systemd-journald[852]: /var/log/journal/1a3542789b7249db9d2f9774b6a62a4b/user-1000.journal: Journal file uses a different sequence number ID, rotating.
[ 1052.960717] SUPR0GipMap: fGetGipCpu=0x1b
[ 1053.782328] ------------[ cut here ]------------
[ 1053.782331] WARNING: CPU: 14 PID: 13887 at /var/lib/dkms/vboxhost/7.0.14_OSE/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:564 rtR0MemObjLinuxApplyPageRange+0x6b/0xa0 [vboxdrv]
[ 1053.782354] Modules linked in: snd_seq_dummy snd_hrtimer snd_seq hid_sensor_hub snd_usb_audio btusb btrtl btintel btbcm snd_usbmidi_lib btmtk snd_ump snd_rawmidi snd_seq_device bluetooth ecdh_generic mc mousedev joydev xt_conntrack xt_MASQUERADE nf_conntrack_netlink xt_addrtype nft_compat br_netfilter bridge stp llc overlay nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables libcrc32c vfat fat intel_rapl_msr intel_rapl_common intel_uncore_frequency intel_uncore_frequency_common iwlmvm x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel snd_sof_pci_intel_tgl snd_sof_intel_hda_common soundwire_intel snd_sof_intel_hda_mlink soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_sof_utils snd_soc_hdac_hda kvm mac80211 snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi libarc4 soundwire_generic_allocation irqbypass soundwire_bus rapl snd_hda_codec_realtek
[ 1053.782373] intel_cstate snd_soc_core snd_hda_codec_generic snd_hda_codec_hdmi ledtrig_audio snd_compress ac97_bus snd_pcm_dmaengine snd_hda_intel r8169 snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec iwlwifi snd_hda_core realtek mdio_devres snd_hwdep snd_pcm iTCO_wdt snd_timer intel_pmc_bxt iTCO_vendor_support mei_me libphy snd cfg80211 mei i2c_i801 soundcore spi_nor mtd intel_uncore i2c_smbus spi_intel_pci spi_intel intel_lpss_pci intel_lpss rfkill idma64 acpi_tad acpi_pad intel_hid wmi_bmof gigabyte_wmi mac_hid sparse_keymap pcspkr fuse loop nfnetlink ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 dm_crypt cbc encrypted_keys trusted asn1_encoder tee vboxnetflt(OE) vboxnetadp(OE) vboxdrv(OE) pkcs8_key_parser usbhid nvidia_uvm(POE) nvidia_drm(POE) nvidia_modeset(POE) nvidia(POE) crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic gf128mul ghash_clmulni_intel sha512_ssse3 sha256_ssse3 sha1_ssse3 aesni_intel nvme crypto_simd nvme_core xhci_pci cryptd nvme_auth xhci_pci_renesas video
[ 1053.782395] wmi dm_mod i2c_dev crypto_user
[ 1053.782397] CPU: 14 PID: 13887 Comm: EMT-0 Tainted: P OE 6.7.5-arch1-1 #1 32ac08bf335c0e36bba629af337d0f9b5fa2013e
[ 1053.782403] Hardware name: Gigabyte Technology Co., Ltd. Z790 AORUS ELITE AX/Z790 AORUS ELITE AX, BIOS FHc 11/09/2023
[ 1053.782404] RIP: 0010:rtR0MemObjLinuxApplyPageRange+0x6b/0xa0 [vboxdrv]
[ 1053.782416] Code: 83 ff 40 74 25 48 89 c7 48 21 f7 48 85 d2 75 1c 48 89 f8 0f 1f 00 48 89 c6 48 89 cf e8 0e b9 6d df 90 31 c0 5d c3 cc cc cc cc <0f> 0b f6 c2 01 75 15 48 f7 d0 48 89 c7 48 21 f7 48 81 e7 00 f0 ff
[ 1053.782416] RSP: 0018:ffffbefd09ccbd10 EFLAGS: 00010246
[ 1053.782417] RAX: 00000002cc740000 RBX: ffff9f766d94bf58 RCX: ffff9f766d94bf50
[ 1053.782418] RDX: 0000000000000161 RSI: 000fffffffffffff RDI: 0000000000000040
[ 1053.782418] RBP: ffffbefd09ccbd10 R08: ffffbefd211a1000 R09: ffff9f77a623abe8
[ 1053.782419] R10: ffffbefd211a1000 R11: 0000000000000000 R12: 0000000000000001
[ 1053.782419] R13: ffffffffc43b16b0 R14: ffffbefd20fea000 R15: ffffbefd09ccbdd8
[ 1053.782420] FS: 000078be70dff6c0(0000) GS:ffff9f947f980000(0000) knlGS:0000000000000000
[ 1053.782420] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1053.782421] CR2: 00005cc7a90a8680 CR3: 000000036623a000 CR4: 0000000000f50ef0
[ 1053.782421] PKRU: 55555554
[ 1053.782422] Call Trace:
[ 1053.782423] <TASK>
[ 1053.782423] ? rtR0MemObjLinuxApplyPageRange+0x6b/0xa0 [vboxdrv 0cc3312511c2e3db4c3ebb44493344b007f565b3]
[ 1053.782435] ? __warn+0x81/0x130
[ 1053.782438] ? rtR0MemObjLinuxApplyPageRange+0x6b/0xa0 [vboxdrv 0cc3312511c2e3db4c3ebb44493344b007f565b3]
[ 1053.782449] ? report_bug+0x171/0x1a0
[ 1053.782452] ? handle_bug+0x3c/0x80
[ 1053.782454] ? exc_invalid_op+0x17/0x70
[ 1053.782455] ? asm_exc_invalid_op+0x1a/0x20
[ 1053.782457] ? __pfx_rtR0MemObjLinuxApplyPageRange+0x10/0x10 [vboxdrv 0cc3312511c2e3db4c3ebb44493344b007f565b3]
[ 1053.782468] ? rtR0MemObjLinuxApplyPageRange+0x6b/0xa0 [vboxdrv 0cc3312511c2e3db4c3ebb44493344b007f565b3]
[ 1053.782478] __apply_to_page_range+0x3cf/0x900
[ 1053.782481] rtR0MemObjNativeProtect+0x80/0xc0 [vboxdrv 0cc3312511c2e3db4c3ebb44493344b007f565b3]
[ 1053.782491] VBoxHost_RTR0MemObjProtect+0x8b/0xc0 [vboxdrv 0cc3312511c2e3db4c3ebb44493344b007f565b3]
[ 1053.782504] supdrvIOCtl+0x2cad/0x31b0 [vboxdrv 0cc3312511c2e3db4c3ebb44493344b007f565b3]
[ 1053.782515] VBoxDrvLinuxIOCtl_7_0_14+0x169/0x260 [vboxdrv 0cc3312511c2e3db4c3ebb44493344b007f565b3]
[ 1053.782524] __x64_sys_ioctl+0x94/0xd0
[ 1053.782526] do_syscall_64+0x61/0xe0
[ 1053.782528] ? exc_page_fault+0x7f/0x180
[ 1053.782529] entry_SYSCALL_64_after_hwframe+0x6e/0x76
[ 1053.782530] RIP: 0033:0x78be851814ff
[ 1053.782553] Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 18 48 8b 44 24 18 64 48 2b 04 25 28 00 00
[ 1053.782553] RSP: 002b:000078be70dfdd20 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 1053.782554] RAX: ffffffffffffffda RBX: 0000000000000030 RCX: 000078be851814ff
[ 1053.782555] RDX: 000078bdcc2a1610 RSI: 0000000000005684 RDI: 0000000000000007
[ 1053.782555] RBP: 000078be70dfdd80 R08: 0000000000000000 R09: 000078be70dfdc00
[ 1053.782555] R10: 000078bdcc2a1610 R11: 0000000000000246 R12: 000078be6a938727
[ 1053.782556] R13: 0000000000000000 R14: 00005b436f302a60 R15: 0000000000000000
[ 1053.782557] </TASK>
[ 1053.782557] ---[ end trace 0000000000000000 ]---
[ 1053.789897] vboxdrv: 00000000d6b2aa83 VMMR0.r0
[ 1054.213306] vboxdrv: 00000000ac8568cc VBoxDDR0.r0
I don't see any errors with hyprland in the valgrind log, though worth noting it's so huge I might've missed something.
Next time you are using vg to find memory issues, use
valgrind --leak-check=full --track-origins=yes --show-leak-kinds=none --error-limit=no --trace-children=no --log-file="/tmp/vg.log" ./build/Hyprland
and a debug build of hyprland. It will output the log to /tmp/vg.log
and only print memory faults and not stupid "possibly leaked"
Nice! Now I've used that and this is the log:
What I tried to do: 1) Open two machines of virtualbox (Crash) 2) Open Opera (It wouldn't open because the step 1). After, reboot.
odd that there is no crash in the vg log... 🤔
although this:
Syscall param writev(vector[0]) points to uninitialised byte(s)
sounds like UB. I'll ask on irc as its in wlroots
rest looks normal
Sure, if there's anything else I can try with Valgrind, just let me know. Something strange is happening: when the applications are closed, you can run commands like opera, virtualbox, or similar in the terminal, but it seems like they do nothing at all—no output, no action
I've asked on wlroots IRC but not much constructive has come out of it.
It might be the nvidia 0 reallocs - but I'd put that more on the side of "nvidia being nvidia"
the last error in xcb was brushed off.
So, from me, there isn't much more to be done here. I can't help here, nobody seems to be able to reproduce it, and no faults on hyprland's side seem to be happening.
IMO the most suspicious thing is the writev call. You can try sway-git (maybe its a recent wlroots regression?) but honestly I am lost
I really love Hyprland. If you want, I can try to trigger the other error I'm aware of, which occurs with a file upload selector in the Opera browser. However, switching to Sway makes me somewhat sad. Interestingly, everything else seems to be working fine. Let me install VMware and see if that makes a difference. Just a question: Do you think the problem could be with VirtualBox itself, or do you not think so?
Hey, I tried with VMware, and everything is working fine (two or multiple machines at the same time). I will use VMware from now on. Thank you for the help. I think it's not necessary to say, but it is important to mention: you are doing an amazing job!
I have no clue what's going on here, genuinely.
No worries. We will see what's going on, but for now, everyone who has the same problem (not many people) can just use VMware; everything is fine. Could you please close this ticket? Thank you for the help!
I'll leave it open as the issue isn't fixed technically, I'll just rename it more specific
Hey Vaxry, I've asked yesterday also in the VBox forums and it seems a problems with VirtualBox.
https://forums.virtualbox.org/viewtopic.php?t=111129&sid=6d2af2d310fdbf5b02fb92045369fa77
Also, I've been using the file picker in Opera and other features that previously caused the app to close, and it no longer does so. This improvement is likely due to the fix for the Use-After-Free (UAF). It seems you've already addressed it, which is great! :100:
oh, that sounds great. I'll close then. Cheers.
Hyprland Version
hyprland 0.35.0-2
```sh hyprland, built from branch main at commit b9c1414f25bfe6972d1996b79566f63c215ec78a dirty (border: fix missed translate by offset). Date: Sat Dec 23 10:11:26 2023 Tag: v0.33.1-79-gb9c1414f flags: (if any) debug ```Bug or Regression?
Bug
Description
Hello, I’ve encountered an unusual problem, and I’m not sure if it’s related to Hyprland or EndeavourOS. My setup includes an NVIDIA RTX 4090 and I’m running Hyprland on EndeavourOS. I can open applications and they work normally, but specific actions cause issues. For example, in Opera, when I attempt to open a file selection dialog or use drag-and-drop features, the application unexpectedly closes. This issue isn’t limited to Opera; it also affects other applications like Google Chrome and Java apps, but not my terminal windows or Firefox. Additionally, when I try to open virtual machines in VirtualBox, it triggers a stack trace. Here are the details of the stack trace.
To open again all the applications, I need reboot the system.
How to reproduce
For example, in Opera, when I attempt to open a file selection dialog or use drag-and-drop features, the application unexpectedly closes. This issue isn’t limited to Opera; it also affects other applications like Google Chrome and Java apps, but not my terminal windows or Firefox. Additionally, when I try to open virtual machines in VirtualBox, it triggers a stack trace. Here are the details of the stack trace.
Crash reports, logs, images, videos
journalctl -b -1
coredumpctl
coredumpctl info 253214