[SOLVED] Fatal Error EVERY Time I Attempt to Save T2D Project
by John Haley · in Torque Game Builder · 07/05/2011 (8:33 am) · 13 replies
I'm not sure if my recent Mac OS upgrade is the reason for this, but every time I attempt to save any T2D project, I get the following error message:
I de-installed and re-installed TGB Pro, and even tried saving demo games (which I can play). Whether I download just plain TGB, TGB Pro, use the Platformer Starter Kit (PSK) or not, I get this error EVERY time I attempt to save a project. There IS a file called bitmapPng.cc, but no such folder called "mac-build" under the "Users" folder. I don't know if there should be such a folder, since I assume that anything I download under "My Products" should be the complete package.
I'm using the same Mac I owned since I first purchased TGB in 2006. It exceeds the "optimal" requirements, and I was saving projects using the PSK and having no trouble until July 3rd. I can only think of two things that I did on July 3rd that could have led to this problem:
1 - I accidentally deleted an essential TGB file while deleting duplicate folders on my Mac. However, I would think that if this were the case, downloading TGB Pro and the PSK again would solve this problem.
2 - Mac OS X 10.6.8, which I downloaded on July 3rd, is not compatible with T2D. (Mac OS X 10.6.7 definitely is compatible.)
If anyone has a clue as to (a) whether either of the above could be the reason I'm having trouble and (b) what, if anything, I can do about it, I'd appreciate some advice.
Thanks,
-John
PS- I'm a teacher, which means I have a two-month window of opportunity to learn as much as I can about the PSK, so it's a shame I'm "stuck" at the moment. If it really is the operating system, and GarageGames is working on a T2D update that will support OS X 10.6.8 or 10.7, then I can at least take comfort in working on the art for my game knowing that help is on the way.
Quote:
Fatal-ISV: (/Users/mac-build/Desktop/quickbuild-data/working/torque/TGB/TGB_1_7_5/Pro Installer/checkouts/engine/compiles/Xcode/../../source/dgl/bitmapPng.cc @ 85)
Error reading PNG file:
invalid distance too far back
I de-installed and re-installed TGB Pro, and even tried saving demo games (which I can play). Whether I download just plain TGB, TGB Pro, use the Platformer Starter Kit (PSK) or not, I get this error EVERY time I attempt to save a project. There IS a file called bitmapPng.cc, but no such folder called "mac-build" under the "Users" folder. I don't know if there should be such a folder, since I assume that anything I download under "My Products" should be the complete package.
I'm using the same Mac I owned since I first purchased TGB in 2006. It exceeds the "optimal" requirements, and I was saving projects using the PSK and having no trouble until July 3rd. I can only think of two things that I did on July 3rd that could have led to this problem:
1 - I accidentally deleted an essential TGB file while deleting duplicate folders on my Mac. However, I would think that if this were the case, downloading TGB Pro and the PSK again would solve this problem.
2 - Mac OS X 10.6.8, which I downloaded on July 3rd, is not compatible with T2D. (Mac OS X 10.6.7 definitely is compatible.)
If anyone has a clue as to (a) whether either of the above could be the reason I'm having trouble and (b) what, if anything, I can do about it, I'd appreciate some advice.
Thanks,
-John
PS- I'm a teacher, which means I have a two-month window of opportunity to learn as much as I can about the PSK, so it's a shame I'm "stuck" at the moment. If it really is the operating system, and GarageGames is working on a T2D update that will support OS X 10.6.8 or 10.7, then I can at least take comfort in working on the art for my game knowing that help is on the way.
About the author
SUMMER PROJECT: Currently working on PSK tutorials. SHORT-TERM GOAL: Make a basic platformer level. LONG-TERM GOAL: Make a co-op platformer in which the two protagonists use their unique abilities to support each other.
#2
* started up TGB Pro
* opened the PSK Demo
* played the game
* closed game / back to the editor
* tried to save / got the fatal error
Things that go wrong:
(1) Fonts not compatible?
(2) That fatal error.
I appreciate you looking into this, and apologize if this console.log is way more info than you need.
07/05/2011 (12:32 pm)
Thanks, David... here's the console.log after I* started up TGB Pro
* opened the PSK Demo
* played the game
* closed game / back to the editor
* tried to save / got the fatal error
Things that go wrong:
(1) Fonts not compatible?
(2) That fatal error.
I appreciate you looking into this, and apologize if this console.log is way more info than you need.
Quote:
Torque Game Builder (v1.7.5) initialized...
% Opening Project /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/project.t2dProj ...
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/resources/PlatformerArt/resourceDatabase.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/resources/PlatformerArt/AudioData.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/resources/PlatformerArt/CavemanData.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/resources/PlatformerArt/DragonData.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/resources/PlatformerArt/DrillData.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/resources/PlatformerArt/BoomBotData.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/data/shapes/players/BoomBot/BoomBot.cs.
Sequence import failed: sequence node "Bip01 Pelvis" not found in base shape.
game/data/shapes/players/BoomBot/BoomBot.cs (0): preload failed for BoomBotDts: Load sequence /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/data/shapes/players/animations/player_root.dsq root failed for /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/data/shapes/players/BoomBot/BoomBot.dts.
% Game Resources : Loaded Resource PlatformerArt
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/managed/datablocks.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/managed/persistent.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/managed/brushes.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/behaviors/TrampolineBehavior.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/behaviors/SpawnPointBehavior.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/behaviors/PlatformBehavior.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/behaviors/PickupBehavior.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/behaviors/PepperPickupBehavior.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/behaviors/ParallaxBehavior.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/behaviors/MusicTriggerBehavior.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/behaviors/LevelCompleteBehavior.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/behaviors/LadderBehavior.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/behaviors/FallingPlatformBehavior.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/behaviors/EnemyTurnBehavior.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/behaviors/ControllerBehavior.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/behaviors/CheckPointPickupBehavior.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/behaviors/AreaDamageBehavior.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/behaviors/AIControllerBehavior.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/gameScripts/datablocks.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/gameScripts/guiProfiles.cs.
Executing /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/data/levels/demoLevel.t2d.
Could not locate texture: /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/data/shapes/players/common/base.lmale
Executing /Users/jmh/Library/Application Support/GarageGames/TorqueGameBuilder/RSSCache.cs.
creating path /Users/jmh/Library/Application Support/GarageGames/TorqueGameBuilder/RSSCache.cs
creating path /Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/common/commonConfig.xml
#3
NOTE: I can find a PNG file like the one in the error message here:
/Applications/TorqueGameBuilder-1.7.5-Pro/engine/source/dgl/bitmapPng.cc
The only folders under /Users are /jmh, /jmhaley and /Shared. I don't know what /Users/mac-build is.
Thanks again!
-John
07/05/2011 (12:33 pm)
Exceeded character limit... here's the rest of the console.logQuote:
Populating font cache with range 0x20 to 0xff (37 fonts found)
o Populating font '/Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/common/data/fonts/Arial Bold 20 (ansi).uft'
o Populating font '/Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/common/data/fonts/Arial 12 (ansi).uft'
o Populating font '/Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/common/data/fonts/Monaco 14 (ansi).uft'
o Populating font '/Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/common/data/fonts/Arial 14 (ansi).uft'
MacCarbFont::create - could not load font -David-
Loading platform font failed, trying font fallbacks...
o Populating font '/Applications/TorqueGameBuilder-1.7.5-Pro/games/PlatformerDemo/game/data/fonts/David 72 (ansi).uft'
o Populating font '/Users/jmh/Library/Application Support/GarageGames/TorqueGameBuilder/fonts/Wingdings 80 (ansi).uft'
o Couldn't load font : /Users/jmh/Library/Application Support/GarageGames/TorqueGameBuilder/fonts/Verdana 80 (ansi).uft
o Couldn't load font : /Users/jmh/Library/Application Support/GarageGames/TorqueGameBuilder/fonts/Playbill 80 (ansi).uft
o Populating font '/Users/jmh/Library/Application Support/GarageGames/TorqueGameBuilder/fonts/Osaka-Mono 80 (ansi).uft'
Fatal-ISV: (/Users/mac-build/Desktop/quickbuild-data/working/torque/TGB/TGB_1_7_5/Pro Installer/checkouts/engine/compilers/Xcode/../../source/dgl/bitmapPng.cc @ 85) Error reading PNG file:
invalid distance too far back
NOTE: I can find a PNG file like the one in the error message here:
/Applications/TorqueGameBuilder-1.7.5-Pro/engine/source/dgl/bitmapPng.cc
The only folders under /Users are /jmh, /jmhaley and /Shared. I don't know what /Users/mac-build is.
Thanks again!
-John
#4
07/05/2011 (1:10 pm)
I know that T2D has been using an old version of libPNG. I would not be surprised if something has changed in the OS X patch. People have had this problem with a lot of different versions of the libPNG software (as well as the zlib compression it uses).
#5
Is there anything I can do about this? Or is this something that will be taken care of in a future release of T2D? (I'd understand if you prioritize compatibility with OS X 10.7, rather than worry about the latest 10.6 patch.)
Like I said in an earlier post, I can always keep moving forward on the project by creating my art first. Just wondering if there are any solutions I can handle on my end. Since I'm creating my own art anyway, I suppose I could use JPGs instead of PNGs.
This would be just a problem with PNG files... right?
07/05/2011 (2:57 pm)
Good to know that you're familiar with this issue, and I'm not the victim (or perpetrator) of some weird freak accident.Is there anything I can do about this? Or is this something that will be taken care of in a future release of T2D? (I'd understand if you prioritize compatibility with OS X 10.7, rather than worry about the latest 10.6 patch.)
Like I said in an earlier post, I can always keep moving forward on the project by creating my art first. Just wondering if there are any solutions I can handle on my end. Since I'm creating my own art anyway, I suppose I could use JPGs instead of PNGs.
This would be just a problem with PNG files... right?
#6
07/05/2011 (3:22 pm)
It's not just a Torque problem, unfortunately. Try running it through OptiPng to see if it is just a corrupted header problem. It most likely has more to do with the compression algorithm, however, from the error.
#7
At least I found out that my work-around, to not use PNG files, wouldn't work. I created a blank project (empty game; no art) and was unable to save that. So I really am stuck at the moment. I'm sure this is a temporary setback though, so I'll keep moving forward with my artwork for now.
I appreciate you checking in on me today, David. And if you can advise me as to how to "run through OptiPng," I'll give that a shot.
07/05/2011 (6:04 pm)
I should change the sign on my avatar's t-shirt to "TECHNO NOOB." I had to Google "OptiPng." Should I download something from here, and...? Not sure what comes after "and."At least I found out that my work-around, to not use PNG files, wouldn't work. I created a blank project (empty game; no art) and was unable to save that. So I really am stuck at the moment. I'm sure this is a temporary setback though, so I'll keep moving forward with my artwork for now.
I appreciate you checking in on me today, David. And if you can advise me as to how to "run through OptiPng," I'll give that a shot.
#8
07/06/2011 (10:49 am)
If you look in the related projects section, you'll find some OSX projects with GUI interfaces. That way you do not need to work in the terminal.
#9
Assuming that I'm doing what I should be doing, are there PNG files that always load, even when an "empty game" is created? If so, I'll optimize those PNGs, wherever they may be, plus every PNG file in the /Platformer Art/data/imiages/* folders, and hopefully, I'll be all set.
(Will make sure a blank project can be saved before testing a PSK project... and will save my own art as JPGs just to be on the safe side!)
EDIT - I systematically went through every folder, and the folders within, in search of PNG files--hundreds if not thousands! I *THINK* I optimized EVERY png file under the TGB Pro folder. Even if I missed a few PNGs, I'm >99% certain I found the blank background and GUI images that would still be loaded in an "empty game"... but still no luck. Unable to save an empty game; unable to save what should be a functional platformer level.
07/06/2011 (5:24 pm)
Trying "ImageOptim" now. Very Techno-Noob-friendly! I can easily optimize the PNG files using this, but I have one concern: a blank project with no source art ("empty game") also gives me this error message.Assuming that I'm doing what I should be doing, are there PNG files that always load, even when an "empty game" is created? If so, I'll optimize those PNGs, wherever they may be, plus every PNG file in the /Platformer Art/data/imiages/* folders, and hopefully, I'll be all set.
(Will make sure a blank project can be saved before testing a PSK project... and will save my own art as JPGs just to be on the safe side!)
EDIT - I systematically went through every folder, and the folders within, in search of PNG files--hundreds if not thousands! I *THINK* I optimized EVERY png file under the TGB Pro folder. Even if I missed a few PNGs, I'm >99% certain I found the blank background and GUI images that would still be loaded in an "empty game"... but still no luck. Unable to save an empty game; unable to save what should be a functional platformer level.
#10
Just to be sure, T2D should work perfectly even if the only Torque folder I have on my computer is the one I download from the "Torque Game Builder Pro 1.7.5 - Mac" link under the "My products" Section of this site... right?
So if that doesn't work, does this mean there is something terribly wrong with the laptop itself? (I did experience frequent crashes that day [July 3rd].)
Like I said earlier, I deleted some old Torque folders thinking they were duplicates. So I'm wondering if that could have anything to do with my troubles. Does the "TGB_1_7_5/Pro Installer/checkouts" part of that error message imply that the program is checking to see if I'm the owner of the software, or if I'm trying to violate the EULA and download the software to another computer? (This is the same laptop I've owned since purchasing T2D in 2006.)
07/07/2011 (9:22 am)
I used my Snow Leopard disc to downgrade my os to 10.6.3--which I know works with T2D--and I still got the same fatal error.Just to be sure, T2D should work perfectly even if the only Torque folder I have on my computer is the one I download from the "Torque Game Builder Pro 1.7.5 - Mac" link under the "My products" Section of this site... right?
So if that doesn't work, does this mean there is something terribly wrong with the laptop itself? (I did experience frequent crashes that day [July 3rd].)
Like I said earlier, I deleted some old Torque folders thinking they were duplicates. So I'm wondering if that could have anything to do with my troubles. Does the "TGB_1_7_5/Pro Installer/checkouts" part of that error message imply that the program is checking to see if I'm the owner of the software, or if I'm trying to violate the EULA and download the software to another computer? (This is the same laptop I've owned since purchasing T2D in 2006.)
#11
I'm not seeing this problem on my Mac. I'll check to see if QA has run into it before.
07/07/2011 (12:02 pm)
No. That is the directory from the binaries generated on our server. It has nothing to do with your account. Unless you have recompiled the engine, it will not list your directory structure.I'm not seeing this problem on my Mac. I'll check to see if QA has run into it before.
#12
07/07/2011 (12:34 pm)
Thanks, David. At this stage, I won't be surprised if it's an issue with my Mac. But if any of the QA guys have experienced this fatal error and can tell me what to do about it, I'll certainly appreciate the advice.
#13
I was right, and a Mac vendor at Best Buy showed me what do to about it. I successfully saved a TGB project!
Bad News - Now my computer won't start.
Great News - Getting a new computer! Was considering this for some time, but today's fix-a-problem-end-up-worse-off-than-before sealed the deal. In other words, my wife agrees I need a new computer.
07/18/2011 (2:08 pm)
Good News - I suspected the problem was that after installing Mac OS X 10.6.8, I was having problems because for some reason, I was unable to access certain folders.I was right, and a Mac vendor at Best Buy showed me what do to about it. I successfully saved a TGB project!
Bad News - Now my computer won't start.
Great News - Getting a new computer! Was considering this for some time, but today's fix-a-problem-end-up-worse-off-than-before sealed the deal. In other words, my wife agrees I need a new computer.
Associate David Montgomery-Blake
David MontgomeryBlake
EDIT: Moved to T2D.