User Tag List

Results 1 to 5 of 5

Thread: iOS runtime weird crash

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)iOS Export Module (Steam)
    Linky's Avatar
    Join Date
    Mar 2020
    Location
    Egypt
    Posts
    310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation iOS runtime weird crash

    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!

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,610
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by Linky View Post
    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!
    Thanks for the example, i will check
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)iOS Export Module (Steam)
    Linky's Avatar
    Join Date
    Mar 2020
    Location
    Egypt
    Posts
    310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good day, any updates on this so far or what I can do to prevent such problem from happening?

  4. #4
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,610
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by Linky View Post
    Good day, any updates on this so far or what I can do to prevent such problem from happening?
    Hi,

    I detected why this is happening, I am finishing to implement the changes and make final test, let you know when is ready.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  5. #5
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)iOS Export Module (Steam)
    Linky's Avatar
    Join Date
    Mar 2020
    Location
    Egypt
    Posts
    310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great news! good to know you managed to find what's causing the problem.

Similar Threads

  1. Weird Get object crash (257.10)
    By MJK in forum iOS Export Module Version 2.0
    Replies: 8
    Last Post: 14th May 2013, 12:05 PM
  2. A few weird runtime bugs
    By Bibin in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 18th October 2011, 07:07 PM
  3. [CRASH] Memory Object Runtime Crash with Allocate(
    By LB in forum Extension Development
    Replies: 8
    Last Post: 4th September 2011, 09:04 AM
  4. Bug causing CRASH in runtime [audio?]
    By amorgan in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 5th December 2006, 08:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •