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

Stream disconnects/reconnects in loop on large files #4453

Open
adamchalmers opened this issue Nov 9, 2024 · 1 comment
Open

Stream disconnects/reconnects in loop on large files #4453

adamchalmers opened this issue Nov 9, 2024 · 1 comment
Assignees

Comments

@adamchalmers
Copy link
Collaborator

adamchalmers commented Nov 9, 2024

This file renders a 100,000-sided polygon.

numSides = pow(10, 5)

startSketchOn("XY")
|> polygon({
  radius: 10,
  numSides: int(numSides),
  center: [0, 0],
  inscribed: false,
}, %)

On my local Linux machine, running the engine, this takes 32 seconds to render. It's a bit slow, but it gets there.

Problem is, the modeling app stream disconnects after several seconds. Then it tries to reconnect, waits, disconnects, reconnects, again and again. Mike noticed these logs in the console:

Image

Our theory is that when the engine takes a while to respond, the stream disconnects. But it should be more patient. A slow engine response that eventually gets there shouldn't cause this disconnect-reconnect loop. Frontend should tolerate a slow engine better.

@jtran originally noticed this problem tonight, on the 8020 rail. He and @franknoirot debugged it and eventually called in @mlfarrell to help from the engine side. We've established the engine is slow but handling it fine, not crashing or anything. So I think this is a frontend timeout/stream issue.

@paultag
Copy link
Collaborator

paultag commented Nov 13, 2024

I've started to look into this. I've opened up another ticket with some internal details on what I've found. I don't think the modeling app is involved here.

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

2 participants