Magickbase / neuron-public-issues

Neuron Issues
4 stars 3 forks source link

Synchronization hangs after a transaction #407

Open Keith-CY opened 2 weeks ago

Keith-CY commented 2 weeks ago

我发现一个issue,mac,Neuron 版本: 0.116.2 CKB 节点版本: v0.116.1 CKB 轻节点版本: v0.3.7 在我这里发生过好几次了,我是每天存一点CKB,我昨天存完就一直放着没退出,然后今天我在存之前确认过同步区块正常同步,能看到区块数量在跟着链上的数据跑着的,这时我存入NervosDAO,进入了列表中,但我预计当同步到该交易上链了之后,列表里没有更新状态,且停止区块同步。 进程里看到两个Neuron Helper 退出Neuron之后残留一个Neuron Helper。而我清楚地记得,昨天我是清掉了残留的Neuron Helper才启动Neuron钱包的。 新启动Neuron之后,开始同步了。这个过程在昨天也同样发生过,现象一模一样。其中做的交易我猜不一定需要存DAO,只要发出交易就出现

neuron_debug_1719378733894.zip

Keith-CY commented 2 weeks ago

An error

[2024-06-25T11:47:11.220Z] [warn] status tracking error: TransactionNotStartedError: Transaction is not started yet, start transaction before committing or rolling it back. [2024-06-25T11:47:11.222Z] [error] Sync:ChildProcess: [2024-06-25T11:47:11.220Z] [warn] status tracking error: TransactionNotStartedError: Transaction is not started yet, start transaction before committing or rolling it back.

[2024-06-25T11:47:11.222Z] [error] Unhandled Rejection in task: Reason: TransactionNotStartedError: Transaction is not started yet, start transaction before committing or rolling it back.

can be found in the log.

silySuper commented 2 weeks ago

I will try to sync and keep neuron open,then close the computer for a while,then check whether the helper process is exit.

silySuper commented 1 week ago

Click refresh constantly firstly ,then exit Neuron manually,open neuron again,sync abnormal(stay 88.84% for a long time).

Image

Image

main.log

bundled-ckb.log

@yanguoyu please have a look~

yanguoyu commented 1 day ago

An error

[2024-06-25T11:47:11.220Z] [warn] status tracking error: TransactionNotStartedError: Transaction is not started yet, start transaction before committing or rolling it back. [2024-06-25T11:47:11.222Z] [error] Sync:ChildProcess: [2024-06-25T11:47:11.220Z] [warn] status tracking error: TransactionNotStartedError: Transaction is not started yet, start transaction before committing or rolling it back.

[2024-06-25T11:47:11.222Z] [error] Unhandled Rejection in task: Reason: TransactionNotStartedError: Transaction is not started yet, start transaction before committing or rolling it back.

can be found in the log.

I have tried throwing this exception, but this exception will not break the sync process.

yanguoyu commented 1 day ago

Click refresh constantly firstly ,then exit Neuron manually,open neuron again,sync abnormal(stay 88.84% for a long time).

Image

Image

main.log

bundled-ckb.log

@yanguoyu please have a look~

silySuper's Neuron includes a wallet for testing performance. So the sync process is not stuck, it just sync slows.

silySuper commented 1 day ago

OK,I will try click refresh constantly again,and show the sync time to check whether is slow or stop

silySuper commented 1 day ago

Cost about 1.5 hour to sync 100%