Skip to content

a possible bug - cannot resize window by Java2D, but ok by P2D and P3D #801

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

Closed
processing-bot opened this issue Nov 3, 2023 · 2 comments
Labels
bug Something isn't working core

Comments

@processing-bot
Copy link
Collaborator

Created by: MartinTheSun

My project allow the users to resize windows. It works fine before. Now I change my PC to a new one with Win 11, and with graphics card NVIDIA RTX A4000. I find that I cannot resize the window anymore. Every time I resize it, the window halted and the extra area in window becomes black color. The program even don't run the draw() function. I am using Processing 4.3. My JDK in this new PC was JDK8 and then I upgraded it to JDK11 and JDK21. I also update the driver of my graphic card to the latest. The problem still exists. It exists even I just used a very simple program (from Processing web site) to test. The code is here:

void setup() {
size(200, 200);
surface.setTitle("Hello World!");
surface.setResizable(true);
surface.setLocation(100, 100);
}
void draw() {
background(128);
line(0, 0, width, height);
line(width, 0, 0, height);
}

However, if I use P2D or P3D as the rendener in the above example, the window can resize and the problem does not exist anymore. Unfortunately I cannot change my project to use P2D or P3D because it involves too many changes. Can anyone tell me how to solve this issue? Or this is a bug in Processing?

Just add a bit more information. This is not the first time I encounter this problem. The problem may not simply related with Win11. I encountered this problem in PC of Win10 before but it just rarely happened on one or two PC, not commonly happened.

@processing-bot
Copy link
Collaborator Author

Created by: grimtin10

this is very much a bug and it is a very annoying one and causes the most problems for me (the P2D renderer is very unstable for some reason)
this also didnt happen with processing 3 AFAIK

@Stefterv Stefterv added bug Something isn't working core labels Nov 16, 2024
@Stefterv
Copy link
Collaborator

Fixed by #932

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core
Projects
None yet
Development

No branches or pull requests

2 participants