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

Crash when opening webview inspector #28786

Open
mckoda09 opened this issue Dec 21, 2024 · 9 comments
Open

Crash when opening webview inspector #28786

mckoda09 opened this issue Dec 21, 2024 · 9 comments
Labels

Comments

@mckoda09
Copy link

Steps to reproduce

  1. Open Telegram Desktop
  2. Open any Mini App
  3. Rightclick on Mini App

Expected behaviour

Open a popup with Inspect Element option

Actual behaviour

app crash :)

Operating system

Arch Linux 6.12.5, Gnome on Wayland

Version of Telegram Desktop

5.9.0-1

Installation source

Other (unofficial) source

Crash ID

No response

Logs

virtual void QWaylandXdgPopupPrivate::xdg_popup_grab(QtWaylandServer::xdg_popup::Resource*, wl_resource*, uint32_t) Not implemented
Compositor doesn't support moving popups, relying on remapping
virtual void QWaylandXdgPopupPrivate::xdg_popup_destroy(QtWaylandServer::xdg_popup::Resource*) Not implemented
error in client communication (pid 163076)
Error 71 (Protocol error) dispatching to Wayland display.
@mckoda09 mckoda09 added the bug label Dec 21, 2024
@ilya-fedin
Copy link
Contributor

Provide a crash id (you must run the official static build for that)

@Aokromes
Copy link
Collaborator

plz enable beta, restart telegram and send crash id on next start and post id here.

@mckoda09
Copy link
Author

4012fb05-9464-4d3f-0debaf84-db61277d

@mckoda09
Copy link
Author

i also sent crash report

@ilya-fedin
Copy link
Contributor

yeah, the crash id has no sense without sending the report

@mckoda09
Copy link
Author

i sent crash report

@ilya-fedin
Copy link
Contributor

Oh well, it crashes deeply inside Qt:

Crash reason:  SIGSEGV /SEGV_MAPERR
Crash address: 0x8
Process uptime: not available

Thread 0 (crashed)
 0  Telegram!QWidgetWindow::handleMouseEvent(QMouseEvent*) [qscopedpointer.h : 112 + 0x0]
    rax = 0x0000000000000000   rdx = 0x0000625bbb130880
    rcx = 0x0000625bbe1f8b40   rbx = 0x00007ffddfe3bf60
    rsi = 0x00007ffddfe3b990   rdi = 0x00007ffddfe3b9a0
    rbp = 0x00007ffddfe3bbd0   rsp = 0x00007ffddfe3ba70
     r8 = 0x00007ffddfe3b998    r9 = 0x00007ffddfe3b990
    r10 = 0x0000000047393ab8   r11 = 0x00007e71d1db6be0
    r12 = 0x00007e71d1db6be0   r13 = 0x0000000000000000
    r14 = 0x0000000000000000   r15 = 0x00007e721335f230
    rip = 0x0000625bb669cfc3
    Found by: given as instruction pointer in context
 1  Telegram!QWidgetWindow::event(QEvent*) [qwidgetwindow.cpp : 299 + 0x8]
    rbx = 0x00007e71d1db6be0   rbp = 0x00007ffddfe3bd10
    rsp = 0x00007ffddfe3bbe0   r12 = 0x00007ffddfe3bf60
    r13 = 0x00007e7220a27200   r14 = 0x0000625bbf9f6674
    r15 = 0x00007ffddfe3bf60   rip = 0x0000625bbad60a2f
    Found by: call frame info
 2  Telegram!QApplicationPrivate::notify_helper(QObject*, QEvent*) [qapplication.cpp : 3296 + 0xc]
    rbx = 0x00007e71d1db6be0   rbp = 0x00007ffddfe3bd40
    rsp = 0x00007ffddfe3bd20   r12 = 0x00007ffddfe3bf60
    r13 = 0x00007e7220a27200   r14 = 0x0000625bbf9f6674
    r15 = 0x0000000000000005   rip = 0x0000625bbad519cb
    Found by: call frame info
 3  Telegram!Core::Sandbox::notify(QObject*, QEvent*) [sandbox.cpp : 589 + 0xe]
    rbx = 0x00007ffddfe3bf60   rbp = 0x00007ffddfe3bdb0
    rsp = 0x00007ffddfe3bd50   r12 = 0x00007ffddfe3c930
    r13 = 0x00007e71d1db6be0   r14 = 0x0000625bbf9f6674
    r15 = 0x0000000000000005   rip = 0x0000625bb7991806
    Found by: call frame info
 4  Telegram!QCoreApplication::notifyInternal2(QObject*, QEvent*) [qcoreapplication.cpp : 1168 + 0x13]
    rbx = 0x00007e71d1db6be0   rbp = 0x00007ffddfe3be50
    rsp = 0x00007ffddfe3bdc0   r12 = 0x00007ffddfe3bf60
    r13 = 0x00007ffddfe3bde0   r14 = 0x0000000000000001
    r15 = 0x00007e71d1db6be0   rip = 0x0000625bbb4dc29e
    Found by: call frame info
 5  Telegram!QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) [qguiapplication.cpp : 2454 + 0xf]
    rbx = 0x00007e72137a3600   rbp = 0x00007ffddfe3c160
    rsp = 0x00007ffddfe3be60   r12 = 0x0000000000000005
    r13 = 0x0000000000000000   r14 = 0x00007e7211da2450
    r15 = 0x00007e71d1db6be0   rip = 0x0000625bbb09b2cf
    Found by: call frame info
 6  Telegram!QtWayland::WindowSystemEventHandler::sendEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) [qwindowsysteminterface.cpp : 190 + 0x5]
    rbx = 0x00007e72137a3600   rbp = 0x00007ffddfe3c1f0
    rsp = 0x00007ffddfe3c170   r12 = 0x0000625bc0c857d8
    r13 = 0x0000000000000003   r14 = 0x00000000000000a4
    r15 = 0x00007e72137a3600   rip = 0x0000625bba5ca4d8
    Found by: call frame info
 7  Telegram!QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) [qwindowsysteminterface.cpp : 1110 + 0x9]
    rbx = 0x00007e72137a3600   rbp = 0x00007ffddfe3c240
    rsp = 0x00007ffddfe3c200   r12 = 0x0000625bc0c857d8
    r13 = 0x0000000000000003   r14 = 0x00000000000000a4
    r15 = 0x0000000000000000   rip = 0x0000625bbb0e9abc

Perhaps the only way to fix it is to patch Qt...

@ilya-fedin
Copy link
Contributor

@mckoda09 please make a better issue title, something like "Crash when opening webview inspector"

@mckoda09 mckoda09 changed the title Mini App crash Crash when opening webview inspector Dec 23, 2024
@soluchok
Copy link

soluchok commented Jan 2, 2025

I am getting the same issue when I click on the HTML select field inside the Mini App.

 Can't configure xdg_toplevel with an invalid size QSize(-1, -1)
virtual void QWaylandXdgPopupPrivate::xdg_popup_grab(QtWaylandServer::xdg_popup::Resource*, wl_resource*, uint32_t) Not implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants
@Aokromes @soluchok @ilya-fedin @mckoda09 and others