Skip to content

Error: cannot create std::vector larger than max_size() #59

@yazun

Description

@yazun

It seems we hit a regression when trying to use the tween_component

image

Error: cannot create std::vector larger than max_size()
In addition: Warning message:
In numeric_element_interpolator(as.numeric(data), as.integer(group),  :
  NAs introduced by coercion to integer range

This is most likely line 24 (ease_seq) in numeric_element_interpolator fn:

21        for (i = 1; i < data.size(); ++i) {
22          if (current_group == group[i]) {
23            int nframes = frame[i] - frame[i-1];
24            std::vector<double> ease_points = ease_seq(ease[i-1], nframes);
25            for (size_t j = 0; j < ease_points.size(); ++j) {
26              tweendata.push_back(data[i - 1] + ease_points[j] * (data[i] - data[i - 1]));
27              tweengroup.push_back(current_group);
28              tweenframe.push_back(j + frame[i-1]);
29            }
30          } else {

Do you have any hints why this could happen?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions