[bisq-network/bisq] bisq v1.6.5 hanged on shutdown attemp (#5561)

Christoph Atteneder notifications at github.com
Tue Jun 29 09:33:11 CEST 2021


> still experienced this errors with v1.7.0 while dao sync was in proggress
> 
> ![heap](https://user-images.githubusercontent.com/79169291/123734757-76336480-d88d-11eb-9cbb-6b1eaad60cf5.png)
> ![quithang](https://user-images.githubusercontent.com/79169291/123734768-792e5500-d88d-11eb-90ca-ffdd7e414bfe.png)
> 
> ```
> 
> [Thread-9] INFO  b.c.a.BisqExecutable: Start graceful shutDown 
> [Thread-9] INFO  b.c.a.BisqExecutable: OpenOfferManager shutdown started 
> [Thread-9] INFO  b.c.o.OpenOfferManager: Remove open offers at shutDown. Number of open offers: 0 
> [Thread-9] INFO  b.c.a.BisqExecutable: OpenOfferManager shutdown completed 
> [Thread-9] INFO  b.c.b.s.WalletsSetup: walletConfig shutDown started 
> [ STOPPING] INFO  b.c.b.s.WalletConfig: BtcWallet saved to file 
> [ STOPPING] INFO  b.c.b.s.WalletConfig: BsqWallet saved to file 
> [ STOPPING] INFO  b.c.b.s.WalletConfig: SPV file closed 
> [ STOPPING] INFO  o.b.c.PeerGroup: Awaiting PeerGroup shutdown ... 
> [PeerGroup Thread] INFO  o.b.c.PeerGroup: Stopping ... 
> [PeerGroup Thread] ERROR o.b.c.PeerGroup: Exception when shutting down java.lang.IllegalStateException: Expected the service NioClientManager [FAILED] to be TERMINATED, but the service has FAILED
> 	at com.google.common.util.concurrent.AbstractService.checkCurrentState(AbstractService.java:366)
> 	at com.google.common.util.concurrent.AbstractService.awaitTerminated(AbstractService.java:329)
> 	at com.google.common.util.concurrent.AbstractExecutionThreadService.awaitTerminated(AbstractExecutionThreadService.java:223)
> 	at org.bitcoinj.core.PeerGroup$10.run(PeerGroup.java:1155)
> 	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
> 	at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125)
> 	at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:69)
> 	at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78)
> 	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
> 	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
> 	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
> 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> 	at org.bitcoinj.utils.ContextPropagatingThreadFactory$1.run(ContextPropagatingThreadFactory.java:51)
> 	at java.base/java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.OutOfMemoryError: Java heap space
> 
> [ STOPPING] INFO  o.b.c.PeerGroup: ... took 1.434 ms 
> [ STOPPING] INFO  b.c.b.s.WalletConfig: PeerGroup stopped 
> [Thread-9] INFO  b.c.b.s.WalletsSetup: walletConfig shutDown completed 
> [Thread-9] INFO  b.c.a.BisqExecutable: WalletsSetup shutdown completed 
> [pool-163-thread-1] ERROR b.n.p.n.ProtoOutputStream: Failed to write envelope java.net.SocketException: An established connection was aborted by the software in your host machine
> 	at java.base/sun.nio.ch.NioSocketImpl.implWrite(Unknown Source)
> 	at java.base/sun.nio.ch.NioSocketImpl.write(Unknown Source)
> 	at java.base/sun.nio.ch.NioSocketImpl$2.write(Unknown Source)
> 	at java.base/java.net.Socket$SocketOutputStream.write(Unknown Source)
> 	at com.google.protobuf.CodedOutputStream$OutputStreamEncoder.doFlush(CodedOutputStream.java:3062)
> 	at com.google.protobuf.CodedOutputStream$OutputStreamEncoder.flushIfNotAvailable(CodedOutputStream.java:3057)
> 	at com.google.protobuf.CodedOutputStream$OutputStreamEncoder.writeInt32(CodedOutputStream.java:2726)
> 	at protobuf.RefreshOfferMessage.writeTo(RefreshOfferMessage.java:170)
> 	at com.google.protobuf.CodedOutputStream$OutputStreamEncoder.writeMessageNoTag(CodedOutputStream.java:2855)
> 	at com.google.protobuf.CodedOutputStream$OutputStreamEncoder.writeMessage(CodedOutputStream.java:2824)
> 	at protobuf.NetworkEnvelope.writeTo(NetworkEnvelope.java:2528)
> 	at com.google.protobuf.AbstractMessageLite.writeDelimitedTo(AbstractMessageLite.java:95)
> 	at bisq.network.p2p.network.ProtoOutputStream.writeEnvelopeOrThrow(ProtoOutputStream.java:63)
> 	at bisq.network.p2p.network.ProtoOutputStream.writeEnvelope(ProtoOutputStream.java:46)
> 	at bisq.network.p2p.network.SynchronizedProtoOutputStream.lambda$writeEnvelope$0(SynchronizedProtoOutputStream.java:47)
> 	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
> 	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
> 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> 	at java.base/java.lang.Thread.run(Unknown Source)
> 
> [JavaFX Application Thread] INFO  b.n.p.n.TorNetworkNode: Tor has been created already so we can shut it down. 
> [InputHandler-wizseed3d376esppbmbjxk2fhk2jg5fpucddrzj2kxtbxbx4vrnwclad.onion:8000] INFO  b.c.d.n.m.GetBlocksResponse: Received a GetBlocksResponse with 1480 blocks and 1762.895 kB size 
> [JavaFX Application Thread] ERROR b.n.p.n.TorNetworkNode: Shutdown torNetworkNode failed with exception: We did not receive a response within one minute of waiting. 
> [JavaFX Application Thread] INFO  b.n.p.n.NetworkNode: Shutdown 6 connections 
> [JavaFX Application Thread] INFO  b.c.ClockWatcher: We have been in standby mode for 119 sec 
> [JavaFX Application Thread] WARN  b.c.a.BisqExecutable: Graceful shut down not completed in 20 sec. We trigger our timeout handler. 
> [JavaFX Application Thread] ERROR b.n.p.n.TorNetworkNode: A timeout occurred at shutDown 
> [JavaFX Application Thread] INFO  b.c.a.BisqExecutable: P2PService shutdown completed 
> [JavaFX Application Thread] INFO  b.c.p.PersistenceManager: Start flushAllDataToDisk 
> [JavaFX Application Thread] WARN  b.c.p.PersistenceManager: We got flushAllDataToDisk called again. This can happen in some rare cases. We ignore the repeated call. 
> [JavaFX Application Thread] WARN  b.n.p.n.TorNetworkNode: We got called shutDown again and ignore it. 
> [JavaFX Application Thread] INFO  b.n.p.n.NetworkNode: Shutdown of node Optional[wizseed3d376esppbmbjxk2fhk2jg5fpucddrzj2kxtbxbx4vrnwclad.onion:8000] completed 
> [JavaFX Application Thread] INFO  b.n.p.n.NetworkNode: Shutdown completed with all connections closed 
> [JavaFX Application Thread] INFO  b.c.p.PersistenceManager: flushAllDataToDisk completed 
> [JavaFX Application Thread] INFO  b.c.a.BisqExecutable: Graceful shutdown resulted in a timeout. Exiting now. 
> ```

Could you try to allocate more RAM to see if this prevents the Java heap space issue? https://bisq.wiki/Reducing_memory_usage

I haven't changed the default configuration for this release already as I wanted to get more data on different config results and do some memory profiling in case we introduced some memory leak in one of the last versions.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/issues/5561#issuecomment-870349455
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20210629/e4e043c7/attachment-0001.htm>


More information about the bisq-github mailing list