Bug 478668

Summary: Error exporting Comic
Product: [Applications] krita Reporter: Renato Dias <kingdomhearts20075>
Component: DockersAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: griffinvalley
Priority: NOR    
Version: 5.2.2   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Detailed trace file.

Description Renato Dias 2023-12-17 22:07:31 UTC
Created attachment 164263 [details]
Detailed trace file.

SUMMARY
Krita coughs up an error when exporting a comic project(bug present since 5.1.5) and the comic export freezes afterwards.


STEPS TO REPRODUCE
1. Open a comic project.
2. Click export Comic
3. Wait until 33%
4. Error.

OBSERVED RESULT
Pictures export midway through before error. Comic export freezes after the error comes up.

EXPECTED RESULT
All pages exported.

SOFTWARE/OS VERSIONS
Windows: Windows 10 23H2

ADDITIONAL INFORMATION
Comment 1 Bug Janitor Service 2024-01-17 13:33:07 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/2052
Comment 2 wolthera 2024-01-18 18:09:37 UTC
Git commit 8631d1d0fcbb64ecde23dacda9b1adbef7d42346 by Wolthera van Hövell, on behalf of Wolthera van Hövell tot Westerflier.
Committed on 18/01/2024 at 19:09.
Pushed by woltherav into branch 'master'.

CPMT: Fix crash in comic exporter due incorrect api usage.

The script uses shapes() instead of children(), which causes the script to abort.

M  +1    -1    plugins/python/comics_project_management_tools/comics_exporter.py

https://invent.kde.org/graphics/krita/-/commit/8631d1d0fcbb64ecde23dacda9b1adbef7d42346
Comment 3 wolthera 2024-01-18 18:10:18 UTC
Git commit eb66f225d6f52867abcf3301196c7a1fe283ec2f by Wolthera van Hövell, on behalf of Wolthera van Hövell tot Westerflier.
Committed on 18/01/2024 at 19:10.
Pushed by woltherav into branch 'krita/5.2'.

CPMT: Fix crash in comic exporter due incorrect api usage.

The script uses shapes() instead of children(), which causes the script to abort.


(cherry picked from commit 8631d1d0fcbb64ecde23dacda9b1adbef7d42346)

M  +1    -1    plugins/python/comics_project_management_tools/comics_exporter.py

https://invent.kde.org/graphics/krita/-/commit/eb66f225d6f52867abcf3301196c7a1fe283ec2f
Comment 4 wolthera 2024-01-18 18:12:40 UTC
Hi,

This was caused by the exporter not handling grouped vector shapes correctly. This is fixed now and should be available in tomorrow's Krita - Plus from krita.org.