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

vinxi dev unable to start dev server #287

Closed
birkskyum opened this issue Apr 25, 2024 · 15 comments
Closed

vinxi dev unable to start dev server #287

birkskyum opened this issue Apr 25, 2024 · 15 comments

Comments

@birkskyum
Copy link
Contributor

I'm not sure what causes this, but I can wait minutes on the vinxi dev to start up, and sometimes it never succeeds. I have to restart the process after a few minutes until it eventually completes

@birkskyum birkskyum changed the title Extremely load startup times on vinxi dev Very long startup times on vinxi dev Apr 25, 2024
@nksaraf
Copy link
Owner

nksaraf commented Apr 29, 2024

Is there a reproduction for this ?

@birkskyum
Copy link
Contributor Author

I can't reproduce it consistently. Most times it's up fast enough, but sometimes it just hangs. I'll make a ticket if I can reliably repro.

@birkskyum
Copy link
Contributor Author

just to give an idea of what i experience, it's this infinite load that eventually stops (can be stuck for >10min), and then suddenly after one of many restarts load the page immediately

Screen.Recording.2024-04-29.at.22.17.333.mov

@birkskyum birkskyum changed the title Very long startup times on vinxi dev vinxi dev sometimes stuck Apr 29, 2024
@birkskyum
Copy link
Contributor Author

birkskyum commented Apr 29, 2024

it got stuck when I changed in this file, and didn't manage to reflect the change. Those tsxs filenames looks suspicious.

Screenshot 2024-04-29 at 22 24 20

@birkskyum birkskyum reopened this Apr 29, 2024
@birkskyum
Copy link
Contributor Author

seems like some infinite loop with this:

@birkskyum
Copy link
Contributor Author

Screenshot 2024-05-17 at 15 06 28

@birkskyum
Copy link
Contributor Author

This appear to be limited to ssr: true

@birkskyum
Copy link
Contributor Author

And when hitting a routes/page/[id]/ page after a server restart

@birkskyum birkskyum changed the title vinxi dev sometimes stuck vinxi dev unable to start dev server May 17, 2024
@nksaraf
Copy link
Owner

nksaraf commented May 21, 2024

wow thats incredibly specific and rare.. why lord whyyy!

@birkskyum
Copy link
Contributor Author

birkskyum commented Jun 2, 2024

I'm getting closer. It's related to reactivity that is outside of the root node, so it's not cleaned up properly. I can see how it might disturb HRM, but I just don't understand why it's a problem if I fully restart the server.

@birkskyum
Copy link
Contributor Author

So at this point, I'm just disabling ssr when developing, and enabling it when deploying.

@birkskyum
Copy link
Contributor Author

@doeixd , do you see this too? are you able to repro?

@doeixd
Copy link
Contributor

doeixd commented Jun 26, 2024

Unfortunately not. I just tried to reproduce following what your suggested: ssr: true and hitting /routes/page/[id]/ after a server restart, but it seemed to work as expected.

@birkskyum
Copy link
Contributor Author

birkskyum commented Jun 26, 2024

Have less issues with this after switching to bun...

@birkskyum
Copy link
Contributor Author

Don't know if fixed by vinxi 0.4.1 - will close for now.

@birkskyum birkskyum closed this as not planned Won't fix, can't repro, duplicate, stale Jul 19, 2024
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