Pinta doesn't zoom (in/out) and crashes when typing/changing zoom level.
An unhandled exception is reported.
ERROR MESSAGE:
Unhandled exception:
Exception has been thrown by the target of an invocation
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 () <0x40be4600 + 0x00063> in <filename unknown>:0
at Pinta.Core.ViewActions.HandlePintaCoreActionsViewZoomComboBoxComboBoxChanged (System.Object sender, System.EventArgs e) <0x40be6df0 + 0x0002f> 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) <0x7f618ddab9e0 + 0x000a1> 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) <0x7f618ddab9e0 + 0x000ef> in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) <0x7f618dbe3cf0 + 0x0002a> in <filename unknown>:0
at System.Delegate.DynamicInvokeImpl (System.Object[] args) <0x7f618de63f60 + 0x0024c> in <filename unknown>:0
at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) <0x7f618de6c040 + 0x00035> in <filename unknown>:0
at System.Delegate.DynamicInvoke (System.Object[] args) <0x7f618de63e80 + 0x00019> in <filename unknown>:0
at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) <0x40b56d90 + 0x00153> in <filename unknown>:0
at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) <0x40b56d50 + 0x0002f> 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) <0x40b556e0 + 0x002bb> in <filename unknown>:0
SYSTEM INFO
~$ phoronix-test-suite detailed-system-info
Phoronix Test Suite v6.6.1
System Information
Hardware:
Processor: Intel Core i3-3110M @ 2.40GHz (4 Cores), Motherboard: LENOVO, Chipset: Intel 3rd Gen Core DRAM, Memory: 6144MB, Disk: 500GB Seagate ST500LT012-9WS14, Graphics: Intel 3rd Gen Core, Audio: Conexant CX20757, Network: Qualcomm Atheros QCA8172 Fast + Qualcomm Atheros AR9485 Wireless
Software:
OS: Ubuntu 16.10, Kernel: 4.9.3-040903-generic (x86_64), Desktop: Unity 7.5.0, Display Server: X Server 1.18.4, Display Driver: modesetting 1.18.4, OpenGL: 3.3 Mesa 12.0.6, Compiler: GCC 6.2.0 20161005, File-System: ext4, Screen Resolution: 1366x768
PROCESSOR:
Core Count: 2
Thread Count: 4
Cache Size: 3072 KB
Instruction Set Extensions: SSE 4.2 + AVX + FSGSBASE
AES Encryption: NO
Energy Performance Bias: YES
Virtualization: VT-x
Compiler Configuration: --build=x86_64-linux-gnu --disable-browser-plugin --disable-vtable-verify --disable-werror --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-gnu-unique-object --enable-gtk-cairo --enable-java-awt=gtk --enable-java-home --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --enable-libmpx --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-multiarch --enable-multilib --enable-nls --enable-objc-gc --enable-plugin --enable-shared --enable-threads=posix --host=x86_64-linux-gnu --program-prefix=x86_64-linux-gnu- --target=x86_64-linux-gnu --with-abi=m64 --with-arch-32=i686 --with-arch-directory=amd64 --with-default-libstdcxx-abi=new --with-multilib-list=m32,m64,mx32 --with-tune=generic -v
Disk Scheduler: DEADLINE
Disk Mount Options: data=ordered,errors=remount-ro,relatime,rw
Cpu Scaling Governor: intel_pstate powersave
I can't reproduce this on Ubuntu 16.04 or Windows 10 with Pinta 1.7 daily build. Is this happening with an empty new image or a particular image? Are there any more details you can share about how to reproduce this issue?