[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2017-10-21 Thread Rainer Finke
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #5 from Rainer Finke  ---
Short update. I only get the segfault, if on my desktop with a radeon GPU the
backlight will be adjusted to 0. The following line is shown in these cases
right before the kwin crash in journalctl -f:
org_kde_powerdevil[995]: powerdevil: Kbd backlight brightness value:  0

I can just disable in the energy settings the screen energy saving. Then the
lockscreen will be always visible and I don't get the segfault. So at least
there is a workaround for now.

Maybe this is a radeon driver problem or powerdevil cannot wake up the
screen/GPU on Wayland like it does on X11.

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

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2017-10-21 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #6 from Martin Flöser  ---
> Maybe this is a radeon driver problem or powerdevil cannot wake up the
> screen/GPU on Wayland like it does on X11.

KWin is responsible for restoring the brightness. So it would be a bug in KWin

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

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2017-10-14 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #1 from Martin Flöser  ---
Can you try connecting with Ash, gdb attach to KWin and wait for the crash? If
we get the backtrace it should be easy to fix.

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

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2017-10-14 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #2 from Martin Flöser  ---
god damn auto correction: of course I meant "ssh" and not Ash

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

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2017-10-15 Thread Rainer Finke
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #3 from Rainer Finke  ---
I attached gdb to kwin and got new details. Basically if my system is idle
there is one point where kwin will segfault (maybe when turning off the
screen), no user interaction required. When trying to wake up my system, it
doesn't react anymore.

[rainer@gd1 ~]$ sudo echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
[sudo] Passwort für rainer: 
0
[rainer@gd1 ~]$ sudo gdb --pid `pidof kwin_wayland` 2>&1 | tee kwin.gdb   
GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 803
[New LWP 808]
[New LWP 809]
[New LWP 810]
[New LWP 811]
[New LWP 812]
[New LWP 813]
[New LWP 814]
[New LWP 815]
[New LWP 816]
[New LWP 817]
[New LWP 818]
[New LWP 853]
[New LWP 856]
[New LWP 857]
[New LWP 858]
[New LWP 860]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
0x7f9243634e46 in ppoll () from /usr/lib/libc.so.6
(gdb) continue
Continuing.
[New Thread 0x7f91de7d5700 (LWP 2037)]
[New Thread 0x7f914a01b700 (LWP 2039)]
[New Thread 0x7f91f3fff700 (LWP 2041)]
[New Thread 0x7f9141265700 (LWP 2042)]
[Thread 0x7f9141265700 (LWP 2042) exited]
[Thread 0x7f914a01b700 (LWP 2039) exited]
[Thread 0x7f91f3fff700 (LWP 2041) exited]
[Thread 0x7f91de7d5700 (LWP 2037) exited]

Thread 1 "kwin_wayland" received signal SIGSEGV, Segmentation fault.
0x7f923d24d6e0 in QRegion::subtracted(QRegion const&) const () from
/usr/lib/libQt5Gui.so.5
(gdb) bt
#0  0x7f923d24d6e0 in QRegion::subtracted(QRegion const&) const () at
/usr/lib/libQt5Gui.so.5
#1  0x7f923d24dc9e in QRegion::operator-(QRegion const&) const () at
/usr/lib/libQt5Gui.so.5
#2  0x7f9245dffef2 in KWin::Scene::paintSimpleScreen(int, QRegion) () at
/usr/lib/libkwin.so.5
#3  0x7f9245e090f4 in  () at /usr/lib/libkwin.so.5
#4  0x7f9245e03dc8 in KWin::Scene::finalPaintScreen(int, QRegion,
KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#5  0x7f9245e24a97 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion,
KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#6  0x7f9245a4b3e2 in KWin::Effect::paintScreen(int, QRegion,
KWin::ScreenPaintData&) () at /usr/lib/libkwineffects.so.11
#7  0x7f9245e24a3e in KWin::EffectsHandlerImpl::paintScreen(int, QRegion,
KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#8  0x7f9245a4b3e2 in KWin::Effect::paintScreen(int, QRegion,
KWin::ScreenPaintData&) () at /usr/lib/libkwineffects.so.11
#9  0x7f9245e24a3e in KWin::EffectsHandlerImpl::paintScreen(int, QRegion,
KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#10 0x7f9245e03aab in KWin::Scene::paintScreen(int*, QRegion const&,
QRegion const&, QRegion*, QRegion*, QMatrix4x4 const&, QRect const&) () at
/usr/lib/libkwin.so.5
#11 0x7f9245e0dc3a in KWin::SceneOpenGL::paint(QRegion,
QList) () at /usr/lib/libkwin.so.5
#12 0x7f9245df3b1c in KWin::Compositor::performCompositing() () at
/usr/lib/libkwin.so.5
#13 0x7f924417caab in QObject::event(QEvent*) () at
/usr/lib/libQt5Core.so.5
#14 0x7f9244705c8c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() at /usr/lib/libQt5Widgets.so.5
#15 0x7f924470d666 in QApplication::notify(QObject*, QEvent*) () at
/usr/lib/libQt5Widgets.so.5
#16 0x7f924414b880 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() at /usr/lib/libQt5Core.so.5
#17 0x7f92441a7178 in QTimerInfoList::activateTimers() () at
/usr/lib/libQt5Core.so.5
#18 0x7f92441a52b4 in
QEventDispatcherUNIX::processEvents(QFlags) ()
at /usr/lib/libQt5Core.so.5
#19 0x7f922e36bade in  () at /usr/lib/qt/plugins/platforms/KWinQpaPlugin.so
#20 0x7f9244149ecb in
QEventLoop::exec(QFlags) () at
/usr/lib/libQt5Core.so.5
#21 0x7f92441531b8 in QCoreApplication::exec() () at
/usr/lib/libQt5Core.so.5
#22 0x563318bdd2c4 in  ()
#23 0x7f9243569f6a in __libc_start_main () at /usr/lib/libc.so.6
#24 0x563318bdd6da in _start ()
(gdb)



But his result was quite strange as it happened out of nothing. During the next
try I played some music to at least hear if the system is still working or not.
Strange enough, this time I got other information, now it was related to
libgbm.

[rainer@gd1 ~]$ sudo gdb --pid `pidof kwin_wayland` 2>&1 | tee kwin.gdb 
[sudo] Passwort für rainer:   

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2017-10-15 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #4 from Martin Flöser  ---
Both crashes look strange. The first would be a bug in Qt, the second in
Radeon.

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

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2018-06-03 Thread Rainer Finke
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #7 from Rainer Finke  ---
Created attachment 113052
  --> https://bugs.kde.org/attachment.cgi?id=113052&action=edit
2018-06-03_kwin_crash

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

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2018-06-03 Thread Rainer Finke
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #8 from Rainer Finke  ---
If I activate in the energy settings the "Screen Energy Saving", Plasma 5.13
beta will still crash on Wayland once turning on the display after saving
energy. 
>From my point of view, once the display has been turned off and I press again a
keyboard key to turn it on again, Plasma tries to connect to it immediately,
but my 4K display (Samsung UE28D590D) is quite slow... too slow for Plasma and
then kwin_wayland is segfaulting. Please see in the log below, I have attached
a more detailed one to this bug.

$ journalctl -f
-- Logs begin at Tue 2018-02-20 18:01:22 CET. --
Jun 03 22:06:12 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:06:42 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:07:12 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:07:42 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:08:12 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:08:38 pc1 org_kde_powerdevil[1350]: powerdevil: Can't contact ck
Jun 03 22:08:38 pc1 org_kde_powerdevil[1350]: powerdevil: We are now into
activity  "2c18661e-54f5-404e-9fc2-2942df87e639"
Jun 03 22:08:38 pc1 org_kde_powerdevil[1350]: powerdevil: () ()
Jun 03 22:08:38 pc1 org_kde_powerdevil[1350]: powerdevil: () ()
Jun 03 22:08:38 pc1 org_kde_powerdevil[1350]: powerdevil: No batteries found,
loading AC
Jun 03 22:08:38 pc1 org_kde_powerdevil[1350]: powerdevil: Activity is not
forcing a profile
Jun 03 22:08:38 pc1 org_kde_powerdevil[1350]: powerdevil: The profile  "AC"
tried to activate "DimDisplay" a non-existent action. This is usually due to an
installation problem, or to a configuration problem, or simply the action is
not supported
Jun 03 22:08:42 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:09:12 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:09:42 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:10:12 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:10:42 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:10:53 pc1 org_kde_powerdevil[1350]: powerdevil: Kbd backlight
brightness value:  0
Jun 03 22:11:12 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:11:18 pc1 kdeinit5[1267]: kscreen: Backend change! KScreen::Config( )
Jun 03 22:11:18 pc1 kdeinit5[1267]: kscreen: Correcting output positions by:
QPoint(2147483647,2147483647)
Jun 03 22:11:18 pc1 org_kde_powerdevil[1350]: kscreen: Backend change!
KScreen::Config( )
Jun 03 22:11:18 pc1 plasmashell[1312]: qt.qpa.wayland: Wayland does not support
QWindow::requestActivate()
Jun 03 22:11:18 pc1 plasmashell[1312]: requesting unexisting screen -1
Jun 03 22:11:18 pc1 plasmashell[1312]:
file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:349:34:
Unable to assign [undefined] to bool
Jun 03 22:11:18 pc1 plasmashell[1312]:
file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:291:31:
Unable to assign [undefined] to QStringList
Jun 03 22:11:18 pc1 kernel: kwin_wayland[1201]: segfault at 558d84dfe150 ip
7f9ffd349c72 sp 7ffcb096caa0 error 4 in
KWinWaylandDrmBackend.so[7f9ffd322000+38000]

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

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2018-06-04 Thread Roman Gilg
https://bugs.kde.org/show_bug.cgi?id=385743

Roman Gilg  changed:

   What|Removed |Added

 CC||subd...@gmail.com

--- Comment #9 from Roman Gilg  ---
Can you somehow get a coredump of KWin(!) for that crash?

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

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2018-06-04 Thread Rainer Finke
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #10 from Rainer Finke  ---
Hi Roman,
thanks for getting back to me. I've compiled Kwin & KWayland from git to get
debug symbols on Arch Linux, this is the output I got so far, don't know how
helpful it is right now. Probably debug symbols for Mesa would be required now?

journalctl -f
Jun 04 23:22:11 pc1 org_kde_powerdevil[4401]: powerdevil: Kbd backlight
brightness value:  0
Jun 04 23:22:41 pc1 plasmashell[4318]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 04 23:22:41 pc1 kdeinit5[4287]: kscreen: Backend change! KScreen::Config( )
Jun 04 23:22:41 pc1 kdeinit5[4287]: kscreen: Correcting output positions by:
QPoint(2147483647,2147483647)
Jun 04 23:22:41 pc1 org_kde_powerdevil[4401]: kscreen: Backend change!
KScreen::Config( )
Jun 04 23:22:41 pc1 plasmashell[4318]: qt.qpa.wayland: Wayland does not support
QWindow::requestActivate()
Jun 04 23:22:41 pc1 plasmashell[4318]: trying to show an empty dialog
Jun 04 23:22:41 pc1 plasmashell[4318]: requesting unexisting screen -1
Jun 04 23:22:41 pc1 plasmashell[4318]:
file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:291:31:
Unable to assign [undefined] to QStringList
Jun 04 23:22:41 pc1 kdeinit5[4287]: kscreen: canBeAppled: There are no enabled
screens, at least one required
Jun 04 23:22:41 pc1 kdeinit5[4287]: kscreen.kded: Config does not have at least
one screen enabled, WILL NOT save this config, this is not what user wants.
Jun 04 23:22:42 pc1 kdeinit5[4275]: Empty filename passed to function
Jun 04 23:23:41 pc1 baloo_file[4314]: QSocketNotifier: Invalid socket 5 and
type 'Read', disabling...
Jun 04 23:23:41 pc1 baloo_file[4314]: QSocketNotifier: Invalid socket 10 and
type 'Read', disabling...
Jun 04 23:23:41 pc1 kdeinit5[4287]: Service  "org.kde.StatusNotifierHost-4318"
unregistered
Jun 04 23:23:41 pc1 kdeinit5[4287]: Service  ":1.45" unregistered
Jun 04 23:23:42 pc1 systemd[1]: Created slice system-systemd\x2dcoredump.slice.
Jun 04 23:23:42 pc1 systemd[1]: Started Process Core Dump (PID 4919/UID 0).

And the output from gdb:
(gdb) continue
Continuing.

Thread 1 "kwin_wayland" received signal SIGSEGV, Segmentation fault.
0x55e80001 in ?? ()
(gdb) bt
#0  0x55e80001 in  ()
#1  0x7f3a40e93ece in  () at /usr/lib/dri/radeonsi_dri.so
#2  0x7f3a40e8f554 in  () at /usr/lib/dri/radeonsi_dri.so
#3  0x7f3a40ce1fda in  () at /usr/lib/dri/radeonsi_dri.so
#4  0x7f3a40ce27f0 in  () at /usr/lib/dri/radeonsi_dri.so
#5  0x7f3a40ca015f in  () at /usr/lib/dri/radeonsi_dri.so
#6  0x7f3a40cbdc08 in  () at /usr/lib/dri/radeonsi_dri.so
#7  0x7f3a40c81ed2 in  () at /usr/lib/dri/radeonsi_dri.so
#8  0x7f3a40c82668 in  () at /usr/lib/dri/radeonsi_dri.so
#9  0x7f3a5d4827a8 in KWin::GLVertexBuffer::render(QRegion const&, unsigned
int, bool) (this=this@entry=0x55e83c261fb0, region=...,
primitiveMode=primitiveMode@entry=4,
hardwareClipping=hardwareClipping@entry=false) at
/usr/src/debug/kwin/libkwineffects/kwinglutils.cpp:2153
#10 0x7f3a5d482851 in KWin::GLVertexBuffer::render(unsigned int)
(this=this@entry=0x55e83c261fb0, primitiveMode=primitiveMode@entry=4) at
/usr/include/qt/QtCore/qrect.h:184
#11 0x7f3a482c5189 in KWin::SceneOpenGL2::doPaintBackground(QVector
const&) (this=0x55e83bffdb20, vertices=...) at
/usr/src/debug/kwin/plugins/scenes/opengl/scene_opengl.cpp:1075
#12 0x7f3a482c91c6 in KWin::SceneOpenGL::paintBackground(QRegion)
(this=this@entry=0x55e83bffdb20, region=...) at
/usr/src/debug/kwin/plugins/scenes/opengl/scene_opengl.cpp:784
#13 0x7f3a6438b2a1 in KWin::Scene::paintSimpleScreen(int, QRegion)
(this=this@entry=0x55e83bffdb20, orig_mask=orig_mask@entry=8, region=...) at
/usr/src/debug/kwin/scene.cpp:365
#14 0x7f3a482c50d4 in KWin::SceneOpenGL2::paintSimpleScreen(int, QRegion)
(this=this@entry=0x55e83bffdb20, mask=mask@entry=8, region=...) at
/usr/src/debug/kwin/plugins/scenes/opengl/scene_opengl.cpp:1053
#15 0x7f3a6438e611 in KWin::Scene::finalPaintScreen(int, QRegion,
KWin::ScreenPaintData&) (this=this@entry=0x55e83bffdb20, mask=mask@entry=8,
region=..., data=...) at /usr/src/debug/kwin/scene.cpp:201
#16 0x7f3a6439db07 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion,
KWin::ScreenPaintData&) (this=this@entry=0x55e83cb771e0, mask=mask@entry=8,
region=..., data=...)
at /usr/src/debug/kwin/effects.cpp:379
#17 0x7f3a63ddf042 in KWin::Effect::paintScreen(int, QRegion,
KWin::ScreenPaintData&) (this=this@entry=0x55e83c75e250, mask=mask@entry=8,
region=..., data=...)
at /usr/src/debug/kwin/libkwineffects/kwineffects.cpp:583
#18 0x7f3a6439daae in KWin::EffectsHandlerImpl::paintScreen(int, QRegion,
KWin::ScreenPaintData&) (this=this@entry=0x55e83cb771e0, mask=mask@entry=8,
region=..., data=...)
at /usr/src/debug/kwin/effects.cpp:376
#19 0x7f3a63ddf042 in KWin::Effect::paintScreen(int, QRegion,
KWin::ScreenPaintData&) (this=this@entry=0x55e83cd7b110

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2018-06-04 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #11 from Martin Flöser  ---
Crash in Radeon driver. Pretty much in the first place where we rendering to
the screen.

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

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2018-06-07 Thread Roman Gilg
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #12 from Roman Gilg  ---
Best way forward would be to get the mesa debug symbols and report the crash
upstream.

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

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2019-04-14 Thread miku84
https://bugs.kde.org/show_bug.cgi?id=385743

miku84  changed:

   What|Removed |Added

 CC||mik...@gmail.com

--- Comment #14 from miku84  ---
Hi,

I have the same with ATI r600 free driver. Is there any bug or workaround in
mesa for it? This is a blocker for me in wayland.
Thanks.

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

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2018-10-09 Thread Rainer Finke
https://bugs.kde.org/show_bug.cgi?id=385743

Rainer Finke  changed:

   What|Removed |Added

 Resolution|--- |DUPLICATE
 Status|REPORTED|RESOLVED

--- Comment #13 from Rainer Finke  ---


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

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

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2018-06-03 Thread Rainer Finke
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #7 from Rainer Finke  ---
Created attachment 113052
  --> https://bugs.kde.org/attachment.cgi?id=113052&action=edit
2018-06-03_kwin_crash

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

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2018-06-03 Thread Rainer Finke
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #8 from Rainer Finke  ---
If I activate in the energy settings the "Screen Energy Saving", Plasma 5.13
beta will still crash on Wayland once turning on the display after saving
energy. 
>From my point of view, once the display has been turned off and I press again a
keyboard key to turn it on again, Plasma tries to connect to it immediately,
but my 4K display (Samsung UE28D590D) is quite slow... too slow for Plasma and
then kwin_wayland is segfaulting. Please see in the log below, I have attached
a more detailed one to this bug.

$ journalctl -f
-- Logs begin at Tue 2018-02-20 18:01:22 CET. --
Jun 03 22:06:12 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:06:42 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:07:12 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:07:42 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:08:12 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:08:38 pc1 org_kde_powerdevil[1350]: powerdevil: Can't contact ck
Jun 03 22:08:38 pc1 org_kde_powerdevil[1350]: powerdevil: We are now into
activity  "2c18661e-54f5-404e-9fc2-2942df87e639"
Jun 03 22:08:38 pc1 org_kde_powerdevil[1350]: powerdevil: () ()
Jun 03 22:08:38 pc1 org_kde_powerdevil[1350]: powerdevil: () ()
Jun 03 22:08:38 pc1 org_kde_powerdevil[1350]: powerdevil: No batteries found,
loading AC
Jun 03 22:08:38 pc1 org_kde_powerdevil[1350]: powerdevil: Activity is not
forcing a profile
Jun 03 22:08:38 pc1 org_kde_powerdevil[1350]: powerdevil: The profile  "AC"
tried to activate "DimDisplay" a non-existent action. This is usually due to an
installation problem, or to a configuration problem, or simply the action is
not supported
Jun 03 22:08:42 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:09:12 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:09:42 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:10:12 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:10:42 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:10:53 pc1 org_kde_powerdevil[1350]: powerdevil: Kbd backlight
brightness value:  0
Jun 03 22:11:12 pc1 plasmashell[1312]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 03 22:11:18 pc1 kdeinit5[1267]: kscreen: Backend change! KScreen::Config( )
Jun 03 22:11:18 pc1 kdeinit5[1267]: kscreen: Correcting output positions by:
QPoint(2147483647,2147483647)
Jun 03 22:11:18 pc1 org_kde_powerdevil[1350]: kscreen: Backend change!
KScreen::Config( )
Jun 03 22:11:18 pc1 plasmashell[1312]: qt.qpa.wayland: Wayland does not support
QWindow::requestActivate()
Jun 03 22:11:18 pc1 plasmashell[1312]: requesting unexisting screen -1
Jun 03 22:11:18 pc1 plasmashell[1312]:
file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:349:34:
Unable to assign [undefined] to bool
Jun 03 22:11:18 pc1 plasmashell[1312]:
file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:291:31:
Unable to assign [undefined] to QStringList
Jun 03 22:11:18 pc1 kernel: kwin_wayland[1201]: segfault at 558d84dfe150 ip
7f9ffd349c72 sp 7ffcb096caa0 error 4 in
KWinWaylandDrmBackend.so[7f9ffd322000+38000]

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

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2018-06-04 Thread Roman Gilg
https://bugs.kde.org/show_bug.cgi?id=385743

Roman Gilg  changed:

   What|Removed |Added

 CC||subd...@gmail.com

--- Comment #9 from Roman Gilg  ---
Can you somehow get a coredump of KWin(!) for that crash?

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

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2018-06-04 Thread Rainer Finke
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #10 from Rainer Finke  ---
Hi Roman,
thanks for getting back to me. I've compiled Kwin & KWayland from git to get
debug symbols on Arch Linux, this is the output I got so far, don't know how
helpful it is right now. Probably debug symbols for Mesa would be required now?

journalctl -f
Jun 04 23:22:11 pc1 org_kde_powerdevil[4401]: powerdevil: Kbd backlight
brightness value:  0
Jun 04 23:22:41 pc1 plasmashell[4318]: kf5idletime_kwayland: This plugin does
not support polling idle time
Jun 04 23:22:41 pc1 kdeinit5[4287]: kscreen: Backend change! KScreen::Config( )
Jun 04 23:22:41 pc1 kdeinit5[4287]: kscreen: Correcting output positions by:
QPoint(2147483647,2147483647)
Jun 04 23:22:41 pc1 org_kde_powerdevil[4401]: kscreen: Backend change!
KScreen::Config( )
Jun 04 23:22:41 pc1 plasmashell[4318]: qt.qpa.wayland: Wayland does not support
QWindow::requestActivate()
Jun 04 23:22:41 pc1 plasmashell[4318]: trying to show an empty dialog
Jun 04 23:22:41 pc1 plasmashell[4318]: requesting unexisting screen -1
Jun 04 23:22:41 pc1 plasmashell[4318]:
file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:291:31:
Unable to assign [undefined] to QStringList
Jun 04 23:22:41 pc1 kdeinit5[4287]: kscreen: canBeAppled: There are no enabled
screens, at least one required
Jun 04 23:22:41 pc1 kdeinit5[4287]: kscreen.kded: Config does not have at least
one screen enabled, WILL NOT save this config, this is not what user wants.
Jun 04 23:22:42 pc1 kdeinit5[4275]: Empty filename passed to function
Jun 04 23:23:41 pc1 baloo_file[4314]: QSocketNotifier: Invalid socket 5 and
type 'Read', disabling...
Jun 04 23:23:41 pc1 baloo_file[4314]: QSocketNotifier: Invalid socket 10 and
type 'Read', disabling...
Jun 04 23:23:41 pc1 kdeinit5[4287]: Service  "org.kde.StatusNotifierHost-4318"
unregistered
Jun 04 23:23:41 pc1 kdeinit5[4287]: Service  ":1.45" unregistered
Jun 04 23:23:42 pc1 systemd[1]: Created slice system-systemd\x2dcoredump.slice.
Jun 04 23:23:42 pc1 systemd[1]: Started Process Core Dump (PID 4919/UID 0).

And the output from gdb:
(gdb) continue
Continuing.

Thread 1 "kwin_wayland" received signal SIGSEGV, Segmentation fault.
0x55e80001 in ?? ()
(gdb) bt
#0  0x55e80001 in  ()
#1  0x7f3a40e93ece in  () at /usr/lib/dri/radeonsi_dri.so
#2  0x7f3a40e8f554 in  () at /usr/lib/dri/radeonsi_dri.so
#3  0x7f3a40ce1fda in  () at /usr/lib/dri/radeonsi_dri.so
#4  0x7f3a40ce27f0 in  () at /usr/lib/dri/radeonsi_dri.so
#5  0x7f3a40ca015f in  () at /usr/lib/dri/radeonsi_dri.so
#6  0x7f3a40cbdc08 in  () at /usr/lib/dri/radeonsi_dri.so
#7  0x7f3a40c81ed2 in  () at /usr/lib/dri/radeonsi_dri.so
#8  0x7f3a40c82668 in  () at /usr/lib/dri/radeonsi_dri.so
#9  0x7f3a5d4827a8 in KWin::GLVertexBuffer::render(QRegion const&, unsigned
int, bool) (this=this@entry=0x55e83c261fb0, region=...,
primitiveMode=primitiveMode@entry=4,
hardwareClipping=hardwareClipping@entry=false) at
/usr/src/debug/kwin/libkwineffects/kwinglutils.cpp:2153
#10 0x7f3a5d482851 in KWin::GLVertexBuffer::render(unsigned int)
(this=this@entry=0x55e83c261fb0, primitiveMode=primitiveMode@entry=4) at
/usr/include/qt/QtCore/qrect.h:184
#11 0x7f3a482c5189 in KWin::SceneOpenGL2::doPaintBackground(QVector
const&) (this=0x55e83bffdb20, vertices=...) at
/usr/src/debug/kwin/plugins/scenes/opengl/scene_opengl.cpp:1075
#12 0x7f3a482c91c6 in KWin::SceneOpenGL::paintBackground(QRegion)
(this=this@entry=0x55e83bffdb20, region=...) at
/usr/src/debug/kwin/plugins/scenes/opengl/scene_opengl.cpp:784
#13 0x7f3a6438b2a1 in KWin::Scene::paintSimpleScreen(int, QRegion)
(this=this@entry=0x55e83bffdb20, orig_mask=orig_mask@entry=8, region=...) at
/usr/src/debug/kwin/scene.cpp:365
#14 0x7f3a482c50d4 in KWin::SceneOpenGL2::paintSimpleScreen(int, QRegion)
(this=this@entry=0x55e83bffdb20, mask=mask@entry=8, region=...) at
/usr/src/debug/kwin/plugins/scenes/opengl/scene_opengl.cpp:1053
#15 0x7f3a6438e611 in KWin::Scene::finalPaintScreen(int, QRegion,
KWin::ScreenPaintData&) (this=this@entry=0x55e83bffdb20, mask=mask@entry=8,
region=..., data=...) at /usr/src/debug/kwin/scene.cpp:201
#16 0x7f3a6439db07 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion,
KWin::ScreenPaintData&) (this=this@entry=0x55e83cb771e0, mask=mask@entry=8,
region=..., data=...)
at /usr/src/debug/kwin/effects.cpp:379
#17 0x7f3a63ddf042 in KWin::Effect::paintScreen(int, QRegion,
KWin::ScreenPaintData&) (this=this@entry=0x55e83c75e250, mask=mask@entry=8,
region=..., data=...)
at /usr/src/debug/kwin/libkwineffects/kwineffects.cpp:583
#18 0x7f3a6439daae in KWin::EffectsHandlerImpl::paintScreen(int, QRegion,
KWin::ScreenPaintData&) (this=this@entry=0x55e83cb771e0, mask=mask@entry=8,
region=..., data=...)
at /usr/src/debug/kwin/effects.cpp:376
#19 0x7f3a63ddf042 in KWin::Effect::paintScreen(int, QRegion,
KWin::ScreenPaintData&) (this=this@entry=0x55e83cd7b110

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2018-06-04 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #11 from Martin Flöser  ---
Crash in Radeon driver. Pretty much in the first place where we rendering to
the screen.

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

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2018-06-07 Thread Roman Gilg
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #12 from Roman Gilg  ---
Best way forward would be to get the mesa debug symbols and report the crash
upstream.

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

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2017-10-21 Thread Rainer Finke
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #5 from Rainer Finke  ---
Short update. I only get the segfault, if on my desktop with a radeon GPU the
backlight will be adjusted to 0. The following line is shown in these cases
right before the kwin crash in journalctl -f:
org_kde_powerdevil[995]: powerdevil: Kbd backlight brightness value:  0

I can just disable in the energy settings the screen energy saving. Then the
lockscreen will be always visible and I don't get the segfault. So at least
there is a workaround for now.

Maybe this is a radeon driver problem or powerdevil cannot wake up the
screen/GPU on Wayland like it does on X11.

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

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2017-10-21 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #6 from Martin Flöser  ---
> Maybe this is a radeon driver problem or powerdevil cannot wake up the
> screen/GPU on Wayland like it does on X11.

KWin is responsible for restoring the brightness. So it would be a bug in KWin

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

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2017-10-14 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #1 from Martin Flöser  ---
Can you try connecting with Ash, gdb attach to KWin and wait for the crash? If
we get the backtrace it should be easy to fix.

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

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2017-10-14 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #2 from Martin Flöser  ---
god damn auto correction: of course I meant "ssh" and not Ash

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

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2017-10-15 Thread Rainer Finke
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #3 from Rainer Finke  ---
I attached gdb to kwin and got new details. Basically if my system is idle
there is one point where kwin will segfault (maybe when turning off the
screen), no user interaction required. When trying to wake up my system, it
doesn't react anymore.

[rainer@gd1 ~]$ sudo echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
[sudo] Passwort für rainer: 
0
[rainer@gd1 ~]$ sudo gdb --pid `pidof kwin_wayland` 2>&1 | tee kwin.gdb   
GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 803
[New LWP 808]
[New LWP 809]
[New LWP 810]
[New LWP 811]
[New LWP 812]
[New LWP 813]
[New LWP 814]
[New LWP 815]
[New LWP 816]
[New LWP 817]
[New LWP 818]
[New LWP 853]
[New LWP 856]
[New LWP 857]
[New LWP 858]
[New LWP 860]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
0x7f9243634e46 in ppoll () from /usr/lib/libc.so.6
(gdb) continue
Continuing.
[New Thread 0x7f91de7d5700 (LWP 2037)]
[New Thread 0x7f914a01b700 (LWP 2039)]
[New Thread 0x7f91f3fff700 (LWP 2041)]
[New Thread 0x7f9141265700 (LWP 2042)]
[Thread 0x7f9141265700 (LWP 2042) exited]
[Thread 0x7f914a01b700 (LWP 2039) exited]
[Thread 0x7f91f3fff700 (LWP 2041) exited]
[Thread 0x7f91de7d5700 (LWP 2037) exited]

Thread 1 "kwin_wayland" received signal SIGSEGV, Segmentation fault.
0x7f923d24d6e0 in QRegion::subtracted(QRegion const&) const () from
/usr/lib/libQt5Gui.so.5
(gdb) bt
#0  0x7f923d24d6e0 in QRegion::subtracted(QRegion const&) const () at
/usr/lib/libQt5Gui.so.5
#1  0x7f923d24dc9e in QRegion::operator-(QRegion const&) const () at
/usr/lib/libQt5Gui.so.5
#2  0x7f9245dffef2 in KWin::Scene::paintSimpleScreen(int, QRegion) () at
/usr/lib/libkwin.so.5
#3  0x7f9245e090f4 in  () at /usr/lib/libkwin.so.5
#4  0x7f9245e03dc8 in KWin::Scene::finalPaintScreen(int, QRegion,
KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#5  0x7f9245e24a97 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion,
KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#6  0x7f9245a4b3e2 in KWin::Effect::paintScreen(int, QRegion,
KWin::ScreenPaintData&) () at /usr/lib/libkwineffects.so.11
#7  0x7f9245e24a3e in KWin::EffectsHandlerImpl::paintScreen(int, QRegion,
KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#8  0x7f9245a4b3e2 in KWin::Effect::paintScreen(int, QRegion,
KWin::ScreenPaintData&) () at /usr/lib/libkwineffects.so.11
#9  0x7f9245e24a3e in KWin::EffectsHandlerImpl::paintScreen(int, QRegion,
KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#10 0x7f9245e03aab in KWin::Scene::paintScreen(int*, QRegion const&,
QRegion const&, QRegion*, QRegion*, QMatrix4x4 const&, QRect const&) () at
/usr/lib/libkwin.so.5
#11 0x7f9245e0dc3a in KWin::SceneOpenGL::paint(QRegion,
QList) () at /usr/lib/libkwin.so.5
#12 0x7f9245df3b1c in KWin::Compositor::performCompositing() () at
/usr/lib/libkwin.so.5
#13 0x7f924417caab in QObject::event(QEvent*) () at
/usr/lib/libQt5Core.so.5
#14 0x7f9244705c8c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() at /usr/lib/libQt5Widgets.so.5
#15 0x7f924470d666 in QApplication::notify(QObject*, QEvent*) () at
/usr/lib/libQt5Widgets.so.5
#16 0x7f924414b880 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() at /usr/lib/libQt5Core.so.5
#17 0x7f92441a7178 in QTimerInfoList::activateTimers() () at
/usr/lib/libQt5Core.so.5
#18 0x7f92441a52b4 in
QEventDispatcherUNIX::processEvents(QFlags) ()
at /usr/lib/libQt5Core.so.5
#19 0x7f922e36bade in  () at /usr/lib/qt/plugins/platforms/KWinQpaPlugin.so
#20 0x7f9244149ecb in
QEventLoop::exec(QFlags) () at
/usr/lib/libQt5Core.so.5
#21 0x7f92441531b8 in QCoreApplication::exec() () at
/usr/lib/libQt5Core.so.5
#22 0x563318bdd2c4 in  ()
#23 0x7f9243569f6a in __libc_start_main () at /usr/lib/libc.so.6
#24 0x563318bdd6da in _start ()
(gdb)



But his result was quite strange as it happened out of nothing. During the next
try I played some music to at least hear if the system is still working or not.
Strange enough, this time I got other information, now it was related to
libgbm.

[rainer@gd1 ~]$ sudo gdb --pid `pidof kwin_wayland` 2>&1 | tee kwin.gdb 
[sudo] Passwort für rainer:   

[kwin] [Bug 385743] Kwin: Freeze/segfault when waking up an idle system on Wayland

2017-10-15 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=385743

--- Comment #4 from Martin Flöser  ---
Both crashes look strange. The first would be a bug in Qt, the second in
Radeon.

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