GIMP 2.99.19 - Converting a 8 bit integer to 16 bit integer .xcf with non-destructive effects causes xcf file corruption
Environment/Versions
- GIMP version: 2.99.19 from two weeks ago
- Package: source compiled
- Operating System: FEDORA 38 LINUX
Description of the bug
Image files of mine with many "layer effects" that were 8 bit integer were converted to 16 bit integer and the .xcf file got corrupted. I confirmed this happens in with native GIMP filters and not just my plugins or the native filters that I made.
Reproduction
- Start with an 8 integer image
- Oopen a image to GIMP that has millions of colors; such as a real world photo. Infact open many layers and add layer effects and adjustment layer groups. Put simply - Just do normal editing stuff
- Save the file as an .xcf
- Convert the .xcf to 16 bit integer in default settings; this will work
- Save the 16 bit file as another .xcf file
- Try to reopen the 16 bit integer .xcf file that was once 8 bit integer but you realize the XCF IS CORRUPTED
Is the bug reproducible? Sometimes, it seems to depend on many layer effects and adjustment layer groups. Once again I triggered it on native filters that aren't my contributions to GEGL
Expected result: The image we converted to 16 bit integer reopens in GIMP without a corrupted .xcf file
Actual result: The .xcf file is corrupt
Additional information
This may not happen the first time so keep trying till you trigger it. I don't think it will take that long. Also off topic... I think we need to fix problems with GIMP_drawable in GEGL:crop in GIMP RC1 so I can test my hypothesis relating to other bugs.
If you have a backtrace for a crash or a warning, paste it here. NA