BindException when debug and release versions are running at the same time
2023-02-14 13:46:49.069 13109-13109 o.b.m.a.StatusManager org.briarproject.mailbox.debug I [main] state: StartedSettingUp
2023-02-14 13:46:49.166 13109-13191 o.b.m.c.t....tTorPlugin org.briarproject.mailbox.debug I [Thread-6] V3 descriptor uploaded
2023-02-14 13:46:49.210 13109-13191 o.b.m.c.t....tTorPlugin org.briarproject.mailbox.debug I [Thread-6] V3 descriptor uploaded
2023-02-14 13:46:49.309 13109-13191 o.b.m.c.t....tTorPlugin org.briarproject.mailbox.debug I [Thread-6] V3 descriptor uploaded
2023-02-14 13:46:49.459 13109-13191 o.b.m.c.t....tTorPlugin org.briarproject.mailbox.debug I [Thread-6] V3 descriptor uploaded
2023-02-14 13:46:50.103 13109-13191 o.b.m.c.t....tTorPlugin org.briarproject.mailbox.debug I [Thread-6] V3 descriptor uploaded
2023-02-14 13:46:50.103 13109-13191 o.b.m.c.t....tTorPlugin org.briarproject.mailbox.debug I [Thread-6] V3 descriptor uploaded
2023-02-14 13:46:50.211 13109-13191 o.b.m.c.t....tTorPlugin org.briarproject.mailbox.debug I [Thread-6] V3 descriptor uploaded
2023-02-14 13:46:51.757 13109-13191 o.b.m.c.t....tTorPlugin org.briarproject.mailbox.debug I [Thread-6] V3 descriptor uploaded
2023-02-14 13:46:53.896 13109-13191 o.b.m.c.t....tTorPlugin org.briarproject.mailbox.debug I [Thread-6] V3 descriptor uploaded
2023-02-14 13:46:55.160 13109-13191 o.b.m.c.t....tTorPlugin org.briarproject.mailbox.debug I [Thread-6] V3 descriptor uploaded
2023-02-14 13:46:56.460 13109-13191 o.b.m.c.t....tTorPlugin org.briarproject.mailbox.debug I [Thread-6] V3 descriptor uploaded
2023-02-14 13:46:57.786 13109-13191 o.b.m.c.t....tTorPlugin org.briarproject.mailbox.debug I [Thread-6] V3 descriptor uploaded
2023-02-14 13:47:00.449 13109-13191 o.b.m.c.t....tTorPlugin org.briarproject.mailbox.debug I [Thread-6] V3 descriptor uploaded
2023-02-14 13:47:30.228 13109-13176 o.b.m.c.s....leWakeLock org.briarproject.mailbox.debug I [pool-1-thread-1] Renewing wake lock org.briarproject.mailbox.debug
2023-02-14 13:47:30.229 13109-13176 o.b.m.c.s....leWakeLock org.briarproject.mailbox.debug V [pool-1-thread-1] Wake lock org.briarproject.mailbox.debug has 2 holders
2023-02-14 13:48:30.242 13109-13176 o.b.m.c.s....leWakeLock org.briarproject.mailbox.debug I [pool-1-thread-1] Renewing wake lock org.briarproject.mailbox.debug
2023-02-14 13:48:30.243 13109-13176 o.b.m.c.s....leWakeLock org.briarproject.mailbox.debug V [pool-1-thread-1] Wake lock org.briarproject.mailbox.debug has 2 holders
2023-02-14 13:49:23.338 14060-14108 AndroidRuntime pid-14060 E FATAL EXCEPTION: AndroidExecutor
Process: org.briarproject.mailbox, PID: 14060
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:454)
at sun.nio.ch.Net.bind(Net.java:446)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:32)
at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:114)
at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:3)
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:40)
at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:5)
at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:15)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:17)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:204)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:35)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:11)
at io.ktor.server.netty.EventLoopGroupProxy$Companion$$ExternalSyntheticLambda1.run(R8$$SyntheticClass:20)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:3)
at java.lang.Thread.run(Thread.java:761)
2023-02-14 13:49:23.342 1274-3841 ActivityManager pid-1274 E App crashed! Process: org.briarproject.mailbox
at java.lang.Thread.run(Thread.java:761)
It looks like this is thrown after the hidden service has been published, so it's not the Tor port that's causing the conflict.