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

Error: The KV @0x00001024 length has an error. #315

Open
BoTan-sudo opened this issue Sep 27, 2024 · 6 comments
Open

Error: The KV @0x00001024 length has an error. #315

BoTan-sudo opened this issue Sep 27, 2024 · 6 comments

Comments

@BoTan-sudo
Copy link

Snipaste_2024-09-27_18-58-38
你好!在使用KVDB时出现这个错误。并且在出现这个错误之后,单片机复位后,存储在KVDB中的参数会丢失。请问这个错误是什么原因导致的呢?谢谢~
Snipaste_2024-09-27_18-58-38

@weicao0
Copy link

weicao0 commented Nov 12, 2024

我这边也遇到这个问题,是用的file模式。定位到,read_kv中获得的kv_hdr.len是-1。这个现象在我这边每隔一段时间就会出现,都伴随GC回收空间的操作。
请问你最终解决了吗?
image

@BoTan-sudo
Copy link
Author

BoTan-sudo commented Nov 12, 2024 via email

@BoTan-sudo
Copy link
Author

图片

@BoTan-sudo
Copy link
Author

Flash 的 page_size 也得设置好,这影响到擦除时的容量。
图片

@weicao0
Copy link

weicao0 commented Nov 12, 2024

好吧。我的问题是FILE模式下的cache处理有问题,把FDB_KV_CACHE_TABLE_SIZE禁掉反而好了。

@armink
Copy link
Owner

armink commented Nov 15, 2024

好吧。我的问题是FILE模式下的cache处理有问题,把FDB_KV_CACHE_TABLE_SIZE禁掉反而好了。

我也每天都在用 file 模式,还没有遇到你的说的问题,大概是咋样的使用场景?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants