Bug 501005 - Use of TOR with Wayland results in unstable desktop environment.
Summary: Use of TOR with Wayland results in unstable desktop environment.
Status: NEEDSINFO BACKTRACE
Alias: None
Product: kwin
Classification: Plasma
Component: xwayland (show other bugs)
Version: 6.3.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-03 13:37 UTC by panorain
Modified: 2025-03-28 01:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
backtrace of kwin_wayland (17.26 KB, text/plain)
2025-03-15 05:28 UTC, panorain
Details
My second attempt at providing kwin_wayland gdb backtrace. (13.45 KB, text/plain)
2025-03-28 01:31 UTC, panorain
Details

Note You need to log in before you can comment on or make changes to this bug.
Description panorain 2025-03-03 13:37:36 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
Since recently machine locks up when using TOR to search the internet for images when then opening in new tab. I have not found another application or clearnet Firefox which causes this behavior yet. 

Same as https://bugs.kde.org/show_bug.cgi?id=493827

STEPS TO REPRODUCE
1. Start Wayland Plasma session 
2. Start TOR browser
2. Use search engine to search for images of 'trees' (for example).
3. Open a tab or two maybe three of "trees".
4. Intermittent but very likely to freeze up the machine.

OBSERVED RESULT
Plasma desktop freezes machine hard. Requiring pressing ctrl + alt + SysRq + REISUB to powercycle.

EXPECTED RESULT
Ability to consistently use the TOR browser to navigate websites and searches without locking up machine.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250301
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.5-1.gff9b7ff-default (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6600K CPU @ 3.50GHz
Memory: 15.6 GiB of RAM
Graphics Processor: AMD Radeon RX 640


ADDITIONAL INFORMATION
Some SystemD journal snippet output from the afflicted prior boot:

kwin_wayland[1991]: kwin_xwl: Could not create a source from 0x562c2a567720 0
kwin_wayland_wrapper[2088]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
kernel: sysrq: This sysrq operation is disabled.
kernel: sysrq: Emergency Sync
lines 33437-33495/33495 (END)
Comment 1 panorain 2025-03-03 13:44:36 UTC
I did not remove:
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

I apologize, can you please remove this from the initial report?
Comment 2 fanzhuyifan 2025-03-03 17:52:00 UTC
When your system freezes, could you use ctrl+alt+f3/f2 to switch to a VT (You may need to do ctrl + alt + SysRq, and R first), and check

1. Is any process using 100% of cpu?
2. Attach a gdb instance to kwin, and attach the outputs of `thread apply all backtrace full`?

Thanks!
Comment 3 panorain 2025-03-04 00:28:23 UTC
(In reply to fanzhuyifan from comment #2)
> When your system freezes, could you use ctrl+alt+f3/f2 to switch to a VT
No, frozen solid, no VT available that way.

> (You may need to do ctrl + alt + SysRq, and R first), and check
I can try, I think not possible.
> 
> 1. Is any process using 100% of cpu?
Not prior to crash and how can this be shown after crash (top/htop etc)?

> 2. Attach a gdb instance to kwin, and attach the outputs of `thread apply
> all backtrace full`?
> 
Ok, trying to do this suggestion ^.
> Thanks!
Here am new to this, I apologize but am trying thanks for response. Was able to SSH into remote host (affilcted machine) from a client machine. Then used 'tmux' on host and 'tmux a' on client (seems to work). 

Been reading > https://community.kde.org/Guidelines_and_HOWTOs/Debugging/Debugging_with_GDB
Can you suggest a specific area to follow perhaps?

:-> top | grep kwin
   5163 panorain      -2   0 3020188 350068 269816 S 1.982 2.143  10:13.40 kwin_wa+ 

:~> gdb kwin 5163
GNU gdb (GDB; openSUSE Tumbleweed) 15.2
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.opensuse.org/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
kwin: No such file or directory.
Attaching to process 5163
ptrace: Operation not permitted.
/home/panorain/5163: No such file or directory.
(gdb) 

I created a directory below:
:~> pwd
/home/panorain
drwxr-xr-x. 1 panorain panorain    0 Mar  3 18:12 5163

passed '$ gdb kwin 5163' again and this now below: 
"/home/panorain/5163" is not a core dump: file format not recognized

Seems some incorrect with steps I am doing? By chance can you offer advice to proceed better? I apologize for lack of knowledge here with this.

-Greatest Hopes
Comment 4 fanzhuyifan 2025-03-04 01:45:45 UTC
sshing into the frozen host is great!

You would probably need to do `sudo -E gdb kwin_wayland -p <pid of process>`. Then press Ctrl-C, then run
`set logging file ~/backtrace.txt`
`set logging enabled on` 
and then
`thread apply all backtrace full`
Comment 5 panorain 2025-03-15 05:28:16 UTC
Created attachment 179409 [details]
backtrace of kwin_wayland

After resume from suspend seems more likely of kwin_wayland freezing machine.
Comment 6 fanzhuyifan 2025-03-18 13:29:06 UTC
(In reply to panorain from comment #5)
> Created attachment 179409 [details]
> backtrace of kwin_wayland
> 
> After resume from suspend seems more likely of kwin_wayland freezing machine.

The backtrace seems to be from kwin_wayland_wrapper. Could you get a backtrace from kwin_wayland? Thanks
Comment 7 panorain 2025-03-28 01:31:36 UTC
Created attachment 179800 [details]
My second attempt at providing kwin_wayland gdb backtrace.

Please do let me know if this is in fact the correct kwin_wayland gdb backtrace information or not. Regards