You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Scott Palmer <sw...@gmail.com> on 2021/11/05 03:29:17 UTC

NetBeans 12.6-rc2 NPE opening project

I've hit this exception a couple times now...  I'm just trying to open
Gradle projects.  Note that the Open Project... dialog takes a very long
time to appear, unacceptably long - tens of seconds.

java.lang.NullPointerException: Cannot invoke "String.equals(Object)"
because "value" is null
at
org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:154)
at
org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:149)
at
org.netbeans.modules.project.ui.OpenProjectListSettings.setStringList(OpenProjectListSettings.java:169)
at
org.netbeans.modules.project.ui.OpenProjectListSettings.setOpenProjectsDisplayNames(OpenProjectListSettings.java:219)
at
org.netbeans.modules.project.ui.OpenProjectList.saveProjectList(OpenProjectList.java:1462)
at
org.netbeans.modules.project.ui.OpenProjectList.access$2300(OpenProjectList.java:116)
at
org.netbeans.modules.project.ui.OpenProjectList$10.run(OpenProjectList.java:873)
at
org.netbeans.modules.project.ui.OpenProjectList$10.run(OpenProjectList.java:870)
at
org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:229)
at org.openide.util.Mutex.writeAccess(Mutex.java:252)
at
org.netbeans.modules.project.ui.OpenProjectList.open(OpenProjectList.java:870)
at
org.netbeans.modules.project.ui.OpenProjectList$6.run(OpenProjectList.java:672)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

Re: NetBeans 12.6-rc2 NPE opening project

Posted by Neil C Smith <ne...@apache.org>.
On Sat, 6 Nov 2021 at 23:25, Scott Palmer <sw...@gmail.com> wrote:
>
> Done.
> [NETBEANS-6179] Open Project dialog can take over 30 seconds to appear on
> Windows. - ASF JIRA (apache.org)
> <https://issues.apache.org/jira/browse/NETBEANS-6179>

Have commented on the issue, but I suspect from Jaroslav's pointing
out of it being stuck in FlatFileView::getIcon that this might be
caused by the call to getSystemIcon(..) in JDK.  Some bugs like this
in the past there on Windows, and I wonder if some JDK 17 changes
around large icons might also be triggering this.

Maybe something to consider here too?
https://github.com/apache/netbeans/blob/master/ide/projectui/src/org/netbeans/modules/project/ui/ProjectChooserAccessory.java#L591

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: NetBeans 12.6-rc2 NPE opening project

Posted by Scott Palmer <sw...@gmail.com>.
Virus detection software usually interferes with writes, not reads. and shouldn’t affect only NetBeans and only when there are disconnected but mapped network drives. In any case it (built-in Windows Defender) is set to ignore my development folders.  I suspect the open project dialog initialization code is enumerating the drives in the filesystem too eagerly, and in a manner that is obviously blocking the UI thread.  

Nothing that appears in the dialog when it is shown would need to access anything other than the folder that it is showing me, so I suspect some optimizations could at the very least move this delay to a point when there is am actual need to try reading the disconnected drives.

Scott

> On Nov 7, 2021, at 9:19 AM, Eric Bresie <eb...@gmail.com> wrote:
> 
> Silly question…this isn’t caused by virus detection software is it?  Can
> you try turning it off and see if it works any better?
> 
> On Sat, Nov 6, 2021 at 6:25 PM Scott Palmer <swpalmer@gmail.com <ma...@gmail.com>> wrote:
> 
>> Done.
>> [NETBEANS-6179] Open Project dialog can take over 30 seconds to appear on
>> Windows. - ASF JIRA (apache.org <http://apache.org/>)
>> <https://issues.apache.org/jira/browse/NETBEANS-6179 <https://issues.apache.org/jira/browse/NETBEANS-6179>>
>> 
>> Scott
>> 
>> On Sat, Nov 6, 2021 at 11:49 AM Laszlo Kishalmi <laszlo.kishalmi@gmail.com
>>> 
>> wrote:
>> 
>>> Create a separate JIRA issue and attach the snapshot there.
>>> 
>>> This mailing list does not accept snapshots.
>>> 
>>> On 11/6/21 08:44, Scott Palmer wrote:
>>>> I’ve figured out what about my system triggers this delay on
>>>> Open Project.  I am working from home and have a couple different VPNs
>>>> that I connected to for work.  But I don’t always have them connected,
>>>> and I’m not always connecting to both of them when I do.  On each of
>>>> these I have a mapped network drive.  When the VPN is not connected
>>>> the network drive letter is offline.  Only when one of the network
>>>> drivers is offline does the Open Project dialog take exceptionally
>>>> long to appear.  I still think this is worth addressing, as it is not
>>>> a problem is any other “Open…” dialogs of software I use.
>>>> 
>>>> Note that the folder that the Open Project dialog initially shows, is
>>>> not on any of those network drives or showing any data from them.  It
>>>> is somewhere on my local SSD.  NetBeans Open Project doesn't need to
>>>> ever try to access those drives.  At least not until I actually
>>>> navigate to "This PC" or something like that.  The "Open file..."
>>>> dialog does not have this issue.
>>>> 
>>>> I have collected snapshots in VisualVM that I have attached to this
>>> email.
>>>> 
>>>> 
>>>> Regards,
>>>> 
>>>> Scott
>>>> 
>>>> 
>>>>> On Nov 5, 2021, at 5:08 PM, Svata Dedic <sv...@gmail.com>
>>>>> wrote:
>>>>> 
>>>>> Scott,
>>>>> 
>>>>> if you use VisualVM, you can save the sampler data: press Snapshot
>>>>> (last icon above the data table), and then on the Snapshot tab that
>>>>> appears, there is "Export Snapshot Data" icon (again above the data
>>>>> table, looks like a diskette). The benefit of that is that we can do
>>>>> drill-down to the hotspots with that data file.
>>>>> 
>>>>> -S.
>>>>> 
>>>>> Dne 05. 11. 21 v 18:19 Scott Palmer napsal(a):
>>>>>> VisualVM indicates that "W32 File Monitor" is constantly using CPU,
>>>>>> regardless of what is happening in the IDE, like it is in a busy
>> loop.
>>>>>> org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier$1.run
>>>>>> ()30,109 ms (100%)30,109 ms (100%)
>>>>>> 
>>> 
>> org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier.access$100
>>>>>> ()30,109 ms (100%)30,109 ms (100%)
>>>>>> 
>>> 
>> org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier.waitForChange
>>> 
>>>>>> ()30,109 ms (100%)30,109 ms (100%)
>>>>>> 
>>> 
>> org.netbeans.modules.masterfs.watcher.windows.$Proxy4.GetQueuedCompletionStatus
>>> 
>>>>>> ()30,109 ms (100%)30,109 ms (100%)
>>>>>>        com.sun.jna.Library$Handler.invoke ()30,109 ms (100%)30,109
>>>>>> ms (100%)
>>>>>> The key difference is that when waiting for the Open Project dialog,
>>>>>> CPU time is also accumulating elsewhere.  e.g. in "Inactive Request
>>>>>> Processor Thread"
>>>>>> Inactive RequestProcessor thread [Was:Explorer
>>>>>> 
>>> 
>> Actions/org.netbeans.modules.openide.explorer.ExplorerActionsImpl$ActionStateUpdater]173,499
>>> 
>>>>>> ms (100%)36,594 ms (100%)
>>>>>>  org.openide.util.RequestProcessor$Processor.run ()190,800 ms
>>>>>> (100%)36,594 ms (100%)
>>>>>>    java.lang.Object.wait[native] ()163,209 ms (81.1%)0.0 ms (0%)
>>>>>>      org.openide.util.lookup.Lookups.executeWith ()37,990 ms
>>>>>> (23.4%)36,594 ms (100%)
>>>>>> Here is a list of hotspots... note that the top 4 items are just
>>>>>> constantly increasing every second.
>>>>>> All I have done since starting the sampling is show the open Project
>>>>>> dialog and cancel it a few times.
>>>>>> image.png
>>>>>> (Hopefully the screenshot comes through)
>>>>>> Scott
>>>>>> On Fri, Nov 5, 2021 at 4:57 AM Svata Dedic
>>>>>> <svatopluk.dedic@gmail.com <ma...@gmail.com>>
>> wrote:
>>>>>>   Hi,
>>>>>>   When it happens again, either run VisualVM in parallel & monitor,
>> or
>>>>>>   take a few thread dumps in sequence (CTRL + \ in console or
>> SIGQUIT
>>>>>>   signal). Maybe the thread dumps could lead us to what blocks
>> project
>>>>>>   open or takes so much time. File a JIRA issue + attach the
>> visualvm
>>>>>>   snapshots or thread dumps. Thanks.
>>>>>>   -S.
>>>>>>   Dne 05. 11. 21 v 4:29 Scott Palmer napsal(a):
>>>>>>> I've hit this exception a couple times now...  I'm just trying
>> to
>>>>>>   open
>>>>>>> Gradle projects.  Note that the Open Project... dialog takes a
>>>>>>   very long
>>>>>>> time to appear, unacceptably long - tens of seconds.
>>>>>>> 
>>>>>>> java.lang.NullPointerException: Cannot invoke
>>>>>> "String.equals(Object)"
>>>>>>> because "value" is null
>>>>>>> at
>>>>>>> 
>>>>>> 
>>> 
>> org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:154)
>>>>>>> at
>>>>>>> 
>>>>>> 
>>> 
>> org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:149)
>>>>>>> at
>>>>>>> 
>>>>>> 
>>> 
>> org.netbeans.modules.project.ui.OpenProjectListSettings.setStringList(OpenProjectListSettings.java:169)
>>>>>>> at
>>>>>>> 
>>>>>> 
>>> 
>> org.netbeans.modules.project.ui.OpenProjectListSettings.setOpenProjectsDisplayNames(OpenProjectListSettings.java:219)
>>>>>>> at
>>>>>>> 
>>>>>> 
>>> 
>> org.netbeans.modules.project.ui.OpenProjectList.saveProjectList(OpenProjectList.java:1462)
>>>>>>> at
>>>>>>> 
>>>>>> 
>>> 
>> org.netbeans.modules.project.ui.OpenProjectList.access$2300(OpenProjectList.java:116)
>>>>>>> at
>>>>>>> 
>>>>>> 
>>> 
>> org.netbeans.modules.project.ui.OpenProjectList$10.run(OpenProjectList.java:873)
>>>>>>> at
>>>>>>> 
>>>>>> 
>>> 
>> org.netbeans.modules.project.ui.OpenProjectList$10.run(OpenProjectList.java:870)
>>>>>>> at
>>>>>>> 
>>>>>> 
>>> 
>> org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:229)
>>>>>>> at org.openide.util.Mutex.writeAccess(Mutex.java:252)
>>>>>>> at
>>>>>>> 
>>>>>> 
>>> 
>> org.netbeans.modules.project.ui.OpenProjectList.open(OpenProjectList.java:870)
>>>>>>> at
>>>>>>> 
>>>>>> 
>>> 
>> org.netbeans.modules.project.ui.OpenProjectList$6.run(OpenProjectList.java:672)
>>>>>>> at
>>>>>> 
>>>   org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
>>>>>>> at
>>>>>>> 
>>>>>> 
>>> 
>> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>>>>>>> at
>> org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
>>>>>>> [catch] at
>>>>>>> 
>>>>>> 
>>> 
>> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
>>>>>>> 
>>>>>> 
>>>   ---------------------------------------------------------------------
>>>>>>   To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>>>>>>   <ma...@netbeans.apache.org>
>>>>>>   For additional commands, e-mail: dev-help@netbeans.apache.org
>>>>>>   <ma...@netbeans.apache.org>
>>>>>>   For further information about the NetBeans mailing lists, visit:
>>>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>> 
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail:dev-unsubscribe@netbeans.apache.org
>>>> For additional commands, e-mail:dev-help@netbeans.apache.org
>>>> 
>>>> For further information about the NetBeans mailing lists, visit:
>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>> 
>> 
> -- 
> Eric Bresie
> ebresie@gmail.com <ma...@gmail.com>

Re: NetBeans 12.6-rc2 NPE opening project

Posted by Eric Bresie <eb...@gmail.com>.
Silly question…this isn’t caused by virus detection software is it?  Can
you try turning it off and see if it works any better?

On Sat, Nov 6, 2021 at 6:25 PM Scott Palmer <sw...@gmail.com> wrote:

> Done.
> [NETBEANS-6179] Open Project dialog can take over 30 seconds to appear on
> Windows. - ASF JIRA (apache.org)
> <https://issues.apache.org/jira/browse/NETBEANS-6179>
>
> Scott
>
> On Sat, Nov 6, 2021 at 11:49 AM Laszlo Kishalmi <laszlo.kishalmi@gmail.com
> >
> wrote:
>
> > Create a separate JIRA issue and attach the snapshot there.
> >
> > This mailing list does not accept snapshots.
> >
> > On 11/6/21 08:44, Scott Palmer wrote:
> > > I’ve figured out what about my system triggers this delay on
> > > Open Project.  I am working from home and have a couple different VPNs
> > > that I connected to for work.  But I don’t always have them connected,
> > > and I’m not always connecting to both of them when I do.  On each of
> > > these I have a mapped network drive.  When the VPN is not connected
> > > the network drive letter is offline.  Only when one of the network
> > > drivers is offline does the Open Project dialog take exceptionally
> > > long to appear.  I still think this is worth addressing, as it is not
> > > a problem is any other “Open…” dialogs of software I use.
> > >
> > > Note that the folder that the Open Project dialog initially shows, is
> > > not on any of those network drives or showing any data from them.  It
> > > is somewhere on my local SSD.  NetBeans Open Project doesn't need to
> > > ever try to access those drives.  At least not until I actually
> > > navigate to "This PC" or something like that.  The "Open file..."
> > > dialog does not have this issue.
> > >
> > > I have collected snapshots in VisualVM that I have attached to this
> > email.
> > >
> > >
> > > Regards,
> > >
> > > Scott
> > >
> > >
> > >> On Nov 5, 2021, at 5:08 PM, Svata Dedic <sv...@gmail.com>
> > >> wrote:
> > >>
> > >> Scott,
> > >>
> > >> if you use VisualVM, you can save the sampler data: press Snapshot
> > >> (last icon above the data table), and then on the Snapshot tab that
> > >> appears, there is "Export Snapshot Data" icon (again above the data
> > >> table, looks like a diskette). The benefit of that is that we can do
> > >> drill-down to the hotspots with that data file.
> > >>
> > >> -S.
> > >>
> > >> Dne 05. 11. 21 v 18:19 Scott Palmer napsal(a):
> > >>> VisualVM indicates that "W32 File Monitor" is constantly using CPU,
> > >>> regardless of what is happening in the IDE, like it is in a busy
> loop.
> > >>> org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier$1.run
> > >>> ()30,109 ms (100%)30,109 ms (100%)
> > >>>
> >
>  org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier.access$100
> > >>> ()30,109 ms (100%)30,109 ms (100%)
> > >>>
> >
>  org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier.waitForChange
> >
> > >>> ()30,109 ms (100%)30,109 ms (100%)
> > >>>
> >
>  org.netbeans.modules.masterfs.watcher.windows.$Proxy4.GetQueuedCompletionStatus
> >
> > >>> ()30,109 ms (100%)30,109 ms (100%)
> > >>>         com.sun.jna.Library$Handler.invoke ()30,109 ms (100%)30,109
> > >>> ms (100%)
> > >>> The key difference is that when waiting for the Open Project dialog,
> > >>> CPU time is also accumulating elsewhere.  e.g. in "Inactive Request
> > >>> Processor Thread"
> > >>> Inactive RequestProcessor thread [Was:Explorer
> > >>>
> >
> Actions/org.netbeans.modules.openide.explorer.ExplorerActionsImpl$ActionStateUpdater]173,499
> >
> > >>> ms (100%)36,594 ms (100%)
> > >>>   org.openide.util.RequestProcessor$Processor.run ()190,800 ms
> > >>> (100%)36,594 ms (100%)
> > >>>     java.lang.Object.wait[native] ()163,209 ms (81.1%)0.0 ms (0%)
> > >>>       org.openide.util.lookup.Lookups.executeWith ()37,990 ms
> > >>> (23.4%)36,594 ms (100%)
> > >>> Here is a list of hotspots... note that the top 4 items are just
> > >>> constantly increasing every second.
> > >>> All I have done since starting the sampling is show the open Project
> > >>> dialog and cancel it a few times.
> > >>> image.png
> > >>> (Hopefully the screenshot comes through)
> > >>> Scott
> > >>> On Fri, Nov 5, 2021 at 4:57 AM Svata Dedic
> > >>> <svatopluk.dedic@gmail.com <ma...@gmail.com>>
> wrote:
> > >>>    Hi,
> > >>>    When it happens again, either run VisualVM in parallel & monitor,
> or
> > >>>    take a few thread dumps in sequence (CTRL + \ in console or
> SIGQUIT
> > >>>    signal). Maybe the thread dumps could lead us to what blocks
> project
> > >>>    open or takes so much time. File a JIRA issue + attach the
> visualvm
> > >>>    snapshots or thread dumps. Thanks.
> > >>>    -S.
> > >>>    Dne 05. 11. 21 v 4:29 Scott Palmer napsal(a):
> > >>>     > I've hit this exception a couple times now...  I'm just trying
> to
> > >>>    open
> > >>>     > Gradle projects.  Note that the Open Project... dialog takes a
> > >>>    very long
> > >>>     > time to appear, unacceptably long - tens of seconds.
> > >>>     >
> > >>>     > java.lang.NullPointerException: Cannot invoke
> > >>> "String.equals(Object)"
> > >>>     > because "value" is null
> > >>>     > at
> > >>>     >
> > >>>
> >
> org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:154)
> > >>>     > at
> > >>>     >
> > >>>
> >
> org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:149)
> > >>>     > at
> > >>>     >
> > >>>
> >
> org.netbeans.modules.project.ui.OpenProjectListSettings.setStringList(OpenProjectListSettings.java:169)
> > >>>     > at
> > >>>     >
> > >>>
> >
> org.netbeans.modules.project.ui.OpenProjectListSettings.setOpenProjectsDisplayNames(OpenProjectListSettings.java:219)
> > >>>     > at
> > >>>     >
> > >>>
> >
> org.netbeans.modules.project.ui.OpenProjectList.saveProjectList(OpenProjectList.java:1462)
> > >>>     > at
> > >>>     >
> > >>>
> >
> org.netbeans.modules.project.ui.OpenProjectList.access$2300(OpenProjectList.java:116)
> > >>>     > at
> > >>>     >
> > >>>
> >
> org.netbeans.modules.project.ui.OpenProjectList$10.run(OpenProjectList.java:873)
> > >>>     > at
> > >>>     >
> > >>>
> >
> org.netbeans.modules.project.ui.OpenProjectList$10.run(OpenProjectList.java:870)
> > >>>     > at
> > >>>     >
> > >>>
> >
> org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:229)
> > >>>     > at org.openide.util.Mutex.writeAccess(Mutex.java:252)
> > >>>     > at
> > >>>     >
> > >>>
> >
> org.netbeans.modules.project.ui.OpenProjectList.open(OpenProjectList.java:870)
> > >>>     > at
> > >>>     >
> > >>>
> >
> org.netbeans.modules.project.ui.OpenProjectList$6.run(OpenProjectList.java:672)
> > >>>     > at
> > >>>
> >    org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
> > >>>     > at
> > >>>     >
> > >>>
> >
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
> > >>>     > at
> org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
> > >>>     > [catch] at
> > >>>     >
> > >>>
> >
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> > >>>     >
> > >>>
> >    ---------------------------------------------------------------------
> > >>>    To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> > >>>    <ma...@netbeans.apache.org>
> > >>>    For additional commands, e-mail: dev-help@netbeans.apache.org
> > >>>    <ma...@netbeans.apache.org>
> > >>>    For further information about the NetBeans mailing lists, visit:
> > >>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> > >>
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:dev-unsubscribe@netbeans.apache.org
> > > For additional commands, e-mail:dev-help@netbeans.apache.org
> > >
> > > For further information about the NetBeans mailing lists, visit:
> > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> > >
>
-- 
Eric Bresie
ebresie@gmail.com

Re: NetBeans 12.6-rc2 NPE opening project

Posted by Scott Palmer <sw...@gmail.com>.
Done.
[NETBEANS-6179] Open Project dialog can take over 30 seconds to appear on
Windows. - ASF JIRA (apache.org)
<https://issues.apache.org/jira/browse/NETBEANS-6179>

Scott

On Sat, Nov 6, 2021 at 11:49 AM Laszlo Kishalmi <la...@gmail.com>
wrote:

> Create a separate JIRA issue and attach the snapshot there.
>
> This mailing list does not accept snapshots.
>
> On 11/6/21 08:44, Scott Palmer wrote:
> > I’ve figured out what about my system triggers this delay on
> > Open Project.  I am working from home and have a couple different VPNs
> > that I connected to for work.  But I don’t always have them connected,
> > and I’m not always connecting to both of them when I do.  On each of
> > these I have a mapped network drive.  When the VPN is not connected
> > the network drive letter is offline.  Only when one of the network
> > drivers is offline does the Open Project dialog take exceptionally
> > long to appear.  I still think this is worth addressing, as it is not
> > a problem is any other “Open…” dialogs of software I use.
> >
> > Note that the folder that the Open Project dialog initially shows, is
> > not on any of those network drives or showing any data from them.  It
> > is somewhere on my local SSD.  NetBeans Open Project doesn't need to
> > ever try to access those drives.  At least not until I actually
> > navigate to "This PC" or something like that.  The "Open file..."
> > dialog does not have this issue.
> >
> > I have collected snapshots in VisualVM that I have attached to this
> email.
> >
> >
> > Regards,
> >
> > Scott
> >
> >
> >> On Nov 5, 2021, at 5:08 PM, Svata Dedic <sv...@gmail.com>
> >> wrote:
> >>
> >> Scott,
> >>
> >> if you use VisualVM, you can save the sampler data: press Snapshot
> >> (last icon above the data table), and then on the Snapshot tab that
> >> appears, there is "Export Snapshot Data" icon (again above the data
> >> table, looks like a diskette). The benefit of that is that we can do
> >> drill-down to the hotspots with that data file.
> >>
> >> -S.
> >>
> >> Dne 05. 11. 21 v 18:19 Scott Palmer napsal(a):
> >>> VisualVM indicates that "W32 File Monitor" is constantly using CPU,
> >>> regardless of what is happening in the IDE, like it is in a busy loop.
> >>> org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier$1.run
> >>> ()30,109 ms (100%)30,109 ms (100%)
> >>>
>   org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier.access$100
> >>> ()30,109 ms (100%)30,109 ms (100%)
> >>>
>     org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier.waitForChange
>
> >>> ()30,109 ms (100%)30,109 ms (100%)
> >>>
>       org.netbeans.modules.masterfs.watcher.windows.$Proxy4.GetQueuedCompletionStatus
>
> >>> ()30,109 ms (100%)30,109 ms (100%)
> >>>         com.sun.jna.Library$Handler.invoke ()30,109 ms (100%)30,109
> >>> ms (100%)
> >>> The key difference is that when waiting for the Open Project dialog,
> >>> CPU time is also accumulating elsewhere.  e.g. in "Inactive Request
> >>> Processor Thread"
> >>> Inactive RequestProcessor thread [Was:Explorer
> >>>
> Actions/org.netbeans.modules.openide.explorer.ExplorerActionsImpl$ActionStateUpdater]173,499
>
> >>> ms (100%)36,594 ms (100%)
> >>>   org.openide.util.RequestProcessor$Processor.run ()190,800 ms
> >>> (100%)36,594 ms (100%)
> >>>     java.lang.Object.wait[native] ()163,209 ms (81.1%)0.0 ms (0%)
> >>>       org.openide.util.lookup.Lookups.executeWith ()37,990 ms
> >>> (23.4%)36,594 ms (100%)
> >>> Here is a list of hotspots... note that the top 4 items are just
> >>> constantly increasing every second.
> >>> All I have done since starting the sampling is show the open Project
> >>> dialog and cancel it a few times.
> >>> image.png
> >>> (Hopefully the screenshot comes through)
> >>> Scott
> >>> On Fri, Nov 5, 2021 at 4:57 AM Svata Dedic
> >>> <svatopluk.dedic@gmail.com <ma...@gmail.com>> wrote:
> >>>    Hi,
> >>>    When it happens again, either run VisualVM in parallel & monitor, or
> >>>    take a few thread dumps in sequence (CTRL + \ in console or SIGQUIT
> >>>    signal). Maybe the thread dumps could lead us to what blocks project
> >>>    open or takes so much time. File a JIRA issue + attach the visualvm
> >>>    snapshots or thread dumps. Thanks.
> >>>    -S.
> >>>    Dne 05. 11. 21 v 4:29 Scott Palmer napsal(a):
> >>>     > I've hit this exception a couple times now...  I'm just trying to
> >>>    open
> >>>     > Gradle projects.  Note that the Open Project... dialog takes a
> >>>    very long
> >>>     > time to appear, unacceptably long - tens of seconds.
> >>>     >
> >>>     > java.lang.NullPointerException: Cannot invoke
> >>> "String.equals(Object)"
> >>>     > because "value" is null
> >>>     > at
> >>>     >
> >>>
>    org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:154)
> >>>     > at
> >>>     >
> >>>
>    org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:149)
> >>>     > at
> >>>     >
> >>>
>    org.netbeans.modules.project.ui.OpenProjectListSettings.setStringList(OpenProjectListSettings.java:169)
> >>>     > at
> >>>     >
> >>>
>    org.netbeans.modules.project.ui.OpenProjectListSettings.setOpenProjectsDisplayNames(OpenProjectListSettings.java:219)
> >>>     > at
> >>>     >
> >>>
>    org.netbeans.modules.project.ui.OpenProjectList.saveProjectList(OpenProjectList.java:1462)
> >>>     > at
> >>>     >
> >>>
>    org.netbeans.modules.project.ui.OpenProjectList.access$2300(OpenProjectList.java:116)
> >>>     > at
> >>>     >
> >>>
>    org.netbeans.modules.project.ui.OpenProjectList$10.run(OpenProjectList.java:873)
> >>>     > at
> >>>     >
> >>>
>    org.netbeans.modules.project.ui.OpenProjectList$10.run(OpenProjectList.java:870)
> >>>     > at
> >>>     >
> >>>
>    org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:229)
> >>>     > at org.openide.util.Mutex.writeAccess(Mutex.java:252)
> >>>     > at
> >>>     >
> >>>
>    org.netbeans.modules.project.ui.OpenProjectList.open(OpenProjectList.java:870)
> >>>     > at
> >>>     >
> >>>
>    org.netbeans.modules.project.ui.OpenProjectList$6.run(OpenProjectList.java:672)
> >>>     > at
> >>>
>    org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
> >>>     > at
> >>>     >
> >>>
>    org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
> >>>     > at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
> >>>     > [catch] at
> >>>     >
> >>>
>    org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> >>>     >
> >>>
>    ---------------------------------------------------------------------
> >>>    To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> >>>    <ma...@netbeans.apache.org>
> >>>    For additional commands, e-mail: dev-help@netbeans.apache.org
> >>>    <ma...@netbeans.apache.org>
> >>>    For further information about the NetBeans mailing lists, visit:
> >>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail:dev-unsubscribe@netbeans.apache.org
> > For additional commands, e-mail:dev-help@netbeans.apache.org
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >

Re: NetBeans 12.6-rc2 NPE opening project

Posted by Laszlo Kishalmi <la...@gmail.com>.
Create a separate JIRA issue and attach the snapshot there.

This mailing list does not accept snapshots.

On 11/6/21 08:44, Scott Palmer wrote:
> I’ve figured out what about my system triggers this delay on 
> Open Project.  I am working from home and have a couple different VPNs 
> that I connected to for work.  But I don’t always have them connected, 
> and I’m not always connecting to both of them when I do.  On each of 
> these I have a mapped network drive.  When the VPN is not connected 
> the network drive letter is offline.  Only when one of the network 
> drivers is offline does the Open Project dialog take exceptionally 
> long to appear.  I still think this is worth addressing, as it is not 
> a problem is any other “Open…” dialogs of software I use.
>
> Note that the folder that the Open Project dialog initially shows, is 
> not on any of those network drives or showing any data from them.  It 
> is somewhere on my local SSD.  NetBeans Open Project doesn't need to 
> ever try to access those drives.  At least not until I actually 
> navigate to "This PC" or something like that.  The "Open file..." 
> dialog does not have this issue.
>
> I have collected snapshots in VisualVM that I have attached to this email.
>
>
> Regards,
>
> Scott
>
>
>> On Nov 5, 2021, at 5:08 PM, Svata Dedic <sv...@gmail.com> 
>> wrote:
>>
>> Scott,
>>
>> if you use VisualVM, you can save the sampler data: press Snapshot 
>> (last icon above the data table), and then on the Snapshot tab that 
>> appears, there is "Export Snapshot Data" icon (again above the data 
>> table, looks like a diskette). The benefit of that is that we can do 
>> drill-down to the hotspots with that data file.
>>
>> -S.
>>
>> Dne 05. 11. 21 v 18:19 Scott Palmer napsal(a):
>>> VisualVM indicates that "W32 File Monitor" is constantly using CPU, 
>>> regardless of what is happening in the IDE, like it is in a busy loop.
>>> org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier$1.run 
>>> ()30,109 ms (100%)30,109 ms (100%)
>>>   org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier.access$100 
>>> ()30,109 ms (100%)30,109 ms (100%)
>>>     org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier.waitForChange 
>>> ()30,109 ms (100%)30,109 ms (100%)
>>>       org.netbeans.modules.masterfs.watcher.windows.$Proxy4.GetQueuedCompletionStatus 
>>> ()30,109 ms (100%)30,109 ms (100%)
>>>         com.sun.jna.Library$Handler.invoke ()30,109 ms (100%)30,109 
>>> ms (100%)
>>> The key difference is that when waiting for the Open Project dialog, 
>>> CPU time is also accumulating elsewhere.  e.g. in "Inactive Request 
>>> Processor Thread"
>>> Inactive RequestProcessor thread [Was:Explorer 
>>> Actions/org.netbeans.modules.openide.explorer.ExplorerActionsImpl$ActionStateUpdater]173,499 
>>> ms (100%)36,594 ms (100%)
>>>   org.openide.util.RequestProcessor$Processor.run ()190,800 ms 
>>> (100%)36,594 ms (100%)
>>>     java.lang.Object.wait[native] ()163,209 ms (81.1%)0.0 ms (0%)
>>>       org.openide.util.lookup.Lookups.executeWith ()37,990 ms 
>>> (23.4%)36,594 ms (100%)
>>> Here is a list of hotspots... note that the top 4 items are just 
>>> constantly increasing every second.
>>> All I have done since starting the sampling is show the open Project 
>>> dialog and cancel it a few times.
>>> image.png
>>> (Hopefully the screenshot comes through)
>>> Scott
>>> On Fri, Nov 5, 2021 at 4:57 AM Svata Dedic 
>>> <svatopluk.dedic@gmail.com <ma...@gmail.com>> wrote:
>>>    Hi,
>>>    When it happens again, either run VisualVM in parallel & monitor, or
>>>    take a few thread dumps in sequence (CTRL + \ in console or SIGQUIT
>>>    signal). Maybe the thread dumps could lead us to what blocks project
>>>    open or takes so much time. File a JIRA issue + attach the visualvm
>>>    snapshots or thread dumps. Thanks.
>>>    -S.
>>>    Dne 05. 11. 21 v 4:29 Scott Palmer napsal(a):
>>>     > I've hit this exception a couple times now...  I'm just trying to
>>>    open
>>>     > Gradle projects.  Note that the Open Project... dialog takes a
>>>    very long
>>>     > time to appear, unacceptably long - tens of seconds.
>>>     >
>>>     > java.lang.NullPointerException: Cannot invoke 
>>> "String.equals(Object)"
>>>     > because "value" is null
>>>     > at
>>>     >
>>>    org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:154)
>>>     > at
>>>     >
>>>    org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:149)
>>>     > at
>>>     >
>>>    org.netbeans.modules.project.ui.OpenProjectListSettings.setStringList(OpenProjectListSettings.java:169)
>>>     > at
>>>     >
>>>    org.netbeans.modules.project.ui.OpenProjectListSettings.setOpenProjectsDisplayNames(OpenProjectListSettings.java:219)
>>>     > at
>>>     >
>>>    org.netbeans.modules.project.ui.OpenProjectList.saveProjectList(OpenProjectList.java:1462)
>>>     > at
>>>     >
>>>    org.netbeans.modules.project.ui.OpenProjectList.access$2300(OpenProjectList.java:116)
>>>     > at
>>>     >
>>>    org.netbeans.modules.project.ui.OpenProjectList$10.run(OpenProjectList.java:873)
>>>     > at
>>>     >
>>>    org.netbeans.modules.project.ui.OpenProjectList$10.run(OpenProjectList.java:870)
>>>     > at
>>>     >
>>>    org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:229)
>>>     > at org.openide.util.Mutex.writeAccess(Mutex.java:252)
>>>     > at
>>>     >
>>>    org.netbeans.modules.project.ui.OpenProjectList.open(OpenProjectList.java:870)
>>>     > at
>>>     >
>>>    org.netbeans.modules.project.ui.OpenProjectList$6.run(OpenProjectList.java:672)
>>>     > at
>>>    org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
>>>     > at
>>>     >
>>>    org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>>>     > at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
>>>     > [catch] at
>>>     >
>>>    org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
>>>     >
>>>    ---------------------------------------------------------------------
>>>    To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>>>    <ma...@netbeans.apache.org>
>>>    For additional commands, e-mail: dev-help@netbeans.apache.org
>>>    <ma...@netbeans.apache.org>
>>>    For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail:dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>

Re: NetBeans 12.6-rc2 NPE opening project

Posted by Scott Palmer <sw...@gmail.com>.
I’ve figured out what about my system triggers this delay on Open Project.
I am working from home and have a couple different VPNs that I connected to
for work.  But I don’t always have them connected, and I’m not always
connecting to both of them when I do.  On each of these I have a mapped
network drive.  When the VPN is not connected the network drive letter is
offline.  Only when one of the network drivers is offline does the Open
Project dialog take exceptionally long to appear.  I still think this is
worth addressing, as it is not a problem is any other “Open…” dialogs of
software I use.

Note that the folder that the Open Project dialog initially shows, is not
on any of those network drives or showing any data from them.  It is
somewhere on my local SSD.  NetBeans Open Project doesn't need to ever try
to access those drives.  At least not until I actually navigate to "This
PC" or something like that.  The "Open file..." dialog does not have this
issue.

I have collected snapshots in VisualVM that I have attached to this email.


Regards,

Scott


On Nov 5, 2021, at 5:08 PM, Svata Dedic <sv...@gmail.com> wrote:

Scott,

if you use VisualVM, you can save the sampler data: press Snapshot (last
icon above the data table), and then on the Snapshot tab that appears,
there is "Export Snapshot Data" icon (again above the data table, looks
like a diskette). The benefit of that is that we can do drill-down to the
hotspots with that data file.

-S.

Dne 05. 11. 21 v 18:19 Scott Palmer napsal(a):

VisualVM indicates that "W32 File Monitor" is constantly using CPU,
regardless of what is happening in the IDE, like it is in a busy loop.
org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier$1.run
()30,109 ms (100%)30,109 ms (100%)
  org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier.access$100
()30,109 ms (100%)30,109 ms (100%)
    org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier.waitForChange
()30,109 ms (100%)30,109 ms (100%)
      org.netbeans.modules.masterfs.watcher.windows.$Proxy4.GetQueuedCompletionStatus
()30,109 ms (100%)30,109 ms (100%)
        com.sun.jna.Library$Handler.invoke ()30,109 ms (100%)30,109 ms
(100%)
The key difference is that when waiting for the Open Project dialog, CPU
time is also accumulating elsewhere.  e.g. in "Inactive Request Processor
Thread"
Inactive RequestProcessor thread [Was:Explorer
Actions/org.netbeans.modules.openide.explorer.ExplorerActionsImpl$ActionStateUpdater]173,499
ms (100%)36,594 ms (100%)
  org.openide.util.RequestProcessor$Processor.run ()190,800 ms (100%)36,594
ms (100%)
    java.lang.Object.wait[native] ()163,209 ms (81.1%)0.0 ms (0%)
      org.openide.util.lookup.Lookups.executeWith ()37,990 ms (23.4%)36,594
ms (100%)
Here is a list of hotspots... note that the top 4 items are just constantly
increasing every second.
All I have done since starting the sampling is show the open Project dialog
and cancel it a few times.
image.png
(Hopefully the screenshot comes through)
Scott
On Fri, Nov 5, 2021 at 4:57 AM Svata Dedic <svatopluk.dedic@gmail.com
<ma...@gmail.com>> wrote:
   Hi,
   When it happens again, either run VisualVM in parallel & monitor, or
   take a few thread dumps in sequence (CTRL + \ in console or SIGQUIT
   signal). Maybe the thread dumps could lead us to what blocks project
   open or takes so much time. File a JIRA issue + attach the visualvm
   snapshots or thread dumps. Thanks.
   -S.
   Dne 05. 11. 21 v 4:29 Scott Palmer napsal(a):
    > I've hit this exception a couple times now...  I'm just trying to
   open
    > Gradle projects.  Note that the Open Project... dialog takes a
   very long
    > time to appear, unacceptably long - tens of seconds.
    >
    > java.lang.NullPointerException: Cannot invoke "String.equals(Object)"
    > because "value" is null
    > at
    >
   org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:154)
    > at
    >
   org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:149)
    > at
    >
   org.netbeans.modules.project.ui.OpenProjectListSettings.setStringList(OpenProjectListSettings.java:169)
    > at
    >
   org.netbeans.modules.project.ui.OpenProjectListSettings.setOpenProjectsDisplayNames(OpenProjectListSettings.java:219)
    > at
    >
   org.netbeans.modules.project.ui.OpenProjectList.saveProjectList(OpenProjectList.java:1462)
    > at
    >
   org.netbeans.modules.project.ui.OpenProjectList.access$2300(OpenProjectList.java:116)
    > at
    >
   org.netbeans.modules.project.ui.OpenProjectList$10.run(OpenProjectList.java:873)
    > at
    >
   org.netbeans.modules.project.ui.OpenProjectList$10.run(OpenProjectList.java:870)
    > at
    >
   org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:229)
    > at org.openide.util.Mutex.writeAccess(Mutex.java:252)
    > at
    >
   org.netbeans.modules.project.ui.OpenProjectList.open(OpenProjectList.java:870)
    > at
    >
   org.netbeans.modules.project.ui.OpenProjectList$6.run(OpenProjectList.java:672)
    > at
   org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
    > at
    >
   org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
    > at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
    > [catch] at
    >
   org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
    >
   ---------------------------------------------------------------------
   To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
   <ma...@netbeans.apache.org>
   For additional commands, e-mail: dev-help@netbeans.apache.org
   <ma...@netbeans.apache.org>
   For further information about the NetBeans mailing lists, visit:
   https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Re: NetBeans 12.6-rc2 NPE opening project

Posted by Svata Dedic <sv...@gmail.com>.
Scott,

if you use VisualVM, you can save the sampler data: press Snapshot (last 
icon above the data table), and then on the Snapshot tab that appears, 
there is "Export Snapshot Data" icon (again above the data table, looks 
like a diskette). The benefit of that is that we can do drill-down to 
the hotspots with that data file.

-S.

Dne 05. 11. 21 v 18:19 Scott Palmer napsal(a):
> VisualVM indicates that "W32 File Monitor" is constantly using CPU, 
> regardless of what is happening in the IDE, like it is in a busy loop.
> 
> org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier$1.run 
> ()30,109 ms (100%)30,109 ms (100%)
>    
> org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier.access$100 
> ()30,109 ms (100%)30,109 ms (100%)
>      
> org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier.waitForChange 
> ()30,109 ms (100%)30,109 ms (100%)
>        
> org.netbeans.modules.masterfs.watcher.windows.$Proxy4.GetQueuedCompletionStatus 
> ()30,109 ms (100%)30,109 ms (100%)
>          com.sun.jna.Library$Handler.invoke ()30,109 ms (100%)30,109 ms 
> (100%)
> 
> 
> The key difference is that when waiting for the Open Project dialog, CPU 
> time is also accumulating elsewhere.  e.g. in "Inactive Request 
> Processor Thread"
> Inactive RequestProcessor thread [Was:Explorer 
> Actions/org.netbeans.modules.openide.explorer.ExplorerActionsImpl$ActionStateUpdater]173,499 
> ms (100%)36,594 ms (100%)
>    org.openide.util.RequestProcessor$Processor.run ()190,800 ms 
> (100%)36,594 ms (100%)
>      java.lang.Object.wait[native] ()163,209 ms (81.1%)0.0 ms (0%)
>        org.openide.util.lookup.Lookups.executeWith ()37,990 ms 
> (23.4%)36,594 ms (100%)
> 
> Here is a list of hotspots... note that the top 4 items are just 
> constantly increasing every second.
> All I have done since starting the sampling is show the open Project 
> dialog and cancel it a few times.
> 
> image.png
> 
> (Hopefully the screenshot comes through)
> 
> Scott
> 
> On Fri, Nov 5, 2021 at 4:57 AM Svata Dedic <svatopluk.dedic@gmail.com 
> <ma...@gmail.com>> wrote:
> 
>     Hi,
> 
>     When it happens again, either run VisualVM in parallel & monitor, or
>     take a few thread dumps in sequence (CTRL + \ in console or SIGQUIT
>     signal). Maybe the thread dumps could lead us to what blocks project
>     open or takes so much time. File a JIRA issue + attach the visualvm
>     snapshots or thread dumps. Thanks.
> 
>     -S.
> 
> 
>     Dne 05. 11. 21 v 4:29 Scott Palmer napsal(a):
>      > I've hit this exception a couple times now...  I'm just trying to
>     open
>      > Gradle projects.  Note that the Open Project... dialog takes a
>     very long
>      > time to appear, unacceptably long - tens of seconds.
>      >
>      > java.lang.NullPointerException: Cannot invoke "String.equals(Object)"
>      > because "value" is null
>      > at
>      >
>     org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:154)
>      > at
>      >
>     org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:149)
>      > at
>      >
>     org.netbeans.modules.project.ui.OpenProjectListSettings.setStringList(OpenProjectListSettings.java:169)
>      > at
>      >
>     org.netbeans.modules.project.ui.OpenProjectListSettings.setOpenProjectsDisplayNames(OpenProjectListSettings.java:219)
>      > at
>      >
>     org.netbeans.modules.project.ui.OpenProjectList.saveProjectList(OpenProjectList.java:1462)
>      > at
>      >
>     org.netbeans.modules.project.ui.OpenProjectList.access$2300(OpenProjectList.java:116)
>      > at
>      >
>     org.netbeans.modules.project.ui.OpenProjectList$10.run(OpenProjectList.java:873)
>      > at
>      >
>     org.netbeans.modules.project.ui.OpenProjectList$10.run(OpenProjectList.java:870)
>      > at
>      >
>     org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:229)
>      > at org.openide.util.Mutex.writeAccess(Mutex.java:252)
>      > at
>      >
>     org.netbeans.modules.project.ui.OpenProjectList.open(OpenProjectList.java:870)
>      > at
>      >
>     org.netbeans.modules.project.ui.OpenProjectList$6.run(OpenProjectList.java:672)
>      > at
>     org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
>      > at
>      >
>     org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>      > at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
>      > [catch] at
>      >
>     org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
>      >
> 
> 
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>     <ma...@netbeans.apache.org>
>     For additional commands, e-mail: dev-help@netbeans.apache.org
>     <ma...@netbeans.apache.org>
> 
>     For further information about the NetBeans mailing lists, visit:
>     https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: NetBeans 12.6-rc2 NPE opening project

Posted by Neil C Smith <ne...@apache.org>.
On Fri, 5 Nov 2021 at 20:43, Neil C Smith <ne...@apache.org> wrote:
> On Fri, 5 Nov 2021, 20:31 Laszlo Kishalmi, <la...@gmail.com> wrote:
>>
>> Are we talking about this one:
>> https://issues.apache.org/jira/browse/NETBEANS-5783 ?
>
>
> Probably. Missed that. The stack trace is a little different but ends with same problem. I got same stack trace as Scott shared.
>
>> I might able to fix that on the weekend.
>
> That would be great!

I just tried a build from delivery with the fix in, and it seems to
stop the NPE report and fix the issue with the project not showing up
on resolve / priming build for me.

Hopefully we can get confirmation from others when RC3 is ready.

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: NetBeans 12.6-rc2 NPE opening project

Posted by Neil C Smith <ne...@apache.org>.
On Fri, 5 Nov 2021, 20:31 Laszlo Kishalmi, <la...@gmail.com>
wrote:

> Are we talking about this one:
> https://issues.apache.org/jira/browse/NETBEANS-5783 ?


Probably. Missed that. The stack trace is a little different but ends with
same problem. I got same stack trace as Scott shared.

I might able to fix that on the weekend.
>

That would be great!

Best wishes,

Neil

Re: NetBeans 12.6-rc2 NPE opening project

Posted by Laszlo Kishalmi <la...@gmail.com>.
Are we talking about this one: 
https://issues.apache.org/jira/browse/NETBEANS-5783 ?

I might able to fix that on the weekend.


On 11/5/21 10:19, Scott Palmer wrote:
> VisualVM indicates that "W32 File Monitor" is constantly using CPU, 
> regardless of what is happening in the IDE, like it is in a busy loop.
>
> org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier$1.run 
> ()30,109 ms (100%)30,109 ms (100%)
> org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier.access$100 
> ()30,109 ms (100%)30,109 ms (100%)
> org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier.waitForChange 
> ()30,109 ms (100%)30,109 ms (100%)
> org.netbeans.modules.masterfs.watcher.windows.$Proxy4.GetQueuedCompletionStatus 
> ()30,109 ms (100%)30,109 ms (100%)
> com.sun.jna.Library$Handler.invoke ()30,109 ms (100%)30,109 ms (100%)
>
>
> The key difference is that when waiting for the Open Project dialog, 
> CPU time is also accumulating elsewhere.  e.g. in "Inactive Request 
> Processor Thread"
> Inactive RequestProcessor thread [Was:Explorer 
> Actions/org.netbeans.modules.openide.explorer.ExplorerActionsImpl$ActionStateUpdater]173,499 
> ms (100%)36,594 ms (100%)
> org.openide.util.RequestProcessor$Processor.run ()190,800 ms 
> (100%)36,594 ms (100%)
>     java.lang.Object.wait[native] ()163,209 ms (81.1%)0.0 ms (0%)
> org.openide.util.lookup.Lookups.executeWith ()37,990 ms (23.4%)36,594 
> ms (100%)
>
> Here is a list of hotspots... note that the top 4 items are just 
> constantly increasing every second.
> All I have done since starting the sampling is show the open Project 
> dialog and cancel it a few times.
>
> image.png
>
> (Hopefully the screenshot comes through)
>
> Scott
>
> On Fri, Nov 5, 2021 at 4:57 AM Svata Dedic <sv...@gmail.com> 
> wrote:
>
>     Hi,
>
>     When it happens again, either run VisualVM in parallel & monitor, or
>     take a few thread dumps in sequence (CTRL + \ in console or SIGQUIT
>     signal). Maybe the thread dumps could lead us to what blocks project
>     open or takes so much time. File a JIRA issue + attach the visualvm
>     snapshots or thread dumps. Thanks.
>
>     -S.
>
>
>     Dne 05. 11. 21 v 4:29 Scott Palmer napsal(a):
>     > I've hit this exception a couple times now...  I'm just trying
>     to open
>     > Gradle projects.  Note that the Open Project... dialog takes a
>     very long
>     > time to appear, unacceptably long - tens of seconds.
>     >
>     > java.lang.NullPointerException: Cannot invoke
>     "String.equals(Object)"
>     > because "value" is null
>     > at
>     >
>     org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:154)
>     > at
>     >
>     org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:149)
>     > at
>     >
>     org.netbeans.modules.project.ui.OpenProjectListSettings.setStringList(OpenProjectListSettings.java:169)
>     > at
>     >
>     org.netbeans.modules.project.ui.OpenProjectListSettings.setOpenProjectsDisplayNames(OpenProjectListSettings.java:219)
>     > at
>     >
>     org.netbeans.modules.project.ui.OpenProjectList.saveProjectList(OpenProjectList.java:1462)
>     > at
>     >
>     org.netbeans.modules.project.ui.OpenProjectList.access$2300(OpenProjectList.java:116)
>     > at
>     >
>     org.netbeans.modules.project.ui.OpenProjectList$10.run(OpenProjectList.java:873)
>     > at
>     >
>     org.netbeans.modules.project.ui.OpenProjectList$10.run(OpenProjectList.java:870)
>     > at
>     >
>     org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:229)
>     > at org.openide.util.Mutex.writeAccess(Mutex.java:252)
>     > at
>     >
>     org.netbeans.modules.project.ui.OpenProjectList.open(OpenProjectList.java:870)
>     > at
>     >
>     org.netbeans.modules.project.ui.OpenProjectList$6.run(OpenProjectList.java:672)
>     > at
>     org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
>     > at
>     >
>     org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>     > at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
>     > [catch] at
>     >
>     org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
>     >
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>     For additional commands, e-mail: dev-help@netbeans.apache.org
>
>     For further information about the NetBeans mailing lists, visit:
>     https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>

Re: NetBeans 12.6-rc2 NPE opening project

Posted by Scott Palmer <sw...@gmail.com>.
VisualVM indicates that "W32 File Monitor" is constantly using CPU,
regardless of what is happening in the IDE, like it is in a busy loop.

org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier$1.run () 30,109
ms (100%) 30,109 ms (100%)
  org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier.access$100
() 30,109 ms (100%) 30,109 ms (100%)

org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier.waitForChange
() 30,109 ms (100%) 30,109 ms (100%)

org.netbeans.modules.masterfs.watcher.windows.$Proxy4.GetQueuedCompletionStatus
() 30,109 ms (100%) 30,109 ms (100%)
        com.sun.jna.Library$Handler.invoke () 30,109 ms (100%) 30,109 ms
(100%)


The key difference is that when waiting for the Open Project dialog, CPU
time is also accumulating elsewhere.  e.g. in "Inactive Request Processor
Thread"
Inactive RequestProcessor thread [Was:Explorer
Actions/org.netbeans.modules.openide.explorer.ExplorerActionsImpl$ActionStateUpdater]
173,499
ms (100%) 36,594 ms (100%)
  org.openide.util.RequestProcessor$Processor.run () 190,800 ms (100%) 36,594
ms (100%)
    java.lang.Object.wait[native] () 163,209 ms (81.1%) 0.0 ms (0%)
      org.openide.util.lookup.Lookups.executeWith () 37,990 ms (23.4%) 36,594
ms (100%)

Here is a list of hotspots... note that the top 4 items are just constantly
increasing every second.
All I have done since starting the sampling is show the open Project dialog
and cancel it a few times.

[image: image.png]

(Hopefully the screenshot comes through)

Scott

On Fri, Nov 5, 2021 at 4:57 AM Svata Dedic <sv...@gmail.com>
wrote:

> Hi,
>
> When it happens again, either run VisualVM in parallel & monitor, or
> take a few thread dumps in sequence (CTRL + \ in console or SIGQUIT
> signal). Maybe the thread dumps could lead us to what blocks project
> open or takes so much time. File a JIRA issue + attach the visualvm
> snapshots or thread dumps. Thanks.
>
> -S.
>
>
> Dne 05. 11. 21 v 4:29 Scott Palmer napsal(a):
> > I've hit this exception a couple times now...  I'm just trying to open
> > Gradle projects.  Note that the Open Project... dialog takes a very long
> > time to appear, unacceptably long - tens of seconds.
> >
> > java.lang.NullPointerException: Cannot invoke "String.equals(Object)"
> > because "value" is null
> > at
> >
> org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:154)
> > at
> >
> org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:149)
> > at
> >
> org.netbeans.modules.project.ui.OpenProjectListSettings.setStringList(OpenProjectListSettings.java:169)
> > at
> >
> org.netbeans.modules.project.ui.OpenProjectListSettings.setOpenProjectsDisplayNames(OpenProjectListSettings.java:219)
> > at
> >
> org.netbeans.modules.project.ui.OpenProjectList.saveProjectList(OpenProjectList.java:1462)
> > at
> >
> org.netbeans.modules.project.ui.OpenProjectList.access$2300(OpenProjectList.java:116)
> > at
> >
> org.netbeans.modules.project.ui.OpenProjectList$10.run(OpenProjectList.java:873)
> > at
> >
> org.netbeans.modules.project.ui.OpenProjectList$10.run(OpenProjectList.java:870)
> > at
> >
> org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:229)
> > at org.openide.util.Mutex.writeAccess(Mutex.java:252)
> > at
> >
> org.netbeans.modules.project.ui.OpenProjectList.open(OpenProjectList.java:870)
> > at
> >
> org.netbeans.modules.project.ui.OpenProjectList$6.run(OpenProjectList.java:672)
> > at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
> > at
> >
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
> > at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
> > [catch] at
> >
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Re: NetBeans 12.6-rc2 NPE opening project

Posted by Svata Dedic <sv...@gmail.com>.
Hi,

When it happens again, either run VisualVM in parallel & monitor, or 
take a few thread dumps in sequence (CTRL + \ in console or SIGQUIT 
signal). Maybe the thread dumps could lead us to what blocks project 
open or takes so much time. File a JIRA issue + attach the visualvm 
snapshots or thread dumps. Thanks.

-S.


Dne 05. 11. 21 v 4:29 Scott Palmer napsal(a):
> I've hit this exception a couple times now...  I'm just trying to open
> Gradle projects.  Note that the Open Project... dialog takes a very long
> time to appear, unacceptably long - tens of seconds.
> 
> java.lang.NullPointerException: Cannot invoke "String.equals(Object)"
> because "value" is null
> at
> org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:154)
> at
> org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:149)
> at
> org.netbeans.modules.project.ui.OpenProjectListSettings.setStringList(OpenProjectListSettings.java:169)
> at
> org.netbeans.modules.project.ui.OpenProjectListSettings.setOpenProjectsDisplayNames(OpenProjectListSettings.java:219)
> at
> org.netbeans.modules.project.ui.OpenProjectList.saveProjectList(OpenProjectList.java:1462)
> at
> org.netbeans.modules.project.ui.OpenProjectList.access$2300(OpenProjectList.java:116)
> at
> org.netbeans.modules.project.ui.OpenProjectList$10.run(OpenProjectList.java:873)
> at
> org.netbeans.modules.project.ui.OpenProjectList$10.run(OpenProjectList.java:870)
> at
> org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:229)
> at org.openide.util.Mutex.writeAccess(Mutex.java:252)
> at
> org.netbeans.modules.project.ui.OpenProjectList.open(OpenProjectList.java:870)
> at
> org.netbeans.modules.project.ui.OpenProjectList$6.run(OpenProjectList.java:672)
> at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
> at
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
> [catch] at
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: NetBeans 12.6-rc2 NPE opening project

Posted by Neil C Smith <ne...@apache.org>.
On Fri, 5 Nov 2021 at 17:39, Neil C Smith <ne...@apache.org> wrote:
>
> On Fri, 5 Nov 2021 at 17:27, Scott Palmer <sw...@gmail.com> wrote:
> >
> > "Out of interest, do you have two projects with same display name?"
> >
> > Yes.  There is at least one Gradle projects where there is a subproject
> > with the same name as the parent project.
>
> Well, just tried cloning a project and opening that as well, and I
> replicate the NPE and no open on first try.

Sorry, that's not it. It actually appears to be something to do with
copying / moving a project elsewhere on disk.  The null display name
seems to be from that, so something of a red herring.  Presumably
cached data?

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: NetBeans 12.6-rc2 NPE opening project

Posted by Neil C Smith <ne...@apache.org>.
On Fri, 5 Nov 2021 at 17:27, Scott Palmer <sw...@gmail.com> wrote:
>
> "Out of interest, do you have two projects with same display name?"
>
> Yes.  There is at least one Gradle projects where there is a subproject
> with the same name as the parent project.

Well, just tried cloning a project and opening that as well, and I
replicate the NPE and no open on first try.

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: NetBeans 12.6-rc2 NPE opening project

Posted by Scott Palmer <sw...@gmail.com>.
"Out of interest, do you have two projects with same display name?"

Yes.  There is at least one Gradle projects where there is a subproject
with the same name as the parent project.
E.g.  :Project1:Project1
but I don't think there are any completely unrelated projects with the same
display name.

There is at least one project where the subproject names are not showing
properly.  This may have to do with the subprojects having settings.gradle
files so they can also be root projects depending on the current
directory when I run gradle from the command line.
In that case many subprojects just show a ':' for the name when I expand
the "Sub Projects" folder of the parent project.

Scott

On Fri, Nov 5, 2021 at 4:50 AM Neil C Smith <ne...@apache.org> wrote:

> On Fri, 5 Nov 2021 at 03:29, Scott Palmer <sw...@gmail.com> wrote:
> >
> > I've hit this exception a couple times now...  I'm just trying to open
> > Gradle projects.  Note that the Open Project... dialog takes a very long
> > time to appear, unacceptably long - tens of seconds.
> >
> > java.lang.NullPointerException: Cannot invoke "String.equals(Object)"
> > because "value" is null
>
> I've not seen this with 12.6 yet, but did have this exact issue with
> earlier releases - 12.4 and.or 12.5 I think.  Not sure if changing
> Gradle settings, such as default version, helps here?
>
> Out of interest, do you have two projects with same display name?
> IIRC that might have triggered this.
>
> Neil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Re: NetBeans 12.6-rc2 NPE opening project

Posted by Neil C Smith <ne...@apache.org>.
On Fri, 5 Nov 2021 at 03:29, Scott Palmer <sw...@gmail.com> wrote:
>
> I've hit this exception a couple times now...  I'm just trying to open
> Gradle projects.  Note that the Open Project... dialog takes a very long
> time to appear, unacceptably long - tens of seconds.
>
> java.lang.NullPointerException: Cannot invoke "String.equals(Object)"
> because "value" is null

I've not seen this with 12.6 yet, but did have this exact issue with
earlier releases - 12.4 and.or 12.5 I think.  Not sure if changing
Gradle settings, such as default version, helps here?

Out of interest, do you have two projects with same display name?
IIRC that might have triggered this.

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists