App Crash

zweg25zweg25 Member Posts: 738

I am building an app right now, but during adhoc testing it crashes somewhat randomly during the gameplay. I cannot recreate the crash in the creator. I also am not sure what is causing the crash, but I am guessing it would have something to do with tables? What would cause the app to crash (meaning quit out of the app)? Calling things out of range from the table? Constraints? App size?

I apologize for the somewhat vague description, I am just looking for what would cause an app to crash in gamesalad? Why wouldn't anything happen in the creator? The crash always occurs during the gameplay scene, just at different moments.

Thanks everyone

Comments

  • supafly129supafly129 Member Posts: 454
    edited June 2015

    it may be a memory crash though it's hard to tell without the project file. If that's the case, I believe you would need to try reducing the size/dimensions of your images (ex. 400x400 --> 200x200) or use less images in your project which is a problem many of us currently having, but the next 0.14 version of the GS creator is supposed to fix this whenever it finally arrives. Try deleting your biggest images in a copy file and see what happens in the ad hoc?

  • gingagaminggingagaming FREELANCE GS DEV Member Posts: 1,685

    @zweg25 said:
    I am building an app right now, but during adhoc testing it crashes somewhat randomly during the gameplay. I cannot recreate the crash in the creator. I also am not sure what is causing the crash, but I am guessing it would have something to do with tables? What would cause the app to crash (meaning quit out of the app)? Calling things out of range from the table? Constraints? App size?

    I apologize for the somewhat vague description, I am just looking for what would cause an app to crash in gamesalad? Why wouldn't anything happen in the creator? The crash always occurs during the gameplay scene, just at different moments.

    Thanks everyone

    It could be a million things (well maybe quite not that many, but many). What I have experienced a lot when bug fixing other peoples projects that have crashes are refering to a table cell or a table collumn that doesnt exist. This normally comes in the form of searching for row/column 0. What some people do is have an attribute controlling what row or column to goto depending on that attribute value however they either dont update the value from 0 or most commonly fire the table search before the attribute has been set so it looks for Row 0.

    A quick test I found is to put a display behaviour with any attribute in the scene, play the game in creator and see if the display works, if it fails to display a value, then most likely (but not limited to) you have a problem with the logic and even more so this table row/column issue. Normally the game will carry on working but it just wont display the display behaviour but when on a device, it cant handle this error and will cause it to crash/close the game.

    So given that you have identified you are using tables, check that you are not making this mistake. Another way to get to the botton of the problem is BACKUP your project file and with the new file, start removing actors from your scene and test. Do this in steps so if you have 20 actors, remove 5 at a time. When the problem stops you can narrow those 5 actors to down to one. Then when down to one, make another copy of the project and keep all actors in the game but turn off the rules in the same way until you narrow it down to a single rule that is causing the issue. Its all long winded but it will get to the route of your problem.

    Another issue I found with a project the other week was file size. The clients project was nearly 90MB and crashed on a device, One of the images loading was a 7MB image. Im not sure if it was related to this one image but I shrunk and compressed all the images and made the file 20MB and the game worked as expected without crashing.

    Im sure there are many other methods devs use to bug fix but here is a start for you!

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    I agree. The searching for row or column 0 causes crashes. I would also hook it up to Xcode instruments and watch the memory. I have a video on using Xcode instruments.

  • zweg25zweg25 Member Posts: 738
    edited June 2015

    Good ideas guys thanks! I believe it is calling for a table cell that doesn't exist I just cannot find it while I debug. The file size is somewhat large: 20-25MB.

    I will use Xcode instruments @The_Gamesalad_Guru and see how it goes, thanks. I will also start deleting actors @gingagaming and hope I find the root of the problem. Thanks guys

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    When you use variables to fill a table expression make sure you have a condition in the rule that says when said variable is > 0

  • zweg25zweg25 Member Posts: 738

    I used the Xcode instruments and everything looked as it should. I tried going through all the rules with table conditions and seeing what would cause it but no variable is ever at 0. The problem is it is very code heavy and I may be over looking something that is not jumping right out at me.

    Maybe something is dividing by 0? But I just cannot find it? Is there anyway to get an error report like in Xcode?

  • zweg25zweg25 Member Posts: 738

    Also, a little off topic, the first 6 seconds of a gamesalad game has 0 FPS. If you do not have a splash screen is there a way to just start the game?

  • ArmellineArmelline Member, PRO Posts: 5,332

    Disable as much logic as you can. Re-enable it a bit at a time until the crash starts occurring again. When it does, look in the last block of logic you enabled.

    How easy it will be to do this will depend on how regular the crashing is, though.

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    You can get your crash log off the device in Xcode. it may have some clues.

  • GnarlyGnarly canadaMember Posts: 840

    Any luck Zak on this one? I know exactly how frustrating it can be. But my games are usually very simple.......... Eventually I start deleting actors, retest. I usually save along as I go and revert to an old version that tests stable and continue on from there.....

    Is your device almost full by chance?

  • zweg25zweg25 Member Posts: 738

    @The_Gamesalad_Guru how would I see that? @Armelline yeah I will have to, it just takes a good 5 minutes to put a new version on my phone and it's a lot to cancel out.

    Yeah Dwayne, Idk. My device is half full but still has a lot of room, so I am not sure.

    Thanks for all the ideas everyone

  • zweg25zweg25 Member Posts: 738

    Here was the crash log lol. I do not think it will be helpful but maybe someone understands it:

    Incident Identifier: 7267ABF0-72C6-4940-B93F-5A4D243A24B0

    CrashReporter Key: 9514ae4697385c20c660e651ae0272f1fe95d378

    Hardware Model: iPhone7,2

    OS Version: iPhone OS 8.3 (12F70)

    Kernel Version: Darwin Kernel Version 14.0.0: Sun Mar 29 19:42:54 PDT 2015;
    root:xnu-2784.20.34~2/RELEASE_ARM64_T7000

    Date: 2015-06-26 16:48:08 -0600

    Time since snapshot: 145 ms

    Free pages: 7272

    Active pages: 86880

    Inactive pages: 38618

    Speculative pages: 5306

    Throttled pages: 0

    Purgeable pages: 868

    Wired pages: 64324

    File-backed pages: 29355

    Anonymous pages: 101449

    Compressions: 7470805

    Decompressions: 3354366

    Compressor Size: 55690

    Uncompressed Pages in Compressor: 216887

    Page Size: 16384

    Largest process: InstaStars

    Processes
    Name | | CPU Time| rpages| purgeable| recent_max| lifetime_max| fds | [reason] | (state)

    recentsd <47bd382ae85b3fc8928ee5c749f82fd9>         0.560         677                0           -          1634   50                       (daemon) (idle)
    

    pipelined <6ae4fb8c5de03de0bdb40d99bd547bfa> 0.149 457 0 - 1664 50 (daemon) (idle)
    mobile_installat <539c48d34bbf38a990893658bdc35c9e> 0.513 362 0 - 1193 50 (daemon) (idle)
    afcd <0495404ae525381dbeccebd20688a26d> 0.224 131 0 - 318 50 (daemon) (idle)
    atc <1786925dab253512afbbe190a809fde2> 0.251 1033 0 - 4068 50 (daemon) (idle)
    misagent <7be2720f415930c3af52d7b9b267b702> 0.050 110 0 - 226 50 (daemon) (idle)
    nanoprefsyncd <2fd04beabe0937b1ad7f314b80040f1f> 0.262 402 0 - 1080 50 (daemon) (idle)
    DuetHeuristic-BM <20f527867a0930bfa1cb1018f8deace4> 0.396 362 0 - 888 50 (daemon) (idle)
    companionproximi 0.072 245 0 - 957 50 (daemon) (idle)
    tursd <49ca9bfce7103309be7ba4d8ade39761> 0.245 587 0 - 2196 50 (daemon) (idle)
    routined <2f5f98267fb639b19cc19de5c048bbe9> 112.194 1071 0 - 1748 50 (daemon) (idle)
    IMDPersistenceAg <86c7b74a54eb3561adca6902b36ecd6b> 25.983 859 0 - 3926 50 (daemon) (idle)
    lsuseractivityd <8b2d13f5c3f2320eb2a4f76cec459d76> 2.144 457 0 - 1722 50 (daemon) (idle)
    nanomediaremotel <0a76ef3982423420901ddca332650d4a> 0.076 361 0 - 1525 50 (daemon) (idle)
    com.apple.WebKit <0b0b5c7ac50f373ab03279cd5461bd26> 41.763 13185 0 - 30039 50 (suspended)
    com.apple.WebKit <0b0b5c7ac50f373ab03279cd5461bd26> 0.871 5995 0 - 7093 50 (suspended)
    awdd <1d6edd46b3ea3f0280f5364d39a31af6> 235.689 498 0 - 1222 50 (daemon) (idle)
    findmydeviced <4d9d7db245583abb8cc63048f47bc81d> 67.472 740 0 - 1755 50 (daemon) (idle)
    aosnotifyd <270321e35a5b3813a69005715d1e53ad> 71.730 685 0 - 1562 50 (daemon) (idle)
    nanoregistryd <7b5314f368b334f490b9b5a4dc7d7b18> 194.359 761 0 - 1955 50 (daemon) (idle)
    nsurlstoraged <64561d059b9e32a68d79bea9c76a11ad> 83.437 1718 0 - 2003 200 (daemon) (idle)
    MobileSafari <401d84e7e929354da4fb270855328f6b> 29.165 8013 0 - 16800 50 (suspended)
    com.apple.WebKit <0b0b5c7ac50f373ab03279cd5461bd26> 5.441 2428 0 - 3496 200 (suspended)
    itunesstored <91589b72fbbe362a9533e256b4b10479> 236.018 4481 0 - 6173 100 (daemon) (idle)
    WirelessRadioMan <8cfea3380d1d3e928bda2532eb06bc7e> 0.092 277 0 - 883 50 (daemon) (idle)
    coresymbolicatio <028c280ccb6737688602e6f3203c66b9> 0.009 107 0 - 223 50 (daemon) (idle)
    diagnosticd 0.009 114 0 - 231 50 (daemon) (idle)
    seld 7.013 263 0 - 958 50 (daemon)
    nfcd 2.698 248 0 - 640 50 (daemon)
    passd 17.707 737 0 - 2409 50 (daemon)
    nsurlsessiond <6d55c4fc44fa3c96acf44cdaf58815b5> 320.735 738 0 - 1654 50 (daemon)
    swcd <21b30b48e2c23d2da451c486c81fd7fd> 0.263 187 0 - 418 50 (daemon)
    suggestd <4b36049efe2d39108869a039f8860aa0> 14.747 2533 0 - 5336 50 (daemon)
    companionfindloc <669a65bbffe4385c80c8ab8a022cb164> 8.687 563 0 - 1817 50 (daemon)
    gamed 113.996 1601 0 - 2482 50 (daemon)
    bulletindistribu <539cd9e4b37d35a989d717536344a40d> 159.236 1020 0 - 4035 50 (daemon)
    mapspushd 0.965 606 0 - 1175 50 (daemon)
    BTLEServer <44074cf899e83a3aa8fd93db8a3f5f71> 0.663 279 0 - 871 50 (daemon)
    AppIndexer <135e027e6bd33e5ab0a4385ff136d938> 0.949 663 0 - 2807 50 (daemon)
    biometrickitd 34.559 340 0 - 839 50 (daemon)
    companion_proxy <05c4afee46a5377d9ca1bc14d07d76ae> 0.080 264 0 - 846 50 (daemon)
    notification_pro <21284498a1973ddf8dfc72d4835189a6> 0.022 127 0 - 401 50 (daemon)
    Messenger <3848f079edea336782cc04b3a9f89641> 0.574 3885 0 - 6951 50 (resume)
    MobileMail <5a8957c4d74f3e94873f7add08fc606b> 14.208 4958 868 - 12438 100 (continuous)
    MobileSMS 18.506 3055 0 - 8567 50 (continuous)
    lsd <2f0b3813a37b31e0b37d0ba054bd6723> 14.856 862 0 - 1349 50 (daemon)
    tccd 7.677 512 0 - 1602 50 (daemon)
    kbd 493.885 4783 0 - 8096 50 (daemon)
    coreduetd 467.637 2029 0 - 2749 50 (daemon)
    InCallService <93f4f1de7cf133caaa3e1936554ce336> 246.950 2244 0 - 5049 50 (resume) (continuous)
    InstaStars <45cffd9dbb05334e9560bbb2825122c6> 35.729 166401 0 - 60805 50 [per-process-limit] (audio) (frontmost) (resume)
    ptpd <910f2f7edc493e8fbaac4fd689a179e8> 0.948 1469 0 - 2831 50 (daemon)
    BTServer 114.737 769 0 - 1736 50 (daemon)
    wifid 752.217 1013 0 - 2229 50 (daemon)
    lockdownd <83499bfcfbd93fbebf1fbe8b36ebae67> 16.945 310 0 - 940 50 (daemon)
    locationd <195e79011afd327c91dc10ee6dd2d944> 4783.622 5941 0 - 8041 400 (daemon)
    mediaserverd 2673.363 6656 0 - 24017 50 (daemon)
    syslogd <325431ec29e9358e9995898a8af11979> 587.690 239 0 - 399 50 (daemon)
    cfprefsd <18d97c4dba8c3002a05a8ce85f6b16e0> 288.115 721 0 - 973 50 (daemon)
    iaptransportd <72b3ef68b33a3e5ab584b919d6c111bb> 32.813 435 0 - 1483 50 (daemon)
    imagent 350.672 1324 0 - 3288 50 (daemon)
    timed 251.937 540 0 - 1757 50 (daemon)
    powerd <81f6770902523cafaa3788f6457ad480> 272.636 415 0 - 618 50 (daemon)
    apsd <21d421c46a1c30969c70adb9056d3609> 440.255 979 0 - 2160 100 (daemon)
    networkd <79274f337988346eaa6af3fadac635c4> 837.655 1193 0 - 1992 50 (daemon)
    vmd 82.394 689 0 - 2420 50 (daemon)
    dataaccessd <9f9d3beb74123a42842a96eafa114b21> 1118.111 2991 0 - 4119 100 (daemon)
    sharingd <0ff12aa500f53a958a9fd1b51801d1aa> 250.862 2205 0 - 3356 50 (daemon)
    SCHelper 32.328 142 0 - 295 50 (daemon)
    geod <92817fccef953baa9cdceafd4c7525ff> 104.433 2874 0 - 3515 200 (daemon)
    identityservices <6dda716fc3503fc2bd15c23c4b8fa50c> 277.321 1755 0 - 3606 50 (daemon)
    discoveryd 15.421 868 0 - 1547 100 (daemon)
    voiced 0.175 325 0 - 1016 50 (daemon)
    mediaremoted <65a3c03147663dc790c80a060e6d1c17> 12.589 471 0 - 1716 50 (daemon)
    searchd <41b7b55fdc343454a64bebe5e6228fb7> 2.033 834 0 - 2603 50 (daemon)
    syslog_relay <89bc831557c532a98d54277f6a11a5d3> 0.122 118 0 - 240 50 (daemon)
    sandboxd <841b9a4124be3a1ea60b2b8075283db1> 1.358 165 0 - 605 50 (daemon)
    securityd <45745b7adb2330a0ba1c1c32c0501e80> 502.675 1632 0 - 2276 50 (daemon)
    SpringBoard 3732.718 17675 0 - 35098 100
    backboardd <5e756a7f855435d3a213a3b23d3fb2e6> 22086.872 22116 0 - 34823 50 (daemon)
    UserEventAgent <7a849d042cf23564b393016f82832ccd> 1523.058 1522 0 - 2391 200 (daemon)
    fseventsd 91.633 588 0 - 837 50 (daemon)
    configd <66e303bfd8dd366fac03bc9f132fbf48> 788.488 783 0 - 1171 50 (daemon)
    fairplayd.H2 <1f809b2f4d683908bb01d9a8c46fafbe> 51.788 252 0 - 2190 50 (daemon)
    assertiond 135.338 537 0 - 921 50 (daemon)
    wirelessproxd <60d34b5bd84339eeb3b0e9d40f657d08> 44.015 387 0 - 1076 50 (daemon)
    distnoted 21.804 271 0 - 340 50 (daemon)
    filecoordination <66d2f8c2520431a8ac3153ddcacf5f94> 8.820 408 0 - 938 100 (daemon)
    aggregated 1011.929 1907 0 - 3411 50 (daemon)
    ubd 0.062 245 0 - 811 50 (daemon)
    CommCenter 4060.039 3547 0 - 9610 50 (daemon)
    notifyd <5401847189ab3eb0af2a5c0c969ac3e7> 514.241 568 0 - 549 50 (daemon)
    ReportCrash <52d16041a96631deb5552ff0582b5223> 0.085 658 0 - 1643 50 (daemon)

    End

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    Hmmm doesn't look right. A crash log should look like this

  • zweg25zweg25 Member Posts: 738

    You're right it doesn't look right. I don't think it is being identified as a "crash"? I deleted all the other logs and made the crash occur again and this is what I got. Thanks for the help Dave, any other ideas?

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    Did you run instruments? see what the memory usage is. are you doing a straight build or viewer? make sure it's a straight build.

  • zweg25zweg25 Member Posts: 738

    I'm doing a straight build. Memory usage is normal, nothing absurd there.

  • AngryBoiAngryBoi Member Posts: 586

    I've never used tables in my life and never have had a random crash. Right now my only crashes are from chartboost.

  • zweg25zweg25 Member Posts: 738

    There are no ads

  • cloud9_1cloud9_1 Member Posts: 1

    my GameSalad program keeps crashing every time i press play/preview (or whatever :) ) even when i don't have anything in it. can someone help me with that?

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    @zweg25 said:
    I'm doing a straight build. Memory usage is normal, nothing absurd there.

    What was the ussage?

  • zweg25zweg25 Member Posts: 738

    Actually maybe you are right. It is normally around 80mb but when it crashes it skyrockets another 100mb

  • zweg25zweg25 Member Posts: 738

    Good catch. What is that caused from?

  • zweg25zweg25 Member Posts: 738

    Still pulling my teeth at this. Sorry to be a pain. Any other ideas?

  • BlackCloakGSBlackCloakGS Member, PRO Posts: 2,250

    open a support ticket with use and send us the crash log and console

  • zweg25zweg25 Member Posts: 738
    edited June 2015

    Oddly enough, if you pause the game and resume (unpause game behavior) the game the crash goes away. But then causes other problems

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    Send them the crash log and the instruments output.

Sign In or Register to comment.