netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

NetBeans 27 closes overnight

Open kz282 opened this issue 2 months ago • 5 comments

Apache NetBeans version

Apache NetBeans 27

What happened

I've been using NetBeans without closing the application for the night on my developer Windows 11 VM. After upgrading to NB 27 I found the application closes overnight. The previous versions (from 10 to 25) did not. I always use the official Windows installer, whichever is available from the Download page. NB 27 was installed from the Friends of Apache NetBeans package. I would like to help investigating this issue, but I do not know where to start, or which log files and which extra log settings might be interesting.

Language / Project Type / NetBeans Component

NetBeans Platform

How to reproduce

Start NetBeans 27. Work. Sleep. Check it in the morning.

Did this work correctly in an earlier version?

Apache NetBeans 25

Operating System

Windows 11 x64

JDK

JDK 24

Apache NetBeans packaging

FoAN provided installer

Anything else

I experience it about 3-4 times a week.

Are you willing to submit a pull request?

No

kz282 avatar Nov 07 '25 07:11 kz282

NetBeans writes a log to %appdata%\NetBeans\<VERSION>\var\log\messages.log.

matthiasblaesing avatar Nov 07 '25 17:11 matthiasblaesing

Is this related to the issue described in #8236 ?

neilcsmith-net avatar Nov 07 '25 17:11 neilcsmith-net

Although I am connecting the W11 dev VM via Remote Desktop, it looks like disconnect-reconnect does not trigger my issue. I have found a hs_err_pid file from yesterday evening from NetBeans.

hs_err_pid1108.log

#8236 mentions awt issues. Seeing the stacktrace this might be related:

---------------  T H R E A D  ---------------

Current thread (0x00000209a671bc90):  JavaThread "AWT-EventQueue-0"        [_thread_in_native, id=8456, stack(0x0000006373600000,0x0000006373800000) (2048K)]

Stack: [0x0000006373600000,0x0000006373800000],  sp=0x00000063737ff070,  free space=2044k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [awt.dll+0xdad89]  (no source info available)
C  [awt.dll+0xda148]  (no source info available)
C  0x0000020952c6fc7c  (no source info available)

The last pc belongs to native nmethod (printed below).
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 36216  sun.awt.Win32GraphicsConfig.getBounds(I)Ljava/awt/Rectangle; [email protected] (0 bytes) @ 0x0000020952c6fc43 [0x0000020952c6fc00+0x0000000000000043]
J 154629 c2 sun.awt.Win32GraphicsConfig.getBounds()Ljava/awt/Rectangle; [email protected] (12 bytes) @ 0x00000209521d76d8 [0x00000209521d76a0+0x0000000000000038]
j  sun.awt.Win32GraphicsDevice.displayChanged()V+23 [email protected]
j  sun.awt.Win32GraphicsEnvironment.displayChanged()V+271 [email protected]
j  sun.awt.windows.WToolkit.lambda$displayChanged$0()V+15 [email protected]
j  sun.awt.windows.WToolkit$$Lambda+0x0000020963428e28.run()V+0 [email protected]
J 21436 c2 java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V [email protected] (48 bytes) @ 0x00000209529600a0 [0x000002095295fd60+0x0000000000000340]
J 28544 c2 org.netbeans.core.TimableEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V (43 bytes) @ 0x0000020952ed087c [0x0000020952ed0040+0x000000000000083c]
J 129697 c2 java.awt.EventDispatchThread.pumpOneEventForFilters(I)V [email protected] (106 bytes) @ 0x0000020953f542e0 [0x0000020953f53ea0+0x0000000000000440]
J 84620% c2 java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V [email protected] (47 bytes) @ 0x0000020952024d70 [0x0000020952024cc0+0x00000000000000b0]
j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11 [email protected]
j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4 [email protected]
j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3 [email protected]
j  java.awt.EventDispatchThread.run()V+9 [email protected]
v  ~StubRoutines::call_stub 0x0000020951840fcd

kz282 avatar Nov 07 '25 21:11 kz282

The next one happened today:

hs_err_pid21444.log

kz282 avatar Nov 11 '25 18:11 kz282

I have encounter such occasions after windows 11 deep sleep, standby mode (new hibernation mode or something) for v27. The instance disappears after wake from sleep. I have managed to resolve this by running as administrator. So it could be a user elevated privilege issue. Never happened in windows 10.

istinnstudio avatar Nov 15 '25 15:11 istinnstudio