[kwin] [Bug 463494] New: Kwin dumps core/crashes on Wayland

2022-12-26 Thread Amaan Q
https://bugs.kde.org/show_bug.cgi?id=463494

Bug ID: 463494
   Summary: Kwin dumps core/crashes on Wayland
Classification: Plasma
   Product: kwin
   Version: 5.26.4
  Platform: Archlinux
OS: Linux
Status: REPORTED
  Severity: crash
  Priority: NOR
 Component: wayland-generic
  Assignee: kwin-bugs-n...@kde.org
  Reporter: amaan...@gmail.com
  Target Milestone: ---

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug
symbols.
See
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Kwin on Wayland?
2. Crash on Login? But it can be restarted just fine so it somehow only happens
on login

OBSERVED RESULT

Crash

EXPECTED RESULT
No crash

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux 6.1.1 Zen Kernel
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION

Backtrace/Core Dump:

Dec 26 11:18:14 archmain systemd-coredump[8820]: [🡕] Process 7745 (kwin_x11) of
user 1000 dumped core.

 Stack trace of thread 7745:
 #0  0x7fcbd0ca164c n/a
(libc.so.6 + 0x8864c)
 #1  0x7fcbd0c51958 raise
(libc.so.6 + 0x38958)
 #2  0x7fcbd3bf8868
_ZN6KCrash19defaultCrashHandlerEi (libKF5Crash.so.5 + 0x7868)
 #3  0x7fcbd0c51a00 n/a
(libc.so.6 + 0x38a00)
 #4  0x7fcbd3559360 n/a
(libkwin.so.5 + 0x159360)
 #5  0x7fcbd36dc73f
_ZN4KWin9Workspace4initEv (libkwin.so.5 + 0x2dc73f)
 #6  0x7fcbd36de234
_ZN4KWin9WorkspaceC2Ev (libkwin.so.5 + 0x2de234)
 #7  0x7fcbd36391c7
_ZN4KWin11Application15createWorkspaceEv (libkwin.so.5 + 0x2391c7)
 #8  0x5593d2e1ca50 n/a
(kwin_x11 + 0x44a50)
 #9  0x7fcbd1cbda51 n/a
(libQt5Core.so.5 + 0x2bda51)
 #10 0x7fcbd271f13d n/a
(libKF5WindowSystem.so.5 + 0x2413d)
 #11 0x7fcbd2724f1d
_ZN15KSelectionOwner11filterEventEPv (libKF5WindowSystem.so.5 + 0x29f1d)
 #12 0x7fcbd1c8389f
_ZN24QAbstractEventDispatcher17filterNativeEventERK10QByteArrayPvPl
(libQt5Core.so.5 + 0x28389f)
 #13 0x7fcbcc507030
_ZN14QXcbConnection14handleXcbEventEP19xcb_generic_event_t (libQt5XcbQpa.so.5 +
0x3c030)
 #14 0x7fcbcc50b3a0
_ZN14QXcbConnection16processXcbEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE
(libQt5XcbQpa.so.5 + 0x403a0)
 #15 0x7fcbcc52f708 n/a
(libQt5XcbQpa.so.5 + 0x64708)
 #16 0x7fcbcf91687b
g_main_context_dispatch (libglib-2.0.so.0 + 0x5587b)
 #17 0x7fcbcf96dc89 n/a
(libglib-2.0.so.0 + 0xacc89)
 #18 0x7fcbcf915132
g_main_context_iteration (libglib-2.0.so.0 + 0x54132)
 #19 0x7fcbd1cd7c4c
_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE
(libQt5Core.so.5 + 0x2d7c4c)
 #20 0x7fcbd1c8573c
_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 +
0x28573c)
 #21 0x7fcbd1c90269
_ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x290269)
 #22 0x5593d2e15e40 n/a
(kwin_x11 + 0x3de40)
 #23 0x7fcbd0c3c290 n/a
(libc.so.6 + 0x23290)
 #24 0x7fcbd0c3c34a
__libc_start_main (libc.so.6 + 0x2334a)
 #25 0x5593d2e17225 n/a
(kwin_x11 + 0x3f225)

 Stack trace of thread 7771:
 #0  0x7fcbd0c9c4b6 n/a
(libc.so.6 + 0x834b6)
 #1  0x7fcbd0c9ecd0
pthread_cond_wait (libc.so.6 + 0x85cd0)
 #2  0x7fcbc8b0c50e n/a
(radeonsi_dri.so + 0x10c50e)
 #3  0x7fcbc8abc89c n/a
(radeonsi_dri.so + 0xbc89c)
  

[kwin] [Bug 463810] New: Kwin crashes on startup in Wayland

2023-01-03 Thread Amaan Q
https://bugs.kde.org/show_bug.cgi?id=463810

Bug ID: 463810
   Summary: Kwin crashes on startup in Wayland
Classification: Plasma
   Product: kwin
   Version: 5.26.5
  Platform: Archlinux
OS: Linux
Status: REPORTED
  Keywords: drkonqi
  Severity: crash
  Priority: NOR
 Component: general
  Assignee: kwin-bugs-n...@kde.org
  Reporter: amaan...@gmail.com
  Target Milestone: ---

Application: kwin_x11 (5.26.5)

Qt Version: 5.15.7
Frameworks Version: 5.101.0
Operating System: Linux 6.2.0-rc2-1-git-00010-g69b41ac87e4a x86_64
Windowing System: X11
Distribution: "Arch Linux"
DrKonqi: 5.26.5 [KCrashBackend]

-- Information about the crash:
On login w/ sddm, the screen(s) flicker 3-4x then is ok, saying kwin crashed,
and clicking "restart app" fixes it somehow, always happens with Wayland only

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr = {get() = }
[KCrash Handler]
#6  KWin::Workspace::initializeX11() (this=0x561d42a900e0) at
/usr/src/debug/kwin/kwin-5.26.5/src/workspace.cpp:366
#7  0x7f0ea76dc307 in KWin::Workspace::init() (this=0x561d42a900e0) at
/usr/src/debug/kwin/kwin-5.26.5/src/workspace.cpp:263
#8  0x7f0ea76dddf4 in KWin::Workspace::Workspace() (this=,
this=) at /usr/src/debug/kwin/kwin-5.26.5/src/workspace.cpp:193
#9  0x7f0ea76390d7 in KWin::Application::createWorkspace()
(this=0x7ffe7223ab40) at /usr/src/debug/kwin/kwin-5.26.5/src/main.cpp:242
#10 0x561d42510a50 in operator() (__closure=0x561d429e4980) at
/usr/src/debug/kwin/kwin-5.26.5/src/main_x11.cpp:244
#11 QtPrivate::FunctorCall, QtPrivate::List<>, void,
KWin::ApplicationX11::performStartup():: >::call (arg=, f=...) at /usr/include/qt/QtCore/qobjectdefs_impl.h:146
#12 QtPrivate::Functor,
0>::call, void> (arg=, f=...) at
/usr/include/qt/QtCore/qobjectdefs_impl.h:256
#13
QtPrivate::QFunctorSlotObject,
0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *,
void **, bool *) (which=, this_=0x561d429e4970, r=, a=, ret=) at
/usr/include/qt/QtCore/qobjectdefs_impl.h:443
#14 0x7f0ea5cbda51 in QtPrivate::QSlotObjectBase::call(QObject*, void**)
(a=0x7ffe7223a500, r=, this=0x561d429e4970, this=, r=, a=) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#15 doActivate(QObject*, int, void**) (sender=0x561d42759fc0,
signal_index=4, argv=0x7ffe7223a500) at kernel/qobject.cpp:3919
#16 0x7f0ea5fd213d in KSelectionOwner::Private::claimSucceeded()
(this=0x561d429d9100) at
/usr/src/debug/kwindowsystem/kwindowsystem-5.101.0/src/platforms/xcb/kselectionowner.cpp:194
#17 0x7f0ea5fd7f1d in KSelectionOwner::filterEvent(void*)
(this=0x561d42759fc0, ev_P=) at
/usr/src/debug/kwindowsystem/kwindowsystem-5.101.0/src/platforms/xcb/kselectionowner.cpp:389
#18 0x7f0ea5c8389f in
QAbstractEventDispatcher::filterNativeEvent(QByteArray const&, void*, long*)
(this=, eventType=..., message=message@entry=0x7f0e900071f0,
result=result@entry=0x7ffe7223a6a0) at kernel/qabstracteventdispatcher.cpp:495
#19 0x7f0ea0307030 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*)
(this=0x561d42654790, event=0x7f0e900071f0) at
/usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbconnection.cpp:579
#20 0x7f0ea030b3a0 in
QXcbConnection::processXcbEvents(QFlags)
(this=0x561d42654790, flags=...) at
/usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbconnection.cpp:1065
#21 0x7f0ea032f708 in xcbSourceDispatch(GSource*, GSourceFunc, gpointer)
(source=) at
/usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:103
#22 0x7f0ea3a6d87b in g_main_dispatch (context=0x7f0e98005010) at
../glib/glib/gmain.c:3454
#23 g_main_context_dispatch (context=0x7f0e98005010) at
../glib/glib/gmain.c:4172
#24 0x7f0ea3ac4c89 in g_main_context_iterate.constprop.0
(context=0x7f0e98005010, block=1, dispatch=1, self=) at
../glib/glib/gmain.c:4248
#25 0x7f0ea3a6c132 in g_main_context_iteration (context=0x7f0e98005010,
may_block=1) at ../glib/glib/gmain.c:4313
#26 0x7f0ea5cd7c4c in
QEventDispatcherGlib::processEvents(QFlags)
(this=0x561d4279e800, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#27 0x7f0ea5c8573c in
QEventLoop::exec(QFlags) (this=0x7ffe7223aa30,
flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#28 0x7f0ea5c90269 in QCoreApplication::exec() () at
../../include/QtCore/../../src/corelib/global/qflags.h:121
#29 0x7f0ea613a102 in QGuiApplication::exec() () at
kernel/qguiapplication.cpp:1870
#30 0x7f0ea5376f2a in QApplication::exec() () at
kernel/qapplication.cpp:2829
#31 0x561d42509e40 in main(int, char**) (argc=,
argv=) at /usr/src/debug/kwin/kwin-5.26.5/src/main_x11.cpp:407
[Inferior 1 (process 7122) detached]

The reporter indicates this bug may be a duplicate of or related to bug 453117,
bu

[kwin] [Bug 463810] Kwin crashes in KWin::Workspace::initializeX11() on startup in Wayland

2023-01-09 Thread Amaan Q
https://bugs.kde.org/show_bug.cgi?id=463810

--- Comment #2 from Amaan Q  ---
(In reply to Nate Graham from comment #1)
> Are you using X11 or Wayland? You said Wayland, but the backtrace and system
> info indicate X11.
> 
> Do you have an NVIDIA GPU? Could be Bug 448968.

I am on Wayland, with an AMD gpu (RX 6800XT)

It is weird that there's this initializeX11 call though..any ideas as to why?

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