Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » xdebug NegativeArraySizeException
xdebug NegativeArraySizeException [message #609254] Tue, 21 September 2010 20:45 Go to next message
Hugh Messenger is currently offline Hugh MessengerFriend
Messages: 17
Registered: January 2010
Junior Member
Running Eclipse 3.6.0 with PDT 2.2.0 on Windows 7, everything up to date.

Woke up this morning, started an xdebug session ... and it hangs at 24%, "Waiting for XDebug session". Tried restarting Eclipse. Tried restarting httpd on the (remote) server. Tried rebooting my machine and the server. Nada.

I can see the session attempting to open from the server end, but it sticks at "SYN_SENT". I can see a listener open on the Eclipse machine.

Tried getting an xdebug log, but for some reason the xdebug.remote_log INI directive isn't opening a log.

Only clue is in the Eclipse log:

!ENTRY org.eclipse.php.debug.core 4 4 2010-09-21 15:21:48.632
!MESSAGE class org.eclipse.php.internal.debug.core.xdebug.communication.XDe bugCommunicationDaemon : Unexpected Exception: Listener thread still listening
java.lang.NegativeArraySizeException
at org.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGp Session.readResponse(DBGpSession.java:537)
at org.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGp Session. <init>(DBGpSession.java:87)
at org.eclipse.php.internal.debug.core.xdebug.communication.XDe bugCommunicationDaemon.startConnectionThread(XDebugCommunica tionDaemon.java:136)
at org.eclipse.php.internal.debug.core.daemon.AbstractDebuggerC ommunicationDaemon$ReceiverThread.run(AbstractDebuggerCommun icationDaemon.java:206)
at java.lang.Thread.run(Thread.java:619)


I haven't changed anything .... everything was working when I hit the sack at 3am this morning ... was broken when I surfaced at noon ...

Any suggestions VERY gratefully accepted. I'm dead in the water ... Sad

-- hugh
Re: xdebug NegativeArraySizeException [message #613808 is a reply to message #609254] Tue, 21 September 2010 21:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dkel50.hotremovemail.com

Initial thought is that there is some problem at the server end. It
looks like something is sent to PDT as a socket has been established but
whatever gets sent to PDT is certainly not expected. If xdebug is not
creating a log then xdebug is not able to communicate with PDT.

If xdebug did establish a socket with PDT then it should send the init
string and that would at least be in the log.

You could try changing the ports that xdebug and PDT will communicate on.

Dave Kelsey

On 21/09/2010 21:45, Hugh Messenger wrote:
> Running Eclipse 3.6.0 with PDT 2.2.0 on Windows 7, everything up to date.
>
> Woke up this morning, started an xdebug session ... and it hangs at 24%,
> "Waiting for XDebug session". Tried restarting Eclipse. Tried restarting
> httpd on the (remote) server. Tried rebooting my machine and the server.
> Nada.
>
> I can see the session attempting to open from the server end, but it
> sticks at "SYN_SENT". I can see a listener open on the Eclipse machine.
>
> Tried getting an xdebug log, but for some reason the xdebug.remote_log
> INI directive isn't opening a log.
>
> Only clue is in the Eclipse log:
>
> !ENTRY org.eclipse.php.debug.core 4 4 2010-09-21 15:21:48.632
> !MESSAGE class
> org.eclipse.php.internal.debug.core.xdebug.communication.XDe
> bugCommunicationDaemon : Unexpected Exception: Listener thread still
> listening
> java.lang.NegativeArraySizeException
> at org.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGp
> Session.readResponse(DBGpSession.java:537)
> at org.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGp Session.
> <init>(DBGpSession.java:87)
> at org.eclipse.php.internal.debug.core.xdebug.communication.XDe
> bugCommunicationDaemon.startConnectionThread(XDebugCommunica
> tionDaemon.java:136)
> at org.eclipse.php.internal.debug.core.daemon.AbstractDebuggerC
> ommunicationDaemon$ReceiverThread.run(AbstractDebuggerCommun
> icationDaemon.java:206)
> at java.lang.Thread.run(Thread.java:619)
>
>
> I haven't changed anything .... everything was working when I hit the
> sack at 3am this morning ... was broken when I surfaced at noon ...
>
> Any suggestions VERY gratefully accepted. I'm dead in the water ... :(
>
> -- hugh
>
Re: xdebug NegativeArraySizeException [message #617765 is a reply to message #609254] Tue, 21 September 2010 22:49 Go to previous message
Hugh Messenger is currently offline Hugh MessengerFriend
Messages: 17
Registered: January 2010
Junior Member
I am officially Horribly Embarrassed <tm>.

Somehow my Windows 7 box decided to start using DHCP. I know it wasn't using DHCP up till 3am this morning, because xdebug on the server was still pointing at what should have been my static IP, which is well outside the dynamic range assigned to my local DHCP server. And xdebug was working fine when I went to bed!

I have no clue what caused Windows to decide to use DHCP. Unless I did it in my sleep. There were no Windows updates last night, according to my logs, which would usually be my first suspect.

Anyway, as soon as I reconfigured my adaptor to the original static IP ... Hey Presto ... surprise surprise ... it works.

Sorry to have wasted your time!

-- hugh
Previous Topic:consolelog doesn't work in Windows 7 64bit
Next Topic:How to add files: Ajax.inc.php & Ajax.js to my project
Goto Forum:
  


Current Time: Thu Oct 10 17:33:29 GMT 2024

Powered by FUDForum. Page generated in 0.02820 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top