Testsdl on iOS simulator gives SIGABRT

Hi,

Running testsdl on the iOS simulator is not a great success. Here is
the log of running testsdl with -v -v and disabling all tests except the
render test.

Running tests with SDL 1.3.0 revision hg-0:aaaaaaaaaaah
(gdb) continue
2 Video Drivers found

  1. uikit
    –±--> Started Test Suite 'Rendering with uikit driver’
    ±–> StartedTest Case 'Initializing video mode’
    2011-07-19 21:10:58.598 testsdl[46893:207] -[NSCFString size]:
    unrecognized selector sent to instance 0x4d13010
    2011-07-19 21:10:58.600 testsdl[46893:207] *** Terminating app due to
    uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[NSCFString
    size]: unrecognized selector sent to instance 0x4d13010’
    *** Call stack at first throw:
    (
    0 CoreFoundation 0x013505a9 __exceptionPreprocess + 185
    1 libobjc.A.dylib 0x014a4313 objc_exception_throw + 44
    2 CoreFoundation 0x013520bb -[NSObject(NSObject)
    doesNotRecognizeSelector:] + 187
    3 CoreFoundation 0x012c1966 forwarding + 966
    4 CoreFoundation 0x012c1522 _CF_forwarding_prep_0 + 50
    5 testsdl 0x000945bd UIKit_VideoInit + 475
    6 testsdl 0x0008c7a4 SDL_VideoInit + 820
    7 testsdl 0x00006024 test_render + 346
    8 testsdl 0x000085d2 SDL_main + 217
    9 testsdl 0x00097068 -[SDLUIKitDelegate postFinishLaunch] + 89
    10 Foundation 0x0018c79e __NSFireDelayedPerform + 441
    11 CoreFoundation 0x013318c3
    CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 19
    12 CoreFoundation 0x01332e74 __CFRunLoopDoTimer + 1220
    13 CoreFoundation 0x0128f2c9 __CFRunLoopRun + 1817
    14 CoreFoundation 0x0128e840 CFRunLoopRunSpecific + 208
    15 CoreFoundation 0x0128e761 CFRunLoopRunInMode + 97
    16 GraphicsServices 0x01ca71c4 GSEventRunModal + 217
    17 GraphicsServices 0x01ca7289 GSEventRun + 115
    18 UIKit 0x0041bc93 UIApplicationMain + 1160
    19 testsdl 0x00096e79 main + 375
    20 testsdl 0x00002391 start + 53
    )
    terminate called after throwing an instance of 'NSException’
    Program received signal: ?SIGABRT?.
    kill

Hi, if the crash happens in iOS 3.2 simulator but not in 4.2 or greater, it’s probably due to this:
http://forums.libsdl.org/viewtopic.php?t=7330
I reported it in bugzilla:
http://bugzilla.libsdl.org/show_bug.cgi?id=1239

Op 2011-07-19 23:09 , josebagar schreef:

Hi, if the crash happens in iOS 3.2 simulator but not in 4.2 or
greater, it’s probably due to this:
http://forums.libsdl.org/viewtopic.php?t=7330
I reported it in bugzilla:
http://bugzilla.libsdl.org/show_bug.cgi?id=1239

No, it seems unrelated. And notice that I’m running testsdl. (Which
I’m hoping it should run without error.)

I’m using Xcode 3.2.6, SDK iOS 4.3 and simulator 4.3.

Is anybody here familiar with running testsdl?

Op 2011-07-19 21:26 , Kees Bakker schreef:

Hi,

Running testsdl on the iOS simulator is not a great success. Here is
the log of running testsdl with -v -v and disabling all tests except the
render test.

Here is a patch to disable SDL_UIKit_supports_multiple_displays for
the iOS simulator.

Now testsdl runs to completion (with errors, but that for the next post).

BTW. Should I add a bugzilla entry for this?–
Kees

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed…
Name: SDL_uikitvideo.iphone_simulator.patch
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20110720/e78e5031/attachment.txt