{"action":"created","issue":{"url":"https://api.github.com/repos/CorfuDB/CorfuDB/issues/211","repository_url":"https://api.github.com/repos/CorfuDB/CorfuDB","labels_url":"https://api.github.com/repos/CorfuDB/CorfuDB/issues/211/labels{/name}","comments_url":"https://api.github.com/repos/CorfuDB/CorfuDB/issues/211/comments","events_url":"https://api.github.com/repos/CorfuDB/CorfuDB/issues/211/events","html_url":"https://github.com/CorfuDB/CorfuDB/issues/211","id":170505412,"number":211,"title":"NettClientRouter decoder: readerIndex(96) + length(1) exceeds writerIndex(96)","user":{"login":"slfritchie","id":75320,"avatar_url":"https://avatars.githubusercontent.com/u/75320?v=3","gravatar_id":"","url":"https://api.github.com/users/slfritchie","html_url":"https://github.com/slfritchie","followers_url":"https://api.github.com/users/slfritchie/followers","following_url":"https://api.github.com/users/slfritchie/following{/other_user}","gists_url":"https://api.github.com/users/slfritchie/gists{/gist_id}","starred_url":"https://api.github.com/users/slfritchie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slfritchie/subscriptions","organizations_url":"https://api.github.com/users/slfritchie/orgs","repos_url":"https://api.github.com/users/slfritchie/repos","events_url":"https://api.github.com/users/slfritchie/events{/privacy}","received_events_url":"https://api.github.com/users/slfritchie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CorfuDB/CorfuDB/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-10T20:01:47Z","updated_at":"2016-08-10T21:45:20Z","closed_at":null,"body":"Version:  0.1+922 (I think I installed it in April/May ... may _not_ be accurate, sorry, submitted on behalf of Johnny)\r\n\r\nThe situation is this: I’m using StreamView, I sent 25 messages (different stream ids), each around 20Mb, there is no error during send. During reading, the following exception is thrown (see below). The trigger of this problem seems like the number of messages, I.e. I don’t get this problem when I’m sending only 10 messages (this problem actually did not initially happen for 25 messages, but for 75 messages, it just started happening for 25 messages recently).\r\n\r\n    [2016-08-10 11:20:10,978] ERROR Exception during channel handling. (org.corfudb.runtime.clients.NettyClientRouter)\r\n    io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(96) + length(1) exceeds writerIndex(96): SlicedAbstractByteBuf(ridx: 96, widx: 96, cap: 96/96, unwrapped: UnpooledUnsafeDirectByteBuf(ridx: 100, widx: 100, cap: 65536))\r\n    at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:418)\r\n    at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:245)\r\n    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:292)\r\n    at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:32)\r\n    at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:283)\r\n    at io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:36)\r\n    at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)\r\n    at java.lang.Thread.run(Thread.java:745)\r\n    Caused by: java.lang.IndexOutOfBoundsException: readerIndex(96) + length(1) exceeds writerIndex(96): SlicedAbstractByteBuf(ridx: 96, widx: 96, cap: 96/96, unwrapped: UnpooledUnsafeDirectByteBuf(ridx: 100, widx: 100, cap: 65536))\r\n    at io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1178)\r\n    at io.netty.buffer.AbstractByteBuf.readByte(AbstractByteBuf.java:587)\r\n    at org.corfudb.protocols.wireprotocol.LogUnitReadResponseMsg.fromBuffer(LogUnitReadResponseMsg.java:150)\r\n    at org.corfudb.protocols.wireprotocol.CorfuMsg.deserialize(CorfuMsg.java:166)\r\n    at org.corfudb.protocols.wireprotocol.NettyCorfuMessageDecoder.decode(NettyCorfuMessageDecoder.java:20)\r\n    at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:387)\r\n    ... 7 more\r\n"},"comment":{"url":"https://api.github.com/repos/CorfuDB/CorfuDB/issues/comments/239014535","html_url":"https://github.com/CorfuDB/CorfuDB/issues/211#issuecomment-239014535","issue_url":"https://api.github.com/repos/CorfuDB/CorfuDB/issues/211","id":239014535,"user":{"login":"slfritchie","id":75320,"avatar_url":"https://avatars.githubusercontent.com/u/75320?v=3","gravatar_id":"","url":"https://api.github.com/users/slfritchie","html_url":"https://github.com/slfritchie","followers_url":"https://api.github.com/users/slfritchie/followers","following_url":"https://api.github.com/users/slfritchie/following{/other_user}","gists_url":"https://api.github.com/users/slfritchie/gists{/gist_id}","starred_url":"https://api.github.com/users/slfritchie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slfritchie/subscriptions","organizations_url":"https://api.github.com/users/slfritchie/orgs","repos_url":"https://api.github.com/users/slfritchie/repos","events_url":"https://api.github.com/users/slfritchie/events{/privacy}","received_events_url":"https://api.github.com/users/slfritchie/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T21:45:20Z","updated_at":"2016-08-10T21:45:20Z","body":"Update: I've managed to provoke the same exception while using the `master` branch at commit 2e68756c1107be308e8ddca89212629b07d4abc0, both server-side and client-side code.\r\n\r\nAlso worthwhile noting that when the above error happens on the client-side, the server side also registers an error on the console.  It isn't clear to me which error happens first.\r\n\r\n    14:43:02.679 ERROR [event-0] o.c.p.w.NettyCorfuMessageEncoder - Error during serialization!\r\n     io.netty.util.IllegalReferenceCountException: refCnt: 0\r\n            at io.netty.buffer.AbstractByteBuf.ensureAccessible(AbstractByteBuf.java:1189)\r\n"}}
{"actor":{"display_login":"slfritchie"}}