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

RSB Spread Shutdown Deadlock #57

Closed
DivineThreepwood opened this issue Jun 17, 2019 · 2 comments
Closed

RSB Spread Shutdown Deadlock #57

DivineThreepwood opened this issue Jun 17, 2019 · 2 comments
Assignees

Comments

@DivineThreepwood
Copy link
Member

Sometime apps block forever during shutdown because spread seems not to be thread save.
Checkout the following Stacktrace:

"main" #1 prio=5 os_prio=31 cpu=1262.21ms elapsed=354.50s tid=0x00007fde57817000 nid=0x2303 waiting on condition  [0x000070000744d000]
   java.lang.Thread.State: WAITING (parking)
	at jdk.internal.misc.Unsafe.park([email protected]/Native Method)
	- parking to wait for  <0x00000007805adc00> (a java.util.concurrent.CountDownLatch$Sync)
	at java.util.concurrent.locks.LockSupport.park([email protected]/LockSupport.java:194)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt([email protected]/AbstractQueuedSynchronizer.java:885)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly([email protected]/AbstractQueuedSynchronizer.java:1039)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly([email protected]/AbstractQueuedSynchronizer.java:1345)
	at java.util.concurrent.CountDownLatch.await([email protected]/CountDownLatch.java:232)
	at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:213)
	at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:156)
	at javafx.application.Application.launch(Application.java:227)
	at org.openbase.bco.bcozy.BCozyLauncher.main(BCozyLauncher.java:72)

"Reference Handler" #2 daemon prio=10 os_prio=31 cpu=4.94ms elapsed=354.48s tid=0x00007fde57895000 nid=0x4b03 waiting on condition  [0x0000700007b62000]
   java.lang.Thread.State: RUNNABLE
	at java.lang.ref.Reference.waitForReferencePendingList([email protected]/Native Method)
	at java.lang.ref.Reference.processPendingReferences([email protected]/Reference.java:241)
	at java.lang.ref.Reference$ReferenceHandler.run([email protected]/Reference.java:213)

"Finalizer" #3 daemon prio=8 os_prio=31 cpu=0.37ms elapsed=354.48s tid=0x00007fde57897800 nid=0x3803 in Object.wait()  [0x0000700007c65000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait([email protected]/Native Method)
	- waiting on <0x00000007803bafe0> (a java.lang.ref.ReferenceQueue$Lock)
	at java.lang.ref.ReferenceQueue.remove([email protected]/ReferenceQueue.java:155)
	- waiting to re-lock in wait() <0x00000007803bafe0> (a java.lang.ref.ReferenceQueue$Lock)
	at java.lang.ref.ReferenceQueue.remove([email protected]/ReferenceQueue.java:176)
	at java.lang.ref.Finalizer$FinalizerThread.run([email protected]/Finalizer.java:170)

"Signal Dispatcher" #4 daemon prio=9 os_prio=31 cpu=1.51ms elapsed=354.47s tid=0x00007fde5788c000 nid=0x3d03 waiting on condition  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread0" #5 daemon prio=9 os_prio=31 cpu=36644.52ms elapsed=354.47s tid=0x00007fde5789a800 nid=0x3f03 waiting on condition  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE
   No compile task

"C1 CompilerThread0" #7 daemon prio=9 os_prio=31 cpu=12108.92ms elapsed=354.47s tid=0x00007fde578a7800 nid=0x4203 waiting on condition  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE
   No compile task

"Sweeper thread" #8 daemon prio=9 os_prio=31 cpu=342.21ms elapsed=354.47s tid=0x00007fde578a8800 nid=0x5703 runnable  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Service Thread" #9 daemon prio=9 os_prio=31 cpu=0.06ms elapsed=354.41s tid=0x00007fde57905800 nid=0x5803 runnable  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Common-Cleaner" #10 daemon prio=8 os_prio=31 cpu=6.17ms elapsed=354.40s tid=0x00007fde5702f000 nid=0xa503 in Object.wait()  [0x000070000837a000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait([email protected]/Native Method)
	- waiting on 
	at java.lang.ref.ReferenceQueue.remove([email protected]/ReferenceQueue.java:155)
	- waiting to re-lock in wait() <0x00000007803bbb30> (a java.lang.ref.ReferenceQueue$Lock)
	at jdk.internal.ref.CleanerImpl.run([email protected]/CleanerImpl.java:148)
	at java.lang.Thread.run([email protected]/Thread.java:834)
	at jdk.internal.misc.InnocuousThread.run([email protected]/InnocuousThread.java:134)

"JavaFX-Launcher" #13 prio=5 os_prio=31 cpu=124.56ms elapsed=352.94s tid=0x00007fde57607800 nid=0xa203 waiting on condition  [0x0000700008683000]
   java.lang.Thread.State: WAITING (parking)
	at jdk.internal.misc.Unsafe.park([email protected]/Native Method)
	- parking to wait for  <0x0000000790780000> (a java.util.concurrent.CountDownLatch$Sync)
	at java.util.concurrent.locks.LockSupport.park([email protected]/LockSupport.java:194)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt([email protected]/AbstractQueuedSynchronizer.java:885)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly([email protected]/AbstractQueuedSynchronizer.java:1039)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly([email protected]/AbstractQueuedSynchronizer.java:1345)
	at java.util.concurrent.CountDownLatch.await([email protected]/CountDownLatch.java:232)
	at com.sun.javafx.application.PlatformImpl.runAndWait(PlatformImpl.java:466)
	at com.sun.javafx.application.PlatformImpl.runAndWait(PlatformImpl.java:440)
	at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:863)
	at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
	at com.sun.javafx.application.LauncherImpl$$Lambda$55/0x0000000800179040.run(Unknown Source)
	at java.lang.Thread.run([email protected]/Thread.java:834)

"InvokeLaterDispatcher" #16 daemon prio=5 os_prio=31 cpu=1533.56ms elapsed=352.57s tid=0x00007fde57c8d000 nid=0x6c03 in Object.wait()  [0x0000700008889000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait([email protected]/Native Method)
	- waiting on 
	at java.lang.Object.wait([email protected]/Object.java:328)
	at com.sun.glass.ui.InvokeLaterDispatcher.run(InvokeLaterDispatcher.java:127)
	- waiting to re-lock in wait() <0x00000007805ae5d8> (a java.lang.StringBuilder)

"JavaFX Application Thread" #17 prio=5 os_prio=31 cpu=18436.13ms elapsed=352.57s tid=0x00007fde57d1c800 nid=0x307 in Object.wait()  [0x00007ffeea2bf000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait([email protected]/Native Method)
	- waiting on 
	at java.lang.Thread.join([email protected]/Thread.java:1305)
	- waiting to re-lock in wait() <0x0000000781bd19a0> (a org.openbase.jul.iface.Shutdownable$ShutdownDaemon)
	at java.lang.Thread.join([email protected]/Thread.java:1379)
	at java.lang.ApplicationShutdownHooks.runHooks([email protected]/ApplicationShutdownHooks.java:107)
	at java.lang.ApplicationShutdownHooks$1.run([email protected]/ApplicationShutdownHooks.java:46)
	at java.lang.Shutdown.runHooks([email protected]/Shutdown.java:130)
	at java.lang.Shutdown.exit([email protected]/Shutdown.java:174)
	- locked <0x0000000780814d78> (a java.lang.Class for java.lang.Shutdown)
	at java.lang.Runtime.exit([email protected]/Runtime.java:115)
	at java.lang.System.exit([email protected]/System.java:1746)
	at org.openbase.bco.bcozy.BCozy.stop(BCozy.java:279)
	at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$10(LauncherImpl.java:865)
	at com.sun.javafx.application.LauncherImpl$$Lambda$973/0x00000008007ff440.run(Unknown Source)
	at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
	at com.sun.javafx.application.PlatformImpl$$Lambda$107/0x00000008001ed840.run(Unknown Source)
	at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
	at com.sun.javafx.application.PlatformImpl$$Lambda$109/0x00000008001ed040.run(Unknown Source)
	at java.security.AccessController.doPrivileged([email protected]/Native Method)
	at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
	at com.sun.javafx.application.PlatformImpl$$Lambda$108/0x00000008001edc40.run(Unknown Source)
	at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)

"Thread-4" #18 daemon prio=5 os_prio=31 cpu=-0.00ms elapsed=352.40s tid=0x00007fde57d7d000 nid=0xb503 runnable  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Prism Font Disposer" #33 daemon prio=10 os_prio=31 cpu=1.38ms elapsed=351.51s tid=0x00007fde56b9c800 nid=0x11d03 in Object.wait()  [0x00007000096b9000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait([email protected]/Native Method)
	- waiting on 
	at java.lang.ref.ReferenceQueue.remove([email protected]/ReferenceQueue.java:155)
	- waiting to re-lock in wait() <0x0000000780886648> (a java.lang.ref.ReferenceQueue$Lock)
	at java.lang.ref.ReferenceQueue.remove([email protected]/ReferenceQueue.java:176)
	at com.sun.javafx.font.Disposer.run(Disposer.java:93)
	at java.lang.Thread.run([email protected]/Thread.java:834)

"Cleaner-0" #101 daemon prio=8 os_prio=31 cpu=0.71ms elapsed=348.55s tid=0x00007fde59915000 nid=0x1a603 in Object.wait()  [0x000070000d676000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait([email protected]/Native Method)
	- waiting on 
	at java.lang.ref.ReferenceQueue.remove([email protected]/ReferenceQueue.java:155)
	- waiting to re-lock in wait() <0x0000000781846cc8> (a java.lang.ref.ReferenceQueue$Lock)
	at jdk.internal.ref.CleanerImpl.run([email protected]/CleanerImpl.java:148)
	at java.lang.Thread.run([email protected]/Thread.java:834)
	at jdk.internal.misc.InnocuousThread.run([email protected]/InnocuousThread.java:134)

"ReceiverTask [grp=#r6508-184#localhost]" #141 prio=7 os_prio=31 cpu=0.75ms elapsed=347.20s tid=0x00007fde5a566800 nid=0x27203 runnable  [0x000070000fe6e000]
   java.lang.Thread.State: RUNNABLE
	at java.net.SocketInputStream.socketRead0([email protected]/Native Method)
	at java.net.SocketInputStream.socketRead([email protected]/SocketInputStream.java:115)
	at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:168)
	at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:140)
	at spread.SpreadConnection.readBytesFromSocketListener(SpreadConnection.java:337)
	at spread.SpreadConnection.internal_receive(SpreadConnection.java:1116)
	at spread.SpreadConnection.receive(SpreadConnection.java:1094)
	- locked <0x0000000781980ff0> (a java.lang.Object)
	at rsb.transport.spread.SpreadWrapperImpl.receive(SpreadWrapperImpl.java:274)
	at rsb.transport.spread.ReceiverTask.run(ReceiverTask.java:134)

"ReceiverTask [grp=#r5733-188#localhost]" #151 prio=7 os_prio=31 cpu=3.84ms elapsed=346.89s tid=0x00007fde5cae0000 nid=0x25c03 runnable  [0x000070001088c000]
   java.lang.Thread.State: RUNNABLE
	at java.net.SocketInputStream.socketRead0([email protected]/Native Method)
	at java.net.SocketInputStream.socketRead([email protected]/SocketInputStream.java:115)
	at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:168)
	at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:140)
	at spread.SpreadConnection.readBytesFromSocketListener(SpreadConnection.java:337)
	at spread.SpreadConnection.internal_receive(SpreadConnection.java:1116)
	at spread.SpreadConnection.receive(SpreadConnection.java:1094)
	- locked <0x0000000781ada2b8> (a java.lang.Object)
	at rsb.transport.spread.SpreadWrapperImpl.receive(SpreadWrapperImpl.java:274)
	at rsb.transport.spread.ReceiverTask.run(ReceiverTask.java:134)

"ReceiverTask [grp=#r5195-189#localhost]" #152 prio=7 os_prio=31 cpu=2.77ms elapsed=346.82s tid=0x00007fde5be58800 nid=0x25f03 runnable  [0x000070001098f000]
   java.lang.Thread.State: RUNNABLE
	at java.net.SocketInputStream.socketRead0([email protected]/Native Method)
	at java.net.SocketInputStream.socketRead([email protected]/SocketInputStream.java:115)
	at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:168)
	at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:140)
	at spread.SpreadConnection.readBytesFromSocketListener(SpreadConnection.java:337)
	at spread.SpreadConnection.internal_receive(SpreadConnection.java:1116)
	at spread.SpreadConnection.receive(SpreadConnection.java:1094)
	- locked <0x00000007819a7558> (a java.lang.Object)
	at rsb.transport.spread.SpreadWrapperImpl.receive(SpreadWrapperImpl.java:274)
	at rsb.transport.spread.ReceiverTask.run(ReceiverTask.java:134)

"ReceiverTask [grp=#r306-191#localhost]" #154 prio=7 os_prio=31 cpu=1.75ms elapsed=346.73s tid=0x00007fde5a569800 nid=0x2ac03 runnable  [0x0000700010b95000]
   java.lang.Thread.State: RUNNABLE
	at java.net.SocketInputStream.socketRead0([email protected]/Native Method)
	at java.net.SocketInputStream.socketRead([email protected]/SocketInputStream.java:115)
	at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:168)
	at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:140)
	at spread.SpreadConnection.readBytesFromSocketListener(SpreadConnection.java:337)
	at spread.SpreadConnection.internal_receive(SpreadConnection.java:1116)
	at spread.SpreadConnection.receive(SpreadConnection.java:1094)
	- locked <0x0000000781b4cfc8> (a java.lang.Object)
	at rsb.transport.spread.SpreadWrapperImpl.receive(SpreadWrapperImpl.java:274)
	at rsb.transport.spread.ReceiverTask.run(ReceiverTask.java:134)

"ReceiverTask [grp=#r8267-195#localhost]" #158 prio=7 os_prio=31 cpu=19.53ms elapsed=341.44s tid=0x00007fde5caae000 nid=0xd13 runnable  [0x0000700010fa1000]
   java.lang.Thread.State: RUNNABLE
	at java.net.SocketInputStream.socketRead0([email protected]/Native Method)
	at java.net.SocketInputStream.socketRead([email protected]/SocketInputStream.java:115)
	at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:168)
	at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:140)
	at spread.SpreadConnection.readBytesFromSocketListener(SpreadConnection.java:337)
	at spread.SpreadConnection.internal_receive(SpreadConnection.java:1116)
	at spread.SpreadConnection.receive(SpreadConnection.java:1094)
	- locked <0x0000000781f55328> (a java.lang.Object)
	at rsb.transport.spread.SpreadWrapperImpl.receive(SpreadWrapperImpl.java:274)
	at rsb.transport.spread.ReceiverTask.run(ReceiverTask.java:134)

"ReceiverTask [grp=#r5857-198#localhost]" #160 prio=7 os_prio=31 cpu=2.22ms elapsed=340.99s tid=0x00007fde570c6800 nid=0x2b303 runnable  [0x00007000111a7000]
   java.lang.Thread.State: RUNNABLE
	at java.net.SocketInputStream.socketRead0([email protected]/Native Method)
	at java.net.SocketInputStream.socketRead([email protected]/SocketInputStream.java:115)
	at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:168)
	at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:140)
	at spread.SpreadConnection.readBytesFromSocketListener(SpreadConnection.java:337)
	at spread.SpreadConnection.internal_receive(SpreadConnection.java:1116)
	at spread.SpreadConnection.receive(SpreadConnection.java:1094)
	- locked <0x00000007826bbab0> (a java.lang.Object)
	at rsb.transport.spread.SpreadWrapperImpl.receive(SpreadWrapperImpl.java:274)
	at rsb.transport.spread.ReceiverTask.run(ReceiverTask.java:134)

"ReceiverTask [grp=#r5215-202#localhost]" #164 prio=7 os_prio=31 cpu=18.03ms elapsed=334.96s tid=0x00007fde5caee800 nid=0x3460f runnable  [0x00007000115b3000]
   java.lang.Thread.State: RUNNABLE
	at java.net.SocketInputStream.socketRead0([email protected]/Native Method)
	at java.net.SocketInputStream.socketRead([email protected]/SocketInputStream.java:115)
	at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:168)
	at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:140)
	at spread.SpreadConnection.readBytesFromSocketListener(SpreadConnection.java:337)
	at spread.SpreadConnection.internal_receive(SpreadConnection.java:1116)
	at spread.SpreadConnection.receive(SpreadConnection.java:1094)
	- locked <0x0000000783201220> (a java.lang.Object)
	at rsb.transport.spread.SpreadWrapperImpl.receive(SpreadWrapperImpl.java:274)
	at rsb.transport.spread.ReceiverTask.run(ReceiverTask.java:134)

"ReceiverTask [grp=#r9579-207#localhost]" #167 prio=7 os_prio=31 cpu=190.58ms elapsed=330.24s tid=0x00007fde5ccd5000 nid=0x33e03 runnable  [0x00007000118bc000]
   java.lang.Thread.State: RUNNABLE
	at java.net.SocketInputStream.socketRead0([email protected]/Native Method)
	at java.net.SocketInputStream.socketRead([email protected]/SocketInputStream.java:115)
	at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:168)
	at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:140)
	at spread.SpreadConnection.readBytesFromSocketListener(SpreadConnection.java:337)
	at spread.SpreadConnection.internal_receive(SpreadConnection.java:1116)
	at spread.SpreadConnection.receive(SpreadConnection.java:1094)
	- locked <0x00000007831b84d8> (a java.lang.Object)
	at rsb.transport.spread.SpreadWrapperImpl.receive(SpreadWrapperImpl.java:274)
	at rsb.transport.spread.ReceiverTask.run(ReceiverTask.java:134)

"ReceiverTask [grp=#r8367-209#localhost]" #169 prio=7 os_prio=31 cpu=0.92ms elapsed=330.07s tid=0x00007fde5be50800 nid=0x33b03 runnable  [0x0000700011ac2000]
   java.lang.Thread.State: RUNNABLE
	at java.net.SocketInputStream.socketRead0([email protected]/Native Method)
	at java.net.SocketInputStream.socketRead([email protected]/SocketInputStream.java:115)
	at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:168)
	at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:140)
	at spread.SpreadConnection.readBytesFromSocketListener(SpreadConnection.java:337)
	at spread.SpreadConnection.internal_receive(SpreadConnection.java:1116)
	at spread.SpreadConnection.receive(SpreadConnection.java:1094)
	- locked <0x00000007831b8ab8> (a java.lang.Object)
	at rsb.transport.spread.SpreadWrapperImpl.receive(SpreadWrapperImpl.java:274)
	at rsb.transport.spread.ReceiverTask.run(ReceiverTask.java:134)

"ShutdownDaemon[UnitRemotePool]" #102 prio=5 os_prio=31 cpu=68.72ms elapsed=204.80s tid=0x00007fde5a4be800 nid=0x2c803 waiting for monitor entry  [0x00007000120d3000]
   java.lang.Thread.State: BLOCKED (on object monitor)
	at rsb.transport.spread.SpreadMultiReceiver.unsubscribe(SpreadMultiReceiver.java:341)
	- waiting to lock <0x000000078315a520> (a java.util.HashMap)
	at rsb.transport.spread.MultiSpreadInPushConnector.deactivate(MultiSpreadInPushConnector.java:128)
	at rsb.eventprocessing.RouteConfiguratorUtility.deactivate(RouteConfiguratorUtility.java:119)
	- locked <0x0000000783e83d70> (a rsb.eventprocessing.RouteConfiguratorUtility)
	at rsb.eventprocessing.DefaultPushInRouteConfigurator.deactivate(DefaultPushInRouteConfigurator.java:79)
	- locked <0x0000000783e83d70> (a rsb.eventprocessing.RouteConfiguratorUtility)
	at rsb.Listener$StateActive.deactivate(Listener.java:97)
	at rsb.Listener.deactivate(Listener.java:196)
	at org.openbase.jul.extension.rsb.com.RSBSynchronizedParticipant.deactivate(RSBSynchronizedParticipant.java:212)
	- locked <0x0000000782c2dbc8> (a org.openbase.jul.schedule.SyncObject)
	at org.openbase.jul.schedule.WatchDog$Minder.shutdown(WatchDog.java:307)
	at org.openbase.jul.schedule.WatchDog.deactivate(WatchDog.java:112)
	- locked <0x0000000782c2e098> (a org.openbase.jul.schedule.SyncObject)
	at org.openbase.jul.communication.controller.AbstractRemoteClient.deactivate(AbstractRemoteClient.java:491)
	- locked <0x0000000782c2d818> (a org.openbase.jul.schedule.SyncObject)
	at org.openbase.bco.authentication.lib.com.AbstractAuthenticatedConfigurableRemote.deactivate(AbstractAuthenticatedConfigurableRemote.java:85)
	at org.openbase.jul.communication.controller.AbstractRemoteClient.shutdown(AbstractRemoteClient.java:1106)
	at org.openbase.jul.communication.controller.AbstractConfigurableRemote.shutdown(AbstractConfigurableRemote.java:274)
	at org.openbase.bco.dal.remote.layer.unit.AbstractUnitRemote.shutdown(AbstractUnitRemote.java:629)
	at org.openbase.jul.storage.registry.RemoteControllerRegistry.clear(RemoteControllerRegistry.java:50)
	at org.openbase.jul.storage.registry.AbstractRegistry.shutdown(AbstractRegistry.java:1112)
	at org.openbase.bco.dal.remote.layer.unit.Units$2.shutdown(Units.java:234)
	at org.openbase.jul.iface.Shutdownable$ShutdownDaemon.run(Shutdownable.java:113)

"ForkJoinPool.commonPool-worker-3" #194 daemon prio=5 os_prio=31 cpu=60.21ms elapsed=204.79s tid=0x00007fde5a57e800 nid=0x32103 in Object.wait()  [0x0000700012dfa000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait([email protected]/Native Method)
	- waiting on 
	at java.lang.Object.wait([email protected]/Object.java:328)
	at rsb.transport.spread.SpreadReceiver$OneTimeWaitingMembershipHander.waitForMessage(SpreadReceiver.java:106)
	- waiting to re-lock in wait() <0x0000000792cde210> (a java.lang.Object)
	at rsb.transport.spread.SpreadReceiver$StateActive.leave(SpreadReceiver.java:322)
	at rsb.transport.spread.SpreadReceiver.leave(SpreadReceiver.java:415)
	at rsb.transport.spread.SpreadMultiReceiver.manageLeave(SpreadMultiReceiver.java:316)
	- locked <0x000000078315a520> (a java.util.HashMap)
	at rsb.transport.spread.SpreadMultiReceiver.unsubscribe(SpreadMultiReceiver.java:360)
	- locked <0x000000078315a520> (a java.util.HashMap)
	at rsb.transport.spread.MultiSpreadInPushConnector.deactivate(MultiSpreadInPushConnector.java:128)
	at rsb.eventprocessing.RouteConfiguratorUtility.deactivate(RouteConfiguratorUtility.java:119)
	- locked <0x00000007843cff90> (a rsb.eventprocessing.RouteConfiguratorUtility)
	at rsb.eventprocessing.DefaultPushInRouteConfigurator.deactivate(DefaultPushInRouteConfigurator.java:79)
	- locked <0x00000007843cff90> (a rsb.eventprocessing.RouteConfiguratorUtility)
	at rsb.Listener$StateActive.deactivate(Listener.java:97)
	at rsb.Listener.deactivate(Listener.java:196)
	at org.openbase.jul.extension.rsb.com.RSBSynchronizedParticipant.deactivate(RSBSynchronizedParticipant.java:212)
	- locked <0x0000000782ede630> (a org.openbase.jul.schedule.SyncObject)
	at org.openbase.jul.schedule.WatchDog$Minder.shutdown(WatchDog.java:307)
	at org.openbase.jul.schedule.WatchDog.deactivate(WatchDog.java:112)
	- locked <0x0000000782ede730> (a org.openbase.jul.schedule.SyncObject)
	at org.openbase.jul.communication.controller.AbstractRemoteClient.deactivate(AbstractRemoteClient.java:491)
	- locked <0x0000000782ede2c8> (a org.openbase.jul.schedule.SyncObject)
	at org.openbase.bco.authentication.lib.com.AbstractAuthenticatedConfigurableRemote.deactivate(AbstractAuthenticatedConfigurableRemote.java:85)
	at org.openbase.jul.communication.controller.AbstractRemoteClient.shutdown(AbstractRemoteClient.java:1106)
	at org.openbase.jul.communication.controller.AbstractConfigurableRemote.shutdown(AbstractConfigurableRemote.java:274)
	at org.openbase.bco.dal.remote.layer.unit.AbstractUnitRemote.shutdown(AbstractUnitRemote.java:629)
	at org.openbase.bco.dal.remote.layer.unit.Units$2.lambda$shutdown$0(Units.java:226)
	at org.openbase.bco.dal.remote.layer.unit.Units$2$$Lambda$980/0x0000000800801040.accept(Unknown Source)
	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept([email protected]/ForEachOps.java:183)
	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining([email protected]/ArrayList.java:1654)
	at java.util.stream.AbstractPipeline.copyInto([email protected]/AbstractPipeline.java:484)
	at java.util.stream.ForEachOps$ForEachTask.compute([email protected]/ForEachOps.java:290)
	at java.util.concurrent.CountedCompleter.exec([email protected]/CountedCompleter.java:746)
	at java.util.concurrent.ForkJoinTask.doExec([email protected]/ForkJoinTask.java:290)
	at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec([email protected]/ForkJoinPool.java:1020)
	at java.util.concurrent.ForkJoinPool.scan([email protected]/ForkJoinPool.java:1656)
	at java.util.concurrent.ForkJoinPool.runWorker([email protected]/ForkJoinPool.java:1594)
	at java.util.concurrent.ForkJoinWorkerThread.run([email protected]/ForkJoinWorkerThread.java:177)

"ForkJoinPool.commonPool-worker-5" #195 daemon prio=5 os_prio=31 cpu=52.03ms elapsed=204.79s tid=0x00007fde5a583800 nid=0x2d503 waiting on condition  [0x0000700012efe000]
   java.lang.Thread.State: WAITING (parking)
	at jdk.internal.misc.Unsafe.park([email protected]/Native Method)
	- parking to wait for  <0x0000000790718ab0> (a java.util.concurrent.ForkJoinPool)
	at java.util.concurrent.locks.LockSupport.park([email protected]/LockSupport.java:194)
	at java.util.concurrent.ForkJoinPool.runWorker([email protected]/ForkJoinPool.java:1628)
	at java.util.concurrent.ForkJoinWorkerThread.run([email protected]/ForkJoinWorkerThread.java:177)

"ForkJoinPool.commonPool-worker-7" #197 daemon prio=5 os_prio=31 cpu=72.88ms elapsed=204.72s tid=0x00007fde59ef2000 nid=0x41003 waiting for monitor entry  [0x000070001901d000]
   java.lang.Thread.State: BLOCKED (on object monitor)
	at rsb.transport.spread.SpreadMultiReceiver.unsubscribe(SpreadMultiReceiver.java:341)
	- waiting to lock <0x000000078315a520> (a java.util.HashMap)
	at rsb.transport.spread.MultiSpreadInPushConnector.deactivate(MultiSpreadInPushConnector.java:128)
	at rsb.eventprocessing.RouteConfiguratorUtility.deactivate(RouteConfiguratorUtility.java:119)
	- locked <0x00000007907c0770> (a rsb.eventprocessing.RouteConfiguratorUtility)
	at rsb.eventprocessing.DefaultPushInRouteConfigurator.deactivate(DefaultPushInRouteConfigurator.java:79)
	- locked <0x00000007907c0770> (a rsb.eventprocessing.RouteConfiguratorUtility)
	at rsb.Listener$StateActive.deactivate(Listener.java:97)
	at rsb.Listener.deactivate(Listener.java:196)
	at rsb.patterns.Method$StateActive.deactivate(Method.java:83)
	at rsb.patterns.Method.deactivate(Method.java:207)
	at rsb.patterns.Server$StateActive.deactivate(Server.java:77)
	at rsb.patterns.Server.deactivate(Server.java:225)
	- locked <0x0000000782e1c100> (a rsb.patterns.RemoteServer)
	at org.openbase.jul.extension.rsb.com.RSBSynchronizedParticipant.deactivate(RSBSynchronizedParticipant.java:212)
	- locked <0x00000007827bab98> (a org.openbase.jul.schedule.SyncObject)
	at org.openbase.jul.schedule.WatchDog$Minder.shutdown(WatchDog.java:307)
	at org.openbase.jul.schedule.WatchDog.deactivate(WatchDog.java:112)
	- locked <0x00000007827bb8f8> (a org.openbase.jul.schedule.SyncObject)
	at org.openbase.jul.communication.controller.AbstractRemoteClient.deactivate(AbstractRemoteClient.java:495)
	- locked <0x00000007827bace0> (a org.openbase.jul.schedule.SyncObject)
	at org.openbase.bco.authentication.lib.com.AbstractAuthenticatedConfigurableRemote.deactivate(AbstractAuthenticatedConfigurableRemote.java:85)
	at org.openbase.jul.communication.controller.AbstractRemoteClient.shutdown(AbstractRemoteClient.java:1106)
	at org.openbase.jul.communication.controller.AbstractConfigurableRemote.shutdown(AbstractConfigurableRemote.java:274)
	at org.openbase.bco.dal.remote.layer.unit.AbstractUnitRemote.shutdown(AbstractUnitRemote.java:629)
	at org.openbase.bco.dal.remote.layer.unit.Units$2.lambda$shutdown$0(Units.java:226)
	at org.openbase.bco.dal.remote.layer.unit.Units$2$$Lambda$980/0x0000000800801040.accept(Unknown Source)
	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept([email protected]/ForEachOps.java:183)
	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining([email protected]/ArrayList.java:1654)
	at java.util.stream.AbstractPipeline.copyInto([email protected]/AbstractPipeline.java:484)
	at java.util.stream.ForEachOps$ForEachTask.compute([email protected]/ForEachOps.java:290)
	at java.util.concurrent.CountedCompleter.exec([email protected]/CountedCompleter.java:746)
	at java.util.concurrent.ForkJoinTask.doExec([email protected]/ForkJoinTask.java:290)
	at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec([email protected]/ForkJoinPool.java:1020)
	at java.util.concurrent.ForkJoinPool.scan([email protected]/ForkJoinPool.java:1656)
	at java.util.concurrent.ForkJoinPool.runWorker([email protected]/ForkJoinPool.java:1594)
	at java.util.concurrent.ForkJoinWorkerThread.run([email protected]/ForkJoinWorkerThread.java:177)

"SIGINT handler" #904 daemon prio=9 os_prio=31 cpu=0.71ms elapsed=14.43s tid=0x00007fde5d80b800 nid=0x34437 waiting for monitor entry  [0x0000700008786000]
   java.lang.Thread.State: BLOCKED (on object monitor)
	at java.lang.Shutdown.exit([email protected]/Shutdown.java:173)
	- waiting to lock <0x0000000780814d78> (a java.lang.Class for java.lang.Shutdown)
	at java.lang.Terminator$1.handle([email protected]/Terminator.java:51)
	at jdk.internal.misc.Signal$1.run([email protected]/Signal.java:220)
	at java.lang.Thread.run([email protected]/Thread.java:834)

"SIGINT handler" #905 daemon prio=9 os_prio=31 cpu=0.10ms elapsed=14.31s tid=0x00007fde5d818000 nid=0x2b707 waiting for monitor entry  [0x000070000898c000]
   java.lang.Thread.State: BLOCKED (on object monitor)
	at java.lang.Shutdown.exit([email protected]/Shutdown.java:173)
	- waiting to lock <0x0000000780814d78> (a java.lang.Class for java.lang.Shutdown)
	at java.lang.Terminator$1.handle([email protected]/Terminator.java:51)
	at jdk.internal.misc.Signal$1.run([email protected]/Signal.java:220)
	at java.lang.Thread.run([email protected]/Thread.java:834)

"SIGINT handler" #906 daemon prio=9 os_prio=31 cpu=0.11ms elapsed=14.14s tid=0x00007fde57d15000 nid=0x2b007 waiting for monitor entry  [0x0000700008b98000]
   java.lang.Thread.State: BLOCKED (on object monitor)
	at java.lang.Shutdown.exit([email protected]/Shutdown.java:173)
	- waiting to lock <0x0000000780814d78> (a java.lang.Class for java.lang.Shutdown)
	at java.lang.Terminator$1.handle([email protected]/Terminator.java:51)
	at jdk.internal.misc.Signal$1.run([email protected]/Signal.java:220)
	at java.lang.Thread.run([email protected]/Thread.java:834)

"SIGINT handler" #907 daemon prio=9 os_prio=31 cpu=0.17ms elapsed=14.00s tid=0x00007fde5d814800 nid=0x2c20b waiting for monitor entry  [0x0000700008c9b000]
   java.lang.Thread.State: BLOCKED (on object monitor)
	at java.lang.Shutdown.exit([email protected]/Shutdown.java:173)
	- waiting to lock <0x0000000780814d78> (a java.lang.Class for java.lang.Shutdown)
	at java.lang.Terminator$1.handle([email protected]/Terminator.java:51)
	at jdk.internal.misc.Signal$1.run([email protected]/Signal.java:220)
	at java.lang.Thread.run([email protected]/Thread.java:834)

"SIGINT handler" #908 daemon prio=9 os_prio=31 cpu=0.11ms elapsed=13.85s tid=0x00007fde5a533800 nid=0xe60b waiting for monitor entry  [0x0000700008d9e000]
   java.lang.Thread.State: BLOCKED (on object monitor)
	at java.lang.Shutdown.exit([email protected]/Shutdown.java:173)
	- waiting to lock <0x0000000780814d78> (a java.lang.Class for java.lang.Shutdown)
	at java.lang.Terminator$1.handle([email protected]/Terminator.java:51)
	at jdk.internal.misc.Signal$1.run([email protected]/Signal.java:220)
	at java.lang.Thread.run([email protected]/Thread.java:834)

"VM Thread" os_prio=31 cpu=443.11ms elapsed=354.49s tid=0x00007fde5788d000 nid=0x3503 runnable

"GC Thread#0" os_prio=31 cpu=665.18ms elapsed=354.51s tid=0x00007fde57005000 nid=0x2e03 runnable

"GC Thread#1" os_prio=31 cpu=634.61ms elapsed=353.73s tid=0x00007fde58000000 nid=0x5b03 runnable

"GC Thread#2" os_prio=31 cpu=674.87ms elapsed=353.73s tid=0x00007fde57c72000 nid=0x5c03 runnable

"GC Thread#3" os_prio=31 cpu=650.02ms elapsed=352.31s tid=0x00007fde5773f000 nid=0xd103 runnable

"G1 Main Marker" os_prio=31 cpu=1.60ms elapsed=354.51s tid=0x00007fde57026000 nid=0x2f03 runnable

"G1 Conc#0" os_prio=31 cpu=180.78ms elapsed=354.51s tid=0x00007fde57026800 nid=0x4d03 runnable

"G1 Refine#0" os_prio=31 cpu=164.63ms elapsed=354.50s tid=0x00007fde5787a000 nid=0x3203 runnable

"G1 Refine#1" os_prio=31 cpu=11.42ms elapsed=203.78s tid=0x00007fde5c8a1000 nid=0x27d0b runnable

"G1 Refine#2" os_prio=31 cpu=4.08ms elapsed=146.12s tid=0x00007fde56cff800 nid=0x1218f runnable

"G1 Refine#3" os_prio=31 cpu=2.87ms elapsed=146.12s tid=0x00007fde59f7d800 nid=0x4a407 runnable

"G1 Young RemSet Sampling" os_prio=31 cpu=318.13ms elapsed=354.50s tid=0x00007fde5787b000 nid=0x3303 runnable
"VM Periodic Task Thread" os_prio=31 cpu=379.17ms elapsed=354.41s tid=0x00007fde57906000 nid=0x5903 waiting on condition

JNI global refs: 50, weak refs: 0

Heap
 garbage-first heap   total 462848K, used 280251K [0x0000000780000000, 0x0000000800000000)
  region size 1024K, 172 young (176128K), 19 survivors (19456K)
 Metaspace       used 63476K, capacity 65748K, committed 65872K, reserved 1107968K
  class space    used 7309K, capacity 8241K, committed 8320K, reserved 1048576K
  • please fix rsb bug
  • otherwise make sure only one thread can access the deactivation method.
@DivineThreepwood DivineThreepwood self-assigned this Jun 17, 2019
DivineThreepwood added a commit that referenced this issue Oct 4, 2019
@DivineThreepwood
Copy link
Member Author

caused and blocked by:

@DivineThreepwood
Copy link
Member Author

Ticked can be closed since bco no longer depends on rsb.

DivineThreepwood added a commit that referenced this issue Mar 22, 2022
…from_maven_to_gradle

Feature/#57 switch build system from maven to gradle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant