Menu

Unexpected error setting up the debugger

2009-12-28
2013-03-15
  • Manuel Koch

    Manuel Koch - 2009-12-28

    I got the following error when trying to run an python app with the debugger ( app itself can be started standalone ) :

    Any hint appreciated to track down root cause !

    **Eclipse Console says :** 
    pydev debugger: starting 
    server timed out after 10 seconds, could not connect to localhost: 44314 
    Exiting. Bye!

    **Eclipse Log Entry:** 
    Message: Unexpected error setting up the debugger 
    Callstack: java.net.SocketException: 
    Socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) 
    at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:358) 
    at java.net.ServerSocket.implAccept(ServerSocket.java:470) 
    at java.net.ServerSocket.accept(ServerSocket.java:438) 
    at org.python.pydev.debug.model.remote.ListenConnector.run(ListenConnector.java:40)
    at java.lang.Thread.run(Thread.java:636)

    **Session Data:** 
    eclipse.buildId=M20090917-0800 
    java.version=1.6.0_0 
    java.vendor=Sun Microsystems Inc. 
    BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=de_DE 
    Command-line arguments:  -os linux -ws gtk -arch x86

    **Versions:** 
    Eclipse 3.5.1 
    PyDev 1.5.3.1260479439 
    Python 2.5.4 

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-12-28

    Do you have some active firewall that may be blocking communication?

    Cheers,

    Fabio

     
  • Manuel Koch

    Manuel Koch - 2009-12-28

    No firewall running

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-12-28

    I've seen some problems when having the network setting misconfigured in linux… pydev will open a connection to 127.0.0.1 and it can fail if things are not ok in your system.

    Cheers,

    Fabio

     
  • Manuel Koch

    Manuel Koch - 2009-12-28

    How can I check whether connection to localhost works in general ? 
    Can I change a PyDev configuration to get more debug output ?

    kind regards 
    Manuel

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-12-28

    Can you ping localhost? (I've just seen that pydev uses access with localhost and not 127.0.0.1).

    Cheers,

    Fabio

     
  • Manuel Koch

    Manuel Koch - 2009-12-28

    ping and traceroute work as expected

    kind regards
    Manuel

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-12-28

    Try raising the timeout at window > preferences > pydev > debug.

    Cheers,

    Fabio

     
  • Manuel Koch

    Manuel Koch - 2009-12-29

    I changed the timeout from 20000 to 40000 but the problem still exists. The error message popup appears very short after I hit the debug-button. The timeout does not seem to be used at all !? 
    The console message still complains 10 seconds timeout !?

    kind regards 
    Manuel

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-12-29

    There are 2 timeouts, one in the java side and one at the python side (which is fixed in 10 secs - because the java side should be already up when the python side is started). That configuration changes the java configuration.

    Now, if the popup appears very soon it means that it doesn't close because of the timeout but because of some other error…

    Seems really weird that the socket just closes without giving any info on why that happens (the classic error for that is a firewall or some network card misconfiguration).

    It seems a possible cause could be: https://bugs.eclipse.org/bugs/show_bug.cgi?id=176471 can you check that?

    Cheers,

    Fabio

     
  • Manuel Koch

    Manuel Koch - 2010-03-10

    Now after quite some time has past I just wanted to update my eclipse installation and noticed that eclipse is not able to contact _any_ update site ( even though I have access to the internet with my browser ). Eclipse always complains about "network not reachable". After searching the internet I found something that eventually fixed the update issue _and_ my strange debugger issue :
    After adding "-Djava.net.preferIPv4Stack=trueb" to my eclipse.ini file everything works again !

     
  • Manuel Koch

    Manuel Koch - 2010-03-10

    Sorry for the typo: It must be "-Djava.net.preferIPv4Stack=true"

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.