Bug 439176

Summary: Crash in KWin::ScriptedEffect::animationTime
Product: [Plasma] kwin Reporter: Rui Pedro <rjosecas>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: kde
Priority: NOR Keywords: drkonqi
Version First Reported In: 5.22.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Rui Pedro 2021-06-26 09:33:43 UTC
Application: kwin_x11 (5.22.1)

Qt Version: 5.15.2
Frameworks Version: 5.83.0
Operating System: Linux 5.12.12-1-default x86_64
Windowing System: X11
Drkonqi Version: 5.22.1
Distribution: openSUSE Tumbleweed

-- Information about the crash:
- What I was doing when the application crashed:
Reparei que por defeito que a composição não estava activada. Reparei que o Latte-dock não era apresentado correctamento por causa da falta da activação da composição (opengl) a transparência não era apresentada na barra. 
Ao verificar a casa de activação da composição no painel de controlo do KDE / Ecrã e Monitor verifiquei que a  composição não estava activada.
Ao activar a casa e aplicar o kwin estoirou. Verifiquei tambem que estoura sempre.

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin_x11), signal: Bus error
Content of s_kcrashErrorMessage: [Current thread is 1 (Thread 0x7fa4859c5880 (LWP 1637))]
[KCrash Handler]
#6  KWin::ScriptedEffect::animationTime (this=0x5630365f1e90, defaultTime=300) at /usr/src/debug/kwin5-5.22.1-1.1.x86_64/src/scripting/scriptedeffect.cpp:618
#7  0x00007fa487869d8b in KWin::ScriptedEffect::qt_static_metacall (_o=0x5630365f1e90, _c=<optimized out>, _id=<optimized out>, _a=0x7fff69d10c70) at /usr/src/debug/kwin5-5.22.1-1.1.x86_64/build/src/kwin_autogen/7KDSW62DQT/moc_scriptedeffect.cpp:312
#8  0x00007fa48786a7eb in KWin::ScriptedEffect::qt_metacall (this=0x5630365f1e90, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0x7fff69d10c70) at /usr/src/debug/kwin5-5.22.1-1.1.x86_64/build/src/kwin_autogen/7KDSW62DQT/moc_scriptedeffect.cpp:730
#9  0x00007fa484eee05d in QQmlObjectOrGadget::metacall (this=this@entry=0x7fff69d10f00, type=type@entry=QMetaObject::InvokeMetaMethod, index=<optimized out>, index@entry=23, argv=<optimized out>) at /usr/src/debug/libqt5-qtdeclarative-5.15.2-4.2.x86_64/src/qml/qml/qqmlobjectorgadget.cpp:51
#10 0x00007fa484dcd0f0 in CallMethod (callType=<optimized out>, callArgs=0x2, engine=<optimized out>, argTypes=<optimized out>, argCount=<optimized out>, returnType=<optimized out>, index=<optimized out>, object=...) at /usr/include/qt5/QtCore/qvarlengtharray.h:201
#11 CallPrecise (object=..., data=..., engine=engine@entry=0x7fa478009e00, callArgs=callArgs@entry=0x7fa441a615b8, callType=callType@entry=QMetaObject::InvokeMetaMethod) at /usr/src/debug/libqt5-qtdeclarative-5.15.2-4.2.x86_64/src/qml/jsruntime/qv4qobjectwrapper.cpp:1569
#12 0x00007fa484dceedb in CallOverloaded (callType=<optimized out>, propertyCache=<optimized out>, callArgs=<optimized out>, engine=<optimized out>, data=..., object=...) at /usr/src/debug/libqt5-qtdeclarative-5.15.2-4.2.x86_64/src/qml/jsruntime/qv4qobjectwrapper.cpp:1645
#13 QV4::QObjectMethod::callInternal (this=<optimized out>, thisObject=<optimized out>, argv=<optimized out>, argc=<optimized out>) at /usr/src/debug/libqt5-qtdeclarative-5.15.2-4.2.x86_64/src/qml/jsruntime/qv4qobjectwrapper.cpp:2133
#14 0x00007fa484dfe403 in QV4::FunctionObject::call (argc=1, argv=0x7fa441a61518, thisObject=0x7fa441a615a0, this=<optimized out>) at /usr/src/debug/libqt5-qtdeclarative-5.15.2-4.2.x86_64/src/qml/jsruntime/qv4functionobject_p.h:202
#15 QV4::Runtime::CallName::call (engine=0x7fa478009e00, nameIndex=2, argv=0x7fa441a61518, argc=1) at /usr/src/debug/libqt5-qtdeclarative-5.15.2-4.2.x86_64/src/qml/jsruntime/qv4runtime.cpp:1406
#16 0x00007fa484deb3ea in QV4::Moth::VME::interpret (frame=0x7fff69d11210, engine=0x7fa478009e00, code=0x56303664346a "\030\a(\001\030\b(\002\030\t(\003\030\n(\004\030\v(\005\030\f(\006\030\r(\a\030\016(\b\030\017(\t\030\020(\n\030\021(\v\030\022(\f\030\023\346\003\r\a0\001*\001\030\a\244-\a") at /usr/src/debug/libqt5-qtdeclarative-5.15.2-4.2.x86_64/src/qml/jsruntime/qv4vme_moth.cpp:766
#17 0x00007fa484dee7b7 in QV4::Moth::VME::exec (frame=frame@entry=0x7fff69d11210, engine=engine@entry=0x7fa478009e00) at /usr/src/debug/libqt5-qtdeclarative-5.15.2-4.2.x86_64/src/qml/jsruntime/qv4vme_moth.cpp:463
#18 0x00007fa484d81c3e in QV4::Function::call (this=<optimized out>, thisObject=<optimized out>, argv=argv@entry=0x0, argc=argc@entry=0, context=<optimized out>) at /usr/src/debug/libqt5-qtdeclarative-5.15.2-4.2.x86_64/src/qml/jsruntime/qv4function.cpp:69
#19 0x00007fa484dc059c in QV4::Script::run (this=this@entry=0x7fff69d112f0, thisObject=thisObject@entry=0x0) at /usr/src/debug/libqt5-qtdeclarative-5.15.2-4.2.x86_64/src/qml/jsruntime/qv4script.cpp:162
#20 0x00007fa484d38c82 in QJSEngine::evaluate (this=this@entry=0x7fa47800cfc0, program=..., fileName=..., lineNumber=lineNumber@entry=1) at /usr/src/debug/libqt5-qtdeclarative-5.15.2-4.2.x86_64/src/qml/jsapi/qjsengine.cpp:545
#21 0x00007fa48795309b in KWin::ScriptedEffect::init (this=0x7fff69d113c8, this@entry=0x5630365f1e90, effectName=..., pathToScript=...) at /usr/src/debug/kwin5-5.22.1-1.1.x86_64/src/scripting/scriptedeffect.cpp:268
#22 0x00007fa487953865 in KWin::ScriptedEffect::create (effectName=..., pathToScript=..., chainPosition=0) at /usr/src/debug/kwin5-5.22.1-1.1.x86_64/src/scripting/scriptedeffect.cpp:156
#23 0x00007fa487953a96 in KWin::ScriptedEffect::create (effect=...) at /usr/src/debug/kwin5-5.22.1-1.1.x86_64/src/scripting/scriptedeffect.cpp:150
#24 0x00007fa4878c8065 in KWin::ScriptedEffectLoader::loadEffect (this=0x56303658d0a0, effect=..., flags=...) at /usr/src/debug/kwin5-5.22.1-1.1.x86_64/src/effectloader.cpp:238
#25 0x00007fa4878c84d9 in KWin::EffectLoadQueue<KWin::ScriptedEffectLoader, KPluginMetaData>::dequeue (this=0x56303658cd70) at /usr/include/qt5/QtCore/qlist.h:245
#26 KWin::EffectLoadQueue<KWin::ScriptedEffectLoader, KPluginMetaData>::dequeue (this=0x56303658cd70) at /usr/src/debug/kwin5-5.22.1-1.1.x86_64/src/effectloader.h:240
#27 0x00007fa48649609e in QObject::event (this=0x56303658cd70, e=0x56303658c650) at kernel/qobject.cpp:1314
#28 0x00007fa48705da5f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x56303658cd70, e=0x56303658c650) at kernel/qapplication.cpp:3632
#29 0x00007fa486469aaa in QCoreApplication::notifyInternal2 (receiver=0x56303658cd70, event=0x56303658c650) at kernel/qcoreapplication.cpp:1063
#30 0x00007fa48646caf7 in QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=data@entry=0x563035a6df00) at kernel/qcoreapplication.cpp:1817
#31 0x00007fa4864be60a in QEventDispatcherUNIX::processEvents (this=this@entry=0x563035b54cf0, flags=...) at kernel/qeventdispatcher_unix.cpp:468
#32 0x00007fa4802240be in QXcbUnixEventDispatcher::processEvents (this=0x563035b54cf0, flags=...) at qxcbeventdispatcher.cpp:60
#33 0x00007fa4864684bb in QEventLoop::exec (this=this@entry=0x7fff69d11a70, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#34 0x00007fa486470790 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#35 0x00007fa4868cd1fc in QGuiApplication::exec () at kernel/qguiapplication.cpp:1867
#36 0x00007fa48705d9d5 in QApplication::exec () at kernel/qapplication.cpp:2824
#37 0x00005630343befb6 in main (argc=<optimized out>, argv=0x7fff69d11d08) at /usr/src/debug/kwin5-5.22.1-1.1.x86_64/src/main_x11.cpp:479
[Inferior 1 (process 1637) detached]

Reported using DrKonqi
Comment 1 David Edmundson 2023-09-06 10:38:15 UTC
This bug was reported against an outdated version of KWin. We have made many changes since the. 
If the issue persists in newer versions can you reopen the bug report updating the version number.