| Summary: | Crash when trying to merge layer with metadata | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | Aurélien Léger <enyriel> |
| Component: | General | Assignee: | Krita Bugs <krita-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | CC: | griffinvalley |
| Priority: | NOR | Keywords: | drkonqi |
| Version First Reported In: | 2.9.2 | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | http://commits.kde.org/krita/e94555f0c2a28f43c1ebd2fe2fd4cbc57dde9477 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | Test file provided to fix the bug | ||
|
Description
Aurélien Léger
2015-07-28 17:37:21 UTC
Having this crash a new time and it was not during the save but during the merge , after using CTRL+E and confirming it with the smart option. Hm... Could you provide a test file? (This can be the original file, but at the very least a file on which this can be reproduced) Having a test-file would make it much easier to fix. You can attach with with the 'add attachment' link, or if you don't want to have this file public, you can sent it to foundation@krita.org with 'File for Bug 350714' as the subject. Created attachment 93868 [details]
Test file provided to fix the bug
One layer (the photo) was imported inside the document as a layer after created the document with 2 layers.
Then some metadata was added via the menu "Layer > Edit metadata" (Layer 2 selected, Layer 1 is the background layer so nothing done on it).
Trying to merge the photo with Layer 2 with the smart option but it crashed.
If I re-open the document after re-launch krita and try to merge again, it seems to work fine.
So I don't understand plainly why it crash only the first time (and so maybe by trying the file yourself it can be not working).
Note: Maybe you will need to re-add the metadata.
Thanks for the file! Sometimes bugs happen because two parts of your computer are trying to process similar information, but one happens to be faster at it than the other, and that messes up the process, confusing Krita and causing it to crash. We call this a 'race bug' because it happens due to one of the parts winning a race. There's a chance it may be a bug like that, in which case sometimes it doesn't happen because the race isn't won. This makes them difficult to reproduce. What could also be the case is that there's some data lying around that confuses Krita. Maybe it happened because you merged down after importing the image? Then we know something's up in the importing code. Thanks for your answer @wolthera. I proceed like this for the file provided : 1. Create a document with 2 layers (with one as a background with color) [bottom layer] 2. Import the picture as a new layer [top layer] 3. Add some metadata on the second layer [middle layer] 4. Save the document to not lose the stuff if re-testing is needed 5. Try to merge the picture [top layer] with the second [middle] layer with CTRL+E, with the smart option then validate. 6. Then crash! Note: I tried options others than the smart one but the result was the same. Git commit e94555f0c2a28f43c1ebd2fe2fd4cbc57dde9477 by Boudewijn Rempt. Committed on 16/06/2016 at 10:04. Pushed by rempt into branch 'krita/3.0'. M +0 -1 libs/image/metadata/kis_meta_data_value.cc http://commits.kde.org/krita/e94555f0c2a28f43c1ebd2fe2fd4cbc57dde9477 |