You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I use draw.text() my nannou app starts to consume endless memory. That means the memory usage grows and grows until all the memory of my ram is gone. I am on Ubuntu 21.04 with Rust 1.54 and Nannou 0.17.
Here is a minimal example where the bug appears:
use nannou::prelude::*;
fn main() {
nannou::app(model).update(update).simple_window(view).run();
}
struct Model {}
fn model(_app: &App) -> Model {
Model {}
}
fn update(_app: &App, _model: &mut Model, _update: Update) {}
fn view(_app: &App, model: &Model, frame: Frame) {
let draw = _app.draw();
draw.background().color(WHITE);
let text: &str = "hello";
draw.text(text).color(BLACK);
draw.to_frame(_app, &frame).unwrap();
}
What am I doing wrong? Thank you very much.
The text was updated successfully, but these errors were encountered:
Hi,
when I use
draw.text()
my nannou app starts to consume endless memory. That means the memory usage grows and grows until all the memory of my ram is gone. I am on Ubuntu 21.04 with Rust 1.54 and Nannou 0.17.Here is a minimal example where the bug appears:
What am I doing wrong? Thank you very much.
The text was updated successfully, but these errors were encountered: