Skip to content

Do not munch data too much #5644

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

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

teunbrand
Copy link
Collaborator

This PR to the RC aims to fix a bug uncovered during reverse dependency checks.

Briefly, for reasons beyond my understanding, coord_munch() might receive a very large segment, let's say 1e20 for x or y. It might then attempt to break up this large segment into many tiny pieces. You'd then get failed to allocate vector of 7Gb types of errors. Setting an upper limit on the number of pieces prevents this unreasonable demand on the machine's memory.

@teunbrand teunbrand changed the base branch from main to rc/3.5.0 January 15, 2024 13:53
@teunbrand teunbrand added this to the ggplot2 3.5.0 milestone Jan 15, 2024
@teunbrand teunbrand changed the title Do not much data too much Do not munch data too much Jan 15, 2024
Copy link
Member

@thomasp85 thomasp85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - this is a baffling error though

@teunbrand teunbrand merged commit 2d1f31c into tidyverse:rc/3.5.0 Jan 16, 2024
@teunbrand teunbrand deleted the cap_munching_lines branch January 16, 2024 10:24
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

Successfully merging this pull request may close these issues.

2 participants