Bug 484534

Summary: Color dialog invocation crashes plasmashell.
Product: [Plasma] plasmashell Reporter: Roke Julian Lockhart Beedell <4wy78uwh>
Component: Image WallpaperAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash CC: akselmo, notmart, qydwhotmail
Priority: NOR Flags: 4wy78uwh: performance-
4wy78uwh: Wayland-
4wy78uwh: X11+
Version: 6.0.2   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
URL: https://bugs.kde.org/show_bug.cgi?id=476509#c6
See Also: https://bugs.kde.org/show_bug.cgi?id=476509
https://bugs.kde.org/show_bug.cgi?id=484536
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Roke Julian Lockhart Beedell 2024-03-26 16:40:32 UTC
SUMMARY
Plasmashell crashes when I try to change my wallpaper's colouration.

STEPS TO REPRODUCE
1.  `gdb plasmashell`
1.  Invoke secondary mouse button (or context menu key) on plasmashell's desktop.
1.  Select "Configure desktop and wallpaper".
1.  Select the wallpaper section (if not yet selected).
1.  Click the "Color" box (note that it won't be highlighted on mouse over).

OBSERVED RESULT
```
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007ffff4894a73 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2  0x00007ffff4841176 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3  0x00007ffff4828917 in __GI_abort () at abort.c:79
#4  0x00007fffe02de498 in llvm::report_fatal_error(llvm::Twine const&, bool) (Reason=<optimized out>, GenCrashDiag=true) at /home/abuild/rpmbuild/BUILD/llvm-18.1.1.src/lib/Support/ErrorHandling.cpp:123
#5  0x00007fffe130fc6c in combineInstructionsOverFunction(llvm::Function&, llvm::InstructionWorklist&, llvm::AAResults*, llvm::AssumptionCache&, llvm::TargetLibraryInfo&, llvm::TargetTransformInfo&, llvm::DominatorTree&, llvm::OptimizationRemarkEmitter&, llvm::BlockFrequencyInfo*, llvm::ProfileSummaryInfo*, llvm::LoopInfo*, llvm::InstCombineOptions const&) (F=..., Worklist=..., AA=0x7ffec5f88148, AC=..., TLI=..., TTI=..., DT=..., ORE=..., BFI=0x0, PSI=0x0, LI=0x0, Opts=...)
    at /home/abuild/rpmbuild/BUILD/llvm-18.1.1.src/lib/Transforms/InstCombine/InstructionCombining.cpp:4804
#6  0x00007fffe130def7 in llvm::InstCombinePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (this=<optimized out>, F=..., AM=...) at /home/abuild/rpmbuild/BUILD/llvm-18.1.1.src/lib/Transforms/InstCombine/InstructionCombining.cpp:4856
#7  0x00007fffe3b62c0e in llvm::detail::PassModel<llvm::Function, llvm::InstCombinePass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (this=<optimized out>, IR=..., AM=...)
    at /home/abuild/rpmbuild/BUILD/llvm-18.1.1.src/include/llvm/IR/PassManagerInternal.h:89
#8  0x00007fffe0544624 in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (this=<optimized out>, IR=..., AM=...)
    at /home/abuild/rpmbuild/BUILD/llvm-18.1.1.src/include/llvm/IR/PassManager.h:543
#9  0x00007fffe285429d in llvm::detail::PassModel<llvm::Function, llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&)
    (this=<optimized out>, IR=..., AM=...) at /home/abuild/rpmbuild/BUILD/llvm-18.1.1.src/include/llvm/IR/PassManagerInternal.h:89
#10 0x00007fffe0547e8f in llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (this=0x7ffec5fcdb18, M=<optimized out>, AM=<optimized out>) at /home/abuild/rpmbuild/BUILD/llvm-18.1.1.src/lib/IR/PassManager.cpp:123
#11 0x00007fffe285400e in llvm::detail::PassModel<llvm::Module, llvm::ModuleToFunctionPassAdaptor, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (this=<optimized out>, IR=..., AM=...)
    at /home/abuild/rpmbuild/BUILD/llvm-18.1.1.src/include/llvm/IR/PassManagerInternal.h:89
#12 0x00007fffe0543204 in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (this=<optimized out>, IR=..., AM=...)
    at /home/abuild/rpmbuild/BUILD/llvm-18.1.1.src/include/llvm/IR/PassManager.h:543
#13 0x00007fffe3b883f3 in LLVMRunPasses(LLVMModuleRef, char const*, LLVMTargetMachineRef, LLVMPassBuilderOptionsRef) (M=0x7ffec5ee51f0, Passes=<optimized out>, TM=<optimized out>, Options=<optimized out>)
    at /home/abuild/rpmbuild/BUILD/llvm-18.1.1.src/lib/Passes/PassBuilderBindings.cpp:78
#14 0x00007fffea4678e8 in  () at /usr/lib64/dri/swrast_dri.so
#15 0x00007fffea4eb911 in  () at /usr/lib64/dri/swrast_dri.so
#16 0x00007fffea4bdc28 in  () at /usr/lib64/dri/swrast_dri.so
#17 0x00007fffea4be9f8 in  () at /usr/lib64/dri/swrast_dri.so
#18 0x00007fffea10be10 in  () at /usr/lib64/dri/swrast_dri.so
#19 0x00007fffea11019c in  () at /usr/lib64/dri/swrast_dri.so
#20 0x00007ffff5ce1e54 in QOpenGLFunctions::glDrawElements(unsigned int, int, unsigned int, void const*) (indices=<optimized out>, type=5123, count=<optimized out>, mode=<optimized out>, this=<optimized out>)
    at /usr/src/debug/qtbase-everywhere-src-6.6.2/src/gui/opengl/qopenglfunctions.h:720
#21 QRhiGles2::executeCommandBuffer(QRhiCommandBuffer*) (this=0x7ffec40018a0, cb=<optimized out>) at /usr/src/debug/qtbase-everywhere-src-6.6.2/src/gui/rhi/qrhigles2.cpp:3115
#22 0x00007ffff5cdb2df in QRhiGles2::endFrame(QRhiSwapChain*, QFlags<QRhi::EndFrameFlag>) (this=0x7ffec40018a0, swapChain=0x7ffec5b60b60, flags=...) at /usr/src/debug/qtbase-everywhere-src-6.6.2/src/gui/rhi/qrhigles2.cpp:2054
#23 0x00007ffff5bba078 in QRhi::endFrame(QRhiSwapChain*, QFlags<QRhi::EndFrameFlag>) (this=0x7ffec4001880, swapChain=0x7ffec5b60b60, flags=..., flags@entry=...) at /usr/src/debug/qtbase-everywhere-src-6.6.2/src/gui/rhi/qrhi.cpp:10213
--Type <RET> for more, q to quit, c to continue without paging--c
#24 0x00007ffff6c3470c in QSGRenderThread::syncAndRender() (this=<optimized out>) at /usr/include/qt6/QtCore/qflags.h:73
#25 QSGRenderThread::run() (this=0x55555b7e7360) at /usr/src/debug/qtdeclarative-everywhere-src-6.6.2/src/quick/scenegraph/qsgthreadedrenderloop.cpp:946
#26 0x00007ffff52e5779 in operator() (__closure=<optimized out>) at /usr/src/debug/qtbase-everywhere-src-6.6.2/src/corelib/thread/qthread_unix.cpp:324
#27 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /usr/src/debug/qtbase-everywhere-src-6.6.2/src/corelib/thread/qthread_unix.cpp:260
#28 QThreadPrivate::start(void*) (arg=0x55555b7e7360) at /usr/src/debug/qtbase-everywhere-src-6.6.2/src/corelib/thread/qthread_unix.cpp:283
#29 0x00007ffff4892bb2 in start_thread (arg=<optimized out>) at pthread_create.c:447
#30 0x00007ffff491400c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
```

EXPECTED RESULT
It should invoke the new QQC2 colour dialog pseudo-window.

SOFTWARE/OS VERSIONS
Operating System: cpe:/o:opensuse:tumbleweed:20240321
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.8.1-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
Memory: 30.5 GiB of RAM
Graphics Processor: llvmpipe
Manufacturer: ASRock
Product Name: X670E Taichi
Comment 1 Akseli Lahtinen 2024-06-14 12:27:20 UTC
I am unable to reproduce this on Plasma 6.1

Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.80
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.1
Kernel Version: 6.8.11-300.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600
Comment 2 Roke Julian Lockhart Beedell 2024-06-14 12:52:00 UTC
(In reply to Akseli Lahtinen from comment #1)
Yep, nor can I on:

> Operating System: Fedora Linux 40
> KDE Plasma Version: 6.0.5
> KDE Frameworks Version: 6.3.0
> Qt Version: 6.7.1
> Kernel Version: 6.9.4-200.fc40.x86_64 (64-bit)
> Graphics Platform: Wayland
> Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
> Memory: 30.5 GiB of RAM
> Graphics Processor: AMD Radeon RX 5700
> Manufacturer: ASRock
> Product Name: X670E Taichi