Game Development Community

1.7.4 TGB Pro "Error reading PNG file: incorrect data check

by Glenn Thomas · in Torque Game Builder · 10/01/2008 (10:12 pm) · 12 replies

I was creating imagemaps and animations for a game that I was prototyping when my cpu spiked and I started getting some slowdown. I saved my project and shut TGB down and took a break. I cleaned up my memory and some other stuff on my laptop, then I started TGB back up and recieved a message prompt that read: Error reading PNG file: incorrect data check. The title of the prompt read: Fatal-ISV: (..\..\source\dgl\bitmapPng.cc @ 85). The screen displays a distorted image of last saved project. When I hit the "ok" button TGB shuts itself down. Here's the specs of the system I using: OS Name: Microsoft Windows XP Professional, OS Version: 5.1.2600, Service Pack 2.0, Processor: Intel(R) Pentium(R) M processor 1.80GHz, Memory 1014MB, Video Adapter: Intel(R) 82852/82855 GM/GME Graphics Controller. My rig is so beastly everybody should get one of these monsters!!! j/k... Any help would be great because I done 2 uninstalls and 2 reinstalls and I gets no love from TGB.

#1
10/03/2008 (6:18 pm)
Does anybody have any idea what the problem is? I'm really stressing out here. Here's the update: I deleted everything that could even come from this site. I deleted every file and folder that was associated with any products from this site. I cleaned up my registry, cleaned up my harddrive, cleaned up my memory. Restarted the computer and installed the TGB without the source and had no luck. The same problem occurred with the exception of a distorted image of my last project. I'm really in the middle of something big and the future of my business relies on this. I never see the garage games logo before I get the alert. Do you think that the engine is having a problem loading that png file? I read the code that error alert refers to and I know that the error is known becase the warning was scripted for a specific reason. so is there anyone at GG that can look into this matter for me? I really need your help or at least a response to know if I need to go buy a brand new laptop that I can't afford in this backwards economy or something. Any help is greatly appreciated.
#2
10/06/2008 (12:14 am)
Hello?
#3
10/06/2008 (6:57 am)
Andy noted that updating the png libs may get rid of this problem. I'm not sure what the cause is and have never seen it myself, but I've had several people bring it up. Before we could really tackle it, it usually corrected itself.

The only times I've been able to replicate it is when PNG's had bad headers, but the last couple of times that people have had it, their PNG's were fine. Running them through optipng will fix the headers. But it wasn't a munged png in their case; it just threw the same error.
#4
10/06/2008 (8:16 pm)
Thanks I'm going to try this because it my only ray of light I'll post the details.
#5
10/09/2008 (6:41 pm)
I went through the pain staking task of optimizing every png file that comes with or is associated with TGB with optipng and there hasn't been a fix. I get the same error. Is there a plan be that I van take into account?
#6
10/10/2008 (10:14 am)
I believe Isaac Barbosa solved it by opening a new project, saving that project, and then re-opening his existing one. It was something strange like that that didn't make any sense to us.
#7
10/13/2008 (3:00 pm)
This seems similar to a bug I've seen caused by a corrupt image file - try temporarily commenting out all your image datablocks, and see if the bug still occurs.
#8
10/16/2008 (3:16 am)
I'm unable to get past the the initial loading of TGB without the error message so I can't load a new project. I deleted all my projects hoping that starting fresh would help the situation but that wasn't the result. i have no personal image datablocks so should I dig through the source and comment out image datablocks one at a time to try and fix the error. The initial install only carries image datablock within the demo tutorial examples correct? I really appreciate everyone helping me out but I can't find the quirk to fix the program. I was only creating animations amd test the in the editor I wasn't even scripting yet I was jumping in and out of flash and photoshop at the time but I've been doing that for over a year now. I'm quite exhausted with this but I really need a solution so I thank everyone for the help thus far and I we can continue to work on this till a solution is found. does anyone know of another program that fixes potential corrupt images?
#9
10/16/2008 (8:03 am)
Here's [url="http://www.garagegames.com/mg/forums/result.thread.php?qt=78396"]the other thread[/url] about the same problem.

...and I still recommend updating libpng as a first step.
#10
10/16/2008 (11:23 pm)
Thanks a lot Andy! After reading the other thread I too believe that is the best solution for the fix. I'll get back with you on the results but I'm not really delving into source at the moment so I'm going to attempt the reinstall into another directory fix as well. It doesn't make sense to me that outdated libraries can be fixed by simply changing the install directory though. I let you guys know in a minute though because TGB is uninstalling as I type this thread. It did feel good to read read about someone else dealing with my frustration as well because I was beginning to feel alone. I hope the libs are updated or a tutorial is added to the TDN so user can update the libs at their own discretion without fear of tearing something up like I have. At my state though it couldn't get anymore broken so I have nothing to lose. Thanks to everyone that worked hard to help me out with my crisis, I really appreciate it.
#11
10/16/2008 (11:43 pm)
My skepticism was correct but I am curious why it worked for the other guy. Luckily I do own the source and I can go to plan B. I'm just going to have to install a few programs just so I can compile the source. I'll be back.
#12
10/17/2008 (1:17 am)
My skepticism was correct but I am curious why it worked for the other guy. Luckily I do own the source and I can go to plan B. I'm just going to have to install a few programs just so I can compile the source. I'll be back.