https://bugs.kde.org/show_bug.cgi?id=435637

            Bug ID: 435637
           Summary: Random crash in PipeWireStream::recordFrame
           Product: kwin
           Version: 5.21.4
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: wayland-generic
          Assignee: kwin-bugs-n...@kde.org
          Reporter: alex...@protonmail.com
  Target Milestone: ---

I can't really give reproduction steps, this crash was kind of random. It might
have been caused by me having Discord open, but it didn't happen while I was
screen-sharing. In fact, I've managed share through discord without crashes.

Hopefully this backtrace helps though... I've been getting random crashes over
the past few weeks, I assume this is the same cause, but only managed to get a
useful backtrace just now.

Qt 5.15.2, Frameworks 5.80, Mesa 21.0.2, Kernel 5.11.9.

This is the main thread of concern, the rest aren't informative.

Thread 1 (Thread 0x7f2f85786940 (LWP 1616)):
#0  __memmove_avx_unaligned_erms () at
../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:423
#1  0x00007f2f743c5dbd in memcpy (__len=<optimized out>, __src=0x7f2e17a31000,
__dest=<optimized out>) at /usr/include/bits/string_fortified.h:29
#2  st_GetTexSubImage (ctx=0x7f2f74091010, xoffset=0, yoffset=0, zoffset=0,
width=1276, height=1367, depth=1, format=32993, type=5121, pixels=0xd427f020,
texImage=0x55c9490c6d70) at ../src/mesa/state_tracker/st_cb_texture.c:2232
#3  0x00007f2f7455177f in get_texture_image (ctx=ctx@entry=0x7f2f74091010,
texObj=texObj@entry=0x55c949058cc0, target=target@entry=3553,
level=level@entry=0, xoffset=xoffset@entry=0, yoffset=yoffset@entry=0,
zoffset=<optimized out>, width=1276, height=1367, depth=<optimized out>,
format=32993, type=5121, pixels=0xd427f020, caller=0x7f2f751566d2
"glGetTextureImage") at ../src/mesa/main/texgetimage.c:1437
#4  0x00007f2f745519df in _get_texture_image (ctx=ctx@entry=0x7f2f74091010,
texObj=0x55c949058cc0, target=3553, level=level@entry=0,
format=format@entry=32993, type=type@entry=5121, bufSize=6977168,
pixels=0xd427f020, caller=0x7f2f751566d2 "glGetTextureImage") at
../src/mesa/main/texgetimage.c:1475
#5  0x00007f2f745530d2 in _mesa_GetTextureImage (texture=<optimized out>,
level=0, format=32993, type=5121, bufSize=6977168, pixels=0xd427f020) at
../src/mesa/main/texgetimage.c:1533
#6  0x000055c9451e656d in KWin::PipeWireStream::recordFrame(KWin::GLTexture*,
QRegion const&) (this=this@entry=0x55c949f6a330, frameTexture=0x55c94a0edac0,
damagedRegion=...) at
/usr/src/debug/kwin-5.21.4-1.fc34.x86_64/plugins/screencast/pipewirestream.cpp:360
#7  0x000055c9451e724b in KWin::WindowStream::bufferToStream()
(this=0x55c949f6a330) at /usr/include/qt5/QtCore/qsharedpointer_impl.h:301
#8  0x00007f2f8c3574b0 in QtPrivate::QSlotObjectBase::call(QObject*, void**)
(a=0x7ffde51ac260, r=<optimized out>, this=0x55c949f2b790) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#9  doActivate<false>(QObject*, int, void**) (sender=0x55c9471d9b40,
signal_index=3, argv=0x7ffde51ac260) at kernel/qobject.cpp:3886
#10 0x00007f2f8be9d8f8 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion
const&, KWin::ScreenPaintData&) (this=0x55c947a83bf0, mask=<optimized out>,
region=<optimized out>, data=<optimized out>) at
/usr/src/debug/kwin-5.21.4-1.fc34.x86_64/effects.cpp:378
#11 0x00007f2f8be9d8f8 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion
const&, KWin::ScreenPaintData&) (this=0x55c947a83bf0, mask=<optimized out>,
region=<optimized out>, data=<optimized out>) at
/usr/src/debug/kwin-5.21.4-1.fc34.x86_64/effects.cpp:378
#12 0x00007f2f8be9d8f8 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion
const&, KWin::ScreenPaintData&) (this=0x55c947a83bf0, mask=<optimized out>,
region=<optimized out>, data=<optimized out>) at
/usr/src/debug/kwin-5.21.4-1.fc34.x86_64/effects.cpp:378
#13 0x00007f2f8bf09429 in KWin::Scene::paintScreen(int*, QRegion const&,
QRegion const&, QRegion*, QRegion*, KWin::RenderLoop*, QMatrix4x4 const&, QRect
const&, double) (this=this@entry=0x55c9471d9b40,
mask=mask@entry=0x7ffde51ac420, damage=..., repaint=...,
updateRegion=updateRegion@entry=0x7ffde51ac428,
validRegion=validRegion@entry=0x7ffde51ac430, renderLoop=0x55c94717c480,
projection=..., outputGeometry=..., screenScale=screenScale@entry=1) at
/usr/src/debug/kwin-5.21.4-1.fc34.x86_64/scene.cpp:197
#14 0x00007f2f75a14d69 in KWin::SceneOpenGL::paint(int, QRegion const&,
QList<KWin::Toplevel*> const&, KWin::RenderLoop*) (renderLoop=0x55c94717c480,
toplevels=<optimized out>, damage=..., screenId=0, this=0x55c9471d9b40) at
/usr/src/debug/kwin-5.21.4-1.fc34.x86_64/plugins/scenes/opengl/scene_opengl.cpp:645
#15 KWin::SceneOpenGL::paint(int, QRegion const&, QList<KWin::Toplevel*>
const&, KWin::RenderLoop*) (this=0x55c9471d9b40, screenId=0, damage=...,
toplevels=<optimized out>, renderLoop=0x55c94717c480) at
/usr/src/debug/kwin-5.21.4-1.fc34.x86_64/plugins/scenes/opengl/scene_opengl.cpp:605
#16 0x00007f2f8be732c5 in
KWin::Compositor::handleFrameRequested(KWin::RenderLoop*)
(renderLoop=0x55c94717c480, this=<optimized out>) at
/usr/src/debug/kwin-5.21.4-1.fc34.x86_64/composite.cpp:665
#17 KWin::Compositor::handleFrameRequested(KWin::RenderLoop*) (this=<optimized
out>, renderLoop=0x55c94717c480) at
/usr/src/debug/kwin-5.21.4-1.fc34.x86_64/composite.cpp:589
#18 0x00007f2f8c3574b0 in QtPrivate::QSlotObjectBase::call(QObject*, void**)
(a=0x7ffde51ac6a0, r=<optimized out>, this=0x55c9470c1450) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#19 doActivate<false>(QObject*, int, void**) (sender=0x55c94717c480,
signal_index=5, argv=0x7ffde51ac6a0) at kernel/qobject.cpp:3886
#20 0x00007f2f8c3519e7 in QMetaObject::activate(QObject*, QMetaObject const*,
int, void**) (sender=<optimized out>, m=m@entry=0x7f2f8c08e580
<KWin::RenderLoop::staticMetaObject>,
local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffde51ac6a0)
at kernel/qobject.cpp:3946
#21 0x00007f2f8be37036 in KWin::RenderLoop::frameRequested(KWin::RenderLoop*)
(this=<optimized out>, _t1=<optimized out>) at
/usr/src/debug/kwin-5.21.4-1.fc34.x86_64/x86_64-redhat-linux-gnu/kwin_autogen/EWIEGA46WW/moc_renderloop.cpp:193
#22 0x00007f2f8bf01087 in KWin::RenderLoopPrivate::dispatch()
(this=0x55c947225ad0) at
/usr/src/debug/kwin-5.21.4-1.fc34.x86_64/renderloop.cpp:143
#23 0x00007f2f8c3574b0 in QtPrivate::QSlotObjectBase::call(QObject*, void**)
(a=0x7ffde51ac7c0, r=<optimized out>, this=0x55c9471b0260) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#24 doActivate<false>(QObject*, int, void**) (sender=0x55c947225ae8,
signal_index=3, argv=0x7ffde51ac7c0) at kernel/qobject.cpp:3886
#25 0x00007f2f8c3519e7 in QMetaObject::activate(QObject*, QMetaObject const*,
int, void**) (sender=<optimized out>, m=m@entry=0x7f2f8c5ec580
<QTimer::staticMetaObject>, local_signal_index=local_signal_index@entry=0,
argv=argv@entry=0x7ffde51ac7c0) at kernel/qobject.cpp:3946
#26 0x00007f2f8c35a5ae in QTimer::timeout(QTimer::QPrivateSignal)
(this=<optimized out>, _t1=...) at .moc/moc_qtimer.cpp:205
#27 0x00007f2f8c34e21f in QObject::event(QEvent*) (this=0x55c947225ae8,
e=0x7ffde51ac910) at kernel/qobject.cpp:1336
#28 0x00007f2f8b35de73 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
(this=<optimized out>, receiver=0x55c947225ae8, e=0x7ffde51ac910) at
kernel/qapplication.cpp:3632
#29 0x00007f2f8c326f48 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
(receiver=0x55c947225ae8, event=0x7ffde51ac910) at
kernel/qcoreapplication.cpp:1063
#30 0x00007f2f8c3729e3 in QTimerInfoList::activateTimers()
(this=this@entry=0x55c947098518) at kernel/qtimerinfo_unix.cpp:643
#31 0x00007f2f8c36fe60 in QEventDispatcherUNIXPrivate::activateTimers()
(this=this@entry=0x55c947098490) at kernel/qeventdispatcher_unix.cpp:249
#32 0x00007f2f8c370ee0 in
QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
(this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:516
#33 0x000055c945211e31 in
QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
()
#34 0x00007f2f8c3259b2 in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
(this=this@entry=0x7ffde51aca90, flags=..., flags@entry=...) at
../../include/QtCore/../../src/corelib/global/qflags.h:69
#35 0x00007f2f8c32d544 in QCoreApplication::exec() () at
../../include/QtCore/../../src/corelib/global/qflags.h:121
#36 0x000055c9451be5b1 in main(int, char**) (argc=<optimized out>,
argv=0x7ffde51accd0) at
/usr/src/debug/kwin-5.21.4-1.fc34.x86_64/main_wayland.cpp:788

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

Reply via email to