tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

tdesktop is crashing after closing DurgerKing webapp

Open artemiialessandrini opened this issue 1 year ago • 18 comments

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 avatar Oct 28 '23 17:10 artemiialessandrini

Does it crash with GDK_GL=disable?

ilya-fedin avatar Oct 29 '23 16:10 ilya-fedin

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[bot] avatar Nov 13 '23 00:11 github-actions[bot]

Still fails, while running ./Telegram GDK_GL=disable

artemiialessandrini avatar Nov 18 '23 21:11 artemiialessandrini

no, it should be GDK_GL=disable ./Telegram

ilya-fedin avatar Nov 18 '23 21:11 ilya-fedin

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

shalmeo avatar Nov 18 '23 23:11 shalmeo

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

ilya-fedin avatar Nov 18 '23 23:11 ilya-fedin

@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

shalmeo avatar Nov 19 '23 10:11 shalmeo

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

ilya-fedin avatar Nov 19 '23 12:11 ilya-fedin

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)

artemiialessandrini avatar Nov 19 '23 13:11 artemiialessandrini

@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.

ilya-fedin avatar Nov 19 '23 13:11 ilya-fedin

@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 avatar Nov 19 '23 13:11 artemiialessandrini

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?

artemiialessandrini avatar Nov 19 '23 13:11 artemiialessandrini

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 avatar Nov 19 '23 13:11 ilya-fedin

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 avatar Nov 19 '23 13:11 ilya-fedin

@artemiialessandrini can you check whether LIBGL_ALWAYS_SOFTWARE=1 helps?

ilya-fedin avatar Jan 15 '24 22:01 ilya-fedin

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[bot] avatar Jan 31 '24 00:01 github-actions[bot]

@artemiialessandrini can you check whether LIBGL_ALWAYS_SOFTWARE=1

Running with LIBGL_ALWAYS_SOFTWARE=1 flag didn't help

artemiialessandrini avatar Feb 08 '24 08:02 artemiialessandrini

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

ilya-fedin avatar Feb 08 '24 08:02 ilya-fedin

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[bot] avatar Feb 24 '24 00:02 github-actions[bot]