telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
25.24k stars 5.01k forks source link

Miniaps not working on Ubuntu Linux #27980

Closed webportnoy closed 1 month ago

webportnoy commented 1 month ago

Steps to reproduce

  1. Starting official miniapp example https://t.me/DurgerKingBot
  2. Press "Order food"

Expected behaviour

Open miniapp

Actual behaviour

Got black screen without any error messages Screenshot_20240527_132125

Operating system

Kubuntu 22.04, X11, KDE Plasma 5.24.7, Qt 5.15.3

Version of Telegram Desktop

5.0.2

Installation source

Static binary from official website

Crash ID

No response

Logs

No response

ilya-fedin commented 1 month ago

Does context menu appear if you right click? Please attach terminal output and log.txt.

webportnoy commented 1 month ago

Does context menu appear if you right click? Please attach terminal output and log.txt.

Context menu on right click is working. Active items in menu are "Reload" and "Inspect Element" Screenshot_20240527_134143

log.txt

Teminal: ~/soft/Telegram$ ./Telegram QPainter::begin: Paint device returned engine == 0, type: 2 QWidget::render: Cannot render with an inactive painter KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied Failed to create GBM buffer of size 384x590: Permission denied KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied Failed to create GBM buffer of size 384x590: Permission denied KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied Failed to create GBM buffer of size 1000x650: Permission denied

ilya-fedin commented 1 month ago

Do other webkitgtk-powered applications like epiphany work on your PC?

ilya-fedin commented 1 month ago

I bet NVIDIA driver breaks webkitgtk on your PC

[2024.05.27 13:38:33] OpenGL Renderer: NVIDIA GeForce GT 710/PCIe/SSE2
[2024.05.27 13:38:33] OpenGL Vendor: NVIDIA Corporation
[2024.05.27 13:38:33] OpenGL Version: 4.6.0 NVIDIA 470.239.06
webportnoy commented 1 month ago

Do other webkitgtk-powered applications like epiphany work on your PC?

Looks like it's not Screenshot_20240527_135252

ilya-fedin commented 1 month ago

mini apps use the same technology... if it is broken on your machine then they just won't work

ilya-fedin commented 1 month ago

I don't think anything is possible to do from tdesktop side on this... You likely need to replace your driver to nouveau to fix this.

webportnoy commented 1 month ago

I don't think anything is possible to do from tdesktop side on this... You likely need to replace your driver to nouveau to fix this.

Changed dirver to open source, and now everything is working. Thanks!