Skip navigation
Jonnex
Currently Being Moderated

AIR app closes instantly on opening

Feb 7, 2012 3:53 AM

Tags: #air_3.1

Hi all,

 

I've built and depolyed AIR apps before, and never had any problems, but the app I'm working on right now is really causing me some trouble.

 

I built the app in Flash Builder, and exported it using the 'Export Release Build' dialogue; I chose 'Signed AIR package', everything went fine there. I installed the app to a directory on my desktop, and no errors were thrown during the installation.

 

Double clicking the .exe file opens the app window momentarily, then it instantly closes without any other errors or exceptions being thrown. I tried opening the included SWF in the Flash debug player, but it stops on an exception like this:

 

VerifyError: Error #1014: Class flash.events::NativeWindowBoundsEvent could not be found.

 

Which is just because I'm using an AIR API call that's unsupported by the Flash player.

 

I've tried using Process Monitor to see if there are any errors when the app starts, but I can't really make all that much sense of what it reports. The only slightly suspect entries were ones with 'NAME NOT FOUND' and 'OPLOCK NOT GRANTED', but there was no info included that gave me any ideas about what is causing the problem.

 

Anyone any ideas, I'm totally stuck.

 
Replies
  • Chris Campbell
    9,448 posts
    May 4, 2010
    Currently Being Moderated
    Feb 7, 2012 2:55 PM   in reply to Jonnex

    Hi Jonnex,

    Could you try enabling automatic dump file creation and try launching your app again to see if it's actually crashing?  If it is, please send me the dmp file (ccampbel@adobe.com).  I'd also be happy to try this myself if you'd like to just send me the .air file instead.

     

    See this post for .reg files to enable/disable dump file creation.

     

    http://forums.adobe.com/message/4159755#4159755

     

    Thanks,

    Chris

     
    |
    Mark as:
  • Chris Campbell
    9,448 posts
    May 4, 2010
    Currently Being Moderated
    Feb 9, 2012 12:55 PM   in reply to Jonnex

    That is very odd.  I'm not sure why that's happening but I'll ask around and see if anyone knows.  Glad you figured it out though!

     

    Chris

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 4, 2012 12:37 AM   in reply to Chris Campbell

    Hi Chris and Jonnex

    Did you find out the solution?

     

    Even i'm getting the same issue. Except that i'm not getting any errors.

     

    When i first run my application it showed me the GUI for half second and closed. Then i tried to reopen the app its not at all showing any window.

    I does not show any errors.

     

    I even tried enabling Crash Logging, but havent found any folder named CrashDump in my Windows folder.

     

    If you guys found any solution please update to the forum..

     

    Thanks

    Vishal

     
    |
    Mark as:
  • Chris Campbell
    9,448 posts
    May 4, 2010
    Currently Being Moderated
    Jun 6, 2012 5:02 PM   in reply to Jonnex

    Vishal, would you be willing to share your .air installer with me so I could try your app out?

     

    Thanks,

    Chris

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2012 12:38 AM   in reply to Chris Campbell

    hi,

    Sure i have sent it via yousendit.com so please you this link

     

    https://www.yousendit.com/download/QlVoSlIzT2JTRTQwTWRVag

     

    Link Expires on Jun 14 2012.

     

    Since the app is using native process so i have to create exe instead of air

     
    |
    Mark as:
  • Chris Campbell
    9,448 posts
    May 4, 2010
    Currently Being Moderated
    Jun 19, 2012 9:48 PM   in reply to Adheli_Vishal

    It looks like I might have misplaced the app and the link is doead now.  Could you create a new bug report at bugbase.adobe.com and attach the application? 

     

    Thanks,

    Chris

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 22, 2013 2:26 PM   in reply to Jonnex

    I just did the same thing.

    The build was crashing.  I traced the bug to a trace() command.

    However, mine did not have any progress event attached to it.

     

    if (level == LogLevel.ERROR)

                    {

                        trace("*** Error:" + msg + " ***");

                    }               

                    else if (debugMode)

                    {

                        trace("message: " + msg);

                    }

     

    When I commented out the two trace() commands above, the app compiled.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points