posit-dev / positron

Positron, a next-generation data science IDE
Other
2.39k stars 70 forks source link

Error when expanding large R data frame in Variables tab #3628

Open jmcphers opened 2 months ago

jmcphers commented 2 months ago

Discussed in https://github.com/posit-dev/positron-beta/discussions/220

Originally posted by **mikemahoney218** June 20, 2024 Hi all, When clicking to expand a large data frame in the Variables tab, I get the following error: ![image](https://github.com/posit-dev/positron-beta/assets/38229299/b6d37e11-1598-4038-8254-67e5a6c5b2e5) What happens next seems to vary; I've sometimes had this freeze the console so all input is ignored, and sometimes I've had the arrow in the Variables pane then turn down, even though it hasn't been expanded: ![image](https://github.com/posit-dev/positron-beta/assets/38229299/267e8ae1-2999-49fd-b015-1543cf93954c) If the console freezes, I need to restart Positron entirely, not just the R session, to get it back.
jmcphers commented 2 months ago

I can reproduce this by creating an enormous dataset -- try repeatedly doubling the rows and columns of the nycflights13::flights dataset until it is about the same size as Mike's dataset. It won't expand in the Variables pane any longer.

> foo <- nycflights13::flights
> foo <- rbind(foo, foo)
> foo <- rbind(foo, foo)
> foo <- rbind(foo, foo)
> foo <- rbind(foo, foo)
> foo <- cbind(foo, foo)
image
jmcphers commented 2 months ago

Reported again in https://github.com/posit-dev/positron/issues/3833.

jmcphers commented 1 month ago

Reported on Mastodon too: https://mastodon.online/@hrbrmstr@mastodon.social/112966300026506969