|
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 |
I guess it is something then in fdb, but I don't have this problem FlexBuilder.
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.
Does debugging work with simple application, for example, HelloWorld.mxml and wrapper.html which is generated by New Flex Module Wizard?
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
================================================================================
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
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.
You've provided thread dump of adaptj StackTrace program, not IntelliJ IDEA :)
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?
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
I did a cpu snapshot and will add it. Let me know if you want a real thread dump.
ModuleEvent.PROGRESS received: 1177059 of 1177059 loaded.
ModuleEvent.SETUP received
Calling IModuleInfo.factory.info () .....