https://bugs.kde.org/show_bug.cgi?id=506854
--- Comment #5 from Franciszek Stachura <[email protected]> --- (In reply to Vlad Zahorodnii from comment #3) > This looks like a QJSEngine bug :( > > https://invent.kde.org/plasma/kwin/-/blob/ > b8e3426b49350e94ea0233fe6a4e9c73c74a3424/src/plugins/windowaperture/package/ > contents/code/main.js#L144 set() returns a proper value but > `w.offToCornerId` is `undefined` after the assignment. (I don't know much about KDE internals so I'm not saying it's not a QJSEngine bug, but...) Are you sure? I added some logs where offToCornerId is set and deleted and I get traces like the following: > js: showing, set w.offToCornerId KWin::EffectWindow(0x5626eb88fb80) > [73251,73252] > js: animation ended KWin::EffectWindow(0x5626eb88fb80) [73251,73252] > js: animation ended KWin::EffectWindow(0x5626eb88fb80) undefined > "Could not convert argument 0 from undefined to QList<qulonglong>" > "animationEnded@:192" > <Unknown File>:192: TypeError: Passing incompatible arguments to C++ > functions from JavaScript is not allowed. Right before the TypeError there always are two consecutive "animation ended", the second always has undefined offToCornerId. "showing, set w.offToCornerId" never shows undefined offToCornerId (but I guess it could become undefined after the function exists...). I only get this message if I hold Meta+D (so I guess things must happen fast). Modified /usr/share/kwin-wayland/effects/windowaperture/contents/code/main.js: https://gist.github.com/fstachura/8af1e74b7698dd14b40fdcda1867711c -- You are receiving this mail because: You are watching all bug changes.
