hi guys im facing a crash problem in my game when we installed run the Application on the Iphone 3G OS v2.2.1 the Application Run fine with hardly any crash(1 out of 10) but when try to run the application on the Different OS Namely 2.0.x 2.1.x (3G EDGE base Devices) application get many crashes on some device the Application Gets crash while loading Unity3D at the start of the Application.
The total size of the build is 38 Mb and according to Unity “Statistic”(options in the Engine showing memory usage )
Used Texture : 13 - 1.4MB
Screen : 480*320 - 1.8MB
VRam Uasge : 1.8 MB to 3.8MB
VBO Total : 111 - 156.6 KB
hi actually i cant send u the application as we are not allowed to do that as its a client project yet we will confirm it from the client inform it 2 you.
well i manage to reduce the Crashing problem in my latest build now the issue is the Loading time.
while loading the Application it takes 10 secs. on our Device 20-30 secs approx. on our client Device.
i was thinking tht this time is due to loading of complete Game data at once. so i Created a separate Levels a Loading Screen as different “.Unity” stages
at first im just loading a “LoadingScreen.Unity” which is containing Camera, 2 GuiTexture (i have used Prefabs for this), 3 texture file of (512*512) a Script File to change to next Main Menu after 1.5 secs, yet its taking the approximately same amount of time to load the game at start.
The total size of the application is 37MB Approx.
there are total 6 .Unity file which are sated below:
1> Loading Screen (Showing animated Loading progress bar containing 2 imgs 512256 6432 1 Script file )
2> Game Menu (Show Help Imgs start Game Option 10 imgs of 512512, 2 GUI Buttons 1 Script file)
3> Level 1 Have approx 150 Phy Objs( plane of 2 triangles using Box Collider), +30 Non Phy Objects + 2Gui Buttons 1 Script file
4> Level 2 Have approx 130 Phy Objs( plane of 2 triangles using Box Collider), +30 Non Phy Objects + 2Gui Buttons 1 Script file
5> Level 3 Have approx 130 Phy Objs( plane of 2 triangles using Box Collider), +30 Non Phy Objects + 2Gui Buttons 1 Script file
6> HighScore Display screen ( 8 GUI text 1 img 512512 2 Gui Buttons 1 Script file)
All the Phy Object other objects were repeated many time in the scene so i created 6 diff Prefabs(depending on the requirements) added them to the Scene Multiple times to create Level. if we exclude this Multiple objects created using Prefabs there are only 10 to 15 non phy. objects present in the scene of max 100 tris.
im loading One .Unity file one at a time to avoid Memory issues it worked the crashes were non.
i have tried using Application.PreloadLevel(Application.loadedLevel+1); to save time but there was not much of the difference
And another problem which we are facing is that the Device requires restart after installing the app on the device to work crash free. Once is device is restarted the application doesnot crashes at all can v do something to avoid this restart of device after installing the application.
That is normal iPhone behavior.
Nothing you can do about, as that is an OS problem that Apple has to fix.
You only make the problem larger by not using the current OS and instead use the dead instable 2.0
you better would enforce 2.2 min requirements as anyone should be up there anyway. The new OS releases haven’t happened for fun.
Also you might want to check the crash reports in XCode organizer in case you are able to get access to a “crash device”. the iphone stores each crash and callstack that lead to the crash.