You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/05/16 08:36:40 UTC

[GitHub] [netbeans] smil2k opened a new issue, #4122: Editor deadlock and null pointer exception while parsing java file

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

   ### Apache NetBeans version
   
   Apache NetBeans 13
   
   ### What happened
   
   Pressing ctrl-space for suggestions leaves the editor in a freezing state. 
   
   Stacktrace reveals that in case the java source cannot be parsed, then the basedocument "loses" the write lock. 
   
   
   
   ### How to reproduce
   
   I pressed ctrl-space in the attached source file. 
   
   ### Did this work correctly in an earlier version?
   
   No
   
   ### Operating System
   
   Linux
   
   ### JDK
   
   11.0.15+10-Ubuntu-0ubuntu0.20.04.1
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   Reproduced 3 times in a row.
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
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] smil2k commented on issue #4122: Editor deadlock and null pointer exception while parsing java file

Posted by GitBox <gi...@apache.org>.
smil2k commented on issue #4122:
URL: https://github.com/apache/netbeans/issues/4122#issuecomment-1129790340

   @mbien I was not able to save the file either, only after fixing an import problem the whole thing started to work again.


-- 
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] smil2k commented on issue #4122: Editor deadlock and null pointer exception while parsing java file

Posted by GitBox <gi...@apache.org>.
smil2k commented on issue #4122:
URL: https://github.com/apache/netbeans/issues/4122#issuecomment-1129769539

   [deadlock2.txt](https://github.com/apache/netbeans/files/8714881/deadlock2.txt)
   


-- 
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] smil2k commented on issue #4122: Editor deadlock and null pointer exception while parsing java file

Posted by GitBox <gi...@apache.org>.
smil2k commented on issue #4122:
URL: https://github.com/apache/netbeans/issues/4122#issuecomment-1127578771

   Ok, no worries. 
   
   I've attached the stackdump from the locked up editor, could you please check that also? 
   I'm more interested in the deadlock part, I got used to null pointer in javac. Code complete often fails with closures. 
   
   Somehow this null pointer could leave the document in a write enabled state.
   
   


-- 
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] smil2k commented on issue #4122: Editor deadlock and null pointer exception while parsing java file

Posted by GitBox <gi...@apache.org>.
smil2k commented on issue #4122:
URL: https://github.com/apache/netbeans/issues/4122#issuecomment-1127513825

   @mbien The most important part for me is that in this case the editor stuck, all files left unsaved. 
   
   The fact that code complete did not work is secondary.


-- 
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] mbien commented on issue #4122: Editor deadlock and null pointer exception while parsing java file

Posted by GitBox <gi...@apache.org>.
mbien commented on issue #4122:
URL: https://github.com/apache/netbeans/issues/4122#issuecomment-1127521787

   I took the class from the dump file and could edit it in NetBeans 13. Autocompletion worked too on the few fields which can be resolved.


-- 
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] mbien commented on issue #4122: Editor deadlock and null pointer exception while parsing java file

Posted by GitBox <gi...@apache.org>.
mbien commented on issue #4122:
URL: https://github.com/apache/netbeans/issues/4122#issuecomment-1127565926

   NPEs in javac can be caused by a lot of things. Since I can't reproduce this (not even the exceptions), the most likely explanation is lombok.
   
   A thread dump would show if its actually a deadlock or something else (e.g an infinite loop). You could also check if its reproducible in NetBeans 14rc3 since it uses a javac library based on JDK 18 (https://lists.apache.org/thread/m56qct2ksl210rr1hpdvcgcsydxnyg9c ).


-- 
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] mbien commented on issue #4122: Editor deadlock and null pointer exception while parsing java file

Posted by GitBox <gi...@apache.org>.
mbien commented on issue #4122:
URL: https://github.com/apache/netbeans/issues/4122#issuecomment-1127494287

   @smil2k i believe you forgot to attach the java file. If it doesn't work paste it into a code section assuming its not too big, would be great to have a small, self-contained reproducer if possible.


-- 
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] smil2k commented on issue #4122: Editor deadlock and null pointer exception while parsing java file

Posted by GitBox <gi...@apache.org>.
smil2k commented on issue #4122:
URL: https://github.com/apache/netbeans/issues/4122#issuecomment-1127495135

   [SchedClassicScheduleLoader_66.dump.txt](https://github.com/apache/netbeans/files/8699244/SchedClassicScheduleLoader_66.dump.txt)
   


-- 
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] mbien commented on issue #4122: Editor deadlock and null pointer exception while parsing java file

Posted by GitBox <gi...@apache.org>.
mbien commented on issue #4122:
URL: https://github.com/apache/netbeans/issues/4122#issuecomment-1128383316

   > Uploading deadlock2.txt…
   
   @smil2k this link does not work.


-- 
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] smil2k commented on issue #4122: Editor deadlock and null pointer exception while parsing java file

Posted by GitBox <gi...@apache.org>.
smil2k commented on issue #4122:
URL: https://github.com/apache/netbeans/issues/4122#issuecomment-1127391508

   [messages.log](https://github.com/apache/netbeans/files/8698467/messages.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: 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] smil2k commented on issue #4122: Editor deadlock and null pointer exception while parsing java file

Posted by GitBox <gi...@apache.org>.
smil2k commented on issue #4122:
URL: https://github.com/apache/netbeans/issues/4122#issuecomment-1127537109

   [z.zip](https://github.com/apache/netbeans/files/8699502/z.zip)
   This is the set of files produced by the series of null pointers. 
   
   The problem happened, when I rewrote repository to repo (so the type became available) then the "No suggestion" tooltip shown and the editor stuck.


-- 
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] smil2k commented on issue #4122: Editor deadlock and null pointer exception while parsing java file

Posted by GitBox <gi...@apache.org>.
smil2k commented on issue #4122:
URL: https://github.com/apache/netbeans/issues/4122#issuecomment-1127583109

   [Uploading deadlock2.txt…]()
   


-- 
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