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

I got error often on reload #517

Open
4 tasks done
syabro opened this issue May 28, 2024 · 0 comments
Open
4 tasks done

I got error often on reload #517

syabro opened this issue May 28, 2024 · 0 comments

Comments

@syabro
Copy link

syabro commented May 28, 2024

Describe the bug

[16162:0528/165128.382539:ERROR:service_worker_storage.cc(2016)] Failed to delete the database: Database IO error

AFAIS new process starts too fast while DB is not closed

          ps.removeAllListeners()
          ps.kill()
          ps = startElectron(inlineConfig.root)

As the solution we can delay the start, e.g

setTimeout(() => {
   ps = startElectron(inlineConfig.root)
}, 1000)

At least it fixed the problem for me

Electron-Vite Version

2.2

Electron Version

30

Vite Version

4.6

Validations

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

1 participant