Skip to content

Freezing on window resize on Windows #507

Closed
@processing-bot

Description

@processing-bot

Created by: Galbi3000

I was going through the changelog for the version 4 betas and decided to quickly try the windowRatio example:

void setup() {
  windowResizable(true);
  windowRatio(1280, 720);

  cursor(CROSS);
  strokeWeight(10);
}

void draw() {
  background(240);
  fill(255);
  rect(0, 0, rwidth, rheight);

  fill(0);
  textAlign(CENTER, CENTER);
  textSize(200);
  text(rmouseX + ", " + rmouseY, rwidth/2, rheight/2);
}

When I run it I get a small window showing the mouse co-ordinates scaled to 1280, 720 as expected. However, when I resize the window it freezes completely, it will not even respond to the X button to close the window. I have to use Task Manager to kill the process after which I get the following error in the IDE:

Could not run the sketch (Target VM failed to initialize).
For more information, read Help ? Troubleshooting.
  • Processing version: 4.0b8
  • Operating System and version: Windows 11 Pro Version 22H2 Build 22621.160
  • Other info: I do use Window FX 6 by Stardock that on a very slim chance might cause an issue but I have never encountered any as of yet. Its window management features are turned off anyway, just a few features are on with nothing enabled to do with resizing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions