go-lang-plugin-org / go-lang-idea-plugin

Google Go language IDE built using the IntelliJ Platform
https://plugins.jetbrains.com/plugin/5047
Other
4.56k stars 571 forks source link

NFE when debugging in delve #2706

Closed dlsniper closed 8 years ago

dlsniper commented 8 years ago

Please answer the following before submitting your issue:

Note: Please include any substantial examples (debug session output, stacktraces, etc) as linked gists.

with log having below exception (see PC value)

2016-08-02 15:55:18,129 [1531626] INFO - #com.goide.dlv.DlvVm - OUT: {"method":"RPCServer.Command","params":[{"Name":"continue"}],"id":1} 
2016-08-02 15:55:18,150 [1531647] INFO - #com.goide.dlv.DlvVm - IN: {"id":1,"result":{"currentThread":{"id":19340,"pc":8791751565421,"file":"","line":0,"goroutineID":0,"breakPointInfo":null},"Threads":[{"id":19340,"pc":8791751565421,"file":"","line":0,"goroutineID":0,"breakPointInfo":null}],"NextInProgress":false,"exited":false,"exitStatus":0},"error":null} 
2016-08-02 15:55:18,188 [1531685] INFO - #com.goide.dlv.DlvDebugProcess - java.lang.NumberFormatException: Expected an int but was 8791751565421 at line 1 column 48 path $.currentThread.pc 
com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: Expected an int but was 8791751565421 at line 1 column 48 path $.currentThread.pc
at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:249)
at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:239)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:117)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:217)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:117)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:217)
at com.google.gson.Gson.fromJson(Gson.java:861)
at com.goide.dlv.DlvCommandProcessor.readResult(DlvCommandProcessor.java:84)
at com.goide.dlv.DlvCommandProcessor.readResult(DlvCommandProcessor.java:36)
at org.jetbrains.rpc.RequestPromise.onSuccess(CommandSenderBase.kt:45)
at com.goide.dlv.DlvCommandProcessor.call(DlvCommandProcessor.java:59)
at com.goide.dlv.DlvCommandProcessor.call(DlvCommandProcessor.java:36)
at org.jetbrains.rpc.MessageManager.processIncoming(MessageManager.kt:102)
at com.goide.dlv.DlvCommandProcessor.processIncomingJson(DlvCommandProcessor.java:53)
at com.goide.dlv.DlvVm$2.messageReceived(DlvVm.java:61)
at org.jetbrains.io.SimpleChannelInboundHandlerAdapter.channelRead0(SimpleChannelInboundHandlerAdapter.java:20)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:334)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:326)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:334)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:326)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1320)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:334)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:905)
at io.netty.channel.oio.AbstractOioByteChannel.doRead(AbstractOioByteChannel.java:162)
at io.netty.channel.oio.AbstractOioChannel$1.run(AbstractOioChannel.java:38)
at io.netty.channel.ThreadPerChannelEventLoop.run(ThreadPerChannelEventLoop.java:67)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:742)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NumberFormatException: Expected an int but was 8791751565421 at line 1 column 48 path $.currentThread.pc
at com.google.gson.stream.JsonReader.nextInt(JsonReader.java:1179)
at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:247)
... 35 more
2016-08-02 15:57:41,101 [1674598] INFO - #com.goide.dlv.DlvVm - OUT: {"method":"RPCServer.CreateBreakpoint","params":[{"file":"C:/Users/f059375/myGo/HelloWorld/src/hello.go","line":6}],"id":2} 
2016-08-02 15:57:41,211 [1674708] INFO - #com.goide.dlv.DlvVm - IN: {"id":2,"result":{"id":1,"name":"","addr":4198497,"file":"C:/Users/f059375/myGo/HelloWorld/src/hello.go","line":6,"functionName":"main.main","Cond":"","continue":false,"goroutine":false,"stacktrace":0,"LoadArgs":null,"LoadLocals":null,"hitCount":{},"totalHitCount":0},"error":null}

Cross-ref from here: https://github.com/derekparker/delve/issues/606

dlsniper commented 8 years ago

Closing as duplicate of: https://github.com/go-lang-plugin-org/go-lang-idea-plugin/issues/2706

ignatov commented 8 years ago

Duplicate of what? :)

dlsniper commented 8 years ago

sorry, #2707