User Tag List

Results 1 to 9 of 9

Thread: Can't figure out why my app is crashing (xcode output included)

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

    Join Date
    Jul 2006
    Location
    Lacey, WA
    Posts
    756
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can't figure out why my app is crashing (xcode output included)

    So I'm not very familiar with Macs or iPhones, so I don't know how to debug them when issues happen. My app was working fine for a while, and then suddenly it started crashing. Here is the "output" that XCode showed me upon crashing (link is a screenshot, output in "code" box below):

    https://docs.google.com/file/d/0BzN5...it?usp=sharing

    Code:
    AudioStreamBasicDescription:  2 ch,  44100 Hz, 'lpcm' (0x00000029) 32-bit little-endian float, deinterleaved
    2013-06-06 15:31:19.254 NeonSnap_iOS_2.3c[390:907] CRASH: *** -[NSConcreteData getBytes:range:]: range {1342177280, 1} exceeds data length 2836504
    2013-06-06 15:31:19.299 NeonSnap_iOS_2.3c[390:907] Stack Trace: (
    	0   CoreFoundation                      0x318902bb <redacted> + 186
    	1   libobjc.A.dylib                     0x3950e97f objc_exception_throw + 30
    	2   CoreFoundation                      0x318901c5 <redacted> + 0
    	3   Foundation                          0x32160e1d <redacted> + 228
    	4   NeonSnap_iOS_2.3c                   0x00106435 -[CFile readUnsignedByte] + 140
    	5   NeonSnap_iOS_2.3c                   0x0010502f -[CFile readAShort] + 42
    	6   NeonSnap_iOS_2.3c                   0x00048a7b -[CImage load:] + 466
    	7   NeonSnap_iOS_2.3c                   0x0004de5b -[CImageBank load] + 782
    	8   NeonSnap_iOS_2.3c                   0x000399a1 -[CRunFrame loadFullFrame:] + 3996
    	9   NeonSnap_iOS_2.3c                   0x00031c13 -[CRunApp startTheFrame] + 326
    	10  NeonSnap_iOS_2.3c                   0x00030d97 -[CRunApp playApplication:] + 522
    	11  NeonSnap_iOS_2.3c                   0x00040f0b -[CRunView timerEntry] + 2082
    	12  Foundation                          0x321a7f53 <redacted> + 62
    	13  CoreFoundation                      0x318655df <redacted> + 14
    	14  CoreFoundation                      0x31865291 <redacted> + 272
    	15  CoreFoundation                      0x31863f01 <redacted> + 1232
    It looks like it has something to do with the sound playing at the time the of crash, but the exact same sounds were working perfectly previously!
    If anyone can help me out with this I would really appreciate it!

    Edit: I took out the sounds and now it works fine in the iPhone Simulator on my Mac, but it has the same issue on my iPod.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Jul 2006
    Location
    Lacey, WA
    Posts
    756
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm. It appears I did not paste the entire Output box here. Check out the screenshot link to see the rest of the output.

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

    Join Date
    Jul 2006
    Location
    Lacey, WA
    Posts
    756
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Edit: rebuilt the app from scratch, copying over all assets, and it seems to work fine on my iPod 4. These devices still are having the same issue: iPad 5.0 and iPhone 5.0, all sizes.


    I did some more tests, and tried the app on all the simulators and on my iPod 4 (running iOS 6.1.3).

    On the iPod 4, the app doesn't get past the "made with mmf" screen, and displays this information in xcode:
    Code:
    //
    //  main.m
    //  RuntimeIPhone
    //
    //  Created by Francois Lionet on 08/10/09.
    //  Copyright __MyCompanyName__ 2009. All rights reserved.
    //
    
    #import <UIKit/UIKit.h>
    
    int main(int argc, char *argv[])
    {
        NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    int retVal = UIApplicationMain(argc, argv, nil, @"RuntimeIPhoneAppDelegate");
        [pool release];
        return retVal;
    }
    (the bold line is highlighted with the information "Thread 1: signal SIGABRT" on the right)

    and this information is displayed below, in the "output" box:
    Code:
    AudioStreamBasicDescription:  2 ch,  44100 Hz, 'lpcm' (0x00000029) 32-bit little-endian float, deinterleaved
    2013-06-11 17:04:19.675 NeonSnap_iOS_2.4[251:907] CRASH: *** -[NSConcreteData getBytes:range:]: range {2684354560, 1} exceeds data length 2426730
    2013-06-11 17:04:19.733 NeonSnap_iOS_2.4[251:907] Stack Trace: (
    	0   CoreFoundation                      0x33b352bb <redacted> + 186
    	1   libobjc.A.dylib                     0x3b7b397f objc_exception_throw + 30
    	2   CoreFoundation                      0x33b351c5 <redacted> + 0
    	3   Foundation                          0x34405e1d <redacted> + 228
    	4   NeonSnap_iOS_2.4                    0x0022bc95 -[CFile readUnsignedByte] + 140
    	5   NeonSnap_iOS_2.4                    0x0022a88f -[CFile readAShort] + 42
    	6   NeonSnap_iOS_2.4                    0x000cacab -[CImage load:] + 466
    	7   NeonSnap_iOS_2.4                    0x000d008b -[CImageBank load] + 782
    	8   NeonSnap_iOS_2.4                    0x000bbbd1 -[CRunFrame loadFullFrame:] + 3996
    	9   NeonSnap_iOS_2.4                    0x000b3e43 -[CRunApp startTheFrame] + 326
    	10  NeonSnap_iOS_2.4                    0x000b2fc7 -[CRunApp playApplication:] + 522
    	11  NeonSnap_iOS_2.4                    0x000c313b -[CRunView timerEntry] + 2082
    	12  Foundation                          0x3444cf53 <redacted> + 62
    	13  CoreFoundation                      0x33b0a5df <redacted> + 14
    	14  CoreFoundation                      0x33b0a291 <redacted> + 272
    	15  CoreFoundation                      0x33b08f01 <redacted> + 1232
    	16  CoreFoundation                      0x33a7bebd CFRunLoopRunSpecific + 356
    	17  CoreFoundation                      0x33a7bd49 CFRunLoopRunInMode + 104
    	18  GraphicsServices                    0x3762e2eb GSEventRunModal + 74
    	19  UIKit                               0x35991301 UIApplicationMain + 1120
    	20  NeonSnap_iOS_2.4                    0x000a77c3 main + 114
    	21  NeonSnap_iOS_2.4                    0x0008ce78 start + 40
    )
    2013-06-11 17:04:19.751 NeonSnap_iOS_2.4[251:907] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSConcreteData getBytes:range:]: range {2684354560, 1} exceeds data length 2426730'
    *** First throw call stack:
    (0x33b352a3 0x3b7b397f 0x33b351c5 0x34405e1d 0x22bc95 0x22a88f 0xcacab 0xd008b 0xbbbd1 0xb3e43 0xb2fc7 0xc313b 0x3444cf53 0x33b0a5df 0x33b0a291 0x33b08f01 0x33a7bebd 0x33a7bd49 0x3762e2eb 0x35991301 0xa77c3 0x8ce78)
    libc++abi.dylib: terminate called throwing an exception
    (lldb)
    The app works fine in these simulators:
    iPad 5.1 (non-retina), iPad 5.1 (retina), iPhone 6.1 (retina 4"), iPad 6.1 (non-retina)

    And has issues in these simulators (some have different outputs, none will start the game past the "made with mmf" screen):
    iPad 5.0, iPhone 5.0, iPhone 5.1, iPhone 5.1 (retina 3.5"), iPad 6.1 (retina), iPhone 6.1 (non-retina), iPhone 6.1 (retina 3.5") (see edit up top for update on these)

    I'm so confused

    Here's another error output from the iPhone 5.1 simulator:
    Code:
    AudioStreamBasicDescription:  2 ch,  44100 Hz, 'lpcm' (0x00000C2C) 8.24-bit little-endian signed integer, deinterleaved
    2013-06-11 17:20:10.282 NeonSnap_iOS_2.4[6928:c07] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn:  dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: ___CFObjCIsCollectable
      Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
      Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
     in /System/Library/Frameworks/Security.framework/Versions/A/Security
    2013-06-11 17:20:10.308 NeonSnap_iOS_2.4[6928:c07] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn:  dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: ___CFObjCIsCollectable
      Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
      Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
     in /System/Library/Frameworks/Security.framework/Versions/A/Security
    2013-06-11 17:20:10.337 NeonSnap_iOS_2.4[6928:c07] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn:  dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: ___CFObjCIsCollectable
      Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
      Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
     in /System/Library/Frameworks/Security.framework/Versions/A/Security
    2013-06-11 17:20:10.352 NeonSnap_iOS_2.4[6928:c07] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn:  dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: ___CFObjCIsCollectable
      Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
      Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
     in /System/Library/Frameworks/Security.framework/Versions/A/Security

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Apr 2007
    Location
    Australia
    Posts
    1,152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try taking out the numbers from your project name, or take out any third party extensions that may not be compatible with earlier iOS versions (such as shake extension etc.)

    Edit: that "CRASH: *** -[NSConcreteData getBytes:range:]: range {2684354560, 1} exceeds data length 2426730" seems to be related to texture sizes or something from some Googling. Are you loading any large external files via including them in Binary data or from the xCode resources file?

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

    Join Date
    Jul 2006
    Location
    Lacey, WA
    Posts
    756
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I took all numbers out of the file/project names/titles, and these are the extensions I use:
    Window Control, INI, Clickteam Movement Controller, Layer, String Parser, iOS

    No external files, though I do have a couple 1080x300 Active Objects that I use to display the title of the game. Would that affect anything in the iPhone/iPad 5.0 simulators?

    So now it appears to run about 50% of the time. If I try to Run it on any of the simulators, and it fails, I can press Stop and then try running it again and it works most of the time. All the simulators are working now... just not all the time, randomly crashing before the first frame appears.

    I'm more confused

    Here's the latest crash output:

    Code:
    2013-06-12 18:50:55.577 NeonSnapiOSd[886:c07] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSConcreteData getBytes:range:]: range {3489660928, 1} exceeds data length 2426637'
    *** First throw call stack:
    (0x210e022 0x1efdcd6 0x20b6a48 0x20b69b9 0x6694fc 0x1950be 0x193a41 0x3eb11 0x43bbc 0x2e7b3 0x272b7 0x266a5 0x36fad 0x631eb6 0x20e2936 0x20e23d7 0x2045790 0x2044d84 0x2044c9b 0x29557d8 0x295588a 0x953626 0x1b4c6 0x2d65)
    terminate called throwing an exception

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Apr 2007
    Location
    Australia
    Posts
    1,152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you trying to load any large external files, like lists or ini's?

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

    Join Date
    Jul 2006
    Location
    Lacey, WA
    Posts
    756
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No large external files, just a small ini. I've found that uninstalling from the emulated device and trying again generally works after 1 or 2 tries with the 5.1 and up devices, but I'm still having issues with 5.0.

  8. #8
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Any chance you can send me your Xcode project with all the nessecary files? I will debug it then

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Jul 2006
    Location
    Lacey, WA
    Posts
    756
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here it is, thanks for checking it out for me!
    https://docs.google.com/file/d/0BzN5...it?usp=sharing

    (the link opens up the Zip file expanded into all its parts, but you can just hit File -> Download from the Google Drive menu)

Similar Threads

  1. Can't figure this out and need help...
    By KLiK-iT in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th April 2012, 12:43 PM
  2. Cannot figure out multitouch
    By Keith in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 18th August 2011, 03:26 PM
  3. I can't figure this one out myself... help please
    By Pineapple in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 15th March 2011, 06:26 PM
  4. getting output from cmd
    By MechatheSlag in forum dotNet Scripting
    Replies: 3
    Last Post: 31st May 2009, 06:57 PM
  5. I can't figure this out.
    By Roencia in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 19th March 2007, 10:37 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
  •