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

Crash when writing data to database #653

Closed
0ZeroCN opened this issue Dec 28, 2023 · 5 comments
Closed

Crash when writing data to database #653

0ZeroCN opened this issue Dec 28, 2023 · 5 comments

Comments

@0ZeroCN
Copy link

0ZeroCN commented Dec 28, 2023

Exception has occurred: fatal error
"fault"
Stack:
2 0x0000000000ae811a in go.etcd.io/bbolt.(*DB).meta
at C:/Users/myuser/go/pkg/mod/go.etcd.io/bbolt@v1.3.6/db.go:948
3 0x0000000000ae3e08 in go.etcd.io/bbolt.(*DB).hasSyncedFreelist
at C:/Users/myuser/go/pkg/mod/go.etcd.io/bbolt@v1.3.6/db.go:330
4 0x0000000000af6b37 in go.etcd.io/bbolt.(*Tx).rollback
at C:/Users/myuser/go/pkg/mod/go.etcd.io/bbolt@v1.3.6/tx.go:278
5 0x0000000000af6009 in go.etcd.io/bbolt.(*Tx).Commit
at C:/Users/myuser/go/pkg/mod/go.etcd.io/bbolt@v1.3.6/tx.go:161
6 0x0000000000ae6a6b in go.etcd.io/bbolt.(*DB).Update
at C:/Users/myuser/go/pkg/mod/go.etcd.io/bbolt@v1.3.6/db.go:748
Snipaste_2023-12-28_16-04-30

data.db size: 3.00 GB (3,221,225,472 字节)

data:
"...kbGwNCjIwMTUvMDcvMTggIDIxOjA4ICAgICAgICAgICAgMTMsNjY0IGFwaS1tcy13aW4tY3J0LWZpbGVzeXN0ZW0tbDEtMS0wLmRs...+185668 more"

@0ZeroCN
Copy link
Author

0ZeroCN commented Dec 28, 2023

It’s no problem for me to write small data

@ahrtr
Copy link
Member

ahrtr commented Dec 28, 2023

This issue has already been fixed in 1.3.7+. FYI. #362

Please add a log at line 169 to double confirm the error,

bbolt/tx.go

Lines 168 to 171 in 47cc272

if err := tx.root.spill(); err != nil {
tx.rollback()
return err
}

@0ZeroCN
Copy link
Author

0ZeroCN commented Dec 28, 2023

error log output:
mmap allocate error: truncate: truncate H:\Server\data.db: There is not enough space on the disk.

Is this problem caused by insufficient remaining disk capacity?
Uploading Snipaste_2023-12-28_19-15-38.jpg…

@0ZeroCN
Copy link
Author

0ZeroCN commented Dec 28, 2023

I know the reason, thank you!!

This issue has already been fixed in 1.3.7+. FYI. #362

Please add a log at line 169 to double confirm the error,

bbolt/tx.go

Lines 168 to 171 in 47cc272

if err := tx.root.spill(); err != nil {
tx.rollback()
return err
}

@ahrtr
Copy link
Member

ahrtr commented Dec 28, 2023

There is not enough space on the disk.

Yes, this seems the reason.

@ahrtr ahrtr closed this as completed Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants