OpenRaster image created with Pinta 1.8-dev can't be opened with Pinta 1.7

Bug #1909780 reported by grofaty
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
Medium
Unassigned

Bug Description

Pinta 1.8-dev on Ubuntu 20.04:
https://github.com/PintaProject/Pinta/actions/runs/454798621

1. Start Pinta 1.7 snap package.
2. Draw a line on canvas with Line tool.
3. Save image as OpenRaster format.
4. Start Pinta 1.8-dev open in step 3 created image. Works fine.

5. In Pinta 1.8-dev create new image and draw a line with Line tool.
6. Save image as OpenRaster format.
7. Start Pinta 1.7 snap package.
8. Open window and select image and exception window appears:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> ICSharpCode.SharpZipLib.Zip.ZipException: Version required to extract this entry not supported (45)
  at ICSharpCode.SharpZipLib.Zip.ZipFile.TestLocalHeader (ICSharpCode.SharpZipLib.Zip.ZipEntry entry, System.Boolean fullTest, System.Boolean extractTest) [0x00069] in <dfa771ff176d487987f5d4bf5ee6b12c>:0
  at ICSharpCode.SharpZipLib.Zip.ZipFile.CheckLocalHeader (ICSharpCode.SharpZipLib.Zip.ZipEntry entry) [0x00000] in <dfa771ff176d487987f5d4bf5ee6b12c>:0
  at ICSharpCode.SharpZipLib.Zip.ZipFile.GetInputStream (System.Int32 entryIndex) [0x00013] in <dfa771ff176d487987f5d4bf5ee6b12c>:0
  at ICSharpCode.SharpZipLib.Zip.ZipFile.GetInputStream (ICSharpCode.SharpZipLib.Zip.ZipEntry entry) [0x0005b] in <dfa771ff176d487987f5d4bf5ee6b12c>:0
  at Pinta.Core.OraFormat.LoadThumbnail (System.String filename, System.Int32 maxWidth, System.Int32 maxHeight, Gtk.Window parent) [0x00014] in <2384e42676f8477c8d7fef8885667d1f>:0
  at Pinta.Core.GtkExtensions.OnUpdateImagePreview (System.Object sender, System.EventArgs e) [0x00050] in <2384e42676f8477c8d7fef8885667d1f>:0
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <d13c8b563008422a8c5aaec0a74089cc>:0
   --- End of inner exception stack trace ---
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <d13c8b563008422a8c5aaec0a74089cc>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <d13c8b563008422a8c5aaec0a74089cc>:0
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e7] in <d13c8b563008422a8c5aaec0a74089cc>:0
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in <d13c8b563008422a8c5aaec0a74089cc>:0
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <d13c8b563008422a8c5aaec0a74089cc>:0
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x0007d] in <ed39f21b9e9343dcbd442a17ad356a9f>:0
  at GLib.Signal+SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x0000c] in <ed39f21b9e9343dcbd442a17ad356a9f>:0
  at GLib.Signal+SignalClosure.MarshalCallback (System.IntPtr raw_closure, GLib.Value* return_val, System.UInt32 n_param_vals, GLib.Value* param_values, System.IntPtr invocation_hint, System.IntPtr marshal_data) [0x00050] in <ed39f21b9e9343dcbd442a17ad356a9f>:0

Note: I have only tested this problem with Pinta 1.7 snap package and I haven't tested on official Pinta 1.7 deb package, if this is somehow maybe related to snap package only.

Revision history for this message
Cameron White (cameronwhite91) wrote :

Confirmed. I think we upgraded to a newer version of SharpZipLib in the GTK3 branch, so it's probably related to that.

Changed in pinta:
importance: Undecided → Medium
milestone: none → 1.8
status: New → Confirmed
tags: added: gtk3
Revision history for this message
Cameron White (cameronwhite91) wrote :
Changed in pinta:
status: Confirmed → Fix Committed
Revision history for this message
grofaty (grofaty) wrote :

I can confirm this is fixed. Thanks

In Pinta 1.8-dev on Ubuntu 20.04:
https://github.com/PintaProject/Pinta/actions/
I have created OpenRaster image and
I have successfully opened it
in Pinta 1.7 snap package.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers