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

cache error when saving full recording #56

Open
matiasandina opened this issue Sep 24, 2023 · 2 comments
Open

cache error when saving full recording #56

matiasandina opened this issue Sep 24, 2023 · 2 comments

Comments

@matiasandina
Copy link

matiasandina commented Sep 24, 2023

I made several (~60) plots and I want them to go to a gif. I am using

gg_playback(
  name = "pru.gif",
  first_image_duration = 4,
  last_image_duration = 20,
  frame_duration = .25,
  background = bg_col
)

This creates the resized folder, but fails with:

Error: rsession: cache resources exhausted `/home/matias/Projects/tidytuesdays/2023/2023-week_37/tidytuesday-temp/2023_09_24_12_43_04.756371.png' @ error/cache.c/OpenPixelCache/4095

I can create the gif using gifski though, so I'm not sure what the issue is.

gifski::gifski(png_files = list.files("tidytuesday-temp/resized", full.names = T), gif_file = "pru.gif", delay = 0.25)
Inserting image 36 at 8.75s (100%)...
Encoding to gif... done!
@thebioengineer
Copy link
Owner

Thanks for opening the issue. Can you confirm that every plot you generated exists in the directory?

I am wondering if this was an issue in the resizing.

@matiasandina
Copy link
Author

It might indeed be an issue with resizing. The original folder contains 59 png files and the /resized folder contains 36. Is there a way to troubleshoot (aka uncouple) the resizing and the rendering to debug the resizing itself ?

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