Bug 486877 - Transform masks that have never been edited in Krita 5.2 fail to load in 5.3
Summary: Transform masks that have never been edited in Krita 5.2 fail to load in 5.3
Status: RESOLVED DUPLICATE of bug 492320
Alias: None
Product: krita
Classification: Applications
Component: * Unknown (show other bugs)
Version: git master (please specify the git hash!)
Platform: Compiled Sources macOS
: NOR major
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-11 03:24 UTC by code
Modified: 2024-09-05 14:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description code 2024-05-11 03:24:00 UTC
SUMMARY
In Krita 5.2, transform masks use `dumbparams` until they're first edited. The parser for those params was moved into a separate library in commit d1cc758, meaning any files that contain `dumbparams` transform masks fail to load.

STEPS TO REPRODUCE
1. Launch Krita 5.2.2
2. Create a new document
3. Add a transform mask to the background layer
4. Save the file
5. Launch Krita 5.3.0-prealpha (git 17e5603)
6. Try to open the file

OBSERVED RESULT
Krita fails to load the image, complaining it "Could not create transform mask params"

EXPECTED RESULT
The file should open successfully

SOFTWARE/OS VERSIONS
Krita: 5.3.0-prealpha (git 17e5603)

ADDITIONAL INFORMATION
You can observe the param type changing using this script:
    doc = Krita.instance().activeDocument()
    print(doc.activeNode().toXML())

1. Launch Krita
2. Create a new document
3. Add a transform mask to the background layer
4. Run the script
5. Start editing the mask
6. Run the script again

In 5.2, the mask starts out using `dumbparams`, then moves to `tooltransformparams` when you edit the transform. If you perform those same steps in 5.3 the transform mask immediately uses `tooltransformparams`.
Comment 1 Dmitry Kazakov 2024-09-05 14:00:20 UTC
The bug should be fixed now in both Krita Next and Krita Plus! :)

*** This bug has been marked as a duplicate of bug 492320 ***