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

developer UI becomes useless for unknown reasons #493

Open
b1conrad opened this issue Dec 17, 2020 · 5 comments
Open

developer UI becomes useless for unknown reasons #493

b1conrad opened this issue Dec 17, 2020 · 5 comments

Comments

@b1conrad
Copy link
Member

The pico-engine seems to degrade (at least in the developer UI) when ctx:query has been used.

Workaround is to avoid its use until this is diagnosed and fixed. It’s possible that wrangler:skyQuery could be used as a replacement (although its implementation is slated to use ctx:query when possible (currently it uses http:get)).

I haven't been able to produce a small triggering bit of code, but do have a snapshot of the PICO_ENGINE_HOME folder after it has occurred. Starting the pico-engine from this point shows the defects in the UI. These are picos with no rulesets and no channels (even though they had some of both before the incident).

@b1conrad
Copy link
Member Author

No, it's likely not ctx:query; that's just what I had been working with when the incident occurred. It has happened since. Restarting the engine and waiting and then starting it again and the rulesets and channels are back.

Seems to be a UI failure. Next time it happens, I will check the browser console.

@b1conrad
Copy link
Member Author

enginebug

@b1conrad b1conrad added the UI label Dec 21, 2020
@b1conrad
Copy link
Member Author

b1conrad commented Dec 21, 2020

Noticed this: when visiting a tab that displays in this way (i.e. "no rulesets" or "no channels" etc.) the pico-engine console displays no messages at all. No error message. No entries that indicate that the pico-engine received a query from the UI.

How does the UI, running in the browser, get the information it needs? It must be from the engine. Yet no query is logged. How does it reach the engine? Does it use localhost:3000 or does it use an IP address? Perhaps this happens when localhost is assigned a different IP address?

@b1conrad b1conrad changed the title developer UI becomes useless for unknown reasons perhaps linked to ctx:query developer UI becomes useless for unknown reasons Dec 26, 2020
@b1conrad
Copy link
Member Author

Screen Shot 2020-12-26 at 6 05 44 AM

@b1conrad
Copy link
Member Author

Doing one of the queries manually in the browser, .../sky/cloud/ckj212eyb0007gn2rd0tq2u4h/io.picolabs.pico-engine-ui/box, it just spins. It's like the engine isn't running any more

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

No branches or pull requests

2 participants