Hi,
My whole game is ready, but it is crashing on iphone 3gs and ipod 3g. and it crashes any time not at a specific condition or situation.
Can anyone give me some suggestions?
Thanks,
Hi,
My whole game is ready, but it is crashing on iphone 3gs and ipod 3g. and it crashes any time not at a specific condition or situation.
Can anyone give me some suggestions?
Thanks,
maybe running out of memory? use xcode instruments or check console while playing
Game Crash occurs due to some reasons,
check out these i think you would find the solution
If it’s crashing on 3gs i am thinking of memory problem. You could try to build a test by making a new scene with a few things and run it. And slowly add your assets and try.
Check the crash logs - or watch the debugger console in xcode for low memory warnings. As Ostwind suggests you can also run the Instruments application straight from xcode and/or enable the internal profile in your appcontroller.mm file to see memory allocations.
Hey guys,
Thanks for the reply.
I do understand that it’s a memory issue as I checked it has nothing to do with null reference ( as if this was the case than I think code shows the stack trace ) and draw calls ( as the game is a 2D game and not many draw calls are there).
I even tried instruments but the game then runs so slow that it’s impossible to do debugging, though it showed me some 20 KB leaks but I was unable to determine in which class - it just showed me " general byte alloc ".
The crash logs of xcode says that it’s a crash that’s it.
The main issue is that I have no means of knowing where exactly or what precisely is causing the issue - as in a breakpoint debugging does.
And I thought that it might be a case os memory fragmentation as there are times when I do loading unloading during runtime. So, I even removed all of it and loaded everything at the scene loading ( in awake function ). But no luck.