mbien commented on issue #8079:
URL: https://github.com/apache/netbeans/issues/8079#issuecomment-2557732987
I am wondering what your system does when all screens are unplugged. In my
case it keeps at least one graphics device.
```java
public static void main(String[] args) {
JFrame frame = new JFrame("test");
frame.setSize(400, 400);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
new Thread(() -> {
while(true) {
try {
Thread.sleep(2000);
SwingUtilities.invokeLater(() -> {
List<GraphicsDevice> devices =
List.of(GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices());
GraphicsConfiguration gc =
frame.getGraphicsConfiguration();
System.out.println("s: %s, d: %s, gc: %s, devs:
%s".formatted(frame.isShowing(), frame.isDisplayable(), gc, devices));
});
} catch (InterruptedException ex) {
return;
}
}
}).start();
}
```
```
s: true, d: true, gc:
X11GraphicsConfig[dev=X11GraphicsDevice[screen=1],vis=0x21], devs:
[X11GraphicsDevice[screen=0], X11GraphicsDevice[screen=1]]
s: true, d: true, gc:
X11GraphicsConfig[dev=X11GraphicsDevice[screen=1],vis=0x21], devs:
[X11GraphicsDevice[screen=0], X11GraphicsDevice[screen=1]]
s: true, d: true, gc:
X11GraphicsConfig[dev=X11GraphicsDevice[screen=1],vis=0x21], devs:
[X11GraphicsDevice[screen=0], X11GraphicsDevice[screen=1]]
s: true, d: true, gc:
X11GraphicsConfig[dev=X11GraphicsDevice[screen=1],vis=0x21], devs:
[X11GraphicsDevice[screen=0], X11GraphicsDevice[screen=1]]
s: true, d: true, gc:
X11GraphicsConfig[dev=X11GraphicsDevice[screen=0],vis=0x21], devs:
[X11GraphicsDevice[screen=0]]
s: true, d: true, gc:
X11GraphicsConfig[dev=X11GraphicsDevice[screen=0],vis=0x21], devs:
[X11GraphicsDevice[screen=0]]
s: true, d: true, gc:
X11GraphicsConfig[dev=X11GraphicsDevice[screen=0],vis=0x21], devs:
[X11GraphicsDevice[screen=0]]
```
I unplugged both screens and the frame still had a graphics configuration
and a device assigned. So I likely won't be able to reproduce this on gnome /
cinnamon. (also NB 24 was doing fine running in the background without
exceptions in the log)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists