Jump to content

TGA RLE Truecolor 1x1 image failed to load


Recommended Posts

File is specification compliant, handled correctly in another applications
File contents:
 

00 00 0A 00 00 00 00 00 00 00 00 00 01 00 01 00 20 08 00 1F 78 E1 FF

Error message:
 

Quote

Application version: paint.net версия 4.2.8

System.ArgumentOutOfRangeException: must be positive
Имя параметра: value
   в PaintDotNet.ExceptionUtil.ThrowArgumentOutOfRangeException(String paramName, String message) в D:\src\pdn\src\Base\ExceptionUtil.cs:строка 102
   в PaintDotNet.Data.BufferedBinaryReader.set_Position(Int64 value) в D:\src\pdn\src\PaintDotNet\Data\BufferedBinaryReader.cs:строка 124
   в PaintDotNet.Data.TgaFileType.Tga2Footer.TryGetFooterBytes(BufferedBinaryReader reader) в D:\src\pdn\src\PaintDotNet\Data\TgaFileType.cs:строка 171
   в PaintDotNet.Data.TgaFileType.TryReadExtensionArea(BufferedBinaryReader reader) в D:\src\pdn\src\PaintDotNet\Data\TgaFileType.cs:строка 886
   в PaintDotNet.Data.TgaFileType.OnLoadImpl(BufferedBinaryReader reader) в D:\src\pdn\src\PaintDotNet\Data\TgaFileType.cs:строка 800
   в PaintDotNet.Data.TgaFileType.OnLoad(Stream input) в D:\src\pdn\src\PaintDotNet\Data\TgaFileType.cs:строка 630
   в PaintDotNet.FileType.Load(Stream input) в D:\src\pdn\src\Data\FileType.cs:строка 512
   в PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) в D:\src\pdn\src\Base\Functional\Func.cs:строка 158

 

Link to post
Share on other sites

Thanks for the bug report. Looks like @null54 just sent me the fix for this, so you'll see this working in the 4.2.11 update

 

Also, you're on a relatively old version -- 4.2.8. Make sure you're installing updates :)

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...