You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "jdsmithsos (via GitHub)" <gi...@apache.org> on 2023/04/07 22:33:42 UTC

[GitHub] [netbeans] jdsmithsos opened a new issue, #5793: NetBeans 17 Background Scanning of Projects doesn't ever complete, without throwing an Unexpected Exception

jdsmithsos opened a new issue, #5793:
URL: https://github.com/apache/netbeans/issues/5793

   ### Apache NetBeans version
   
   Apache NetBeans 17
   
   ### What happened
   
   I have been using NetBeans 12.3 for a while.  Have been using NetBeans since 2015 and upgrading occasionally.
   Today I downloaded NetBeans 17.  Early this morning.  Now it is going on 5pm and I am still trying to get this thing to work with my existing NetBeans project.  Which I have been using in NetBeans for 7 years now.
   NetBeans 17 loads the project, then it goes into Background scanning of projects.  And it stays there forever.
   It has gone into 100% CPU for a while then an Unexpected Exception is thrown.
   
   I am trying to upgrade my projects to Java 17.  I know that NetBeans 13 supports Java 17, but I am trying to go directly to the latest version of NetBeans.
   
   I have spent an entire day trying to get this to work.  
   I haven't tried going from NetBeans 12 to 13, then 14, then 15, then 16, then finally 17.
   
   
   
   ### How to reproduce
   
   Install NetBeans 17 and load a NetBeans 12 project.
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 12.6 or earlier
   
   ### Operating System
   
   Windows 11
   
   ### JDK
   
   JDK 17
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   All day this problem has occurred.
   
   ### Are you willing to submit a pull request?
   
   No


-- 
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: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] jdsmithsos commented on issue #5793: NetBeans 17 Background Scanning of Projects doesn't ever complete, without throwing an Unexpected Exception

Posted by "jdsmithsos (via GitHub)" <gi...@apache.org>.
jdsmithsos commented on issue #5793:
URL: https://github.com/apache/netbeans/issues/5793#issuecomment-1501912915

   Another update:
   
   I have successfully updated to Netbeans 13, using JDK 12.
   I first updated the <netbeans.version> to RELEASE126, and successfully scanned the projects in NetBeans 12.6.
   Then I updated to RELEASE130, and successfully scanned the projects in NetBeans 13.
   
   I'm glad that I finally figured this out and can move forward now with upgrading to Java 17.
   
   But please, please, take a look at the code for Background scanning of projects and have the scanning gracefully exit if there are issues, rather than running forever consuming memory and CPU.
   


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] neilcsmith-net commented on issue #5793: NetBeans 17 Background Scanning of Projects doesn't ever complete, without throwing an Unexpected Exception

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on issue #5793:
URL: https://github.com/apache/netbeans/issues/5793#issuecomment-1501934566

   Did you bring over settings and plugins when upgrading the IDE?  One potential cause for scanning issues is an older version of nb-javac from plugins than is now bundled in the IDE.  Using a clean run (new userdir and cachedir) of the IDE is a good idea in such cases to verify concerns caused in importing settings / plugins, particularly from a few releases back.  Cleaning out the cachedir by itself can occasionally fix issues - something I used to notice particularly on first runs when nb-javac was a plugin.
   
   I would use JDK 11, 17 or 19, as they were the main tested on JDKs for NB17 - it's unlikely but possible JDK 12 was a cause of issue.
   
   Closing this as you said you've resolved the issue.  Comment again if the problem recurs with the current setup.


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] jdsmithsos commented on issue #5793: NetBeans 17 Background Scanning of Projects doesn't ever complete, without throwing an Unexpected Exception

Posted by "jdsmithsos (via GitHub)" <gi...@apache.org>.
jdsmithsos commented on issue #5793:
URL: https://github.com/apache/netbeans/issues/5793#issuecomment-1501803541

   An update:
   
   I tried over the weekend without success to get NetBeans to work.
   I downloaded NetBeans 13 and 12.6 and each did the same thing.  For 13 and 12.6 I used Java 12, the exact same version of Java that I am using with success on NetBeans 12.3.
   
   For 13 I let the background scanning run for over 7 hours.  I finally killed NetBeans.
   Then experimented with changing the min and max heap size.  But the default max heap on my machine is 16288m, so the setting of the heap that I did made no difference.  The CPU was near 100% most of the time.
   
   For 12.6 I let the background scanning run overnight for 12 hours.  CPU near 100%.  I killed NetBeans.
   
   I need to upgrade NetBeans, and I need to upgrade to Java 17.
   [messages - 12.6 - not working.log](https://github.com/apache/netbeans/files/11190675/messages.-.12.6.-.not.working.log)
   [messages - 12.3 - working.log](https://github.com/apache/netbeans/files/11190682/messages.-.12.3.-.working.log)
   
   Attached are two messages.log.  The working 12.3, and the not working 12.6.
   
   12.3 of course works fine, where the projects are scanned within a few seconds.
   The logs show a difference of course that somebody needs to look at that understands what the background scanning process is doing.


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] neilcsmith-net closed issue #5793: NetBeans 17 Background Scanning of Projects doesn't ever complete, without throwing an Unexpected Exception

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net closed issue #5793: NetBeans 17 Background Scanning of Projects doesn't ever complete, without throwing an Unexpected Exception
URL: https://github.com/apache/netbeans/issues/5793


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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