-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Listeners callbacks not called when the chain is synced #584
Comments
@adridadou Can you please send |
I'm on IntelliJ I can do a thread dump from the debugger. I will do it as soon as I'm home |
here is what I have seen: |
and here are all the threads: 18:41:27.582 INFO [facade] Connecting to: peer-2.ether.camp:30303 "pool-7-thread-1" #54 prio=5 os_prio=31 tid=0x00007feef0186000 nid=0xa203 waiting on condition [0x0000700012f47000] "EthJClientWorker-15" #32 prio=5 os_prio=31 tid=0x00007feef0185000 nid=0xa003 runnable [0x0000700012e44000] "EthJClientWorker-14" #31 prio=5 os_prio=31 tid=0x00007feef2340000 nid=0x9e03 runnable [0x0000700012d41000] "EthJClientWorker-13" #30 prio=5 os_prio=31 tid=0x00007feef0183800 nid=0x9c03 runnable [0x0000700012c3e000] "EthJClientWorker-12" #29 prio=5 os_prio=31 tid=0x00007feef0183000 nid=0x9a03 runnable [0x0000700012b3b000] "EthJClientWorker-11" #28 prio=5 os_prio=31 tid=0x00007feef217d000 nid=0x9803 runnable [0x0000700012a38000] "EthJClientWorker-10" #27 prio=5 os_prio=31 tid=0x00007feef0181800 nid=0x9603 runnable [0x0000700012935000] "EthJClientWorker-9" #26 prio=5 os_prio=31 tid=0x00007feef2857000 nid=0x9403 runnable [0x0000700012832000] "EthJClientWorker-8" #25 prio=5 os_prio=31 tid=0x00007feef0180800 nid=0x9203 runnable [0x000070001272f000] "EthJClientWorker-7" #24 prio=5 os_prio=31 tid=0x00007feef2bf7800 nid=0x9003 runnable [0x000070001262c000] "EthJClientWorker-6" #23 prio=5 os_prio=31 tid=0x00007feef2bf1800 nid=0x8e03 runnable [0x0000700012529000] "EthJClientWorker-5" #22 prio=5 os_prio=31 tid=0x00007feef19ee800 nid=0x8c03 runnable [0x0000700012426000] "EthJClientWorker-4" #21 prio=5 os_prio=31 tid=0x00007feef1347000 nid=0x8903 runnable [0x0000700012323000] "pipe-1-4" #53 prio=5 os_prio=31 tid=0x00007feef2171800 nid=0x8703 waiting on condition [0x0000700012220000] "pipe-2-1" #52 prio=5 os_prio=31 tid=0x00007feef2170800 nid=0x8503 waiting on condition [0x000070001211d000] "pipe-1-3" #51 prio=5 os_prio=31 tid=0x00007feef38f6800 nid=0x8303 waiting on condition [0x000070001201a000] "pipe-1-2" #50 prio=5 os_prio=31 tid=0x00007feef2166000 nid=0x8103 waiting on condition [0x0000700011f17000] "pipe-1-1" #49 prio=5 os_prio=31 tid=0x00007feef2167800 nid=0x7f03 waiting on condition [0x0000700011e14000] "EthJClientWorker-3" #20 prio=5 os_prio=31 tid=0x00007feef33b0000 nid=0x6107 runnable [0x0000700010ce1000] "MessageQueueTimer-3" #48 prio=5 os_prio=31 tid=0x00007feef395d000 nid=0x7d03 waiting on condition [0x0000700011d11000] "MessageQueueTimer-2" #47 prio=5 os_prio=31 tid=0x00007feef1a2d800 nid=0x7b03 waiting on condition [0x0000700011c0e000] "MessageQueueTimer-1" #46 prio=5 os_prio=31 tid=0x00007feeed810000 nid=0x7903 waiting on condition [0x0000700011b0b000] "P2pPingTimer" #45 prio=5 os_prio=31 tid=0x00007feeed846800 nid=0x7703 waiting on condition [0x0000700011a08000] "MessageQueueTimer-0" #44 prio=5 os_prio=31 tid=0x00007feef332a800 nid=0x7503 waiting on condition [0x0000700011905000] "EthJClientWorker-2" #19 prio=5 os_prio=31 tid=0x00007feef221a000 nid=0x7407 runnable [0x0000700011802000] "EthJClientWorker-1" #18 prio=5 os_prio=31 tid=0x00007feef2219000 nid=0x7307 runnable [0x00007000116ff000] "EthJClientWorker-0" #17 prio=5 os_prio=31 tid=0x00007feef31ca800 nid=0x140b runnable [0x00007000115fc000] "EDT" #42 prio=5 os_prio=31 tid=0x00007feef3043000 nid=0x1007 waiting on condition [0x0000700010ee7000] "pool-5-thread-1" #39 prio=5 os_prio=31 tid=0x00007feef38fc000 nid=0x7103 waiting on condition [0x00007000114f9000] "NewSyncThreadBlocks" #38 prio=5 os_prio=31 tid=0x00007feef38fb000 nid=0x6f03 waiting on condition [0x00007000113f6000] "NewSyncThreadHeaders" #37 prio=5 os_prio=31 tid=0x00007feeed941800 nid=0x6d03 waiting on condition [0x00007000112f3000] "pool-1-thread-1" #36 prio=5 os_prio=31 tid=0x00007feef2290800 nid=0x6b03 waiting on condition [0x00007000111f0000] "pool-4-thread-1" #35 prio=5 os_prio=31 tid=0x00007feef0662000 nid=0x6903 waiting on condition [0x00007000110ed000] "SyncQueueThread" #34 prio=5 os_prio=31 tid=0x00007feeeefea000 nid=0x6703 waiting on condition [0x0000700010fea000] "pool-3-thread-1" #16 prio=5 os_prio=31 tid=0x00007feeeeb09000 nid=0x6303 waiting on condition [0x0000700010de4000] "NodeManagerTasks" #14 prio=5 os_prio=31 tid=0x00007feef38da000 nid=0x5f03 in Object.wait() [0x0000700010bde000] "Timer-0" #13 prio=5 os_prio=31 tid=0x00007feeeed06800 nid=0x5d03 in Object.wait() [0x0000700010adb000] "DiscoveryReconnectTimer" #12 prio=5 os_prio=31 tid=0x00007feeee3f4000 nid=0x5b03 in Object.wait() [0x00007000109d8000] "Monitor Ctrl-Break" #10 daemon prio=5 os_prio=31 tid=0x00007feeef860800 nid=0x5703 runnable [0x00007000108aa000] "Service Thread" #9 daemon prio=9 os_prio=31 tid=0x00007feeef807000 nid=0x5303 runnable [0x0000000000000000] "C1 CompilerThread3" #8 daemon prio=9 os_prio=31 tid=0x00007feeee837800 nid=0x5103 waiting on condition [0x0000000000000000] "C2 CompilerThread2" #7 daemon prio=9 os_prio=31 tid=0x00007feef100a000 nid=0x4f03 waiting on condition [0x0000000000000000] "C2 CompilerThread1" #6 daemon prio=9 os_prio=31 tid=0x00007feef1004800 nid=0x4d03 waiting on condition [0x0000000000000000] "C2 CompilerThread0" #5 daemon prio=9 os_prio=31 tid=0x00007feeef806800 nid=0x4b03 waiting on condition [0x0000000000000000] "Signal Dispatcher" #4 daemon prio=9 os_prio=31 tid=0x00007feeef805800 nid=0x4903 waiting on condition [0x0000000000000000] "Finalizer" #3 daemon prio=8 os_prio=31 tid=0x00007feeed800000 nid=0x3903 in Object.wait() [0x0000700010092000] "Reference Handler" #2 daemon prio=10 os_prio=31 tid=0x00007feef000d000 nid=0x3703 in Object.wait() [0x000070000ff8f000] "main" #1 prio=5 os_prio=31 tid=0x00007feeee00d000 nid=0x1c03 waiting on condition [0x000070000f56f000] "VM Thread" os_prio=31 tid=0x00007feeee027800 nid=0x3503 runnable "GC task thread#0 (ParallelGC)" os_prio=31 tid=0x00007feeee019000 nid=0x2503 runnable "GC task thread#1 (ParallelGC)" os_prio=31 tid=0x00007feeee019800 nid=0x2703 runnable "GC task thread#2 (ParallelGC)" os_prio=31 tid=0x00007feeee803800 nid=0x2903 runnable "GC task thread#3 (ParallelGC)" os_prio=31 tid=0x00007feeee804000 nid=0x2b03 runnable "GC task thread#4 (ParallelGC)" os_prio=31 tid=0x00007feeee01a800 nid=0x2d03 runnable "GC task thread#5 (ParallelGC)" os_prio=31 tid=0x00007feeee01b000 nid=0x2f03 runnable "GC task thread#6 (ParallelGC)" os_prio=31 tid=0x00007feeee804800 nid=0x3103 runnable "GC task thread#7 (ParallelGC)" os_prio=31 tid=0x00007feeee805000 nid=0x3303 runnable "VM Periodic Task Thread" os_prio=31 tid=0x00007feeee02d800 nid=0x5503 waiting on condition JNI global references: 344 Heap 18:41:30.588 INFO [facade] Connecting to: peer-2.ether.camp:30303 Active peersPeer V62: [ 8246787f, IDLE, ping 25 ms, difficulty 12883735759019, best block 1754836 ]: Geth/v1.4.0-rc-8241fa52/linux/go1.4.2/peer-1.ether.camp Other connected peers18:41:43.648 INFO [sync] 18:41:45.605 INFO [facade] Connecting to: peer-2.ether.camp:30303 Active peersPeer V62: [ 8246787f, IDLE, ping 24 ms, difficulty 12883735759019, best block 1754837 ]: Geth/v1.4.0-rc-8241fa52/linux/go1.4.2/peer-1.ether.camp Other connected peers18:42:13.649 INFO [sync] 18:42:15.547 INFO [sync] Success importing BEST: block.number: 1754838, block.hash: ec276b, tx.size: 0 |
@adridadou Here is your code blocked EDT:
|
you're right! my bad. I moved my code from Observable to Future and I forgot this one bit of blocking code .... thanks !! |
It seems that the callback functions from the listeners are not called as soon as the chain is in sync.
I am not sure why but What I found out during my debugging is:
EventDispatchThread.invokeLater works but then we never enter the Runnable in the executor.submit
It looks like the queue is filling up but never flushed
I see 3005 tasks queued
The text was updated successfully, but these errors were encountered: