Crash on saving .ora open raster image format again after minor mod

Bug #1930284 reported by Mario Zanetti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
Invalid
Undecided
Unassigned

Bug Description

Sys:

XFCE 4.16
Ubuntu Studio 20.04.2
plenty of RAM (not RAM, am sure)

Description:

After a lot of files saved and cut to layers etc.

saving one .JPG file - that meanwhile had layers in-app - as .ora Open Raster file (after a minor modification), brought up a crash popup

"
Unhandled exception:
Exception has been thrown by the target of invocation
"

with the following log:

"
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: dst.Size != src.Size
  at Pinta.Core.BinaryPixelOp.Apply (Cairo.ImageSurface dst, Cairo.ImageSurface src) [0x00018] in <d07abe89b0c1405ca613eaf73991f472>:0
  at Pinta.Core.Document.GetFlattenedImage () [0x0005c] in <d07abe89b0c1405ca613eaf73991f472>:0
  at Pinta.Core.GdkPixbufFormat.Export (Pinta.Core.Document document, System.String fileName, Gtk.Window parent) [0x00001] in <d07abe89b0c1405ca613eaf73991f472>:0
  at Pinta.Actions.SaveDocumentImplmentationAction.SaveFile (Pinta.Core.Document document, System.String file, Pinta.Core.FormatDescriptor format, Gtk.Window parent) [0x000ef] in <1b3ff3457ff6412b96782de825379d42>:0
  at Pinta.Actions.SaveDocumentImplmentationAction.Activated (System.Object sender, Pinta.Core.DocumentCancelEventArgs e) [0x00062] in <1b3ff3457ff6412b96782de825379d42>:0
  at Pinta.Core.FileActions.RaiseSaveDocument (Pinta.Core.Document document, System.Boolean saveAs) [0x0001f] in <d07abe89b0c1405ca613eaf73991f472>:0
  at Pinta.Core.Document.Save (System.Boolean saveAs) [0x0000b] in <d07abe89b0c1405ca613eaf73991f472>:0
  at Pinta.Actions.SaveDocumentAction.Activated (System.Object sender, System.EventArgs e) [0x0000b] in <1b3ff3457ff6412b96782de825379d42>: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 <533173d24dae460899d2b10975534bb0>: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 <533173d24dae460899d2b10975534bb0>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <533173d24dae460899d2b10975534bb0>:0
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e7] in <533173d24dae460899d2b10975534bb0>:0
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in <533173d24dae460899d2b10975534bb0>:0
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <533173d24dae460899d2b10975534bb0>: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
"

Other notes:

saving other tabbed file UnnamedFileXXY as Name.JPG works okay although in previous file .ora saving failed with file size 0

If an more data is necessary, I will provide that, good luck guys

However, this seems pretty much what happened.

Have a nice day!

description: updated
description: updated
description: updated
description: updated
Revision history for this message
Mario Zanetti (fashionista) wrote :
Download full text (3.5 KiB)

Autosaving unsaved .JPG (with layers inside the app) before closing the app brought up this exception:

"
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: dst.Size != src.Size
  at Pinta.Core.BinaryPixelOp.Apply (Cairo.ImageSurface dst, Cairo.ImageSurface src) [0x00018] in <d07abe89b0c1405ca613eaf73991f472>:0
  at Pinta.Core.Document.GetFlattenedImage () [0x0005c] in <d07abe89b0c1405ca613eaf73991f472>:0
  at Pinta.Core.GdkPixbufFormat.Export (Pinta.Core.Document document, System.String fileName, Gtk.Window parent) [0x00001] in <d07abe89b0c1405ca613eaf73991f472>:0
  at Pinta.Actions.SaveDocumentImplmentationAction.SaveFile (Pinta.Core.Document document, System.String file, Pinta.Core.FormatDescriptor format, Gtk.Window parent) [0x000ef] in <1b3ff3457ff6412b96782de825379d42>:0
  at Pinta.Actions.SaveDocumentImplmentationAction.Activated (System.Object sender, Pinta.Core.DocumentCancelEventArgs e) [0x00062] in <1b3ff3457ff6412b96782de825379d42>:0
  at Pinta.Core.FileActions.RaiseSaveDocument (Pinta.Core.Document document, System.Boolean saveAs) [0x0001f] in <d07abe89b0c1405ca613eaf73991f472>:0
  at Pinta.Core.Document.Save (System.Boolean saveAs) [0x0000b] in <d07abe89b0c1405ca613eaf73991f472>:0
  at Pinta.Actions.CloseDocumentAction.Activated (System.Object sender, System.EventArgs e) [0x00124] in <1b3ff3457ff6412b96782de825379d42>: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 <533173d24dae460899d2b10975534bb0>: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 <533173d24dae460899d2b10975534bb0>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <533173d24dae460899d2b10975534bb0>:0
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e7] in <533173d24dae460899d2b10975534bb0>:0
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in <533173d24dae460899d2b10975534bb0>:0
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <533173d24dae460899d2b10975534bb0>: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

"

My reaction after:...

Read more...

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

Which version of Pinta are you using?

Revision history for this message
Mario Zanetti (fashionista) wrote (last edit ):

@Cameron White @cameronwhite91

Pinta 1.6, latest available in Ubuntu(Studio) 21.04.2 LTS

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

Thanks, could you try installing Pinta 1.7? (e.g. from https://launchpad.net/~pinta-maintainers/+archive/ubuntu/pinta-stable, or through the Snap / Flatpak package)

I suspect this was fixed in v1.7, since it looks similar to bugs like #1461162

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

From the previous comment I suspect this was resolved in Pinta 1.7, but please re-open otherwise

Changed in pinta:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.