Stopping at breakpoint causes 'Process finished with exit code -1073741819'

Just installed Webstorm 8.02 and created a one line js program, set a breakpoint, and clicked on Debug.  The program runs until the breakpoint, shows debugger panel with locals and within 5 seconds a message appears in Variables panel which says "Process disconnected unexpectedly".

Console output is:

-----------------------------------------------------
"C:\Program Files (x86)\JetBrains\WebStorm 8.0.2\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" --debug-brk=57697 --nolazy example.js
Debugger listening on port 57697
Hello World

Process finished with exit code -1073741819 (0xC0000005)
-----------------------------------------------------


Idea.log output is:

-----------------------------------------------------
2014-05-16 15:26:11,588 [  85690]   WARN - ins.io.ChannelExceptionHandler - Connection reset
java.net.SocketException: Connection reset
 at java.net.SocketInputStream.read(SocketInputStream.java:196)
 at java.net.SocketInputStream.read(SocketInputStream.java:122)
 at java.net.SocketInputStream.read(SocketInputStream.java:108)
 at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:297)
 at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:861)
 at io.netty.channel.oio.OioByteStreamChannel.doReadBytes(OioByteStreamChannel.java:111)
 at io.netty.channel.socket.oio.OioSocketChannel.doReadBytes(OioSocketChannel.java:138)
 at io.netty.channel.oio.AbstractOioByteChannel.doRead(AbstractOioByteChannel.java:83)
 at io.netty.channel.oio.AbstractOioChannel$1.run(AbstractOioChannel.java:40)
 at io.netty.channel.ThreadPerChannelEventLoop.run(ThreadPerChannelEventLoop.java:38)
 at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:799)
 at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:419)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:724)
 at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149)
-----------------------------------------------------

Any ideas?


5 comments

More info on my environment:

Windows Server 2012R2 x64
Node.js 0.11.13 x64

My proigram runs without breakpoints fine in both Webstorm and directly against node.exe.  It is only when I hit a breakpoint and pause that it disconnects from the process.

One observation:  It appear as though Webstorm is running runnerw.exe in 32 bit mode and then launching node.js as an x64.  I assume that they are communicating over sockets so it shouldn't make a difference but my understanding might be incorrect.

Thanks to anyone with some insights.

0

More things I tried to solve this problem:

- ran node.js in both x64 and x32 mode
- ran Webstorm in both x64 (via WebStorm.bat) and x32 mode
- ran as Administrator
- ensured my source directory allows Full Control to all Users.

Same SocketException occurs after hitting first breakpoint.

0

Please check if the workaround from http://youtrack.jetbrains.com/issue/WEB-11779#comment=27-731172 helps

Node 0.11.14 seems to include some fixes (see https://github.com/joyent/node/pull/7519). For now I can suggest using stable Node versions (0.10.*)

0

Reverted to node.js 0.10.28 and stopping at breakpoints now works!

Has WebStorm been tested with node.js 0.11.x?  On Windows?

0

We do not test WebStorm with each and every Node version (they are issued quite often, and certainly their release cycle is not syncrinized with ours in any way), especially with non-stable updates

0

Please sign in to leave a comment.