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

Plotter crashes sclang when changing the bounds of its parent window #1079

Closed
telephon opened this issue Apr 5, 2014 · 4 comments
Closed
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: class library SC class library comp: Qt GUI sclang Qt components -- for IDE tickets, use "env: SCIDE" instead

Comments

@telephon
Copy link
Member

telephon commented Apr 5, 2014

(
a = Plotter("the plot", Rect(600, 30, 600, 400));
a.value = (0..100);

a.parent.bounds = Rect(400, 100, 500, 700); // sclang hangs, and crashes

This doesn't happen with a plain user view:

(
a = Window("the plot", Rect(100, 200, 400, 500));
x = UserView(a, a.bounds);
x.drawFunc = { this.draw };
a.front;
)

x.parent.bounds =  Rect(400, 100, 500, 700);
@LucaDanieli
Copy link
Contributor

if I write

...
x.drawFunc = { |me|
Pen.use{
10.do{
Color.red(rrand(0.0, 1), rrand(0.3, 0.8)).set;
Pen.addArc((400.exprand(2))@(100.rand), rrand(10, 50), 2pi.rand, pi);
Pen.perform([\stroke, \fill].choose);
}
}
};
...

it works fine on mine

@mossheim
Copy link
Contributor

This is no longer an issue for me (macOS 10.11, 3.9). Can someone else test?

@nhthn
Copy link
Contributor

nhthn commented Jan 18, 2017

Working for me.

@mossheim
Copy link
Contributor

Qt update strikes again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: class library SC class library comp: Qt GUI sclang Qt components -- for IDE tickets, use "env: SCIDE" instead
Projects
None yet
Development

No branches or pull requests

4 participants