Crash selectin Text object and close a file

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

Bug Description

Pinta master on Windows XP:
1. Restart Pinta.
2. New image.
3. Text from tools. Do not click on canvas.
4. CTRL+W to close an image. Crash appears.
========
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Pinta.Tools.TextTool.RedrawText(Boolean showCursor, Boolean useTextLayer) in C:\Zaloga\Pinta-master\Pinta.Tools\Tools\TextTool.cs:line 985
   at Pinta.Tools.TextTool.UpdateMouseCursor() in C:\Zaloga\Pinta-master\Pinta.Tools\Tools\TextTool.cs:line 713
   at Pinta.Tools.TextTool.OnKeyDown(DrawingArea canvas, KeyPressEventArgs args) in C:\Zaloga\Pinta-master\Pinta.Tools\Tools\TextTool.cs:line 739
   at Pinta.Core.BaseTool.DoKeyPress(DrawingArea canvas, KeyPressEventArgs args) in c:\Zaloga\Pinta-master\Pinta.Core\Classes\BaseTool.cs:line 139
   at Pinta.Gui.Widgets.PintaCanvas.DoKeyPressEvent(Object o, KeyPressEventArgs e) in c:\Zaloga\Pinta-master\Pinta.Gui.Widgets\Widgets\Canvas\PintaCanvas.cs:line 185
   at Pinta.MainWindow.MainWindow_KeyPressEvent(Object o, KeyPressEventArgs e) in c:\Zaloga\Pinta-master\Pinta\MainWindow.cs:line 115
   --- 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: text-tool
Revision history for this message
Cameron White (cameronwhite91) wrote :

The bug is actually from pressing Control, not from closing the file.

Changed in pinta:
assignee: nobody → Cameron White (cameronwhite91)
importance: Undecided → High
milestone: none → 1.5
status: New → Confirmed
tags: added: text-tool
Revision history for this message
Cameron White (cameronwhite91) wrote :
Changed in pinta:
status: Confirmed → Fix Committed
Revision history for this message
grofaty (grofaty) wrote :

Tested on master on Windows XP and problem is fixed. Thanks.

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.