-
-
Notifications
You must be signed in to change notification settings - Fork 49
Resizable Window has rendering Bug #1003
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
Comments
Hi @Benkralex I could not reproduce this on Ubuntu, could you please test the 4.4.1 beta with the distributed binary? |
tested it with Processing (latest/beta 4.4.1) on Ubuntu 24.04.2 LTS If I repeatedly resize the window for some time very quickly (large, small, large, ...), it takes a few seconds until it crashes and looks similar to the screenshots above. |
Ah thank you @chris-ti-an, I suspect that is a different issue as on Mint it was instant, what you're describing is something we've also seen on Windows before |
A simple resizeable sketch can also crash if the resizing is happening too fast. Screen.Recording.2025-04-01.at.21.31.53.movSnippetvoid setup() {
size(500, 500);
windowResizable(true);
// allow the window to be resized
}
void draw() {
circle(width / 2, height / 2, min(width, height) * 0.5);
// draw a circle that resizes with the window
}
void windowResized() {
println("Window resized to: " + width + "x" + height);
// this function is called whenever the window is resized
} |
I am interested in looking at this. I'm planning to try to reproduce this bug and try to fix it this sometime this week. If anyone else is working on it let me know so we can coordinate. |
I was able to reproduce. Spent a little while investigating seems like the AWTEvent here processing4/core/src/processing/awt/PSurfaceAWT.java Lines 992 to 1014 in ecd219b
doesn't have the expected size values. Rather interestingly while debugging if I left the sketch running for awhile (10-15 seconds) before resizing sometimes it would work as expected. However when I tried to reproduce this it was inconstant. More debugging required but done for today. |
Most appropriate sub-area of Processing 4?
Core/Environment/Rendering
Processing version
1295
Operating system
Linux Mint 22.1 x86_64; Kernel: 6.8.0-54-generic
Steps to reproduce this
Download Source Code from https://github.com/processing/processing4/releases/tag/processing-1297-4.3.4
Open Project in IntelliJ and run Ant Target Linux (See Picture in Additional context for Configuration)
Paste Code from the Example of setResizable() into the IDE and run (See Picture in Additional context)
Resize the window
snippet
Additional context
Would you like to work on the issue?
No
The text was updated successfully, but these errors were encountered: