-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
Software Versions
OS : Linux
JVM : Oracle Corporation 1.8.0_161 amd64
Git : e811def
Version : 4.7.7
Code : 18386
Expected behavior
NullPointerException should not be thrown, blocks can be synced quickly.
Actual behavior
After startup, blocks are not synced fast, and NullPointerException is thrown.
Frequency
Occasionally, not always.
Backtrace
21:44:43.100 ERROR [sync-handle-block] [net](SyncService.java:315) Process sync block Num:59376024,ID:00000000038a019878cb2e751e2f31d0ff2b67ebab4a15c7cc27225fa1e856a1 failed
java.lang.NullPointerException: null
at org.tron.consensus.Consensus.receiveBlock(Consensus.java:31)
at org.tron.core.db.Manager.pushBlock(Manager.java:1267)
at org.tron.core.net.TronNetDelegate.processBlock(TronNetDelegate.java:270)
at org.tron.core.net.service.sync.SyncService.processSyncBlock(SyncService.java:306)
at org.tron.core.net.service.sync.SyncService.lambda$handleSyncBlock$9(SyncService.java:292)
at java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1597)
at org.tron.core.net.service.sync.SyncService.handleSyncBlock(SyncService.java:271)
at org.tron.core.net.service.sync.SyncService.lambda$init$1(SyncService.java:88)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)