Game Development Community

Error alloc too large, increase frame size

by Andy Hawkins · in iTorque 2D · 08/14/2012 (3:51 am) · 4 replies

My students are starting to submit their work for an alpha test on the iPod and iPad and I keep getting this error. I have no idea what's wrong. I've tried reducing the size of images but I can't get rid of the error. How do I fix it? It only happens when I try to run it on an actual iPod or iPad. Simulator works fine and it works fine in Torque and Torsion.
Loaded compiled script /private/var/mobile/Applications/BDA9F995-389A-4105-B97E-44C1F95A9BDA/iTorque2DGame.app/scripts/system/projectManagement.cs. Took 5 ms 
Loaded compiled script /private/var/mobile/Applications/BDA9F995-389A-4105-B97E-44C1F95A9BDA/iTorque2DGame.app/scripts/system/levelManagement.cs. Took 5 ms 
Loaded compiled script /private/var/mobile/Applications/BDA9F995-389A-4105-B97E-44C1F95A9BDA/iTorque2DGame.app/scripts/behaviors/worldLimitWrapRandom.cs. Took 2 ms 
Loaded compiled script /private/var/mobile/Applications/BDA9F995-389A-4105-B97E-44C1F95A9BDA/iTorque2DGame.app/scripts/behaviors/worldLimitWrap.cs. Took 1 ms 
Loaded compiled script /private/var/mobile/Applications/BDA9F995-389A-4105-B97E-44C1F95A9BDA/iTorque2DGame.app/scripts/behaviors/trackCollisions.cs. Took 1 ms 
Loaded compiled script /private/var/mobile/Applications/BDA9F995-389A-4105-B97E-44C1F95A9BDA/iTorque2DGame.app/scripts/behaviors/touchDrag.cs. Took 1 ms 
Loaded compiled script /private/var/mobile/Applications/BDA9F995-389A-4105-B97E-44C1F95A9BDA/iTorque2DGame.app/scripts/behaviors/setScore.cs. Took 1 ms 
Loaded compiled script /private/var/mobile/Applications/BDA9F995-389A-4105-B97E-44C1F95A9BDA/iTorque2DGame.app/scripts/behaviors/moveUpScreenFadeAway.cs. Took 1 ms 
Loaded compiled script /private/var/mobile/Applications/BDA9F995-389A-4105-B97E-44C1F95A9BDA/iTorque2DGame.app/scripts/behaviors/moveUpScreen.cs. Took 2 ms 
Loaded compiled script /private/var/mobile/Applications/BDA9F995-389A-4105-B97E-44C1F95A9BDA/iTorque2DGame.app/scripts/behaviors/moveOnScreenRandom.cs. Took 1 ms 
Loaded compiled script /private/var/mobile/Applications/BDA9F995-389A-4105-B97E-44C1F95A9BDA/iTorque2DGame.app/scripts/behaviors/moveOnScreen.cs. Took 1 ms 
Loaded compiled script /private/var/mobile/Applications/BDA9F995-389A-4105-B97E-44C1F95A9BDA/iTorque2DGame.app/scripts/behaviors/mouseDownRespawn.cs. Took 1 ms 
Loaded compiled script /private/var/mobile/Applications/BDA9F995-389A-4105-B97E-44C1F95A9BDA/iTorque2DGame.app/scripts/behaviors/mouseDownRemove.cs. Took 2 ms 
Loaded compiled script /private/var/mobile/Applications/BDA9F995-389A-4105-B97E-44C1F95A9BDA/iTorque2DGame.app/scripts/behaviors/keepTrackScore.cs. Took 1 ms 
Loaded compiled script /private/var/mobile/Applications/BDA9F995-389A-4105-B97E-44C1F95A9BDA/iTorque2DGame.app/scripts/behaviors/audioBehavior.cs. Took 2 ms 
Loaded compiled script /private/var/mobile/Applications/BDA9F995-389A-4105-B97E-44C1F95A9BDA/iTorque2DGame.app/scripts/behaviors/alienBehaviour.cs. Took 2 ms 
Loaded compiled script /private/var/mobile/Applications/BDA9F995-389A-4105-B97E-44C1F95A9BDA/iTorque2DGame.app/gui/profiles.cs. Took 94 ms 
Fatal: (../../../../engine/source/core/frameAllocator.h @ 76) Error alloc too large, increase frame size!

#1
08/14/2012 (8:08 am)
Hi Andy;

Given the last two entries in your log:

Loaded compiled script /private/var/mobile/Applications/BDA9F995-389A-4105-B97E-44C1F95A9BDA/iTorque2DGame.app/gui/profiles.cs. Took 94 ms  
 
Fatal: (../../../../engine/source/core/frameAllocator.h @ 76) Error alloc too large, increase frame size!

...I think you should investigate the "profiles.cs" file. I no longer use this file in my work (have ported its usage into other areas of code) but, if I recall correctly, there might have been settings that establish/alter your mainScreenGui.Extent and sceneWindow2D.Extent attributes within that script.

If so, make sure these extents are not larger than your platState.windowSize settings are permitted to handle (iPhoneWindow.mm).

As stated, this is just a guess based on what I think I remember from how the code was set up before I Franken-morphed it to suit my needs.

Good luck!
#2
08/14/2012 (8:42 am)
hei i suggest you to control fonts ... you must create fonts by mac ....

the same error occur in my project why i used fonts created on windows that are so big font files respect the same created on mac ...

#3
08/14/2012 (6:11 pm)
Ahhh - these seem to correlate to my findings this morning. I noticed the students projects that don't work have windows included fonts... hmm - thanks guys, I'll let you know.
#4
08/14/2012 (6:40 pm)
Well the solutions was to build a new project - grab it's data/fonts and gui/profile.cs and paste them into the offending projects - need to remove the fonts folder first from the non-working project.

That will do for assessments tomorrow but I really need to work out why some of the projects got into this state in the first place.

Thanks for your help guys.