Game now crashes my iphone
amigoni
Member Posts: 78
My Game now crashes my iphone at random intervals it seems. Help please. It will actually force my iphone to reboot.
Comments
Also, a syntax error or a missing panthesis will crash the game.
If it seems to happen randomly, it might be memory related. What are the RAM usage totals when you run the game through GS Viewer?
It was the interpolate. I don't know why, but it was crashing during gameplay not before or after. Weird.
Not sure if this is the problem, but best of luck!
I haven't noticed any problems with Interpolate.
The game freezes both on the mac and on the iphone.
Game is crashing but I think it's a memory issue. I posted this before in the forum about other memory
Images: 7.4 MB
Sounds: 6.3 MB
Game Engine 14.5 MB
Other: 34.9 MB
Total 63.1
This is on the startup screen. While I play Images and sounds stay about the same but the strange thing is that the game engine slowly creeps up and mainly the other memory is over 45 MB and creeps up slowly. When it reaches 68 MB or so it crashes on the iphone.
I have a jailbroken iphone 3G and this might be part of the issue, according to what utopiangames was saying lots of people with jailbroken phones were having crashes. I know I couldn't play his game anymore, it wouldn't even start. So there seems to be a memory leak or something with GS and Jailbroken phones. Not sure if there is anything we can do about it, but all the other games I have don't crash. That is the issue that I see we are going to have with our customers.
Weather jailbroken or not a customer will leave a review which will hurt our performance on the app store. So I am asking for help about this from Gendai Games. Is there any fix for this? Maybe something with the new version?
Or am I just making the wrong assumptions? What do you think?
Does it still creep?
I noticed a memory leak related to sounds in my current game that will apparently be fixed in the
next build. Hopefully that is the case!
Having a jailbroken phone should not matter. It's just the total RAM available for the app. Jailbreaking gives you more freedom and allows you to run more things at once in the background. All those things take away the available RAM for your current app.
The actor have these attributes:
- X_INI: 0 : integer
- X_END: 0 : integer
- Y_INI: 0 : integer
- Y_END: 0 : integer
- Tempo: 0 : integer
- Tempo Max: 5 : integer
- Multiplicador: 2 : integer
These are the behaviors:
When touched
Change attribute self.X_INI to self.Position.X
Change attribute self.Y_INI to self.Position.Y
Timer every 0.1 second - don't run to completion
Change Attribute self.Tempo to self.Tempo+1
Otherwise
When attribute self.Tempo <= self.Tempo Max
Change attribute X_END to game.Touches.Touch 1.X
Change attribute Y_END to game.Touches.Touch 1.Y
When attribute self.X_INI > self.X_END
Change attribute self.Motion.Linear Velocity.X to -1*ceil((abs(self.X_INI - self.X_END)* self.Multiplicador)/self.Tempo)
When attribute self.X_INI < self.X_END
Change attribute self.Motion.Linear Velocity.X to ceil((abs(self.X_INI - self.X_END)* self.Multiplicador)/self.Tempo)
When attribute self.Y_INI > self.Y_END
Change attribute self.Motion.Linear Velocity.Y to -1*ceil((abs(self.Y_INI - self.Y_END)* self.Multiplicador)/self.Tempo)
When attribute self.Y_INI < self.Y_END
Change attribute self.Motion.Linear Velocity.Y to ceil((abs(self.Y_INI - self.Y_END)* self.Multiplicador)/self.Tempo)
Change attribute Tempo to 0
Otherwise
Change attribute Tempo to 0
Thread 5 Crashed:
0 libSystem.B.dylib 0x00007fff807d7b6e __semwait_signal_nocancel + 10
1 libSystem.B.dylib 0x00007fff807d7a70 nanosleep$NOCANCEL + 129
2 libSystem.B.dylib 0x00007fff808343c6 usleep$NOCANCEL + 57
3 libSystem.B.dylib 0x00007fff8085397c abort + 93
4 libstdc++.6.dylib 0x00007fff881b75d2 __tcf_0 + 0
5 libobjc.A.dylib 0x00007fff8863ad3d _objc_terminate + 120
6 libstdc++.6.dylib 0x00007fff881b5ae1 __cxxabiv1::__terminate(void (*)()) + 11
7 libstdc++.6.dylib 0x00007fff881b4e9c __cxa_call_terminate + 46
8 libstdc++.6.dylib 0x00007fff881b59fc __gxx_personality_v0 + 1011
9 libSystem.B.dylib 0x00007fff807ca061 unwind_phase2 + 145
10 libSystem.B.dylib 0x00007fff807c9f55 _Unwind_RaiseException + 213
11 libstdc++.6.dylib 0x00007fff881b5bef __cxa_throw + 91
12 com.gendaigames.GameSalad 0x00000001000cd22d b2StackAllocator::Free(void*) + 151
13 com.gendaigames.GameSalad 0x00000001000cf826 b2Island::~b2Island() + 24
14 com.gendaigames.GameSalad 0x00000001000d0dca b2World::Solve(b2TimeStep const&) + 1024
15 com.gendaigames.GameSalad 0x00000001000d1ad2 b2World::Step(float, int, int) + 178
16 com.gendaigames.GameSalad 0x000000010008b321 world_step(lua_State*) + 98
17 com.gendaigames.GameSalad 0x0000000100041128 luaD_precall + 752
18 com.gendaigames.GameSalad 0x000000010004ffcb luaV_execute + 3378
19 com.gendaigames.GameSalad 0x000000010004125b luaD_call + 114
20 com.gendaigames.GameSalad 0x0000000100040b22 luaD_rawrunprotected + 103
21 com.gendaigames.GameSalad 0x0000000100040b8c luaD_pcall + 80
22 com.gendaigames.GameSalad 0x0000000100037cae lua_pcall + 277
23 com.gendaigames.GameSalad 0x0000000100099791 -[LuaState callFunction:args:] + 239
24 com.apple.Foundation 0x00007fff887a2a2d __NSFireTimer + 114
25 com.apple.CoreFoundation 0x00007fff847f5678 __CFRunLoopRun + 6488
26 com.apple.CoreFoundation 0x00007fff847f384f CFRunLoopRunSpecific + 575
27 com.apple.Foundation 0x00007fff88787a18 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 270
28 com.apple.Foundation 0x00007fff887d348e -[NSRunLoop(NSRunLoop) runUntilDate:] + 78
29 com.gendaigames.GameSalad 0x0000000100098105 -[LuaState runLoop:] + 277
30 com.apple.Foundation 0x00007fff8874ce8d __NSThread__main__ + 1429
31 libSystem.B.dylib 0x00007fff8079e456 _pthread_start + 331
32 libSystem.B.dylib 0x00007fff8079e309 thread_start + 13
- Division per zero (ex: self.attribute / 0)
- Save a behavior of one actor with new attributes and use it in another actor that doesn't have that attributes
When I run the game, the "others" size goes from 8mb to 39mb and then crash.