18 Replies Last post: May 4, 2010 2:14 PM by Roger Laenen  
Roger Laenen Newbie 12 posts since
Oct 10, 2009
Currently Being Moderated

Oct 26, 2009 11:36 AM

Use of EAP with Flex/Air

Hi,

 

Last week i tried to use the 90.94 EAP release to do some Flex/Air development on an enterprise project. First, i have to say, the actionscript/mxml editing features are superior to those available in Eclipse/FlexBuilder. No doubt about that.

Despite this i had to stop it because of the following reasons :

 

  • After some time in the IDE (10+ minutes..) it starts some code checking (mxml, as, java) in the background. You can recognize it by the small spinning wheel in the upper right corner of the project explorer window. Unfortunately, on my modest laptop this takes a rough 50% of my cpu and it makes further editing very difficult (the UI is just not responding immediately anymore, cursor does only appear after 5 seconds, characters don't follow as you type...) Most of the time i had to restart the IDE to get rid of this.
  • Debugging an AIR application gives serious problems. Sometimes the debugged application just hangs, I've the impression that something goes wrong in the communication between Idea and the AIR app. I've been debugging to check out where it went wrong but could not find the cause. One of the situations was a breakpoint on a 'dispatchEvent'. After the event was dispatched the IDE never came to the next line. Another one was a trace statement that never returned. Obviously this was a showstopper. In FlexBuilder this same application can be debugged without any problem.

 

I now solve the problem for me by combining IDEA 8.1.3 and Eclipse/FlexBuilder thereby using idea for all the coding stuff and FlexBuilder for the running/debugging.

Not an ideal situation but the best i can think of right now.

 

I hope you'll be able to solve this before releasing 9.

 

Roger.

Taras Tielkes Apprentice 1,016 posts since
Oct 20, 2002
Currently Being Moderated
Oct 27, 2009 1:29 AM in response to: Roger Laenen
Re: Use of EAP with Flex/Air
  • After some time in the IDE (10+ minutes..) it starts some code checking (mxml, as, java) in the background. You can recognize it by the small spinning wheel in the upper right corner of the project explorer window. Unfortunately, on my modest laptop this takes a rough 50% of my cpu and it makes further editing very difficult (the UI is just not responding immediately anymore, cursor does only appear after 5 seconds, characters don't follow as you type...) Most of the time i had to restart the IDE to get rid of this.

 

It's very easy to capture a CPU snapshot - it's the rightmost icon on

the application toolbar in EAP builds. A JIRA ticket with an attached

CPU snapshot greatly increases the chances for a fix.

 

Guest
Currently Being Moderated
Oct 27, 2009 4:49 PM in response to: Roger Laenen
Re: Use of EAP with Flex/Air

Please, run IDEA with idea.is.internal property set and attach console

debugger trace in order to diagnose your debugger problem

 

Roger Laenen wrote:

Hi,

 

Last week i tried to use the 90.94 EAP release to do some Flex/Air development on an enterprise project. First, i have to say, the actionscript/mxml editing features are superior to those available in Eclipse/FlexBuilder. No doubt about that.

Despite this i had to stop it because of the following reasons :

 

  • Debugging an AIR application gives serious problems. Sometimes the debugged application just hangs, I've the impression that something goes wrong in the communication between Idea and the AIR app. I've been debugging to check out where it went wrong but could not find the cause. One of the situations was a breakpoint on a 'dispatchEvent'. After the event was dispatched the IDE never came to the next line. Another one was a trace statement that never returned. Obviously this was a showstopper. In FlexBuilder this same application can be debugged without any problem.

 

 

I now solve the problem for me by combining IDEA 8.1.3 and Eclipse/FlexBuilder thereby using idea for all the coding stuff and FlexBuilder for the running/debugging.

Not an ideal situation but the best i can think of right now.

 

I hope you'll be able to solve this before releasing 9.

 

Roger.

 

---

Original message URL: http://www.jetbrains.net/devnet/message/5247971#5247971

 

 

--

Best regards,

   Maxim Mossienko

IntelliJ Labs / JetBrains Inc.

http://www.intellij.com

"Develop with pleasure!"

 

Alexander Doroshko JetBrains 722 posts since
Jun 9, 2009
Currently Being Moderated
Nov 9, 2009 3:28 PM in response to: Roger Laenen
Re: Use of EAP with Flex/Air

Hi Roger,

 

Is anything better with IDEA 9 Beta?

Are you able to run your application in Debug mode if no breakpoints set?

 

To help us to investigate please do please do following:

 

- remove old logs from [idea.system.path]/log/*.* (idea.system.path property is set in the file [IDEA installation]/bin/idea.properties)

- edit file [IDEA installation]/bin/log.xml and add following category there:

 

<log4j:configuration>
  <category name="com.intellij.lang.javascript.flex.debug">
    <priority value="DEBUG"/>
  </category>
...

- launch IDEA, reproduce debugged application hang.

 

After that please attach generated logs. Thank you.

Alexander Doroshko JetBrains 722 posts since
Jun 9, 2009
Currently Being Moderated
Nov 10, 2009 7:58 PM in response to: Roger Laenen
Re: Use of EAP with Flex/Air

Thank you for the logs. Unfortunately they do not contain anything wrong.

Logs show as if everything is ok:

- debugging startup (takes about 15 seconds)

- breakpoints are resolved

- looks like the debugged application is running. Some [trace] messages are printed

- In 3-4 minutes the debuging is stopped (probably by the 'Stop' button from Debug tool window)

 

How is the application hanging? I mean is the only problem is that nothing shown or the window is totally unresponsive (i.e. can't even be closed normally)

 

You say that there are no problems with running the application without debugging. Can you please manually try scenario that is rather similar to what IDEA does:

- Launch from command line <Flex SDK>/bin/fdb (fdb.exe on Windows)

- In fdb console type 'run' and press Enter

- Run your application from IDEA (non-debug mode)

- Look in fdb console. You'll be asked to type 'continue' few times (it's enought just to type 'c' and press Enter)

 

The question is: will the application be running normally after all? Fdb console content might be interesting, please attach it fully.

Alexander Doroshko JetBrains 722 posts since
Jun 9, 2009
Currently Being Moderated
Nov 12, 2009 1:06 PM in response to: Roger Laenen
Re: Use of EAP with Flex/Air

I'm confused, since everything seems to be going in the same way as using IDEA debugger... The only difference I see is that in fdb logs the last warning ('warning: unable to bind to property 'name' on class 'com.ducroire.credelnet.remoteservices.domain.taskflow::Priority') is shown 9 times, but in IDEA logs - only twice.

 

Are you using latest Beta (90.193)? If not - please try it and attach IDEA logs as few posts above (without breakpoints)

May be using latest official Flex SDK release (3.4.1) makes any difference?


One more thing I can imagine to investigate the issue is to 100% reproduce IDEA behaviour manually. I.e. launch fdb.exe and the application in the same way as before and type following commands in fdb console:

(fdb) run

[launch application]

you see [SWF] desktop-portal.swf and other stuff

(fdb) continue

Additional ActionScript code has been loaded...

(fdb) show files

Mega spam (1156 classes)....

(fdb) continue

[SWF] client-portal.swf

(fdb) show files

Mega spam (1178 classes)....

(fdb) continue

Additional ActionScript code has been loaded...

(fdb) show files

Mega spam (1282 classes)....

(fdb) continue

[trace] warning: unable to bind to property 'globalDispatcher' on class 'com.ducroire.clientportal.mate::MainEventMap'

[SWF] styles/ducroire.swf ...

[SWF] client-portal.swf ...

[SWF] Tasks.swf ...

(fdb) show files

Mega spam (1304 classes)....

(fdb) continue

Additional ActionScript code has been loaded...

(fdb) show files

Mega spam (1439 classes)....

(fdb) continue

[trace] warning: unable to bind to property 'globalDispatcher' on class 'com.ducroire.credelnet.tasklist.maps::MainEventMap'

[trace] warning: unable to bind to property 'name' on class 'com.ducroire.credelnet.remoteservices.domain.taskflow::Priority'

[trace] warning: unable to bind to property 'name' on class 'com.ducroire.credelnet.remoteservices.domain.taskflow::Priority'

 

that' s all IDEA does and sees. Any difference with manual debugging?

Alexander Doroshko JetBrains 722 posts since
Jun 9, 2009
Currently Being Moderated
Nov 13, 2009 12:53 PM in response to: Roger Laenen
Re: Use of EAP with Flex/Air

When debugged application is suspended/waiting - you can neither resise the window, nor close it normally. So the reason is some other. But I'm completely lost....

Is it possible to create some free of intellectual property project that reproduces the issue and attach here or send directly to me: adoroshko [@] swiftteams [.] com?

Lewis Henderson Newbie 15 posts since
Sep 27, 2002
Currently Being Moderated
Jan 12, 2010 3:28 PM in response to: Roger Laenen
Re: Use of EAP with Flex/Air

All,

 

I am using 9.0 and get hangs when I use trace(). Some trace statements are being logged to the console window, then on the next one it hangs. I have a complex application with many trace() statements. I changed all trace() to a static Debug.message() with Alert.show(message) statement. This does not hang and produces correct output.

 

Any ideas?

 

 

Lewis

 

Message was edited by: Lewis Henderson to add log file.

Attachments:
Alexander Doroshko JetBrains 722 posts since
Jun 9, 2009
Currently Being Moderated
Jan 13, 2010 9:16 PM in response to: Roger Laenen
Re: Use of EAP with Flex/Air

The issue with AIR debug hanging is reproduced and filed as http://youtrack.jetbrains.net/issue/IDEADEV-42206.Will be fixed soon.

Alexander Doroshko JetBrains 722 posts since
Jun 9, 2009
Currently Being Moderated
Jan 19, 2010 7:34 PM in response to: Roger Laenen
Re: Use of EAP with Flex/Air

More Like This

  • Retrieving data ...