Bug 432117

Summary: p-b-i host crashes when closing Chrome/Firefox on Wayland
Product: [Plasma] plasma-browser-integration Reporter: Ilya Bizyaev <bizyaev>
Component: generalAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ilya Bizyaev 2021-01-25 20:29:21 UTC
SUMMARY
On Wayland, when I close Chrome (with Wayland support enabled), somehow plasma-browser-integration-host crashes in Wayland code.


STEPS TO REPRODUCE
1. Log in to `Plasma ([Full] Wayland)`
2. Start Chrome: `google-chrome --enable-features=UseOzonePlatform --ozone-platform=wayland`
3. Close Chrome 

OBSERVED RESULT
DrKonqi says plasma-browser-integration-host crashed

EXPECTED RESULT
Nothing happens :D

SOFTWARE/OS VERSIONS
Operating System: openSUSE Leap 15.2
KDE Plasma Version: 5.20.90
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2


ADDITIONAL INFORMATION
Application: plasma-browser-integration-host (plasma-browser-integration-host), signal: Segmentation fault

[KCrash Handler]
#4  0x00007fd22738c2c9 in wl_map_insert_at () from /usr/lib64/libwayland-client.so.0
#5  0x00007fd227387ff6 in wl_proxy_destroy () from /usr/lib64/libwayland-client.so.0
#6  0x00007fd22bae66e5 in org_kde_plasma_virtual_desktop_destroy (org_kde_plasma_virtual_desktop=<optimized out>) at /usr/src/debug/kwayland-5.78.0-lp152.220.2.x86_64/build/src/client/wayland-plasma-virtual-desktop-client-protocol.h:337
#7  KWayland::Client::WaylandPointer<org_kde_plasma_virtual_desktop, org_kde_plasma_virtual_desktop_destroy>::release (this=0x559f41803cc0, this=0x559f41803cc0) at /usr/src/debug/kwayland-5.78.0-lp152.220.2.x86_64/src/client/wayland_pointer_p.h:39
#8  KWayland::Client::PlasmaVirtualDesktop::release (this=this@entry=0x559f418bb620) at /usr/src/debug/kwayland-5.78.0-lp152.220.2.x86_64/src/client/plasmavirtualdesktop.cpp:345
#9  0x00007fd22bae670c in KWayland::Client::PlasmaVirtualDesktop::~PlasmaVirtualDesktop (this=0x559f418bb620, __in_chrg=<optimized out>) at /usr/src/debug/kwayland-5.78.0-lp152.220.2.x86_64/src/client/plasmavirtualdesktop.cpp:335
#10 0x00007fd22bae67b9 in KWayland::Client::PlasmaVirtualDesktop::~PlasmaVirtualDesktop (this=0x559f418bb620, __in_chrg=<optimized out>) at /usr/src/debug/kwayland-5.78.0-lp152.220.2.x86_64/src/client/plasmavirtualdesktop.cpp:336
#11 0x00007fd22e016dab in QObjectPrivate::deleteChildren (this=0x559f417f16c0) at kernel/qobject.cpp:2104
#12 0x00007fd22e02175e in QObject::~QObject (this=<optimized out>, __in_chrg=<optimized out>) at kernel/qobject.cpp:1082
#13 0x00007fd22bae6419 in KWayland::Client::PlasmaVirtualDesktopManagement::~PlasmaVirtualDesktopManagement (this=0x559f418850d0, __in_chrg=<optimized out>) at /usr/src/debug/kwayland-5.78.0-lp152.220.2.x86_64/src/client/plasmavirtualdesktop.cpp:167
#14 0x00007fd22e016dab in QObjectPrivate::deleteChildren (this=0x559f4184fd70) at kernel/qobject.cpp:2104
#15 0x00007fd22e02175e in QObject::~QObject (this=<optimized out>, __in_chrg=<optimized out>) at kernel/qobject.cpp:1082
#16 0x00007fd230d98c53 in TaskManager::VirtualDesktopInfo::Private::~Private (this=0x559f4184f7a0, __in_chrg=<optimized out>) at /usr/src/debug/plasma5-workspace-5.20.90-lp152.573.1.x86_64/libtaskmanager/virtualdesktopinfo.cpp:47
#17 TaskManager::VirtualDesktopInfo::WaylandPrivate::~WaylandPrivate (this=0x559f4184f7a0, __in_chrg=<optimized out>) at /usr/src/debug/plasma5-workspace-5.20.90-lp152.573.1.x86_64/libtaskmanager/virtualdesktopinfo.cpp:200
#18 TaskManager::VirtualDesktopInfo::WaylandPrivate::~WaylandPrivate (this=0x559f4184f7a0, __in_chrg=<optimized out>) at /usr/src/debug/plasma5-workspace-5.20.90-lp152.573.1.x86_64/libtaskmanager/virtualdesktopinfo.cpp:200
#19 0x00007fd230d97d9e in TaskManager::VirtualDesktopInfo::~VirtualDesktopInfo (this=0x559f4183d790, __in_chrg=<optimized out>) at /usr/src/debug/plasma5-workspace-5.20.90-lp152.573.1.x86_64/libtaskmanager/virtualdesktopinfo.cpp:426
#20 0x00007fd230d97dc9 in TaskManager::VirtualDesktopInfo::~VirtualDesktopInfo (this=0x559f4183d790, __in_chrg=<optimized out>) at /usr/src/debug/plasma5-workspace-5.20.90-lp152.573.1.x86_64/libtaskmanager/virtualdesktopinfo.cpp:429
#21 0x00007fd22e016dab in QObjectPrivate::deleteChildren (this=0x559f41807710) at kernel/qobject.cpp:2104
#22 0x00007fd22e02175e in QObject::~QObject (this=<optimized out>, __in_chrg=<optimized out>) at kernel/qobject.cpp:1082
#23 0x00007fd230d9a5a9 in TaskManager::WaylandTasksModel::~WaylandTasksModel (this=0x559f4180f7f0, __in_chrg=<optimized out>) at /usr/src/debug/plasma5-workspace-5.20.90-lp152.573.1.x86_64/libtaskmanager/waylandtasksmodel.h:53
#24 0x00007fd230d9e5b6 in TaskManager::WindowTasksModel::Private::~Private (this=0x559f41802100, __in_chrg=<optimized out>) at /usr/src/debug/plasma5-workspace-5.20.90-lp152.573.1.x86_64/libtaskmanager/windowtasksmodel.cpp:63
#25 0x00007fd230d9e76a in TaskManager::WindowTasksModel::Private::~Private (this=0x559f41802100, __in_chrg=<optimized out>) at /usr/src/debug/plasma5-workspace-5.20.90-lp152.573.1.x86_64/libtaskmanager/windowtasksmodel.cpp:90
#26 QScopedPointerDeleter<TaskManager::WindowTasksModel::Private>::cleanup (pointer=0x559f41802100) at /usr/include/qt5/QtCore/qscopedpointer.h:60
#27 QScopedPointer<TaskManager::WindowTasksModel::Private, QScopedPointerDeleter<TaskManager::WindowTasksModel::Private> >::~QScopedPointer (this=0x559f41835388, __in_chrg=<optimized out>) at /usr/include/qt5/QtCore/qscopedpointer.h:107
#28 TaskManager::WindowTasksModel::~WindowTasksModel (this=0x559f41835370, __in_chrg=<optimized out>) at /usr/src/debug/plasma5-workspace-5.20.90-lp152.573.1.x86_64/libtaskmanager/windowtasksmodel.cpp:90
#29 0x00007fd230d9e799 in TaskManager::WindowTasksModel::~WindowTasksModel (this=0x559f41835370, __in_chrg=<optimized out>) at /usr/src/debug/plasma5-workspace-5.20.90-lp152.573.1.x86_64/libtaskmanager/windowtasksmodel.cpp:92
#30 0x00007fd22e016dab in QObjectPrivate::deleteChildren (this=0x559f41808a40) at kernel/qobject.cpp:2104
#31 0x00007fd22e02175e in QObject::~QObject (this=<optimized out>, __in_chrg=<optimized out>) at kernel/qobject.cpp:1082
#32 0x00007fd22d5b8138 in __run_exit_handlers () from /lib64/libc.so.6
#33 0x00007fd22d5b818a in exit () from /lib64/libc.so.6
#34 0x00007fd22d5a0351 in __libc_start_main () from /lib64/libc.so.6
#35 0x0000559f4080e45a in _start () at ../sysdeps/x86_64/start.S:120
[Inferior 1 (process 15494) detached]
Comment 1 Ilya Bizyaev 2021-01-25 20:36:03 UTC
Apparently same happens with Firefox (launched normally).
Comment 2 Kai Uwe Broulik 2021-01-25 20:36:39 UTC

*** This bug has been marked as a duplicate of bug 431633 ***