So I have been on working on a game with our team, all was going fine, until we suddenly discovered a pretty fatal problem...
The app would crash if you jumped to specific frames, we tried to find the cause for some days now, and fortunately, we managed to find it, it's very odd though and doesn't seem like there is an easy way to work around it.
The basic principle here is, in some frames, there are objects that act spawners, they are of type Active System Box
, they will spawn objects of Active
type via the text after the "|" Seperator in the spawner name.
The spawned objects have the same position, layer, Z level, size, rgb coef
and most importantly values, strings and flags
as their spawner object.
Problem mainly comes from the fact of value transitioning between the spawner and the spawned active, which is done like this:
On Windows and Android, it works perfectly
, no problems whatsoever. though on iOS, crashes, the errors in Xcode are ones like EXC_BAD_ACCESS,
which from a google search they look to be related when accessing an invalid memory address. (In some other slightly different cases, the error can different though, like mentioning something about Surfaces)
After some more debugging, we found out that this is the specific action that causes the crash, nothing else, it's just a string value retrieving the string value of another object but via index...
I have no idea of why this might happen, and there doesn't seem to be a whole lot of ways to solve this problem without retrieving the string from the source object one way or another...
Here is the mfa that showcases the problem: App_crash_2.mfa
, main code in global events, thanks in advance!