SUMMARY If krita document contain editable text - export to PSD causes crash. I found this bug in: 5.2.0-prealpha and 5.1.0-beta1 but not in 5.0.6 STEPS TO REPRODUCE 1. make new document 2. make new layer with text tool (without changing anything in Edit Text dialog click on Save and Close) 3. export to PSD. RESULT After getting busy for few seconds Krita crashes. PSD file isn't generated. Raster layers and vector layers with shapes appear to be exported properly. SOFTWARE/OS VERSIONS Windows: 10 Qt Version: 5.12.12.
Created attachment 150176 [details] Backtrace of the error
Confirming and turning over to Wolthera. It seems that this broke in https://invent.kde.org/graphics/krita/-/commit/74b2b42dae44d1c315fa6e1921c1fd2b37337680, the text nodes are of type KisShapeLayer and lack a paint device.
Git commit 7b7f93c4bda74e55989d713cffe4d722e57c4aa5 by Dmitry Kazakov. Committed on 12/07/2022 at 13:53. Pushed by dkazakov into branch 'master'. Fix crash when saving a file with text into PSD M +13 -8 libs/psd/psd_layer_section.cpp https://invent.kde.org/graphics/krita/commit/7b7f93c4bda74e55989d713cffe4d722e57c4aa5
Git commit 118bab30fe3f36924759ff763020f6bb58da5269 by Dmitry Kazakov. Committed on 12/07/2022 at 13:54. Pushed by dkazakov into branch 'krita/5.1'. Fix crash when saving a file with text into PSD M +13 -8 libs/psd/psd_layer_section.cpp https://invent.kde.org/graphics/krita/commit/118bab30fe3f36924759ff763020f6bb58da5269