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

v2: References to custom fonst stored across frames #31

Closed
cschol opened this issue Dec 3, 2021 · 2 comments
Closed

v2: References to custom fonst stored across frames #31

cschol opened this issue Dec 3, 2021 · 2 comments

Comments

@cschol
Copy link

cschol commented Dec 3, 2021

Your plugin stores references to custom fonts across frames. This leads to crashes in the VST when reloading a project.

For example (but there might be others):

AlgorithmDisplay::AlgorithmDisplay(Vec pos) {
    box.pos = pos;
    box.size.y = fh;                      
    box.size.x = fh;       
    setColor(0xff, 0xff, 0xff, 0xff);                     
    font = APP->window->loadFont(asset::plugin(pluginInstance, "res/DejaVuSansMono.ttf"));
}

Please see the following link on how to resolve this issue and re-submit to the Library:
https://vcvrack.com/manual/Migrate2#2-1-Don-t-store-Font-and-Image-references-across-multiple-frames

@kockie69
Copy link
Owner

kockie69 commented Dec 4, 2021 via email

@kockie69
Copy link
Owner

kockie69 commented Dec 4, 2021

Request done.

@kockie69 kockie69 closed this as completed Dec 4, 2021
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