** Description changed:

+ [ Impact ]
+ 
+ * GIMP 3.2.2 introduced a bug whereby empty text markup could be stored
+   alongside plain text in a text layer. When this faulty information is read
+   from an XCF file, GIMP is able to render the plain text correctly, but 
ignores
+   it when the user attempts to edit the text layer. The result is that text
+   displays properly after saving and re-opening a file, but any attempt to 
edit
+   that text wipes out whatever text was there to begin with, rather than
+   allowing incremental edits like it is supposed to.
+ 
+ * This may result in data loss, or at the very least, a serious amount of 
extra
+   work, for any GIMP user who works with text layers.
+ 
+ * This upload fixes the underlying bug by no longer saving empty text markup 
to
+   XCF files. Additionally, it introduces the ability for GIMP to ignore empty
+   text markup in already-corrupted files, essentially undoing the data loss 
risk
+   this bug is responsible for.
+ 
+ [ Test Plan ]
+ 
+ * See "Steps to reproduce" in the bug report below.
+ 
+ * The patched GIMP should also be used to edit existing, complex files, 
ensuring
+   that no crashes or corruption occur when opening or saving files. It is
+   difficult to provide instructions on how to create such complex files, but I
+   have a lot of huge, extremely complicated images at my workplace I can use 
for
+   testing.
+ 
+ [ Where problems could occur ]
+ 
+ * Because these patches touch core components of GIMP related to serializing 
and
+   deserializing image data, it is theoretically possible that the patch could
+   cause GIMP to be unable to save or load XCF files, or cause GIMP to crash
+   during saving and loading files. I do not believe the risk of this is
+   substantial, as both patches come from upstream, from a GIMP maintainer.
+ 
+ [ Other Info ]
+ 
+ * Arguably the ability to salvage XCFs corrupted by this bug could be seen as 
a
+   feature rather than a bugfix. I have included it in this upload though, as
+   upstream seems to consider it as part of the bugfix
+   (https://gitlab.gnome.org/GNOME/gimp/-/work_items/16169#note_2729347). I 
also
+   already have some corrupted files at my workplace as a result of this bug, 
and
+   having the salvage functionality would be nice to avoid having to redo work 
or
+   run into similar issues later. Any user who has used GIMP with text layers 
on
+   Resolute will likely benefit from this as well.
+ 
+ -----
+ 
+ Original bug report:
+ 
  OS: Kubuntu 26.04
  
  Steps to reproduce:
  
  1. Create a new file in GIMP.
  2. Create a text layer in the file.
  3. Type some arbitrary text into it.
  4. Save the file.
  5. Close GIMP.
  6. Open the file.
  7. Using the Text tool, click inside the text layer you created.
  
  Expected result: The text should be editable.
  
  Actual result: The pixels from the text are still visible, but the text
  itself seems to have vanished (the cursor won't move into the text
  area). Typing anything in the text layer will cause all existing text to
  vanish and be replaced with new text. It is impossible to undo to get
  the original text back, one must close the file without saving and re-
  open it.
  
  Corresponding upstream bug report:
  https://gitlab.gnome.org/GNOME/gimp/-/work_items/16169
  
  Fix commits from upstream:
  * The fix itself: 
https://gitlab.gnome.org/GNOME/gimp/-/commit/aa7c2a55d69ce56704cf73457198b49b0c39f7f3
  * A follow-up enhancement to restore the editability of text layers in files 
corrupted by this bug: 
https://gitlab.gnome.org/GNOME/gimp/-/commit/aa7c2a55d69ce56704cf73457198b49b0c39f7f3

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2156558

Title:
  Text layers appear to lose text information after saving and re-
  opening a file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gimp/+bug/2156558/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to