Crash on attempting screenshot by hotkey, works after opening settings dialog
Description
Environment
{{Software version: 1.2.8.12-RELEASE-cab854b7229994fc9e4deaccd47885df500d7e1a (64 bit)
.NET runtime version: 4.0.30319.34209+
Time: 2016-08-15 15:47:06 +02:00
OS: Windows 7 Service Pack 1 (x64) 6.1 build 7601 revision 10000
GDI object count: 41
User object count: 30
Exception: System.NullReferenceException
Message: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
Stack:
bei Greenshot.Destinations.EmailDestination.get_isActive()
bei Greenshot.Destinations.PickerDestination.ExportCapture(Boolean manuallyInitiated, ISurface surface, ICaptureDetails captureDetails)
bei Greenshot.Helpers.CaptureHelper.HandleCapture()
bei Greenshot.Helpers.CaptureHelper.CaptureWithFeedback()
bei Greenshot.Helpers.CaptureHelper.MakeCapture()
bei Greenshot.Helpers.CaptureHelper.CaptureRegion(Boolean captureMouse)
bei System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
bei System.Windows.Forms.Control.InvokeMarshaledCallbacks()}}
Gliffy Diagrams
Activity
bvdo August 18, 2016 at 12:47 PM
Sorry for misunderstanding the Environment field, here's the stack trace again, hopefully this is more readable...
{{
{{Software version: 1.2.8.12-RELEASE-cab854b7229994fc9e4deaccd47885df500d7e1a (64 bit)
.NET runtime version: 4.0.30319.34209+
Time: 2016-08-15 15:47:06 +02:00
OS: Windows 7 Service Pack 1 (x64) 6.1 build 7601 revision 10000
GDI object count: 41
User object count: 30
Exception: System.NullReferenceException
Message: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
Stack:
bei Greenshot.Destinations.EmailDestination.get_isActive()
bei Greenshot.Destinations.PickerDestination.ExportCapture(Boolean manuallyInitiated, ISurface surface, ICaptureDetails captureDetails)
bei Greenshot.Helpers.CaptureHelper.HandleCapture()
bei Greenshot.Helpers.CaptureHelper.CaptureWithFeedback()
bei Greenshot.Helpers.CaptureHelper.MakeCapture()
bei Greenshot.Helpers.CaptureHelper.CaptureRegion(Boolean captureMouse)
bei System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
bei System.Windows.Forms.Control.InvokeMarshaledCallbacks()}}
}}
First attempt of creating a screenshot by using one of the shortcut keys crashes Greenshot with the stack trace above. If you open the settings dialog and confirm it with "OK" before attempting a screenshot, then subsequent screenshots work without issue until next reboot.