[plasmashell] [Bug 459368] Plasma very unstable when attached to docking station

2022-10-13 Thread ratijas
https://bugs.kde.org/show_bug.cgi?id=459368

--- Comment #17 from ratijas  ---
IIUC this issue is not only about KScreen OSD service, so it can't be closed as
completed/fixed just yet.

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 459368] Plasma very unstable when attached to docking station

2022-10-13 Thread ratijas
https://bugs.kde.org/show_bug.cgi?id=459368

--- Comment #16 from ratijas  ---
Git commit a917bf19436c0e86eb993fe89a0f1df536b8fdc6 by ivan tkachenko.
Committed on 13/10/2022 at 12:43.
Pushed by ratijas into branch 'Plasma/5.26'.

osd: Fix a crash when quitting from QML signal handler

kscreen_osd_service[9979]:
Object 0x55a9840ff5c0 destroyed while one of its QML signal handlers is in
progress.
Most likely the object was deleted synchronously (use
QObject::deleteLater() instead), or the application is running a nested event
loop.
This behavior is NOT supported!
qrc:/qml/OsdSelector.qml:102: function() { [native code] }

Call to quit() should be posted to an event loop to avoid destroying Osd
objects with their engines while a key press signal handler is still
running. Additional clean up must be performed to ensure that a map
does not contain dangling references, ans thus double call to hideOsd()
won't cause another crash either.

Also, don't bother hiding individual OSD instances if we are about to
quit anyway. That's what other code path with timer is [not] doing
already.
(cherry picked from commit 6ba043519e9834202fc062cbaf1a41f76f521730)

M  +5-5osd/osdmanager.cpp

https://invent.kde.org/plasma/kscreen/commit/a917bf19436c0e86eb993fe89a0f1df536b8fdc6

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 459368] Plasma very unstable when attached to docking station

2022-10-13 Thread ratijas
https://bugs.kde.org/show_bug.cgi?id=459368

--- Comment #15 from ratijas  ---
Git commit 6ba043519e9834202fc062cbaf1a41f76f521730 by ivan tkachenko.
Committed on 12/10/2022 at 15:20.
Pushed by ratijas into branch 'master'.

osd: Fix a crash when quitting from QML signal handler

kscreen_osd_service[9979]:
Object 0x55a9840ff5c0 destroyed while one of its QML signal handlers is in
progress.
Most likely the object was deleted synchronously (use
QObject::deleteLater() instead), or the application is running a nested event
loop.
This behavior is NOT supported!
qrc:/qml/OsdSelector.qml:102: function() { [native code] }

Call to quit() should be posted to an event loop to avoid destroying Osd
objects with their engines while a key press signal handler is still
running. Additional clean up must be performed to ensure that a map
does not contain dangling references, ans thus double call to hideOsd()
won't cause another crash either.

Also, don't bother hiding individual OSD instances if we are about to
quit anyway. That's what other code path with timer is [not] doing
already.

M  +5-5osd/osdmanager.cpp

https://invent.kde.org/plasma/kscreen/commit/6ba043519e9834202fc062cbaf1a41f76f521730

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 459368] Plasma very unstable when attached to docking station

2022-10-08 Thread Daniel Noga
https://bugs.kde.org/show_bug.cgi?id=459368

Daniel Noga  changed:

   What|Removed |Added

 CC||noga.d...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 459368] Plasma very unstable when attached to docking station

2022-09-27 Thread Iyán Méndez Veiga
https://bugs.kde.org/show_bug.cgi?id=459368

--- Comment #14 from Iyán Méndez Veiga  ---
This issue can be "minimized" if I turn off the laptop, plugged it to the
docking station and turn it on already attached. And it is "maximized" with hot
plugging. I also noticed that if the laptop is suspended and I attach it to the
docking station, it is not "aware" that the lid is off and the screen remains
on, while with Plasma 5.25, laptop would resume with the screen off and only
show in the external one(s).

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 459368] Plasma very unstable when attached to docking station

2022-09-21 Thread petrk
https://bugs.kde.org/show_bug.cgi?id=459368

--- Comment #13 from petrk  ---
(In reply to David Edmundson from comment #12)
> WIP at https://invent.kde.org/plasma/kscreen/-/merge_requests/132

I tried to recompile with this patch, turns out Arch Linux changed some
defaults in how it handles extracted sources since I last played with makepkg.
User error, disregard comment 5.

Anyways, patched for sure this time:


Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x7fcc2c3666cf in QWindow::setVisible (this=,
visible=false) at kernel/qwindow.cpp:623
Downloading 0.08 MB source file
/usr/src/debug/qtbase/src/gui/kernel/qwindow.cpp
623 d->setVisible(visible); 
[Current thread is 1 (Thread 0x7fcc27a0a840 (LWP 3795))]
(gdb) bt
#0  0x7fcc2c3666cf in QWindow::setVisible (this=,
visible=false)
at kernel/qwindow.cpp:623
#1  0x7fcc2bfc0381 in QtPrivate::QSlotObjectBase::call (a=, 
r=, this=, this=, r=, 
a=)
at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#2  doActivate (sender=0x55fad97e8a20, signal_index=0,
argv=0x7fffb50a0a20)
at kernel/qobject.cpp:3919
#3  0x7fcc2bfc0724 in QObject::destroyed (this=,
_t1=)
at .moc/moc_qobject.cpp:219
#4  0x7fcc2bfb6cec in QObject::~QObject (this=,
this=)
at kernel/qobject.cpp:1010
#5  0x7fcc2d28272a in KScreen::Output::~Output (this=, 
this=) at
/usr/src/debug/libkscreen-5.25.90/src/output.cpp:176
#6  QtSharedPointer::CustomDeleter::execute
(this=) at /usr/include/qt/QtCore/qsharedpointer_impl.h:187
#7  QtSharedPointer::ExternalRefCountWithCustomDeleter::deleter (self=)
at /usr/include/qt/QtCore/qsharedpointer_impl.h:205
#8  0x55fad8aadb59 in QtSharedPointer::ExternalRefCountData::destroy (
this=0x55fad98141a0) at /usr/include/qt/QtCore/qsharedpointer_impl.h:149
#9  QSharedPointer::deref (dd=0x55fad98141a0)
at /usr/include/qt/QtCore/qsharedpointer_impl.h:458
#10 QSharedPointer::deref (dd=0x55fad98141a0)
at /usr/include/qt/QtCore/qsharedpointer_impl.h:454
#11 QSharedPointer::deref (this=0x55fad9882460)
at /usr/include/qt/QtCore/qsharedpointer_impl.h:453
#12 QSharedPointer::~QSharedPointer (this=0x55fad9882460,

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 459368] Plasma very unstable when attached to docking station

2022-09-21 Thread David Edmundson
https://bugs.kde.org/show_bug.cgi?id=459368

David Edmundson  changed:

   What|Removed |Added

 Status|CONFIRMED   |ASSIGNED

--- Comment #12 from David Edmundson  ---
WIP at https://invent.kde.org/plasma/kscreen/-/merge_requests/132

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 459368] Plasma very unstable when attached to docking station

2022-09-21 Thread Vlad Zahorodnii
https://bugs.kde.org/show_bug.cgi?id=459368

--- Comment #11 from Vlad Zahorodnii  ---
At quick glance, it looks like kscreen osd crashes in

osd/osd.cpp
35:connect(output.data(), ::Output::destroyed, this,
::hideOsd);

i.e.

if (m_osdActionSelector) {
m_osdActionSelector->setVisible(false);
}

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 459368] Plasma very unstable when attached to docking station

2022-09-21 Thread Fushan Wen
https://bugs.kde.org/show_bug.cgi?id=459368

--- Comment #10 from Fushan Wen  ---
#0  0x7efcb01d36cf in QWindow::setVisible (this=,
visible=false)
at kernel/qwindow.cpp:623
#1  0x7efcafe2d361 in QtPrivate::QSlotObjectBase::call (a=,
r=, this=, this=, r=,
a=)
at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#2  doActivate (sender=0x55ee43790740, signal_index=0,
argv=0x7ffe2cf8f440)
at kernel/qobject.cpp:3919
#3  0x7efcafe2d704 in QObject::destroyed (this=,
_t1=)
at .moc/moc_qobject.cpp:219
#4  0x7efcafe23ccc in QObject::~QObject (this=,
this=)
at kernel/qobject.cpp:1010
#5  0x7efcb10ef72a in KScreen::Output::~Output (this=,
this=) at
/usr/src/debug/libkscreen-5.25.90/src/output.cpp:176
#6  QtSharedPointer::CustomDeleter::execute
(this=) at /usr/include/qt/QtCore/qsharedpointer_impl.h:187
#7  QtSharedPointer::ExternalRefCountWithCustomDeleter::deleter (self=)
at /usr/include/qt/QtCore/qsharedpointer_impl.h:205
#8  0x55ee422087a5 in QtSharedPointer::ExternalRefCountData::destroy (
this=0x55ee4378de40) at /usr/include/qt/QtCore/qsharedpointer_impl.h:149
#9  QSharedPointer::deref (dd=0x55ee4378de40)
at /usr/include/qt/QtCore/qsharedpointer_impl.h:458
#10 QSharedPointer::deref (dd=, dd=)
at /usr/include/qt/QtCore/qsharedpointer_impl.h:454
#11 QSharedPointer::deref (this=,
this=)
at /usr/include/qt/QtCore/qsharedpointer_impl.h:453
#12 QSharedPointer::~QSharedPointer (this=,

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 459368] Plasma very unstable when attached to docking station

2022-09-20 Thread Fushan Wen
https://bugs.kde.org/show_bug.cgi?id=459368

--- Comment #9 from Fushan Wen  ---
pasting inline:

#0  0x7f6d8cc93368 pthread_sigmask (libc.so.6 + 0x93368)
#1  0x7f6d8cc3eadd sigprocmask (libc.so.6 + 0x3eadd)
#2  0x7f6d8f6321cb _ZN6KCrash15setCrashHandlerEPFviE
(libKF5Crash.so.5 + 0x51cb)
#3  0x7f6d8f634837 _ZN6KCrash19defaultCrashHandlerEi
(libKF5Crash.so.5 + 0x7837)
#4  0x7f6d8cc3e8e0 n/a (libc.so.6 + 0x3e8e0)
#5  0x7f6d8b5b09bb
_ZN15QtWaylandClient19QWaylandInputDevice5Touch11touch_frameEv
(libQt5WaylandClient.so.5 + 0x759bb)
#6  0x7f6d8e114536 n/a (libffi.so.8 + 0x7536)
#7  0x7f6d8e111037 n/a (libffi.so.8 + 0x4037)
#8  0x7f6d8f8b15e2 n/a (libwayland-client.so.0 + 0x75e2)
#9  0x7f6d8f8b1d73 n/a (libwayland-client.so.0 + 0x7d73)
#10 0x7f6d8f8b1f8c wl_display_dispatch_queue_pending
(libwayland-client.so.0 + 0x7f8c)
#11 0x7f6d8b5acc56
_ZN15QtWaylandClient15QWaylandDisplay13flushRequestsEv
(libQt5WaylandClient.so.5 + 0x71c56)
#12 0x7f6d8d6b0830 _ZN7QObject5eventEP6QEvent
(libQt5Core.so.5 + 0x2b0830)
#13 0x7f6d8e378abc
_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5 +
0x178abc)
#14 0x7f6d8d68cf38
_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 +
0x28cf38)
#15 0x7f6d8d68da33
_ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData
(libQt5Core.so.5 + 0x28da33)
#16 0x7f6d8d6d3818 n/a (libQt5Core.so.5 + 0x2d3818)
#17 0x7f6d8bc6fc6b g_main_context_dispatch
(libglib-2.0.so.0 + 0x54c6b)
#18 0x7f6d8bcc6001 n/a (libglib-2.0.so.0 + 0xab001)
#19 0x7f6d8bc6d392 g_main_context_iteration
(libglib-2.0.so.0 + 0x52392)
#20 0x7f6d8d6d764c
_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE
(libQt5Core.so.5 + 0x2d764c)
#21 0x7f6d8d6856ec
_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 +
0x2856ec)
#22 0x7f6d8d6901e9 _ZN16QCoreApplication4execEv
(libQt5Core.so.5 + 0x2901e9)
#23 0x55f9661bf0e5 n/a (plasmashell + 0x230e5)
#24 0x7f6d8cc29290 n/a (libc.so.6 + 0x29290)
#25 0x7f6d8cc2934a __libc_start_main (libc.so.6 + 0x2934a)
#26 0x55f9661bf495 n/a (plasmashell + 0x23495)

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 459368] Plasma very unstable when attached to docking station

2022-09-20 Thread Iyán Méndez Veiga
https://bugs.kde.org/show_bug.cgi?id=459368

--- Comment #8 from Iyán Méndez Veiga  ---
Created attachment 152257
  --> https://bugs.kde.org/attachment.cgi?id=152257=edit
Backtrace kscreen_osd

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 459368] Plasma very unstable when attached to docking station

2022-09-20 Thread Iyán Méndez Veiga
https://bugs.kde.org/show_bug.cgi?id=459368

--- Comment #7 from Iyán Méndez Veiga  ---
Created attachment 152256
  --> https://bugs.kde.org/attachment.cgi?id=152256=edit
Backtrace plasmashell

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 459368] Plasma very unstable when attached to docking station

2022-09-19 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=459368

mira...@mirandastreeter.com changed:

   What|Removed |Added

 CC||mira...@mirandastreeter.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 459368] Plasma very unstable when attached to docking station

2022-09-19 Thread petrk
https://bugs.kde.org/show_bug.cgi?id=459368

--- Comment #6 from petrk  ---
Created attachment 152233
  --> https://bugs.kde.org/attachment.cgi?id=152233=edit
backtrace

Attaching backtrace, hope it has something useful in it.

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 459368] Plasma very unstable when attached to docking station

2022-09-19 Thread petrk
https://bugs.kde.org/show_bug.cgi?id=459368

petrk  changed:

   What|Removed |Added

 CC||pepk...@gmail.com

--- Comment #5 from petrk  ---
(In reply to ratijas from comment #4)
> Maybe this will fix it:
> https://invent.kde.org/plasma/kscreen/-/merge_requests/132

I am also seeing some instability with 5.25.90.
skcreen_osd_service crashes on exit but it does its job

Tried recompiling with 18171d60 applied, but it still crashes.

Operating System: Arch Linux
KDE Plasma Version: 5.25.90
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 5.19.9-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 4800H with Radeon Graphics
Memory: 15.0 GiB of RAM
Graphics Processor: AMD RENOIR
Manufacturer: LENOVO
Product Name: 82B1
System Version: Lenovo Legion 5 15ARH05H

Will try to get trace and come back.

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 459368] Plasma very unstable when attached to docking station

2022-09-19 Thread ratijas
https://bugs.kde.org/show_bug.cgi?id=459368

ratijas  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 CC||m...@ratijas.tk
 Status|REPORTED|CONFIRMED

--- Comment #4 from ratijas  ---
Maybe this will fix it:
https://invent.kde.org/plasma/kscreen/-/merge_requests/132

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 459368] Plasma very unstable when attached to docking station

2022-09-19 Thread Fushan Wen
https://bugs.kde.org/show_bug.cgi?id=459368

--- Comment #3 from Fushan Wen  ---
(In reply to Iyán Méndez Veiga from comment #2)
> I will try to provide those in a bit. How should I exactly do this? I
> restart the system, attach gdb to the plasmashell process and then connect
> to the docking station so it crashes? How can I do it for the
> kscreen_osd_service? It doesn't seem to be running all the times.

Have you installed coredumpctl? run `coredumpctl --no-pager` to see the PID of
plasmashell/kscreen_osd_service, and run `coredumpctl gdb ` to get the
backtrace.

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 459368] Plasma very unstable when attached to docking station

2022-09-19 Thread Iyán Méndez Veiga
https://bugs.kde.org/show_bug.cgi?id=459368

--- Comment #2 from Iyán Méndez Veiga  ---
I will try to provide those in a bit. How should I exactly do this? I restart
the system, attach gdb to the plasmashell process and then connect to the
docking station so it crashes? How can I do it for the kscreen_osd_service? It
doesn't seem to be running all the times.

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 459368] Plasma very unstable when attached to docking station

2022-09-19 Thread Fushan Wen
https://bugs.kde.org/show_bug.cgi?id=459368

Fushan Wen  changed:

   What|Removed |Added

   Keywords||regression, wayland

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 459368] Plasma very unstable when attached to docking station

2022-09-19 Thread Fushan Wen
https://bugs.kde.org/show_bug.cgi?id=459368

Fushan Wen  changed:

   What|Removed |Added

 CC||qydwhotm...@gmail.com

--- Comment #1 from Fushan Wen  ---
Can you provide backtrace of plasmashell when it crashed? Also from the log
kscreen_osd_service also crashed, so the backtrace of kscreen_osd_service is
also needed.

-- 
You are receiving this mail because:
You are watching all bug changes.