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

Can not get data success #79

Closed
su-chang opened this issue Apr 7, 2020 · 11 comments
Closed

Can not get data success #79

su-chang opened this issue Apr 7, 2020 · 11 comments
Labels

Comments

@su-chang
Copy link

su-chang commented Apr 7, 2020

flash-store version: v0.18.14

I can not provided the exact reproduce step for this problem. And Im not sure this problem is related compactDB() method or not.

It occurs in these cases:

  • large storage
  • get or set frequently

Log

ReadError: Unexpected end of JSON input
    at /xiaoju-bot/node_modules/levelup/lib/levelup.js:194:15
    at /xiaoju-bot/node_modules/encoding-down/index.js:79:14
    at /xiaoju-bot/node_modules/medeadown/medeadown.js:129:7
    at /xiaoju-bot/node_modules/medea/medea.js:551:15
    at FSReqWrap.wrapper [as oncomplete] (fs.js:463:17)
@su-chang
Copy link
Author

su-chang commented Apr 7, 2020

Related issue: wechaty/wechaty-puppet-padplus#201

@huan
Copy link
Owner

huan commented Apr 7, 2020

Thanks for the issue.

It seems that Medea db has some issues in our production environment.

I'll try to use SQLite3 as the backend in the next version of FlashStore, and I hope that the SQLite3 will be more stable and relaiable.

@huan huan added the bug label Apr 7, 2020
@su-chang
Copy link
Author

Anything update about this problem?

flash-store@0.14.1 will throw segment fault error occasionally, when wechaty-puppet-xxx reset.

Could I do something for this?

@huan
Copy link
Owner

huan commented Apr 15, 2020

I'm using flash-store@0.12 now, you can have a try on that version.

@su-chang
Copy link
Author

Thank you for your suggestion, I will have a try on that.

@su-chang
Copy link
Author

I'm using flash-store@0.12 now, you can have a try on that version.

flash-store@0.12 has same problem as flash-store@0.14.

@huan
Copy link
Owner

huan commented Apr 15, 2020

Sad to know that.

Then I believe flash-store@0.7 is your last choice to try.

@su-chang
Copy link
Author

Bad news, flash-store@0.7.0 can not install successfully in win32 platform.

@huan
Copy link
Owner

huan commented Apr 15, 2020

It seems that it's the time to push flash-store forward 1 step now.

Before we upgrade the FlashStore, you have a last chance with flash-store@0.16, I don't know if SnapDB can work well... If we are lucky enough.

@su-chang
Copy link
Author

flash-store@0.12.7
flash-store@0.14.5

These versions could resolve this problem.

After testing flash-store@0.19.1, if it works nice, I will close this issue.

@huan
Copy link
Owner

huan commented Apr 17, 2020

Good to know that, thanks for the confirmation!

@huan huan closed this as completed Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants