User Tag List

Results 1 to 8 of 8

Thread: A Collision Mask Bug in XCode?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jun 2006
    Location
    UK
    Posts
    519
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation A Collision Mask Bug in XCode?

    Hello,

    I have an app on iOS running on my iPAD - I can go through many different levels / frames and the game be absolutely fine, they are navigated via a world map.

    However occasionally, when I jump in and out of levels going backwards and forwards across the map I eventually get a crash, and then continually get that crash when entering that level - which leads me to believe it's a consistent problem. I do not get this error on the PC.

    The xcode debugger comes back with the following section of code and error - any clue from anyone at clickteam if this is something in my code or an exporter issue, and if so can I get it looked at by Clickteam asap? It is within the CColMask.m file on the call 'fillrect'

    if (val == 0)
    {
    leftMask = (short) ~lMask[x1 & 15];
    rightMask = (short) ~rMask[x2 & 15];
    for (y = 0; y < h; y++)
    {
    yOffset = offset + y * lineWidth;

    mask[yOffset] &= leftMask;
    for (x = 1; x < w - 1; x++)
    {
    mask[yOffset + x] = 0;
    }
    if (x == w - 1)
    {
    mask[yOffset + x] &= rightMask; <- Thread: EXC_BAD_ACCESS (code=1, address=0x10e564000)
    }
    }
    }


    Thank You!

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,784
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    please post a bug report with a small mfa that reproduce the issue for us to test.

    check for bugtracker on top menu
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jun 2006
    Location
    UK
    Posts
    519
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That is going to be extremely difficult - I can't reproduce the bug reliably but it does happen frequently, once it occurs I can no longer open that level in my game when I load it. I have to have gone through quite a few frames and then backtracked and replayed levels for it to happen, so for me to produce a smaller mfa that does the same thing I don't think I can, as I don't know what is causing it in the first place.

    I did some research into EXC_BAD_ACCESS and it says it is trying to access a variable that doesn't exist anymore - any idea what might cause this from a mfa point of view? Global Objects maybe?

    I can provide you with my xcode project directly that has the issue - but it is 180meg in size.

  4. #4
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,784
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    could it be that the object is not created at some moment, please check this.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jun 2006
    Location
    UK
    Posts
    519
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The fault happens before the next frame actually loads - however majority of the frames in my game have the same events, and it only occurs on certain frames when the error occurs - so I can't see the relationship to any object. But saying that I get no error at all via the PC side of things - it only happens on iOS so surely it is a problem there?

    Also I am pretty sure it didn't happen a few months back when I was testing so I may try to roll back my Fusion and see if it still happens.

  6. #6
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,784
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    thanks for the info I will check
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jun 2006
    Location
    UK
    Posts
    519
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I upgraded to the latest beta version of the software up from standard, and this error has gone away (or appears to have so far) - Just an issue with my sounds taking a second to load in now.

  8. #8
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,784
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    what sound format is and which is the duration
    Regards,


    Fernando Vivolo

    ... new things are coming ...

Similar Threads

  1. Collision Mask Help?
    By Eliyahu in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 3rd April 2011, 07:24 PM
  2. collision mask
    By willow in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 25th October 2009, 08:13 PM
  3. Collision Mask?
    By Looki in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 21st July 2007, 01:46 PM
  4. Bug: Collision mask
    By Sphax in forum File Archive
    Replies: 0
    Last Post: 11th August 2006, 01:48 PM

Posting Permissions

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