Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading to AGP 8.x breaks Netty somehow #107

Open
grote opened this issue Sep 11, 2023 · 1 comment
Open

Upgrading to AGP 8.x breaks Netty somehow #107

grote opened this issue Sep 11, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@grote
Copy link
Collaborator

grote commented Sep 11, 2023

Upgrading the Android Gradle Plugin to 8.x (e.g. af97116) causes Netty to present some wierdness. At some point it stops to answer requests and logs those exceptions:

i.n.c.Defa...elPipeline org.onionshare.android               W  An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.io.netty.channel.ChannelPipelineException: io.ktor.server.netty.NettyChannelInitializer is not a @Sharable handler, so can't be added or removed multiple times.
                 	at io.netty.channel.DefaultChannelPipeline.checkMultiplicity(DefaultChannelPipeline.java:600)
                 	at io.netty.channel.DefaultChannelPipeline.addLast(DefaultChannelPipeline.java:202)
                 	at io.netty.channel.DefaultChannelPipeline.addLast(DefaultChannelPipeline.java:381)
                 	at io.netty.channel.DefaultChannelPipeline.addLast(DefaultChannelPipeline.java:370)
                 	at io.netty.bootstrap.ServerBootstrap$ServerBootstrapAcceptor.channelRead(ServerBootstrap.java:209)
                 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
                 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
                 	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
                 	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
                 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
                 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
                 	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
                 	at io.netty.channel.nio.AbstractNioMessageChannel$NioMessageUnsafe.read(AbstractNioMessageChannel.java:97)
                 	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)
                 	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
                 	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
                 	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
                 	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
                 	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
                 	at io.ktor.server.netty.EventLoopGroupProxy$Companion.create$lambda$1$lambda$0(NettyApplicationEngine.kt:296)
                 	at io.ktor.server.netty.EventLoopGroupProxy$Companion.$r8$lambda$XgnKz7L6tCWRUaIAa7SVURwtFE4(NettyApplicationEngine.kt:0)
                 	at io.ktor.server.netty.EventLoopGroupProxy$Companion$$ExternalSyntheticLambda1.run(R8$$SyntheticClass:0)
                 	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
                 	at java.lang.Thread.run(Thread.java:1012)
@grote grote added the bug Something isn't working label Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant