EasyImgur icon indicating copy to clipboard operation
EasyImgur copied to clipboard

"A generic error occurred in GDI+"

Open dwhickox opened this issue 7 years ago • 4 comments

I'm not quite sure what happened but the .net spit out this several times, even after a restart:

Thanks again, David

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text ************** System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+. at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams) at System.Drawing.Image.Save(Stream stream, ImageFormat format) at EasyImgur.ImgurAPI.InternalUploadImage(Object _Obj, Boolean _URL, String _Title, String _Description, Boolean _Anonymous, String _AlbumID) at EasyImgur.ImgurAPI.InternalUploadImage(Object _Obj, Boolean _URL, String _Title, String _Description, Boolean _Anonymous, AlbumResponse& _Album) at EasyImgur.Form1.UploadAlbum(Boolean _Anonymous, String[] _Paths, String _AlbumTitle) at EasyImgur.Form1.UploadFile(Boolean _Anonymous, String[] _Paths) at EasyImgur.Form1.uploadFileAccountTrayMenuItem_Click(Object sender, EventArgs e) at System.Windows.Forms.MenuItem.OnClick(EventArgs e) at System.Windows.Forms.MenuItem.MenuItemData.Execute() at System.Windows.Forms.Command.Invoke() at System.Windows.Forms.Command.DispatchID(Int32 id) at System.Windows.Forms.NotifyIcon.WndProc(Message& msg) at System.Windows.Forms.NotifyIcon.NotifyIconNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies ************** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.7.2600.0 built by: NET471REL1LAST CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

EasyImgur Assembly Version: 0.3.5.0 Win32 Version: 0.3.5 CodeBase: file:///C:/Users/dwhic/Desktop/EasyImgur.exe

System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.7.2600.0 built by: NET471REL1LAST CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System Assembly Version: 4.0.0.0 Win32 Version: 4.7.2556.0 built by: NET471REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.7.2556.0 built by: NET471REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.7.2556.0 built by: NET471REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.7.2556.0 built by: NET471REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.7.2556.0 built by: NET471REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Accessibility Assembly Version: 4.0.0.0 Win32 Version: 4.7.2556.0 built by: NET471REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

Newtonsoft.Json Assembly Version: 4.5.0.0 Win32 Version: 0.3.5 CodeBase: file:///C:/Users/dwhic/Desktop/EasyImgur.exe

System.ComponentModel.DataAnnotations Assembly Version: 4.0.0.0 Win32 Version: 4.7.2556.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/v4.0_4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll

System.Runtime.Serialization Assembly Version: 4.0.0.0 Win32 Version: 4.7.2556.0 built by: NET471REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

System.Xml.Linq Assembly Version: 4.0.0.0 Win32 Version: 4.7.2556.0 built by: NET471REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll

System.Data Assembly Version: 4.0.0.0 Win32 Version: 4.7.2556.0 built by: NET471REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

System.Management Assembly Version: 4.0.0.0 Win32 Version: 4.7.2556.0 built by: NET471REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll

************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.

For example:

When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.

dwhickox avatar Dec 14 '17 19:12 dwhickox

I should mention both times it managed to upload exactly 50 images, then before the restart (of the computer), it would not upload anymore even if I killed the program and reopened it. It just used huge amounts of network, and after the restart 50 again.

dwhickox avatar Dec 14 '17 19:12 dwhickox

Hi @dwhickox

Could you please post your log file? (%AppData%\EasyImgur\log.log) It may contain more information as to what's going on.

Thanks!

bkeiren avatar Dec 14 '17 21:12 bkeiren

Hi, Sorry for the slow response, I am studying for finals right now so email checking has kind of fallen by the wayside.

Anyway, the file is attached, thanks for everything! log.log

dwhickox avatar Dec 15 '17 02:12 dwhickox

Hey, I took a look at your log and also managed to reproduce the issue by uploading a bunch of relatively small images. Apparently you were being rate limited by the Imgur API :( The API was returning code 429 with message

"You are uploading too fast. Please wait 59 more minutes."

I've commited some changes that will make this clearer in the future hopefully, but for now I don't think we can do much about it really. The only option would be to either artificially limit the rate at which EasyImgur uploads (which is very inconvenient, especially because once you do hit the limit we would need to artificially wait 60 minutes judging from that message), or we could contact Imgur and see if we can get the rate limiting changed for EI, but I think that is unlikely...

bkeiren avatar Dec 15 '17 12:12 bkeiren