Bug 389720 - Crash when export to png/jpg and "Sign with Author profile Data" selected
Summary: Crash when export to png/jpg and "Sign with Author profile Data" selected
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: File formats (show other bugs)
Version: 4.0.0-beta.1
Platform: Appimage Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-31 19:38 UTC by Dmitrii Utkin
Modified: 2018-02-05 14:03 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
my authorinfo (210 bytes, text/html)
2018-02-01 19:50 UTC, Dmitrii Utkin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitrii Utkin 2018-01-31 19:38:56 UTC
Crash when export to png/jpg and "Sign with Author profile Data" selected.

Author is set in preferences
Comment 1 mvowada 2018-02-01 08:52:22 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.
Comment 2 Halla Rempt 2018-02-01 13:11:55 UTC
Hm, I cannot reproduce the crash either. Could you share the contents of .local/share/krita/authorinfo ?
Comment 3 Dmitrii Utkin 2018-02-01 19:50:48 UTC
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
Comment 4 Dmitrii Utkin 2018-02-01 20:00:28 UTC
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).
Comment 5 Storm Engineer 2018-02-05 13:28:31 UTC
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
Comment 6 wolthera 2018-02-05 14:03:52 UTC
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