https://bugs.kde.org/show_bug.cgi?id=488647
Bug ID: 488647 Summary: Internal error/crash when setting palette columns to 0 Classification: Applications Product: krita Version: nightly build (please specify the git hash!) Platform: Manjaro OS: Linux Status: REPORTED Severity: crash Priority: NOR Component: General Assignee: krita-bugs-n...@kde.org Reporter: chirn...@hotmail.com Target Milestone: --- SUMMARY Editing the palette swatch columns to 0 (which I did accidentally when it happened), will result in an error message and an unexpected quit if one of the choices is picked. STEPS TO REPRODUCE 1. Open any palette in the palette docker and click the "Edit current palette" button at the bottom. 2. Change the number of "Columns of swatches" to 0 and click OK. OBSERVED RESULT You will see the following error message. Clicking "Abort" or the "X" window close button results in the program closing/crashing/unexpectedly quitting. Choosing "Ignore" may allow you to continue. After ignoring, I did not encounter the error on the same palette, but doing it again with another palette produced the same error. """ Krita has encountered an internal error: SAFE ASSERT (krita): "columnCount >= 1" in file /builds/graphics/krita/libs/pigment/resources/KisSwatchGroup.cpp, line 104 Please report a bug to developers! Press Ignore to try to continue. Press Abort to see developers information (all unsaved data will be lost) """ EXPECTED RESULT I would expect it to either fail a bit more gracefully or simply not allow 0 as an input value. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Manjaro Linux Kernel: 6.8.12-3-MANJARO x86_64 ADDITIONAL INFORMATION Krita Version: 5.3.0-prealpha (git 7fb0cda), Qt version compiled: 5.15.7, loaded: 5.15.7. Process ID: 136519 Krita Version: 5.3.0-prealpha (git d9c69b6) Hidpi: false Qt Version (compiled): 5.15.7 Version (loaded): 5.15.7 OS Information Build ABI: x86_64-little_endian-lp64 Build CPU: x86_64 CPU: x86_64 Kernel Type: linux Kernel Version: 6.8.12-3-MANJARO Pretty Productname: Manjaro Linux Product Type: manjaro Product Version: unknown Desktop: XFCE Appimage build: Yes -- You are receiving this mail because: You are watching all bug changes.