History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-19242
Type: Bug Bug
Status: Resolved Resolved
Resolution: Duplicate
Assignee: Maxim Mossienko
Reporter: Per Olesen
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Debugger fails starting on linux

Created: 20 Aug 08 15:35   Updated: 23 Sep 08 22:03
Component/s: Flex Support

File Attachments: None
Image Attachments:

1. run-config.png
(27 kb)
Environment:
Linux, ubuntu 7.10.
JDK: 1.6.0_06
Issue Links:
Duplicate
This issue duplicates:
IDEADEV-30836 debug flex and java in one project, n... Normal Resolved
 

Build: 8,664


 Description  « Hide
When trying to use the flex debugger on linux, several problems arise:

1. "fdb" script not executable

When clicking "Debug" on a flex configuration, IDEA does nothing at all. A look into the logfile showed me this:

2008-08-20 13:27:41,876 [ 42470] ERROR - com.intellij.ide.IdeEventQueue - IntelliJ IDEA 8.0M1 Build #8664
2008-08-20 13:27:41,876 [ 42470] ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.6.0_06
2008-08-20 13:27:41,876 [ 42470] ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) Server VM
2008-08-20 13:27:41,876 [ 42470] ERROR - com.intellij.ide.IdeEventQueue - Vendor: Sun Microsystems Inc.
2008-08-20 13:27:41,876 [ 42470] ERROR - com.intellij.ide.IdeEventQueue - OS: Linux
2008-08-20 13:27:41,876 [ 42470] ERROR - com.intellij.ide.IdeEventQueue - Last Action: Debug
2008-08-20 13:27:41,877 [ 42471] ERROR - com.intellij.ide.IdeEventQueue - Original exception:
java.io.IOException: Cannot run program "/usr/local/flex/current_sdk3/bin/fdb": java.io.IOException: error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at com.intellij.lang.javascript.flex.debug.FlexDebugProcess.<init>(FlexDebugProcess.java:136)
at com.intellij.lang.javascript.flex.debug.FlexDebugRunner$1.start(FlexDebugRunner.java:108)
at com.intellij.xdebugger.impl.XDebuggerManagerImpl.a(XDebuggerManagerImpl.java:22)
at com.intellij.xdebugger.impl.XDebuggerManagerImpl.startSession(XDebuggerManagerImpl.java:8)
at com.intellij.lang.javascript.flex.debug.FlexDebugRunner.doExecute(FlexDebugRunner.java:104)
at com.intellij.execution.runners.GenericProgramRunner$1.run(GenericProgramRunner.java:79)
at com.intellij.execution.impl.ExecutionManagerImpl$1.run(ExecutionManagerImpl.java:18)
...

I listed the file, and found it had 644 as rights, missing the x-bit, hence not being executable. Okay, I made it executable, which took me a step further.

Shouldn't IDEA either (a) show the error message instead of being silent, or (b) execute "fdb" script as a shell, like this "/bin/sh -c fdb", which circumvents the need for x-bit on a linux box?

2. Next, clicking Debug, shows a dialog telling me:

Flex Debugger Error
"Unexpected debugged player communication problem".

And the log shows nothing...



 All   Comments   Work Log   Change History      Sort Order:
Maxim Mossienko - 01 Sep 08 17:54
Are you using FireFix 3 as browser?

Per Olesen - 01 Sep 08 17:58
Firefox2 on ubuntu.
Why is the browser important here?

Maxim Mossienko - 01 Sep 08 18:09
For second problem you are reporting ("Unexpected debugged player communication problem"),
fdb launches browser for the debugger, if 'fdb' replies with 'session disconnected' just after startup then such error is reported. The problem started to appear under FireFox 3

Per Olesen - 01 Sep 08 18:22
Ahh, okay.
But I am running firefox2.
Please tell me if I can provide more debugging info.

Maxim Mossienko - 18 Sep 08 20:20
Could you please report what is output of launching fdb with your swf / wrapper / url?

Per Olesen - 22 Sep 08 11:10
Sure, but I am not quite sure what you mean by "launching fdb with your swf / wrapper / url" ??

Maxim Mossienko - 22 Sep 08 19:53
Please, execute from command line '/usr/local/flex/current_sdk3/bin/fdb <your url to wrapper / swf>' similar as you do in IDEA debug

Per Olesen - 23 Sep 08 16:41
Oups, output was "File not found: flashplayer"
I then took path to standalone player and put into PATH variable, and then output is:

Adobe fdb (Flash Player Debugger) [build 1444]
Copyright (c) 2004-2007 Adobe, Inc. All rights reserved.
Attempting to launch and connect to Player using URL
/home/polesen/sandboxes/atlight/trunk/thinclient/server/webapp/target/flex-resources/atlight-thinclient-client-shell.swf
Player connected; session starting.
Set breakpoints and then type 'continue' to resume the session.
[SWF] home/polesen/sandboxes/atlight/trunk/thinclient/server/webapp/target/flex-resources/atlight-thinclient-client-shell.swf - 1.825.784 bytes after decompression
(fdb)


Per Olesen - 23 Sep 08 16:43
The problem has shifted now, with latest build (#8810). Now, the run dialog tells me "No valid flex SDK is specified for module", even though it is.
I tried recreating the flex sdk and assign again to each module, but the problem persists.
I will attach screenshot shortly.

Per Olesen - 23 Sep 08 16:44
Showing "no valid flex SDK" problem