×

Discussion Board

Results 1 to 7 of 7

Thread: N8 crash

  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    126

    N8 crash

    Hi,
    I have a quite simple game with inner-active ads integrated.
    The application is working perfectly on N97 and 5800, but when try it on N8, "occasionally" it crashes right after the banner is loaded (using loadClip() call).
    The scenario is as follows: the application starts, a movie clip pops up with the banner and 2 buttons (skip and exit). Now, in 90% of the app execution,
    when I click anywhere on the screen at this stage, the application just vanishes! No error, no nothing - Ploop, and the application is gone... smooth crash.
    Strangely, it usually doesn't happen at first run (after restart), and usually happens from the second / third run an on.
    The application is written in AS2, of course, published for FL 3.1
    PLEASE - does anyone have a clue on what could cause that??
    Thanks,
    Ranco

  2. #2
    Registered User
    Join Date
    Oct 2009
    Posts
    126

    Re: N8 crash

    I really need help here. Allow me to share a snippet of my code:

    Code:
    	    // prepare listener for the ad banner
    	adListenerObject = new Object();
            adListenerObject.path = this;
    	adListenerObject.onLoadInit = function(target_mc:MovieClip)
            {
    		this.path.isLoaded = true; // ad was succesfully loaded
    		target_mc.link 	   = String(this.path.adLinkUrl);
    
    	       target_mc.onRelease = function() {
    	  		getUrl(this.link, "_blank");
    	     }
    	}
    		
    	// send ad request:
    	prepareRequest(); /// internal - prepare URL request
    	var xmlObj = new XML();
        	xmlObj.ignoreWhite = true;
        	xmlObj.path = this;
        	xmlObj.addRequestHeader("User-Agent","null");
    
        	// onLoad handles the received URL (with banner info)
            xmlObj.onLoad = function (success:Boolean)
        	{
                 if (success)
                 {
    			 xmlObj.path.returnUrl = xmlObj.toString();
    			 xmlObj.path.parseUrl(); // internal func
    			 var bannerLoader:MovieClipLoader = new MovieClipLoader();
    			 bannerLoader.addListener(xmlObj.path.adListenerObject);
    			 bannerLoader.loadClip(xmlObj.path.bannerImgUrl,xmlObj.path.adMC); // this is the line that I think causing the crash (without it - no crash)
                 }
        	}
    
    	// send request for ad
        	xmlObj.load(this.requestUrl,"POST");
    Looks good to me (maybe because I wrote it...).
    Any idea what's causing the crash ONLY on N8 (= FL 4.0)?

    Thanks!
    Ranco

  3. #3
    Nokia Developer Champion
    Join Date
    Apr 2005
    Location
    Boston
    Posts
    517

    Re: N8 crash

    Ciao Ranco,

    I am seeing crashes on FL4 devices from FL3 code based app.
    So it must be some issue/bug with FL4 executing FL3/AS2 code.
    Same app works perfectly on all S60 5th devices with FL3 and also on S60 3rd FP1/FP2 with FL2/3.

    Did a lot of debugging but cannot figure out the issue since no errors are shown and app closes.

    Alessandro

  4. #4
    Registered User
    Join Date
    Oct 2009
    Posts
    126

    Re: N8 crash

    Quote Originally Posted by biskero View Post
    Ciao Ranco,

    I am seeing crashes on FL4 devices from FL3 code based app.
    So it must be some issue/bug with FL4 executing FL3/AS2 code.
    Same app works perfectly on all S60 5th devices with FL3 and also on S60 3rd FP1/FP2 with FL2/3.

    Did a lot of debugging but cannot figure out the issue since no errors are shown and app closes.

    Alessandro
    Ok, thanks, that's what I suspected. "great news"...
    So what do you do in such cases, if you want to upload it to OVI? - exclude N8?
    There's no chance anyone from Adobe / Nokia will really hear us and correct it, right?
    Ranco

  5. #5
    Nokia Developer Champion
    Join Date
    Feb 2011
    Location
    bucharest
    Posts
    150

    Re: N8 crash

    guessing that you use the flash code from your ad supplier...
    try using mobile-site code API, and in flash could load the php from your server in a HTML text field (text and images and links should do it for ads)

  6. #6
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Re: N8 crash

    Hi Ranco,
    After reading this, I do some tests with one of my game which was integrated by inneractive ads. So far tests are positive and i think the only difference in my AS 2 game is that i used sendAndLoad API to get M2M html response . May be it helps.

    Best Regards,
    Sajid Ali Anjum

  7. #7
    Registered User
    Join Date
    Oct 2009
    Posts
    126

    Re: N8 crash

    Hi all,
    Thanks for your replies.
    I spent some time today rewriting some code, specifically replacing MovieClipLoader.loadClip() with a simple MovieClip loadMovie() call and a timer pending the MC width to change (replacing the listener's onLoadInit() event). I suspected the loadClip(), and apparently I was right. I've tested it on 5800, N97 and N8 and it works perfectly (at least 12 consecutive times...). Gave me a hard time this stupid N8 bug. Quite frustrating....
    Regards,

    Ranco

Similar Threads

  1. N8 restarting
    By mush2004 in forum General Development Questions
    Replies: 7
    Last Post: 2011-02-20, 19:13
  2. QML + Camera from Mobility = Crash on N8
    By joe789joe789 in forum [Archived] Qt Quick
    Replies: 2
    Last Post: 2011-02-07, 13:26
  3. N8 without simcard and latest OVI maps 3.06 crash phone
    By xlazom00 in forum Series 40 & S60 Platform Feedback Archive
    Replies: 3
    Last Post: 2010-12-23, 07:10
  4. RConnection WLAN selecting crash on N8
    By bartoszp in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2010-11-22, 10:10

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×