Greenshot crashes when hotkey registration fails and OneDrive is not installed

Description

GDI object count: 25
User object count: 15

Exception: System.IO.DirectoryNotFoundException
Message: Could not find a part of the path 'C:\Users\david\AppData\Local\Microsoft\OneDrive\settings\Personal'.

Stack:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator`1.CommonInit()
at System.IO.Directory.GetFiles(String path, String searchPattern)
at Greenshot.MainForm.IsOneDriveBlockingHotkey()
at Greenshot.MainForm.HandleFailedHotkeyRegistration(String failedKeys)
at Greenshot.MainForm.RegisterHotkeys(Boolean ignoreFailedRegistration)
at Greenshot.MainForm..ctor(CopyDataTransport dataTransport)
at Greenshot.MainForm.Start(String[] arguments)

Configuration dump:

Environment

Software version: 1.2.9.104-RELEASE-3721c1004d2b146fd31b1e20740b8add11a61330 (64 bit)
.NET runtime version: 4.0.30319.42000+
Time: 2016-12-29 18:03:39 +08:00
OS: unknown (x64) 10.0 build 14986 revision 0

Gliffy Diagrams

Activity

Show:

Robin Krom December 30, 2016 at 7:36 AM

Thanks for the feedback, no problem.
That version is not the "final" release though, that is why it's marked "unstable" as it needed testing.

Working on making a new release available for all, there is no reason for you to go back, but please update in a few days. (there are some more fixes for other bugs we found)

David Rawcliffe December 29, 2016 at 11:33 PM

Hi robin.... you are really great, less than 24 hours after bug re[port and fixed! yes build 107 clears my problem, thanks a million , david

Robin Krom December 29, 2016 at 3:25 PM

Yes, but Greenshot should not crash in that case... so it's a bug.

Greenshot checks the settings of OneDrive, to see if the screen capture is enabled.
Due to the fact that it uses the same hotkeys, a lot of people are confused and that part of code enhances the error message.

David Rawcliffe December 29, 2016 at 10:31 AM

on looking more detail seems like the problem is that i have uninstalled ms one ddrive

Fixed

Details

Assignee

Reporter

Affects versions

Priority

Time tracking

1h logged

Sprint

Created December 29, 2016 at 10:10 AM
Updated December 30, 2016 at 8:19 AM
Resolved December 29, 2016 at 3:42 PM