[Crash] Zoom with mouse wheel and canvas gets corrupted and then crashes

Bug #1181679 reported by grofaty
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
Fix Released
Medium
Cameron White

Bug Description

1. Close all opened images and new Image 300 x 300.
2. Paint Bucket from Tools and click on canvas.
3. Using CTRL + mouse wheel - multiple times wheel up to zoom out to 3600%.
4. Move bottom slider to the maximum right and right site sliders to the maximum bottom.
5. Try using CTRL + mouse wheel and zoom at zoom drop-down window and you will notice 3600% and not having effect on using wheel.
6. Change to some other program with ALT+TAB and then back to Pinta and you will see no canvas screen updated with Pinta.
7. CTRL+W to close an image (use Close without saving). But right site of image still displayed - so canvas not properly refreshed.
8. Click on Rectangle Select do some selection (selection can't be done on closed image).
9. Click on Move Selected Pixels and do nothing.
10. Click on Rectangle Select and Pinta crashes with error:
=========
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Tried to get WorkspaceManager.ActiveDocument when there are no open Documents. Check HasOpenDocuments first.
   at Pinta.Core.WorkspaceManager.get_ActiveDocument()
   at Pinta.Tools.MoveSelectedTool.OnDeactivated() in c:\Users\Cameron\Documents\GitHub\Pinta\Pinta.Tools\Tools\MoveSelectedTool.cs:line 150
   at Pinta.Core.ToolManager.SetCurrentTool(BaseTool tool)
   at Pinta.Core.ToolManager.HandlePbToolItemClicked(Object sender, EventArgs e)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at GLib.Signal.ClosureInvokedCB(Object o, ClosureInvokedArgs args)
   at GLib.SignalClosure.Invoke(ClosureInvokedArgs args)
   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
==========

Tags: crash
Revision history for this message
grofaty (grofaty) wrote :

I was tested the bug 850310 and played around so reported this bug because crash appears.

tags: added: crash
Revision history for this message
Cameron White (cameronwhite91) wrote :
Changed in pinta:
assignee: nobody → Cameron White (cameronwhite91)
importance: Undecided → Medium
milestone: none → 1.5
status: New → Fix Committed
Changed in pinta:
status: Fix Committed → Fix Released
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.