Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Duplicate
Assignee
Maxim Mossienko
Subsystem
Flex Support
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Per Olesen
    3 years ago (20 Aug 2008 16:35)
  • Updated by   Per Olesen
    3 years ago (23 Sep 2008 23:03)
  • Jira: IDEA-19242
    (history, comments)
 
IDEA-19242 Debugger fails starting on linux
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
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
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...


Environment: Linux, ubuntu 7.10.
JDK: 1.6.0_06

Issue was resolved
Comments (10)
 
History
 
Linked Issues (?)
 
Maxim Mossienko
  Maxim Mossienko
01 Sep 2008 18:54
3 years ago
Are you using FireFix 3 as browser?
Per Olesen
  Per Olesen
01 Sep 2008 18:58
3 years ago
Firefox2 on ubuntu.
Why is the browser important here?
Maxim Mossienko
  Maxim Mossienko
01 Sep 2008 19:09
3 years ago
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
  Per Olesen
01 Sep 2008 19:22
3 years ago
Ahh, okay.
But I am running firefox2.
Please tell me if I can provide more debugging info.
Maxim Mossienko
  Maxim Mossienko
18 Sep 2008 21:20
3 years ago
Could you please report what is output of launching fdb with your swf / wrapper / url?
Per Olesen
  Per Olesen
22 Sep 2008 12:10
3 years ago
Sure, but I am not quite sure what you mean by "launching fdb with your swf / wrapper / url" ??
Maxim Mossienko
  Maxim Mossienko
22 Sep 2008 20:53
3 years ago
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
  Per Olesen
23 Sep 2008 17:41
3 years ago
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
  Per Olesen
23 Sep 2008 17:43
3 years ago
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
  Per Olesen
23 Sep 2008 17:44
3 years ago
Showing "no valid flex SDK" problem