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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Walletd crash since SQL transaction is taking too long #86

Closed
ps2xu opened this issue Mar 24, 2024 · 1 comment
Closed

Walletd crash since SQL transaction is taking too long #86

ps2xu opened this issue Mar 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ps2xu
Copy link

ps2xu commented Mar 24, 2024

Hey,

Sorry to bother you again, the reason is that I encountered another issue.馃檹馃檹 I've encountered an issue after compiling the latest walletd code. The CLI outputted a sqlite3.transaction long transaction message accompanied by a lengthy JSON string. Moreover, a few hours into running the program, walletd terminated unexpectedly, which might be attributed to a memory overflow. Attached below is the log file copied from the CLI for your examination.

锟絒35mDEBUG锟絒0m  sqlite3.transaction     long transaction      
 {
    "id": "21f96c22",
    "attempt": 1,
    "elapsed": "35.421ms",
    "stack": "go.sia.tech/walletd/persist/sqlite.doTransaction.func1\n\tgo.sia.tech/walletd/persist/sqlite/store.go:92\ngo.sia.tech/walletd/persist/sqlite.doTransaction\n\tgo.sia.tech/walletd/persist/sqlite/store.go:105\ngo.sia.tech/walletd/persist/sqlite.(*Store).transaction\n\tgo.sia.tech/walletd/persist/sqlite/store.go:40\ngo.sia.tech/walletd/persist/sqlite.(*Store).ProcessChainApplyUpdate\n\tgo.sia.tech/walletd/persist/sqlite/consensus.go:587\ngo.sia.tech/coreutils/chain.(*Manager).applyTip\n\tgo.sia.tech/coreutils@v0.0.4-0.20240308153335-c2b088520ec8/chain/manager.go:330\ngo.sia.tech/coreutils/chain.(*Manager).reorgTo\n\tgo.sia.tech/coreutils@v0.0.4-0.20240308153335-c2b088520ec8/chain/manager.go:402\ngo.sia.tech/coreutils/chain.(*Manager).AddBlocks\n\tgo.sia.tech/coreutils@v0.0.4-0.20240308153335-c2b088520ec8/chain/manager.go:244\ngo.sia.tech/coreutils/syncer.(*Syncer).syncLoop.func3\n\tgo.sia.tech/coreutils@v0.0.4-0.20240308153335-c2b088520ec8/syncer/syncer.go:563\ngo.sia.tech/coreutils/syncer.(*Peer).SendBlocks\n\tgo.sia.tech/coreutils@v0.0.4-0.20240308153335-c2b088520ec8/syncer/peer.go:153\ngo.sia.tech/coreutils/syncer.(*Syncer).syncLoop\n\tgo.sia.tech/coreutils@v0.0.4-0.20240308153335-c2b088520ec8/syncer/syncer.go:598\ngo.sia.tech/coreutils/syncer.(*Syncer).Run.func3\n\tgo.sia.tech/coreutils@v0.0.4-0.20240308153335-c2b088520ec8/syncer/syncer.go:621",
    "failed": false
}

logFile: SiaWallet_emory_overflow.log

@ChrisSchinnerl ChrisSchinnerl added the bug Something isn't working label Mar 25, 2024
@ChrisSchinnerl ChrisSchinnerl changed the title issue of the latest walletd code Walletd crash since SQL transaction is taking too long Mar 25, 2024
@n8maninger
Copy link
Member

n8maninger commented Mar 27, 2024

This should be fixed by #72, but I highly recommend waiting until the beta release to run walletd on Mainnet. We're still making breaking changes to the API and data structures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

3 participants