Menu

Application Error when shutting down Windows

InfraIT
2014-09-11
2014-11-17
  • InfraIT

    InfraIT - 2014-09-11

    Hi there

    We are currently using Greenshot 0.8.0 Build 0627 in our company without any problems. Due to lifecycle we are planning to update the application to the most current version, which now is 1.1.9.13.

    We deployed the new Greenshot to a few test clients. At most clients the new version is running without any problems. But on a few Clients, if you shutdown Windows with a running Greenshot instance, the following error appears:

    Error

    Also the following Event Log Entry is generated:

    Log Name:      Application
    Source:        .NET Runtime
    Date:          10.09.2014 18:16:11
    Event ID:      1026
    Task Category: None
    Level:         Fehler
    Keywords:      Klassisch
    User:          N/A
    Computer:      PC001.domain.tld
    Description:
    Application: Greenshot.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.NullReferenceException
    Stack:
       at Greenshot.Helpers.CopyData.OnHandleChange()
       at System.Windows.Forms.NativeWindow.ReleaseHandle(Boolean)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.UnsafeNativeMethods.IntDestroyWindow(System.Runtime.InteropServices.HandleRef)
       at System.Windows.Forms.UnsafeNativeMethods.IntDestroyWindow(System.Runtime.InteropServices.HandleRef)
       at System.Windows.Forms.NativeWindow.DestroyHandle()
       at System.Windows.Forms.Control.DestroyHandle()
       at System.Windows.Forms.Control.Dispose(Boolean)
       at System.Windows.Forms.ContainerControl.Dispose(Boolean)
       at System.Windows.Forms.Form.Dispose(Boolean)
       at System.ComponentModel.Component.Dispose()
       at System.Windows.Forms.Form.WmClose(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Form.WndProc(System.Windows.Forms.Message ByRef)
       at Greenshot.MainForm.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)
       at Greenshot.Helpers.CopyData.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
    
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name=".NET Runtime" />
        <EventID Qualifiers="0">1026</EventID>
        <Level>2</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2014-09-10T16:16:11.000000000Z" />
        <EventRecordID>89429</EventRecordID>
        <Channel>Application</Channel>
        <Computer>PC001.domain.tld</Computer>
        <Security />
      </System>
      <EventData>
        <Data>Application: Greenshot.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.NullReferenceException
    Stack:
       at Greenshot.Helpers.CopyData.OnHandleChange()
       at System.Windows.Forms.NativeWindow.ReleaseHandle(Boolean)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.UnsafeNativeMethods.IntDestroyWindow(System.Runtime.InteropServices.HandleRef)
       at System.Windows.Forms.UnsafeNativeMethods.IntDestroyWindow(System.Runtime.InteropServices.HandleRef)
       at System.Windows.Forms.NativeWindow.DestroyHandle()
       at System.Windows.Forms.Control.DestroyHandle()
       at System.Windows.Forms.Control.Dispose(Boolean)
       at System.Windows.Forms.ContainerControl.Dispose(Boolean)
       at System.Windows.Forms.Form.Dispose(Boolean)
       at System.ComponentModel.Component.Dispose()
       at System.Windows.Forms.Form.WmClose(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Form.WndProc(System.Windows.Forms.Message ByRef)
       at Greenshot.MainForm.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)
       at Greenshot.Helpers.CopyData.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
    </Data>
      </EventData>
    </Event>
    

    On our clients is currently .NET Framework 4.5.1 installed, but the error also appears with .NET Framework 4.0.

    Any idea what causes this error?

    Thanks and Kind Regards

     

    Last edit: InfraIT 2014-09-11
  • Robin Krom

    Robin Krom - 2014-09-11

    Hallo,

    It seems to be a bug in the code that isn't tested extensively, the shutdown. Should be easy to fix, I already made a change to Greenshot 1.2.
    You can find this here: http://sourceforge.net/projects/greenshot/files/Greenshot/Greenshot%201.2/

    We will start rolling out the first release candidate for 1.2 next week, so if possible I advice you to move directly to 1.2 instead of 1.1.9

    You can test and report any problems you have, and we will fix them shortly.
    After about 4 release candidates, or sooner if it is stable, the 1.2.1 release will be made available.

    Best wishes,
    Robin

     
  • InfraIT

    InfraIT - 2014-09-12

    Hi Robin

    Thank you for your quick reply. I will test the new build (1.2.0.76) on our test clients, which failed with version 1.1.9.

    In that case we will wait for the final 1.2 version

    Thank you again for your quick response and help :-)

    Kind Regards

     

    Last edit: InfraIT 2014-09-12
  • InfraIT

    InfraIT - 2014-10-06

    Hi Robin

    With the new Version (> 1.2.0.76) the above error never occured again. Is there a timeline when the final 1.2 Release will be available?

    Kind Regards

     
  • Robin Krom

    Robin Krom - 2014-10-06

    Hi,

    good to hear, thanks for the feedback.

    We do not exactly have a timeline, this depends on the amount of bugs we find.
    If everything goes well, there COULD be a release on the first of November.

    Still... counting on that would be unwise... Free software has it disadvantages, we can't live (at all) from Greenshot and until that happens we have other priorities.

    Best wishes,
    Robin

     
  • InfraIT

    InfraIT - 2014-11-17

    Hi there

    Are there any plans to release the final 1.2 Version until the end of 2014? I know, that this is community based Software, and there is no fix release date. But from my Point, i need to plan our application release cycle in my Company.

    Thank you in advance

     

    Last edit: InfraIT 2014-11-17
  • Robin Krom

    Robin Krom - 2014-11-17

    Hi,

    Yes, when no drastic bugs pop up I hope to have it released before the end of December.

    Best wishes,
    Robin

     

Log in to post a comment.