Open
Description
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
void setup() {
size(200, 200);
surface.setTitle("Hello World!");
surface.setResizable(true);
surface.setLocation(100, 100);
}
void draw() {
background(204);
line(0, 0, width, height);
line(width, 0, 0, height);
}
Additional context
Would you like to work on the issue?
No
Activity
Stefterv commentedon Mar 24, 2025
Hi @Benkralex I could not reproduce this on Ubuntu, could you please test the 4.4.1 beta with the distributed binary?
Benkralex commentedon Mar 24, 2025
I tested 4.4.1 beta with IntelliJ
Run Config:
Same issue
I also tested to install the latest/beta 4.4.1 Version of the Snap Store, again same issue
Stefterv commentedon Mar 24, 2025
Tested on a Linux Mint VM and seeing the same thing, switching to the
P2D
renderer fixes it so you could use that as a temporary fix until someone on real Mint can help us debug and fix this issue.chris-ti-an commentedon Mar 24, 2025
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.
Stefterv commentedon Mar 24, 2025
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
SableRaf commentedon Apr 1, 2025
A simple resizeable sketch can also crash if the resizing is happening too fast.
Screen.Recording.2025-04-01.at.21.31.53.mov
Snippet
duskvirkus commentedon Apr 18, 2025
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.
duskvirkus commentedon Apr 18, 2025
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.
duskvirkus commentedon Apr 23, 2025
Continued the investigation. Seems like the issue might be the that the resize event fires once but then never again. So I was wrong before I think the size values are correct for the one even that fires. Hopefully I'll have more time in the next few days to look at it more.
4 remaining items