[2.0 iOS] Error when building

nev

  • *
  • Posts: 386
I tried to build my game in 2.0 and got the following (from the Xcode window...):


Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SPAVSound ID]: unrecognized selector sent to instance 0x2c6e10'
*** Call stack at first throw:
(
   0   CoreFoundation                      0x3587a987 __exceptionPreprocess + 114
   1   libobjc.A.dylib                     0x34a8249d objc_exception_throw + 24
   2   CoreFoundation                      0x3587c133 -[NSObject(NSObject) doesNotRecognizeSelector:] + 102
   3   CoreFoundation                      0x35823aa9 ___forwarding___ + 508
   4   CoreFoundation                      0x35823860 _CF_forwarding_prep_0 + 48
   5   AppScaffold                         0x00022f24 -[Script addSoundListener:func:] + 52
   6   AppScaffold                         0x0000b4c0 -[Design_32_32_HomeSceneControl load] + 604
   7   AppScaffold                         0x00021818 -[Behavior initScript:] + 272
   8   AppScaffold                         0x000286e8 -[BehaviorManager initScripts] + 132
   9   AppScaffold                         0x00044844 +[Game initBehaviors:values:parent:initialize:] + 1260
   10  AppScaffold                         0x000551fc -[Game loadScene:] + 2604
   11  AppScaffold                         0x00048d2c -[Game finishInit] + 1452
   12  CoreFoundation                      0x35818bbf -[NSObject(NSObject) performSelector:withObject:] + 22
   13  Foundation                          0x31181795 __NSThreadPerformPerform + 268
   14  CoreFoundation                      0x358307dd __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
   15  CoreFoundation                      0x358025b7 __CFRunLoopDoSources0 + 382
   16  CoreFoundation                      0x35801e5b __CFRunLoopRun + 230
   17  CoreFoundation                      0x35801c87 CFRunLoopRunSpecific + 230
   18  CoreFoundation                      0x35801b8f CFRunLoopRunInMode + 58
   19  GraphicsServices                    0x320c84ab GSEventRunModal + 114
   20  GraphicsServices                    0x320c8557 GSEventRun + 62
   21  UIKit                               0x341dc329 -[UIApplication _run] + 412
   22  UIKit                               0x341d9e93 UIApplicationMain + 670
   23  AppScaffold                         0x00002ed8 main + 84
   24  AppScaffold                         0x00002e80 start + 40
)
terminate called after throwing an instance of 'NSException'
(gdb)



I can understand it is something related to sound, but what is it precisely? thanks!!

Nev

Jon-iPad

  • *
  • Posts: 166
Are you using a sound related event?


Jon

  • *
  • Posts: 17524
Gotcha - I'll fix it.


Jon

  • *
  • Posts: 17524
Could you take a screenshot of the behavior? I'm trying this on my end, and I can't reproduce the crash. Thanks!

nev

  • *
  • Posts: 386
Here it is.
BTW, the error is happening when the splash screen is visualized and the loading bar is at about at 4/5.

nev

  • *
  • Posts: 386
This also is visualized on the xcode window:

//
//  main.m
//  AppScaffold
//
//  Created by Daniel Sperl on 14.01.10.
//  Copyright Incognitek 2010. All rights reserved.
//

#import <UIKit/UIKit.h>

int main(int argc, char *argv[]) {
   
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    int retVal = UIApplicationMain(argc, argv, nil, nil);
    [pool release];
    return retVal;
}


And the line:

int retVal = UIApplicationMain(argc, argv, nil, nil);

is accompanied by the following message  "Thread 1: Program received signal: "SIGABRT."

Jon

  • *
  • Posts: 17524
Thanks, that gives me something to work with.

Jon

  • *
  • Posts: 17524
Hmm, I think it's quicker if you send the game to me - I still can't reproduce the problem.

nev

  • *
  • Posts: 386
OK! Where can I find your email? I sent a log file some days ago to an email address I found in one forum post (REDACTED), but I'm not sure it is the right one, as I got no feedback... Thanks!

Jon

  • *
  • Posts: 17524
Yes, that's the correct one - sending to istencyl also works. I've redacted the e-mail because I don't want crawlers sending me more mails than I already get. Thanks!

Jon

  • *
  • Posts: 17524
Fixed, sending you an e-mail.

jluisaries

  • Posts: 14
Jon Hi, Could you help me debug my game that has the same error when testing on my device, if I can say as to send the game or something to help me to debug since...

Yes, that's the correct one - sending to istencyl also works. I've redacted the e-mail because I don't want crawlers sending me more mails than I already get. Thanks!
Legends of El Salvador.

jluisaries

  • Posts: 14
Hi Jon, Could you help me debug my game that has the same error when testing on my device, if I can say as to send the game or something to help me to debug it and I can not find the solution.
Legends of El Salvador.