Summary: | Crash when export to png/jpg and "Sign with Author profile Data" selected | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Dmitrii Utkin <loentar> |
Component: | File formats | Assignee: | Krita Bugs <krita-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | freebox64, halla, storm.anthro |
Priority: | NOR | ||
Version: | 4.0.0-beta.1 | ||
Target Milestone: | --- | ||
Platform: | Appimage | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/krita/dc7d04685c888606d84b0b0f04d3141ef51fe6bf | Version Fixed In: | |
Attachments: | my authorinfo |
Description
Dmitrii Utkin
2018-01-31 19:38:56 UTC
Hi Dmitry Utkin, It seems I can't reproduce this bug on Ubuntu 14.04 with Krita 4.0.0-beta1.1.appimage. My steps: 1) open menu > "Settings" > "Configure Krita..." > "Author" 2) create a new author + click "OK" to close the dialog 3) create a new document 4) go to menu > "File" > "Export..." 5) type a name.png + click "Save" 6) check the "Sign with Author profile Data" option + click "OK" Actual Results: Krita regularly exports as PNG + no crash. Expected Results: the same. Hm, I cannot reproduce the crash either. Could you share the contents of .local/share/krita/authorinfo ? Created attachment 110295 [details]
my authorinfo
loentar.authorinfo is only the one file within that dir, please see it in attach.
Here is a stack trace obtained with gdb:
[New Thread 0x7fffc5e2b700 (LWP 31811)]
QFileInfo::absolutePath: Constructed with empty filename
[New Thread 0x7fffb3fff700 (LWP 31816)]
[Thread 0x7fffb3fff700 (LWP 31816) exited]
[New Thread 0x7fffb3fff700 (LWP 31817)]
Thread 12 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffb3fff700 (LWP 31817)]
0x00007ffff76a052b in KisPNGConverter::buildFile(QIODevice*, QRect const&, double, double, KisSharedPtr<KisPaintDevice>, QTypedArrayData<KisSharedPtr<KisAnnotation> >::iterator, QTypedArrayData<KisSharedPtr<KisAnnotation> >::iterator, KisPNGOptions, KisMetaData::Store*) () from ../lib/libkritaui.so.16
(gdb) bt
#0 0x00007ffff76a052b in KisPNGConverter::buildFile(QIODevice*, QRect const&, double, double, KisSharedPtr<KisPaintDevice>, QTypedArrayData<KisSharedPtr<KisAnnotation> >::iterator, QTypedArrayData<KisSharedPtr<KisAnnotation> >::iterator, KisPNGOptions, KisMetaData::Store*) () from ../lib/libkritaui.so.16
#1 0x00007fffc451858a in ?? () from /tmp/krita_unpacked/usr/lib/kritaplugins/kritapngexport.so
#2 0x00007ffff787ee87 in KisImportExportManager::doExportImpl(QString const&, QSharedPointer<KisImportExportFilter>, KisPinnedSharedPtr<KisPropertiesConfiguration>) () from ../lib/libkritaui.so.16
#3 0x00007ffff787ef88 in KisImportExportManager::doExport(QString const&, QSharedPointer<KisImportExportFilter>, KisPinnedSharedPtr<KisPropertiesConfiguration>, bool) () from ../lib/libkritaui.so.16
#4 0x00007ffff7881a2b in ?? () from ../lib/libkritaui.so.16
#5 0x00007ffff0efdc6d in ?? () from ../lib/libQt5Core.so.5
#6 0x00007ffff0f00c89 in ?? () from ../lib/libQt5Core.so.5
#7 0x00007fffef3f86ba in start_thread (arg=0x7fffb3fff700) at pthread_create.c:333
#8 0x00007ffff02ed41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Checked with the steps you described. It does not crash if the project has only two default layers. If you add a new layer it crashes (when "Sign with Author profile Data" option is active). I can reproduce, even with only two layers. I also have several other issues with Authors as described here: https://bugs.kde.org/show_bug.cgi?id=389877 Git commit dc7d04685c888606d84b0b0f04d3141ef51fe6bf by Wolthera van Hövell tot Westerflier. Committed on 05/02/2018 at 14:03. Pushed by woltherav into branch 'master'. Fix crash when saving authorinfo that has no contact info. Related: bug 389877 M +5 -3 libs/ui/kis_png_converter.cpp M +5 -3 plugins/impex/jpeg/kis_jpeg_export.cc https://commits.kde.org/krita/dc7d04685c888606d84b0b0f04d3141ef51fe6bf |