I reported bug 1428748 for 1 billion x 1 billion, but we have even more fun with 2 billion x 2 billion. I am reporting this new bug, because of diffrenet crash. It looks like out of memory crash. I think program should check this out of memory problem at least at File | New image, this is the biggest chance someone runs into a problem. Specially if you like me, like playing around with tools.
Pinta 1.7.0.125 on Ubuntu 14.04.
1. New Image 2000000000 x 2000000000 and OK button.
Crash appears with error:
===================
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.OutOfMemoryException: Out of memory.
at (wrapper alloc) object:AllocVector (intptr,intptr)
at Pinta.Gui.Widgets.CanvasRenderer.CreateS2DLookupX (Int32 srcWidth, Int32 dstWidth, ScaleFactor scaleFactor) [0x00000] in <filename unknown>:0
at Pinta.Gui.Widgets.CanvasRenderer.RenderZoomIn (System.Collections.Generic.List`1 layers, Cairo.ImageSurface dst, Point offset) [0x00000] in <filename unknown>:0
at Pinta.Gui.Widgets.CanvasRenderer.Render (System.Collections.Generic.List`1 layers, Cairo.ImageSurface dst, Point offset) [0x00000] in <filename unknown>:0
at Pinta.Gui.Widgets.OpenImagesListWidget.CreateImagePreview (Pinta.Core.Document doc) [0x00000] in <filename unknown>:0
at Pinta.Gui.Widgets.OpenImagesListWidget.RebuildDocumentList () [0x00000] in <filename unknown>:0
at Pinta.Gui.Widgets.OpenImagesListWidget.HandleDocumentOpenedOrClosed (System.Object sender, Pinta.Core.DocumentEventArgs e) [0x00000] in <filename unknown>:0
at (wrapper delegate-invoke) System.EventHandler`1<Pinta.Core.DocumentEventArgs>:invoke_void__this___object_TEventArgs (object,Pinta.Core.DocumentEventArgs)
at Pinta.Core.WorkspaceManager.OnDocumentCreated (Pinta.Core.DocumentEventArgs e) [0x00000] in <filename unknown>:0
at Pinta.Core.WorkspaceManager.CreateAndActivateDocument (System.String filename, Size size) [0x00000] in <filename unknown>:0
at Pinta.Core.WorkspaceManager.NewDocument (Size imageSize, Color backgroundColor) [0x00000] in <filename unknown>:0
at Pinta.Actions.NewDocumentAction.Activated (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <filename unknown>:0
at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0
===================
Probably similar cause then bug 1428748 in both cases problem appeared because there is a regression problem permitting to have a window bigger then 10000 x 10000.