Project
IntelliJ IDEA
Priority
Normal
Type
Performance Problem
Fix versions
No Fix versions
State
Duplicate
Assignee
Alexander Doroshko
Subsystem
Flex Support
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   brandon lonac
    2 years ago (24 Apr 2009 21:41)
  • Updated by   root
    2 years ago (17 Jan 2010 21:14)
  • Jira: IDEADEV-39609
    (history, comments)
 
IDEA-48763 Debugging Flex Application Hangs IDEA
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
When I try to debug a local flex application via a url, it hangs IDEA. If I let it run, it does seem to execute, but takes minutes, basically useless. Then when I stop the debugger FireFox is hung & has to be killed.

I have 17 flex modules in my project

Environment: os x 10.5.6
FireFox 3.0.8
Comments (22)
 
History
 
Linked Issues (?)
 
Maxim Mossienko
  Maxim Mossienko
25 Apr 2009 11:15
2 years ago
please, attach idea.log file
Maxim Mossienko
  Maxim Mossienko
05 May 2009 22:19
2 years ago
could you please try launch fdb by hand
brandon lonac
  brandon lonac
05 May 2009 22:41
2 years ago
Interesting. I need to run the app inside a html right now b/c we are using an ExternalInterface. But that said, using fdb to open the url hangs as well. If it opens a .swf it processes until it gets an error trying to use the ExternalInterface.

I guess it is something then in fdb, but I don't have this problem FlexBuilder.
Maxim Mossienko
  Maxim Mossienko
05 May 2009 22:57
2 years ago
Does fdb open firefox or not?
brandon lonac
  brandon lonac
05 May 2009 23:16
2 years ago
Yes, it opens FireFox
Alexander Doroshko
  Alexander Doroshko
07 May 2009 17:34
2 years ago
Can you please clarify few questions:

1. Is behavior the same on official IDEA 8.1.1 release?
2. What Flex SDK version you use?
3. There are some issues with Flex SDK working on Java 64 bit. Isn't this the case?
4. You say about "debugging a local flex application via a url". I guess that you mean not URL but path to local html wrapper file, right? (I.e. in Flex Run Configuration first radiobutton is selected: "HTML wrapper or SWF file")
5. Does IDEA completely hang, i.e. UI is completely unresponsive and the only way is to kill IDEA process?
6. Could you please attach thread dump of hanging IDEA (http://www.jetbrains.net/devnet/docs/DOC-260).
7. Could you attach content of IDEA's console after unsuccessful debug session.

Thank you in advance.
Alexander Doroshko
  Alexander Doroshko
07 May 2009 20:23
2 years ago
And one more question:
Does debugging work with simple application, for example, HelloWorld.mxml and wrapper.html which is generated by New Flex Module Wizard?
brandon lonac
  brandon lonac
08 May 2009 03:37
2 years ago
Sure, hope these help.

1. Not sure, I first saw it on 9815, now on 9825. I use FlexMojos and the maven generation of my 17+ modules, I had not taken the time prior to them compiling/debugging.
2. Used 3.2 & 3.3 now, targeting player 10
3. Could be, I'm using 1.5 explicitly though for IDEA and my default java on OS X
4. No, we use the local apache, so the url is http://localhost/~user/main.html
5. It did completely hang in 9815, now in 9825 it comes back, sort of to where I can stop the debugging. But the browser (firefox or safari) are completely hung & have to be killed.
6. Here is the dump from StackTrace after the app has hung:

================================================================================

12041 com.intellij.flex.FcshLauncher
COMMAND
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java -Dapplication.home=/Applications/Adobe Flex Builder 3/sdks/3.3.0 -Xmx1024m -Dsun.io.useCanonCaches=false -Duser.language=en -Duser.region=en -classpath /Applications/Diana-9825.app/plugins/flex/lib/idea-fcsh-fix.jar:/Applications/Adobe Flex Builder 3/sdks/3.3.0/lib/fcsh.jar com.intellij.flex.FcshLauncher



org.adaptj.bg: gdb: not found
 at org.adaptj.P.a(Unknown Source)
 at org.adaptj.P.a(Unknown Source)
 at org.adaptj.bd.a(Unknown Source)
 at org.adaptj.l.a_(Unknown Source)
 at org.adaptj.bB.a(Unknown Source)
 at org.adaptj.gui.aY.a(Unknown Source)
 at org.adaptj.gui.aY.run(Unknown Source)

================================================================================

99659 /Applications/Diana-9825.app/Contents/MacOS/idea -psn_0_14212493
COMMAND
/Applications/Diana-9825.app/Contents/MacOS/idea -psn_0_14212493



org.adaptj.bg: gdb: not found
 at org.adaptj.P.a(Unknown Source)
 at org.adaptj.P.a(Unknown Source)
 at org.adaptj.bd.a(Unknown Source)
 at org.adaptj.l.a_(Unknown Source)
 at org.adaptj.bB.a(Unknown Source)
 at org.adaptj.gui.aY.a(Unknown Source)
 at org.adaptj.gui.aY.run(Unknown Source)

7. Here is the console output, minus the app tracing:

Adobe fdb (Flash Player Debugger) [build 4852]
Copyright (c) 2004-2007 Adobe, Inc. All rights reserved.
Attempting to launch and connect to Player using URL
http://localhost/~bdude/ui/fastlane.html
Player connected; session starting.
[SWF] /~bdude/ui/fastlane.swf - 1,876,846 bytes after decompression

ModuleEvent.PROGRESS received: 0 of 729447 loaded.
[trace] ModuleEvent.PROGRESS received: 607488 of 729447 loaded.
[trace] ModuleEvent.PROGRESS received: 0 of 832595 loaded.
[trace] ModuleEvent.PROGRESS received: 832595 of 832595 loaded.
[trace] ModuleEvent.PROGRESS received: 607488 of 729447 loaded.
[trace] ModuleEvent.PROGRESS received: 729447 of 729447 loaded.

The app makes a number of service calls loads a Flex module, it seems it is at this point at which things hang, could be the success handler on loading the module.

8. Yes, creating a simple HelloWorld.mxml & wrapper.html debugged correctly. I even copied them to my local web server & used a http url to debug & they worked.
Alexander Doroshko
  Alexander Doroshko
08 May 2009 21:42
2 years ago
Thank you for information. Few comments:
6. Here is the dump from StackTrace

You've provided thread dump of adaptj StackTrace program, not IntelliJ IDEA :)
7. Here is the console output

I suspect that debugged process is suspended and fdb waits for some input, but IDEA doesn't give it. So full console log could be useful. I expect to see statements like "Sent:continue" and "Processed by..."

Attachment to the Jira issue would be better than tons of text in comments.

Sorry for dozens of questions, it's rather difficult to guess what's going on when we can't reproduce the issue. Have you got any success in debugging your application using fdb tool directly without IDEA?
Alexander Doroshko
  Alexander Doroshko
08 May 2009 21:50
2 years ago
It would be highly appreciated if you manage to create some 'minimal' project (without much private intellectual property) where the issue is reproduced and attach it to the issue. Though I understand that this task may require much of your time and efforts so we'll continue investigating in any case.
brandon lonac
  brandon lonac
16 May 2009 04:03
2 years ago
Sorry, been a busy week with work.

Far as using fdb directly, yes I can debug, but it is very slow as well. On startup my app loads 5-6 .swf's for styling and then 1 module for the application. It is at each load of an external .swf that the fdb hangs to load and then process the successful download. I will attache a log of debug and stack
brandon lonac
  brandon lonac
16 May 2009 04:35
2 years ago
debug output from IDEA 9825
Alexander Doroshko
  Alexander Doroshko
13 Aug 2009 22:08
2 years ago
The problem in Flex debugger that was very similar to description is fixed. Hope that this issue is fixed too as a side effect. If not - then please reopen issue and make a thread dump of hanging IDEA (you may use adaptj tool for that but do not make thread dump of adaptj itself :) ).
brandon lonac
  brandon lonac
13 Aug 2009 22:20
2 years ago
OOOHHH! I am eagerly waiting the next build! Thank you! If it is still broken this time, I will set aside some time to create a project that reros the issue.
Alexander Doroshko
  Alexander Doroshko
13 Aug 2009 22:24
2 years ago
I'll keep the issue open waiting for your comment, because really not sure that it is fixed.
brandon lonac
  brandon lonac
20 Aug 2009 10:20
2 years ago
Much better than it use to be! I can at least now hit debug w/ no break points and it will run. Bad news, there still is a delay if I put in 1 or more breakpoints and IDEA hangs for about a minute or so. A run down of our app again, after the initial loading of a login screen (the main .swf), we load 5 .swf for styling/fonts, then we load 2 more .swfs that are Flex Modules, plus 7-10 http calls for data.

I did a cpu snapshot and will add it. Let me know if you want a real thread dump.
brandon lonac
  brandon lonac
20 Aug 2009 10:23
2 years ago
here is the snapshot w/ 1 breakpoint hanging after the first 5 style .swfs and before the final flex module .swf loading.
brandon lonac
  brandon lonac
20 Aug 2009 10:39
2 years ago
if this snapshot doesn't work. How does JetBrains feel about NDAs with it's customers? My company has been a customer for years, about 6-7, with a site license for the last few. Do you guys ever do stuff like that to help sort out specific use cases?
Maxim Mossienko
  Maxim Mossienko
27 Oct 2009 22:17
2 years ago
Please, try newer IDEA 9 build (9.0#122+)
Maxim Mossienko
  Maxim Mossienko
16 Nov 2009 16:56
2 years ago
On occasion please try IDEA 9 build (9.2#19+) and share your experience
brandon lonac
  brandon lonac
18 Nov 2009 04:03
2 years ago
I just tried with build 92.24. Overall working great once a Flex module .swf is loaded, very responsive. But debugger hangs for about 30seconds when the flex module .swf has finished being downloaded and is being processed by the ModuleManager. I have listeners for the module loading events & it seems to hang between the Progress and Setup events. Here is my output:

ModuleEvent.PROGRESS received: 1177059 of 1177059 loaded.
ModuleEvent.SETUP received
Calling IModuleInfo.factory.info () .....
Maxim Mossienko
  Maxim Mossienko
18 Nov 2009 16:07
2 years ago
Could you please setup logging as described http://www.jetbrains.net/devnet/message/5249451#5249451 and attach after that idea.log?