title: JavaFX crashes when resizing the Window on Mac
body: <p>I am using a Mac with the latest version of Java (FX), macOS as well as IntelliJ IDEA CE.
  The problem is that when I resize a JavaFX Window, my Mac crashes instantly. Only when I press the power button for five seconds, the MacBook restarts.
  I created a normal IntelliJ JavaFX Project, with these automatically created files:</p>
  <ul>
  <li>HelloController.java</li>
  <li>HelloApplication.java</li>
  <li>hello-view.fxml</li>
  </ul>
  <p>I didn't change anything and started the program.
  Everything works fine until you try to resize the window, the Mac crashes, you can not move the courser or anything else.</p>
  <p><strong>HelloApplication.java:</strong></p>
  <pre><code>package com.example.demo;
  
  import javafx.application.Application;
  import javafx.fxml.FXMLLoader;
  import javafx.scene.Scene;
  import javafx.stage.Stage;
  
  import java.io.IOException;
  
  public class HelloApplication extends Application {
      @Override
      public void start(Stage stage) throws IOException {
          FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource(&quot;hello-view.fxml&quot;));
          Scene scene = new Scene(fxmlLoader.load(), 320, 240);
          stage.setTitle(&quot;Hello!&quot;);
          stage.setScene(scene);
          stage.show();
  }
  
      public static void main(String[] args) {
          launch();
      }
  }
  </code></pre>
  <p><strong>Hello Controller.java:</strong></p>
  <pre><code>package com.example.demo;
  
  import javafx.fxml.FXML;
  import javafx.scene.control.Label;
  
  public class HelloController {
      @FXML
      private Label welcomeText;
  
      @FXML
      protected void onHelloButtonClick() {
          welcomeText.setText(&quot;Welcome to JavaFX Application!&quot;);
      }
  }
  </code></pre>
  <p><strong>hello-view.fxml</strong></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  
  &lt;?import javafx.scene.control.Button?&gt;
  &lt;?import javafx.scene.layout.BorderPane?&gt;
  
  
  &lt;BorderPane maxHeight=&quot;-Infinity&quot; maxWidth=&quot;-Infinity&quot; minHeight=&quot;-Infinity&quot; minWidth=&quot;-Infinity&quot; prefHeight=&quot;400.0&quot; prefWidth=&quot;600.0&quot; xmlns=&quot;http://javafx.com/javafx/17&quot; xmlns:fx=&quot;http://javafx.com/fxml/1&quot;&gt;
     &lt;bottom&gt;
        &lt;Button mnemonicParsing=&quot;false&quot; text=&quot;Button&quot; BorderPane.alignment=&quot;CENTER&quot; /&gt;
     &lt;/bottom&gt;
  &lt;/BorderPane&gt;
  </code></pre>
  <p>I have the same issue with the Border Pane (edited with Scene Builder).</p>
  <p><strong>My Hardware:</strong></p>
  <ul>
  <li>MacBook Pro Mid 2012</li>
  <li>Dual-Core Intel Core i5 2.5 GHz</li>
  <li>16GB 1600 MHz</li>
  <li>DDR3 1TB Samsung EVO 860 SSD</li>
  <li>Intel HD Graphics 4000 1536 MB</li>
  <li>macOS Catalina 10.15.7</li>
  </ul>
  <p>Java (FX) Version:</p>
  <p>I tried:</p>
  <pre><code>java.vm.name: Java HotSpot(TM) 64-Bit Server VM
  java.runtime.version: 17.0.1+12-LTS-39
  javafx.runtime.version: 17.0.1+1
  </code></pre>
  <p>And:</p>
  <pre><code>java.vm.name: Java HotSpot(TM) 64-Bit Server VM
  java.runtime.version: 17.0.1+12-LTS-39
  javafx.runtime.version: 18-ea+8
  </code></pre>
  <p>Does someone have the same issue, or know a way to fix this?</p>