Bug 493852

Summary: KWin crash and segfault upon openining firefox directly after reboot
Product: [Plasma] plasmashell Reporter: Carlos Castro <carloslcastro>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: nate, notmart
Priority: NOR Keywords: drkonqi
Version First Reported In: 6.1.5   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Carlos Castro 2024-09-29 22:42:37 UTC
Application: plasmashell (6.1.5)

Qt Version: 6.7.2
Frameworks Version: 6.6.0
Operating System: Linux 6.10.11-200.fc40.x86_64 x86_64
Windowing System: Wayland
Distribution: "Fedora Linux 40 (KDE Plasma)"
DrKonqi: 6.1.5 [CoredumpBackend]

-- Information about the crash:
I had recently performed updates on my fedora 40 kde system and rebooted, I then just clicked on the firefox icon to launch firefox  Firefox opened several windows (one of them being a youtube window which I believe to be the problem since I have had multiple kwin crashes while watching youtube).  Then I got the popup that kwin crashed and successfully restarted.

The reporter is unsure if this crash is reproducible.

-- Backtrace (Reduced):
#5  0x00007f552bcb72c3 in tcache_next (e=<optimized out>) at malloc.c:3626
#6  _mid_memalign (alignment=alignment@entry=64, bytes=bytes@entry=184, address=<optimized out>) at malloc.c:3627
#7  0x00007f552bcb8b7c in __posix_memalign (memptr=0x7f547fdfee60, alignment=64, size=184) at malloc.c:5798
#8  __posix_memalign (memptr=memptr@entry=0x7f547fdfee60, alignment=alignment@entry=64, size=size@entry=184) at malloc.c:5782
#9  0x00007f550e0deb83 in os_malloc_aligned (alignment=64, size=184) at ../src/util/os_memory_aligned.h:58


Reported using DrKonqi
Comment 1 Carlos Castro 2024-09-29 22:42:39 UTC
Created attachment 174214 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Marco Martin 2024-09-30 15:03:38 UTC
Thread 1 (Thread 0x7f547fe006c0 (LWP 5086)):
[KCrash Handler]
#5  0x00007f552bcb72c3 in tcache_next (e=<optimized out>) at malloc.c:3626
#6  _mid_memalign (alignment=alignment@entry=64, bytes=bytes@entry=184, address=<optimized out>) at malloc.c:3627
#7  0x00007f552bcb8b7c in __posix_memalign (memptr=0x7f547fdfee60, alignment=64, size=184) at malloc.c:5798
#8  __posix_memalign (memptr=memptr@entry=0x7f547fdfee60, alignment=alignment@entry=64, size=size@entry=184) at malloc.c:5782
#9  0x00007f550e0deb83 in os_malloc_aligned (alignment=64, size=184) at ../src/util/os_memory_aligned.h:58
#10 align_calloc (alignment=64, size=184) at ../src/util/u_memory.h:68
#11 si_texture_from_handle (screen=0x564e72abe030, templ=0x7f547fdfeef0, whandle=0x7f547fdff030, usage=2) at ../src/gallium/drivers/radeonsi/si_texture.c:1721
#12 0x00007f550d83784a in dri2_create_image_from_winsys (_screen=_screen@entry=0x564e72aacbd0, width=width@entry=1920, height=height@entry=1384, map=<optimized out>, map@entry=0x7f550f160220 <dri2_format_table+544>, num_handles=num_handles@entry=2, whandle=whandle@entry=0x7f547fdfeff0, bind=0, loaderPrivate=0x0) at ../src/gallium/frontends/dri/dri2.c:1011
#13 0x00007f550d83802c in dri2_create_image_from_fd (_screen=0x564e72aacbd0, width=1920, height=1384, fourcc=875713089, modifier=144115188622605059, fds=0x7f547fdff210, num_fds=2, strides=0x7f547fdff220, offsets=0x7f547fdff230, bind=0, error=0x7f547fdff20c, loaderPrivate=0x0) at ../src/gallium/frontends/dri/dri2.c:1173
#14 0x00007f550d83819e in dri2_from_dma_bufs2 (screen=<optimized out>, width=<optimized out>, height=<optimized out>, fourcc=<optimized out>, modifier=<optimized out>, fds=<optimized out>, num_fds=2, strides=0x7f547fdff220, offsets=0x7f547fdff230, yuv_color_space=__DRI_YUV_COLOR_SPACE_UNDEFINED, sample_range=__DRI_YUV_RANGE_UNDEFINED, horizontal_siting=__DRI_YUV_CHROMA_SITING_UNDEFINED, vertical_siting=__DRI_YUV_CHROMA_SITING_UNDEFINED, error=0x7f547fdff20c, loaderPrivate=0x0) at ../src/gallium/frontends/dri/dri2.c:1783
#15 0x00007f551809276a in dri2_create_image_dma_buf (disp=0x564e72a23f60, ctx=<optimized out>, buffer=<optimized out>, attr_list=<optimized out>) at ../src/egl/drivers/dri2/egl_dri2.c:2847
#16 0x00007f551808ead1 in dri2_create_image (disp=0x564e72a23f60, ctx=0x0, target=12912, buffer=0x0, attr_list=<optimized out>) at ../src/egl/drivers/dri2/egl_dri2.c:2117
#17 0x00007f551807f5f8 in _eglCreateImageCommon (disp=0x564e72a23f60, ctx=<optimized out>, target=12912, buffer=0x0, attr_list=0x7f540c422570) at ../src/egl/main/eglapi.c:1839
#18 0x00007f5516938164 in GLHelpers::createImage (display=0x564e72a23f60, dmabufAttribs=..., format=<optimized out>, size=..., gbmDevice=<optimized out>) at /usr/src/debug/kpipewire-6.1.5-1.fc40.x86_64/src/glhelpers.cpp:168
#19 0x00007f551692fea9 in operator() (__closure=0x564e7486a290) at /usr/src/debug/kpipewire-6.1.5-1.fc40.x86_64/src/pipewiresourceitem.cpp:365
#20 std::__invoke_impl<QSGTexture*, PipeWireSourceItem::updateTextureDmaBuf(const DmaBufAttributes&, spa_video_format)::<lambda()>&> (__f=...) at /usr/include/c++/14/bits/invoke.h:61
#21 std::__invoke_r<QSGTexture*, PipeWireSourceItem::updateTextureDmaBuf(const DmaBufAttributes&, spa_video_format)::<lambda()>&> (__fn=...) at /usr/include/c++/14/bits/invoke.h:114
#22 std::_Function_handler<QSGTexture*(), PipeWireSourceItem::updateTextureDmaBuf(const DmaBufAttributes&, spa_video_format)::<lambda()> >::_M_invoke(const std::_Any_data &) (__functor=...) at /usr/include/c++/14/bits/std_function.h:290
#23 0x00007f5516927381 in std::function<QSGTexture* ()>::operator()() const (this=<optimized out>) at /usr/include/c++/14/bits/std_function.h:591
#24 PipeWireSourceItem::updatePaintNode (this=0x564e761819a0, node=0x7f540c1ad650) at /usr/src/debug/kpipewire-6.1.5-1.fc40.x86_64/src/pipewiresourceitem.cpp:261
#25 0x00007f552deb3334 in QQuickWindowPrivate::updateDirtyNode (this=this@entry=0x564e73920350, item=item@entry=0x564e761819a0) at /usr/src/debug/qt6-qtdeclarative-6.7.2-2.fc40.x86_64/src/quick/items/qquickwindow.cpp:2255
#26 0x00007f552deb3b1c in QQuickWindowPrivate::updateDirtyNodes (this=this@entry=0x564e73920350) at /usr/src/debug/qt6-qtdeclarative-6.7.2-2.fc40.x86_64/src/quick/items/qquickwindow.cpp:1997
#27 0x00007f552deb7c54 in QQuickWindowPrivate::syncSceneGraph (this=0x564e73920350) at /usr/src/debug/qt6-qtdeclarative-6.7.2-2.fc40.x86_64/src/quick/items/qquickwindow.cpp:573
#28 0x00007f552e0cdbef in QSGRenderThread::sync (this=this@entry=0x7f5504007560, inExpose=inExpose@entry=false) at /usr/src/debug/qt6-qtdeclarative-6.7.2-2.fc40.x86_64/src/quick/scenegraph/qsgthreadedrenderloop.cpp:552
#29 0x00007f552e0cf1a6 in QSGRenderThread::syncAndRender (this=this@entry=0x7f5504007560) at /usr/src/debug/qt6-qtdeclarative-6.7.2-2.fc40.x86_64/src/quick/scenegraph/qsgthreadedrenderloop.cpp:715
#30 0x00007f552e0d0263 in QSGRenderThread::run (this=0x7f5504007560) at /usr/src/debug/qt6-qtdeclarative-6.7.2-2.fc40.x86_64/src/quick/scenegraph/qsgthreadedrenderloop.cpp:974
#31 0x00007f552c55473c in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/thread/qthread_unix.cpp:326
#32 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/thread/qthread_unix.cpp:262
#33 QThreadPrivate::start (arg=0x7f5504007560) at /usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/thread/qthread_unix.cpp:285
#34 0x00007f552bca66d7 in start_thread (arg=<optimized out>) at pthread_create.c:447
#35 0x00007f552bd2a60c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
Comment 3 Marco Martin 2024-09-30 15:04:15 UTC
you say kwin crashed, the backtrace is from plasmashell
which of the two crash? or both? (a kwin crash would give a black screen for a moment)
Comment 4 Nate Graham 2024-09-30 19:19:17 UTC

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