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

Not responding if the device is left open for too long #67

Open
renkun-ken opened this issue Apr 28, 2021 · 7 comments
Open

Not responding if the device is left open for too long #67

renkun-ken opened this issue Apr 28, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@renkun-ken
Copy link
Contributor

renkun-ken commented Apr 28, 2021

In VSCode, if the httpgd device is left open for too long, then the webpage will no longer respond to new plots, i.e. it does not update any more. Looks like the background communication is disconnected or lost.

Currently, I don't have a simple and robust way to reproduce it but it almost always happens if a plot is produced (thus the device is open) and the session is left idle for say one day.

@nx10 nx10 added the bug Something isn't working label Apr 28, 2021
@nx10
Copy link
Owner

nx10 commented Apr 28, 2021

Thanks for the bug report. I think I also experienced something similar a couple days ago after my PC resumed from standby. I will see if I can replicate it that way.

@nx10 nx10 mentioned this issue Oct 25, 2021
4 tasks
@kklot
Copy link

kklot commented Jan 28, 2022

it might be related, when this happened I tried calling hgd_close() and it works again, but only some of the times; more often it just hangs there in the terminal and cannot stop it with ctrl+c. Need to restart R to get it back.

@JohannesNE
Copy link

JohannesNE commented Apr 4, 2022

This happens for me every time I run the function brms::pp_check() on a specific model. I do not even have to draw the ggplot returned by the function. I have not been able to reproduce it in a simple (shareable) example. Is there some kind of verbose output I could share to help get to the root of this?

@Gavin-Lijy
Copy link

Hi, still not solved. Could you please help us?

@nx10
Copy link
Owner

nx10 commented May 11, 2022

@Gavin-Lijy Thank you for following up, I unfortunately have still not found a way to replicate this.
I am quite busy with other projects ATM, but I have been working on and off on a big update to the httpgd internals, which if it does not fix this problem will make it easier to investigate. Still, please share if you can find a way to replicate.

@Gavin-Lijy
Copy link

@nx10 Thank you for your warm reply. I have solved it by "dev.off()", then plot again and the device will open and work well(@renkun-ken hope it helps).
Thank you for your amazing package man!

@rdiaz02
Copy link

rdiaz02 commented Feb 23, 2024

This happens to me very often. But I do not understand @Gavin-Lijy solution: if I do "dev.off" the device is closed. I need to launch a new hgd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants