Problem in iPhone SDK Sample: [CrashLanding ]

iPhone SDK build : build 9M2199a
Sample: CrashLanding
Version: 1.7
OpenGL swap buffer method seems to fails sometimes resulting in a crappy blink display. The display seems split into two images. The screen goes messy, I can view the backbuffer blinking over frontbuffer with no drawing update on it.
Thanks,
Julien Meyer
Jadegame.com

I developed my application based on the CrashLanding sample. I have inherited the same rendering failure. The swap occurs, but it's presenting stale data for one of the frames. The stale data appears to be the first frame rendered. The failure occurs either immediately, or not at all. Restarting the application usually makes the problem go away.
Has anyone determined a fix for this?
Thank you,
Joel-

Similar Messages

  • Problems downloading iPhone SDK

    I just recently signed up for an Apple Developer account and am trying to download the iPhone SDK. When I start the download it never actually downloads and eventually times out. My problem is also described in these threads:
    http://discussions.apple.com/thread.jspa?messageID=11033796&#11033796
    http://discussions.apple.com/thread.jspa?messageID=11000681&#11000681
    In those threads I have tried the fixes and still been unable to accomplish the download.
    I have tried on computers running Vista and Windows 7 and on my Mac running Snow Leopard.
    On Windows (either one) after clicking on the link it comes up with the file information, I click save, and then the file download dialog opens. No transfer rate ever appears and neither does any indicator that I have downloaded any of the file. Eventually it times out.
    On the Mac I tried downloading with Safari. Safari gets 1.1kb of the file and then tells me it will be many, many years before the download completes and eventually errors out that the server has not responded.
    I currently have a 7 mb DSL connection. I am able to download any other file in the developer release section including X-Code and the Mac SDKs. In fact I have installed both X-Code and the Mac SDKs already and they were fine.
    Other things I have tried:
    1. Multiple browsers on Windows (Firefox, Chrome) with similar errors.
    2. Hooking straight into the modem (normally hooked into wireless N router)
    3. Disabling the modem firewall and Windows Firewall (Macs firewall is off by default. Is that normal?)
    4. using the trick from the other threads of changing http to https. For me it makes no difference.
    5. My work computers (with the same ISP) have no problems downloading the file. However with no disc drive, and with the USB ports disabled that doesn't really help me much. I only tried to see if they would work with my login since another thread suggested some users were being cut off.
    Something else I do not understand is why I have to download the SDK with X-Code. Since I already have the latest version installed it seems like Apple could be saving on bandwidth there. No big deal but just kind of strange.
    Any help anyone could give me would be appreciated.

    Alright it turns out it was actually the DSL modem. Apparently the last major firmware update causes it to have problems downloading specifically from Apple servers. Both iTunes HD content and large downloads from Apple servers are unable to be downloaded. SD content, music, and downloads under roughly 1 gb are unaffected.
    The modem is the 2Wire 2701. I actually managed to find an older modem that worked and downloaded the SDK fine. At this point I am looking around for a new modem just so in the future I will be able to download updates etc.
    Also after a lot of searching it turns out that Qwest doesn't cap their service at all. Even the one report with a limit I turned up turns out that it was either true only back then or was part of a trial that ended. At this point Qwest does not cap at all.
    Take a hint if you are going to respond to a post try to be helpful. If you are not actually going to help troubleshoot don't both.
    But you did use an emoticon. So at least you were useless . . . with style.

  • Problem Installing iPhone SDK on G5 Dual CPU, 2GHz

    When I try to install the iPhone SDK on the screen where you check what's begin installed the iPhone SDK is grayed out and the action is skip. Does anybody have anu ideas how to get around this...
    Im not sure that I can install the iPhone SDK on a Dual CPU Intel??

    jp_nz wrote:
    When I try to install the iPhone SDK on the screen where you check what's begin installed the iPhone SDK is grayed out and the action is skip. Does anybody have anu ideas how to get around this...
    Im not sure that I can install the iPhone SDK on a Dual CPU Intel??
    From your subject line, you say you are using a G5. This is the last gen of Power PC processors, not intel. The SDK requires an Intel processor.

  • Bug in SeismicXML iPhone SDK sample code

    I'm writing an app based on SeismicXML for the XML parsing code, and it turns out there's a bug in the SeismicXML parser. The last item always seems to end up not getting saved to the list. This bug becomes evident when you change:
    self.earthquakeLocationLabel.text = newQuake.location;
    to
    self.earthquakeLocationLabel.text = newQuake.description;
    in TableViewCell.m.
    I've banged my head into this in my own app only to test out the upstream sample code and find out that it has the same error. There's something about the last item that it parses that causes a problem.
    I'm very new to Objective C but this feels like some sort of object initialization/retention/reuse problem...any pointers?

    I found two reasons why this is not working. Both found in didStartElement(...)
    #1
    if (parsedEarthquakesCounter >= MAX_EARTHQUAKES) {
    parser abortParsing;
    This is premature. If MAX_EARTHQUAKES is set to 5, this condition will be true for any start element within that fifth entry.
    #2
    The call to addToEarthquakeList()
    This is again premature. Since addToEarthquakeList also reloads the displayed table view, the fifth and last entry will never be displayed. The table is reloaded before any data is placed within the Earthquake object for that entry.
    Solution
    Remove both the if test case and function call above from didStartElement(...)
    In didEndElement(...) add the case
    else if (elementName isEqualToString:@"entry") {
    //insert call to addToEarthquakeList here
    //test for MAX_EARTHQUAKES HERE
    }

  • Missing "Crash Landing" iPhone SDK sample code.

    Ok, I'm at the phase in my project where I need to start integrating the audio. I've been told , and theres plenty of references on the net, to try and base off a piece of code off the "Crash Landing" sample code.
    Google tells me it used to be on the Iphone dev page on apples site, but there is no reference to the sample code on Apples site and apples search engine comes up blank.
    Has this been removed? If it has, is there anywhere else that features examples of using the OpenAL architecture. I realise there is a new architecture for audio introduced, but for various reasons, we can't use it.

    Hi i need reference from the crash landing code for my own development...it was there on my machin some months back and i hve also installed on my iphone also using xcode...but i recently discovered the sample code is not there on my machine as mistakenly i have removed it from my machine. i need it so if someone can provide me the sample code i can easily over come the issue in my development as it is been resolve in the crash landing. please if i can get the code it will be of great help.

  • IPhone SDK - Sample code to download a file in a thread

    I am looking for a starting point to implement a download manager. My requirements are simple.
    I want to show a UIProgressView in a view controller and update it as i download file(s) from the internet. The view will have a cancel button, so the view cannot block on downloading the files. The cancel should cancel the download thread in such a way that the thread can cleanup if required.
    To achieve this i guess i will have to download the file(s) in a separate thread and then figure out a way to update the progress bar in the UI thread based on the bytes downloaded from the web.
    Can someone point me to code sample which demonstrates this interaction OR help me with their suggestions?
    Thanks in advnace,
    Shiva

    NSURLRequest is asynchronous by default, so really all you need to do is prepare your NSURLRequests, fire them all off, and then in the delegate you can update the progress bar as each of them returns.
    I'd suggest just having the progress bar update based on how many requests have completed out of the full set, rather than based on the number of bytes downloaded. NSURLResponse doesn't give you byte-by-byte callbacks, so it's quite hard to work out how far along an individual request has progressed.
    Read the URL Loading Scheme document in the API - it's full of example code that you can use.

  • IPhone SDK installation problem

    Hi All,
    I have a problem installing the iPhone SDK.
    In the installation process, "Installation Type" page, the page you can choose modules either you want to install or not. I see "iPhone SDK" module is listed, but i couldn't select it, it's greyed out and it is not checked by default. So i had to continue like this, after installation, i couldn't open any iPhone sample code at all. XCode said i don't have iPhone SDK installed.
    I downloaded the SDK from ADC days ago.
    I upgraded my mac to 10.5.4, also upgraded iTunes to 7.7
    are there any other prerequisites?

    excuse me i'm quite new to this community.
    you mean the iphone sdk can not be installed on apple's own hardware?
    is apple switching the focus to x86 architecture? are there any background information that i should take a look at?
    appreciate it.

  • Adobe Acrobat XI SDK Samples problem

    I am having problems building and running SDK samples.
    When built “out of the box”, the WebLinkDemo fails while getting HFT for AcroColor.
    After some googling, I found Adobe Acrobat XI SDK Release Notes:
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/release- notes-acrobatxisdk.PDF
    Following their directions:
    deleted
    /D PI_ACROCOLOR_VERSION=0x00060000
    inserted
    /D READER_PLUGIN
    WebLinkDemo builds OK, but required SnippetRunner fails to compile with multiple errors like:
    >c:\code\adobe\acrobat xi sdk\samples\snippetrunner\sources\snippets\shared\acetranspdetextcolorsnip.cpp(60): error C2065: 'PDEContentGetNumElemsSELPROTO' : undeclared identifier
    SELPROTO seems to be the commot suffix.
    Any suggestions?
    Thank you!

    Perhaps a little more context. You should understand that the Acrobat SDK is a tool for encouraging people to buy Acrobat - especially the consumers of plug-ins.
    Reader plug-ins can be made, subject to technical limitations, but Adobe do not especially like the lost sales of Acrobat this may represent.
    In addition to purchasing Acrobat, you will need to buy a Reader integration key, after negotatiation. Approval is not automatic!  There are also two scales of fees, one for regular Reader plug-ins and one for security related plug-ins, for which Adobe has a much higher fee and demands much more oversight.
    "How much does a Reader Integration key cost?
    Reader Integration keys are only available to strategic partners based on a negotiated price. If you are developing a digital rights management (DRM) Adobe Reader plug-in, the standard (non-DRM) RIKLA contract does not apply. Adobe does offer a DRM agreement specifically for developers building such Adobe Reader plug-ins. The current fee structure for the DRM RIKLA includes a $50,000 annual fee and a 5.5% revenue royalty."
    http://www.adobe.com/devnet/reader/ikla.html
    So, yes, to experiment with plug-ins, whether for Acrobat or eventually for Reader, please listen to what we are telling you and if you want to do this, buy Acrobat.

  • IPhone SDK - Download manager sample

    I need a download manager in my app. I want to have it download a bunch of files in a different thread so that user can keep working. Once the downloads are done the caller gets notified. Since the app cannot run in the background, the download should be restartable.
    Does anyone know if there is already something out there?
    Thanks in advance.
    -TRS

    Another victim here. Happily started downloading iphone SDK just after purchasing my new MacBook and it always stops at 2.1 GB. And of course it is corrupted.
    For those who are thinking about OS or firewalls, here are my trials:
    1. From my MacBook at home
    2. From my HP laptop at home
    3. From my desktop at home
    4. From my HP laptop at work
    5. From my Ubuntu at home
    6. From my Ubuntu virtual machine at work.
    Do you think it is still a client problem? Or the version on the server is corrupted?

  • IPhone SDK Download Problems

    I have just made the account and started the long download process for the iPhone SDK. When I download the file and it completes the process, I click on it and it says Disk Image not able to mount. I tried that three more times and it still won't open. Any suggestions?

    Another victim here. Happily started downloading iphone SDK just after purchasing my new MacBook and it always stops at 2.1 GB. And of course it is corrupted.
    For those who are thinking about OS or firewalls, here are my trials:
    1. From my MacBook at home
    2. From my HP laptop at home
    3. From my desktop at home
    4. From my HP laptop at work
    5. From my Ubuntu at home
    6. From my Ubuntu virtual machine at work.
    Do you think it is still a client problem? Or the version on the server is corrupted?

  • IPhone SDK with iPod Touch 2G problem

    I installed the SDK last night but when I went to plug in my iPod Touch 2G, I got the error message: 'Unable to locate a suitable developer disk image. Please re-install the SDK'
    I have reinstalled the SDK many times but still get the same error message. Any help appreciated.
    Thanks

    {quote}He's talking about the iPod Touch, not a regular iPod{quote}
    Yep, I know. Do a Google search for "Unable to locate a suitable developer disk image". Found this on the comments of [this blog post|http://www.tbradford.org/2008/03/iphone-sdk-beta-2-possible-ppc-fix.html]:
    {quote}
    If anyone else runs into the "Unable to locate a suitable developer disk image." problem, there's a package called "DeveloperDiskImage" in the iPhone SDK that needs to be installed.
    As of 2.1, these are the extra packages that you need to install manually:
    iPhoneSDKHeadersAndLibs
    iPhoneSimulatorPlatform
    iPhoneHostSideTools
    iPhoneDocumentation
    DeveloperDiskImage
    {quote}
    Another [blog post|http://khakionion.blogspot.com/2008/09/iphone-sdk-21-doesnt-include-ipod-t ouch.html#links] says:
    {quote}
    The problem is that the huuuuuge iPhone SDK 2.1 installer doesn't come with the iPod touch 2.1 firmware image. Suck. Fear not, though: All you have to do is force iTunes to do a firmware restore, which will download the appropriate image. On next launch, Xcode will find it and everything will work great.
    {quote}

  • IPhone SDK (Beta 5) - AudioQueue Problem playing MP3

    Dear community,
    i have a problem using the iPhone SDK (Beta 5). I want to playback a simple MP3-file. So i checked a lot of examples, read documentation and found a least the "AudioQueueTest" example. This is an simple example which is able to play MP3, WAV, ... from the command line. I ported the example to a simple application on the iPhone. Now the problem:
    If i playback a WAV file in the iPhone simulator, everything works fine. If i want to playback an MP3 file, it doesn't work and i don't know why. I stepped through the debugger and found out that the application freezes at the command "AudioQueueNewOutput".
    Do you have the same problem? What i am doing wrong? Is it no possible to create a background thread playing back a local MP3 file?
    Thank you!

    Did you get PCM recording on actual iPhone hardware? With Beta5, my PCM recording works fine in the simulator, but on the hardware, all the buffers I receive contain only 4 bytes of audio data!
    Here's my source code - if anyone can spot anything wrong, I'd be enormously grateful!
    #import "AudioAppDelegate.h"
    #import "AudioViewController.h"
    #import "AudioToolbox/AudioQueue.h"
    #define BUFFER_CT 4
    #define BUFFER_BYTES 8192
    AudioQueueRef audioInQueue;
    static void AudioInCallback(void* aqData,AudioQueueRef aq,AudioQueueBufferRef buffer,const AudioTimeStamp* startTime,UInt32 numPackets,const AudioStreamPacketDescription* desc)
    OSStatus result;
    printf("received %d bytes\n",buffer->mAudioDataByteSize);
    result=AudioQueueEnqueueBuffer(audioInQueue,buffer,0,NULL);
    if(result)
    printf("AudioQueueEnqueueBuffer returned %d\n",result);
    static void StartAudio(void)
    OSStatus result;
    AudioStreamBasicDescription format;
    // 11KHz, 16-bit stereo
    memset(&format,0,sizeof(format));
    format.mSampleRate=11025;
    format.mFormatFlags=kLinearPCMFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked;
    format.mFormatID=kAudioFormatLinearPCM;
    format.mBytesPerPacket=BUFFER_BYTES;
    format.mBytesPerFrame=4;
    format.mFramesPerPacket=format.mBytesPerPacket / format.mBytesPerFrame;
    format.mChannelsPerFrame=2;
    format.mBitsPerChannel=16;
    result=AudioQueueNewInput(&format,AudioInCallback,NULL,CFRunLoopGetCurrent(),kC FRunLoopCommonModes,0,&audioInQueue);
    printf("AudioQueueNewInput result was %d\n",result);
    for(int i=0;i<BUFFER_CT;i++)
    AudioQueueBufferRef buffer;
    result=AudioQueueAllocateBuffer(audioInQueue,format.mBytesPerPacket,&buffer);
    printf("AudioQueueAllocateBuffer result was %d\n",result);
    result=AudioQueueEnqueueBuffer(audioInQueue,buffer,0,NULL);
    printf("AudioQueueEnqueueBuffer to in result was %d\n",result);
    Float32 gain=1.0;
    AudioQueueSetParameter(audioInQueue,kAudioQueueParam_Volume,gain);
    result=AudioQueueStart(audioInQueue,NULL);
    printf("AudioQueueStart result was %d\n",result);
    }

  • Runtime problems with sdk sample.

    Hi,
    has anyone had any problems when running the sdk sample (instantclient 10.1.0.4)
    compiled with MS Visual C++ Express version? I called make.bat and everything
    compiled and linked without any worries. When I run the program it crashed. While
    debugging I got the following info:
    First-chance exception at 0x7c81eb33 in occi.exe: Microsoft C++ exception: oracle::occi::SQLException at memory location 0x0012fb74..
    Unhandled exception at 0x7c81eb33 in occi.exe: Microsoft C++ exception: oracle::occi::SQLException at memory location 0x0012fb74..
    This error occurs when trying to call ::createEnvironment().

    I gave up with the occidml example and restarted with
    the occiobj example. And guess what happened. It
    worked. I can´t beleive it.
    So I really don´t know what the difference of these
    two example is as the only difference so far (as I
    saw in the constructor of the two classes) is an extra
    call in the occiobj-example. Well the parameters
    are also different.
    Occidml-example constructor:
    occidml (string user, string passwd, string db)
    env = Environment::createEnvironment (Environment::DEFAULT);
    conn = env->createConnection (user, passwd, db);
    Occiobj-example constructor:
    occiobj (string user, string passwd, string db)
    env = Environment::createEnvironment (Environment::OBJECT);
    occiobjm (env);
    con = env->createConnection (user, passwd, db);
    If I have time again I will give the occidml another try. By far
    I get along with the occiobj-example.
    Thanks for all the people who helped me (or intended to).
    Greetings Roman

  • Problems building w/ Snow Leopard and iPhone SDK 3.0 Snow Leopard

    Suddenly having problems building and codesigning after upgrading to Snow Leopard and iPhone SDK 3.0 Snow Leopard.
    Profile set to Distribution, Device 2.2.1 Distribution, as has worked in the past.
    The build fails with this error:
    Command <com.apple.tools.product-pkg-utility> failed with exit code -1
    The below section is highlighted in Build Results.
    ProcessingProductPackaging /Users/harvey/Documents/iPhoneApp_Work/Listening-Hiragana/iPhone_Comprehension_timerharvey/entitlements.plist "/Users/harvey/Documents/iPhoneApp_Work/Listening-Hiragana/iPhone_Comprehension_timer_harvey/build/iPhoneComprehension.build/Distribution-iphoneos/Kana Listening.build/iPhone_Comprehension.xcent"
    cd /Users/harvey/Documents/iPhoneApp_Work/Listening-Hiragana/iPhone_Comprehension_timerharvey
    setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/u sr/bin:/bin:/usr/sbin:/sbin"
    <com.apple.tools.product-pkg-utility> /Users/harvey/Documents/iPhoneApp_Work/Listening-Hiragana/iPhone_Comprehension_timerharvey/entitlements.plist -entitlements -format xml -o "/Users/harvey/Documents/iPhoneApp_Work/Listening-Hiragana/iPhone_Comprehension_timer_harvey/build/iPhoneComprehension.build/Distribution-iphoneos/Kana Listening.build/iPhone_Comprehension.xcent"
    Any ideas? This is really strange.
    The same error occurs when trying to build for Device - 3.0, and any other version it seems.
    This is especially frustrating as I'm simply trying to update an app that I released before I upgraded.
    I will love whoever helps me forever and ever.
    saikyo

    Found the new SDK on the CD. Now I am running XCode 3.2.
    I'm talking to myself now for the benefit of future readers.
    On the Dev Center I see the note:
    "Important: You will need to re-install the iPhone SDK for Snow Leopard if you plan on developing iPhone applications after upgrading your Mac to Snow Leopard and installing Xcode 3.2."
    So I'm going to download and install the iPhone SDK 3.0 (Snow Leopard) from the SDK downloads area on the Dev Center page. This seems weird to me as it's 3.0... but I'm running 3.2 now... I guess this will just update my 3.2?
    I also notice that when I run XCode 3.2 I don't have Simulator as an option anymore in my profiles.
    Going to go ahead with the update now and see how it goes.

  • Problem in set selectedTextcolor in uitableview cell in iPhone SDK 3.1.2

    Hello,
    I set selected text color in uitableview cell using cell.selectedTextColor = [UIColor whiteColor]; for iPhone SDK 2.2.1.
    Now i use iPhone SDK 3.1.2, So for that i make change as per documentation for that i use textLabel properties. But selectedTextColor is not exit.
    So Now for SDK 3.1.2 how to set selectedTextColor?..
    Thank you.

    The textLabel property is an instance of UILabel, so it has its own textColor, textAlignment, and font properties. E.g.:
    cell.textLabel.text = @"foo";
    cell.textLabel.textColor = [UIColor whiteColor];
    cell.textLabel.textAlignment = UITextAlignmentLeft;
    Hope that helps!
    - Ray

Maybe you are looking for

  • Manual iTunes back up.  How to do it?

    I'm looking for a manual way to back up my entire Itunes.  Other than time machine. For those of you familiar with iPhoto, if I go to Home, Pictures.  I can copy the Library to an external drive and have a back up of all my pics. If I go to Home, Mus

  • Unable to create alias

    I've noticed that with several apps the cmd-L command to make an alias does not work. Likewise with these same apps the make alias command in the finder's file menu is grayed out and unavailable. Can anyone give me an explanation of this and what I m

  • Helppppp frozen

    ok i was driving to class this morning and the ipod was working fine and i went to skip to another song and it froze...wont shut off and wont do anything when i connect it to the computer...and hold is off....anyone know what i can do? thanks eric

  • Really annoying Nokia 500 WLAN problem

    I'm with Three in the UK, to use their Planet3 service I have to connect to the website by using the 3G connection, but whatever settings I use the 500 turns on the WLAN and connects through that so I can't access Planet3 - I've gone through all the

  • Copying of Update Rules

    Hi, I need to copy the update rules. Let me explain the requirement: The standard business content in SD provides the update rules from InfoSource 2LIS_12_VCHDR to InfoCube 0SD_C03. We have created an ODS (ZSD_O01) on the InfoSource 2LIS_12_VCHDR, wi