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

tdesktop is crashing after closing DurgerKing webapp #26978

Closed
artemiialessandrini opened this issue Oct 28, 2023 · 19 comments
Closed

tdesktop is crashing after closing DurgerKing webapp #26978

artemiialessandrini opened this issue Oct 28, 2023 · 19 comments

Comments

@artemiialessandrini
Copy link

artemiialessandrini commented Oct 28, 2023

Steps to reproduce

  1. Run ./Telegram -platform xcb
  2. Open official DurgerKing bots WebApp by MENU Button
  3. Click randomly, opening and closing the WebApp 2-3 times

Expected behaviour

WebApp is closing and Telegram is alive

Actual behaviour

WebApp is closing but Telegram crashes

Operating system

20.04.1-Ubuntu SMP

Version of Telegram Desktop

Version 4.10.5 beta

Installation source

Static binary from official website

Crash ID

02ec3710-e07e-487f-03f588aa-f4bf8459

Logs

qt.waylandcompositor.hardwareintegration: Failed to initialize EGL display. Could not get EglDisplay for window.

(Telegram:54123): GLib-GIO-WARNING **: 19:05:38.474: Your application does not implement g_application_activate() and has no handlers connected to the 'activate' signal.  It should do one of these.

(Telegram:54123): Gdk-CRITICAL **: 19:05:38.527: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(Telegram:54123): Gdk-CRITICAL **: 19:05:38.527: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(Telegram:54123): Gdk-CRITICAL **: 19:05:38.527: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(Telegram:54123): Gdk-CRITICAL **: 19:05:38.527: gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)' failed

(Telegram:54123): Gdk-CRITICAL **: 19:05:38.527: gdk_monitor_get_workarea: assertion 'GDK_IS_MONITOR (monitor)' failed

(Telegram:54123): Gdk-CRITICAL **: 19:05:38.527: gdk_monitor_get_workarea: assertion 'GDK_IS_MONITOR (monitor)' failed
WaylandCompositor requires eglBindWaylandDisplayWL, eglUnbindWaylandDisplayWL and eglQueryWaylandBuffer.
Nested Wayland compositor could not initialize EGL
Segmentation fault (core dumped)

echo $XDG_SESSION_TYPE: x11

@artemiialessandrini artemiialessandrini changed the title tdesktop creashed after closing DurgerKing webapp tdesktop is crashing after closing DurgerKing webapp Oct 28, 2023
@ilya-fedin
Copy link
Contributor

Does it crash with GDK_GL=disable?

Copy link

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@artemiialessandrini
Copy link
Author

Still fails, while running ./Telegram GDK_GL=disable

@ilya-fedin
Copy link
Contributor

no, it should be GDK_GL=disable ./Telegram

@shalmeo
Copy link

shalmeo commented Nov 18, 2023

Telegram Desktop Version 4.11.7
OS: Manjaro Linux x86_64
DE: GNOME 45.1

In my case Web App takes forever to load
image

And in the logs we can see
image

I’ll highlight the most important thing, at the moment you click on the web app
Gdk-Message: 02:02:35.304: Error 71 (Protocol error) dispatching to Wayland display.

qt.waylandcompositor.hardwareintegration: Failed to initialize EGL display. Could not get EglDisplay for window.

(Telegram:61878): GLib-GIO-WARNING **: 02:02:35.874: Your application does not implement g_application_activate() and has no handlers connected to the 'activate' signal

Gdk-Message: 02:02:35.988: Error 71 (Protocol error) dispatching to Wayland display.

Was there a similar issue? Give me a link or help solve the problem please

@ilya-fedin
Copy link
Contributor

ilya-fedin commented Nov 18, 2023

@shalmeo it's not loading, it's crashed. tdesktop doesn't have crash handling for webview so the window doesn't react.

@shalmeo
Copy link

shalmeo commented Nov 19, 2023

@shalmeo it's not loading, it's crashed. tdesktop doesn't have crash handling for webview so the window doesn't react.

Do you have any ideas to solve the problem?

Do I need to open an issue to solve my problem? I just really need in webapp in my system

@ilya-fedin
Copy link
Contributor

The only environment where webapps are known to work without problems on Linux is KDE X11.

@artemiialessandrini
Copy link
Author

no, it should be GDK_GL=disable ./Telegram

Also crashing, in the same way.
After clicking Telegram WebApp MainButton with: (Telegram:9222): Gdk-CRITICAL **: 14:20:23.373: gdk_monitor_get_workarea: assertion 'GDK_IS_MONITOR (monitor)' failed WaylandCompositor requires eglBindWaylandDisplayWL, eglUnbindWaylandDisplayWL and eglQueryWaylandBuffer. Nested Wayland compositor could not initialize EGL Segmentation fault (core dumped)

@ilya-fedin
Copy link
Contributor

ilya-fedin commented Nov 19, 2023

@artemiialessandrini are you sure Telegram is not already running when you launch it via command? As it will just focus the window of already running instance otherwise.

@artemiialessandrini
Copy link
Author

@artemiialessandrini are you sure Telegram is not already running when you launch it via command? As it will just focus the window of already running instance otherwise.

Well, I have other instances of Telegram installed by snap, apt, but it's not running.

@artemiialessandrini
Copy link
Author

The only environment where webapps are known to work without problems on Linux is KDE X11.

I'm doing telegram bot with a webapp development, would you suggest switching to KDE X11 in that matter as a workaround?

@ilya-fedin
Copy link
Contributor

Well, I have other instances of Telegram installed by snap, apt, but it's not running.

I mean the binary could be running. People often just close window instead of quitting via tray icon and then ensuring it's actually not running (there are reports Telegram can get some deadlock and not quit actually) via process list (e.g. ps aux | grep Telegram).

@ilya-fedin
Copy link
Contributor

I'm doing telegram bot with a webapp development, would you suggest switching to KDE X11 in that matter as a workaround?

Yes.

@ilya-fedin
Copy link
Contributor

@artemiialessandrini can you check whether LIBGL_ALWAYS_SOFTWARE=1 helps?

Copy link

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@artemiialessandrini
Copy link
Author

@artemiialessandrini can you check whether LIBGL_ALWAYS_SOFTWARE=1

Running with LIBGL_ALWAYS_SOFTWARE=1 flag didn't help

@ilya-fedin
Copy link
Contributor

@artemiialessandrini is it still happening with latest version? if yes, can you provide a new crash id?

Copy link

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants