Closed iodream closed 1 month ago
Can you provide a screenshot of the issue?
Screenshot:
ps aux | grep Telegram
ps aux | grep Telegram
:
[iod ~/Downloads/Telegram]$ ps aux | grep Telegram
iod 1666 1.2 1.0 1730788 167820 ? Ssl 02:51 0:00 /usr/bin/konsole --workdir /home/iod/Downloads/Telegram
iod 2202 38.5 4.5 1760300 703904 pts/1 Sl+ 02:52 0:05 ./Telegram
iod 2287 28.7 1.2 69273456 193944 pts/1 Sl+ 02:52 0:01 /home/iod/Downloads/Telegram/Telegram -webviewhelper /tmp/fQLp23f0WjpC2rVP2gxLYbWb-TD-webview-%1
iod 2384 0.0 0.0 9488 6168 pts/2 S+ 02:52 0:00 grep Telegram
I also have a webkit backtrace if needed.
webkit process crash definitely couldn't be fixed on tdesktop side, you have to report that to webkit instead. The best could be done theoretically is somehow detecting the crash and showing "WebView has crashed". Practically, I'm not aware of any webkitgtk API that would inform about that. Do you have any ideas?
Sorry, i was hoping the bug was on Telegram's side because other apps using WebkitGtk such as Epiphany do work.
The bug also happens in Telegram flatpak as well.
Practically, I'm not aware of any webkitgtk API that would inform about that.
Looks like I found one
I've filed a bug report on Webkit's side, hopefully someone takes a look at it: https://bugs.webkit.org/show_bug.cgi?id=280239
I just did some additional testing: Telegram version 4.9.7 works with mini apps on Wayland. But 4.16.2 broke it. So it looks like some change on Telegram's side did help the crash.
There's quite a lot of versions between 4.9.7 and 4.16.2. And this doesn't really mean that's a Telegram fault. Maybe Telegram does something valid that is broken on webkit side.
I've got the new webkitgtk and the bug seem to be that webkitgtk is no longer capable of running without EGL. If I run __EGL_VENDOR_LIBRARY_FILENAMES= epiphany
, epiphany hangs even worse than tdesktop (whole UI). It wasn't happening with webkitgtk 2.44.
I think you chose the wrong component in your report, it should be WebkitGTK, not WebKit2.
The mini apps worked fine for 2 months, now after updating my machine they're broken again. Once again I've come to the conclusion that the best thing to do is never update arch.
Well, other distros will get it too. And if webkitgtk won't fix it in 2 years then even Ubuntu LTS will get it. Which is very possible given that it doesn't seem to be a priority for webkitgtk. I'm starting to think that wayland support for web bots is just not feasible and maybe all the code for that should be deleted and the label that Wayland is unsupported returned.
The only thing stopping me from doing that is the fact that the version of webkitgtk is under control in flatpak and snap so they still work.
Steps to reproduce
Open a mini app such as @findminiappbot (https://t.me/findminiappbot)
Expected behaviour
Window opens and functions
Actual behaviour
Window is blank forever with a spinning circle underneath. In background, WebKitWebProcess crashes.
Operating system
Arch linux, Kde Plasma 6.1.5 Wayland
Version of Telegram Desktop
5.5.5
Installation source
Static binary from official website
Crash ID
No response
Logs
Log from terminal:
This does work on X11 and XWayland