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/04/14 09:35:51 UTC

[GitHub] [netbeans] syco opened a new issue, #3986: Netbeans 13 freezes

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

   ### Apache NetBeans version
   
   Apache NetBeans 13
   
   ### What happened
   
   This was reported in jira for version 12, but it's happening to me on version 13.
   [https://issues.apache.org/jira/browse/NETBEANS-6421](https://issues.apache.org/jira/browse/NETBEANS-6421)
   
   Netbeans freezes randomly, every hour or so, while typing and all unsaved changes are lost.
   I have disabled autosave, and it doesn't happen on save, it happens while typing or after typing, when the file is still unsaved.
   I haven't been able to recognize a cause or a pattern.
   
   This is my environment:
   ```
   Product Version: Apache NetBeans IDE 13
   Java: 17.0.2; OpenJDK 64-Bit Server VM 17.0.2+8-Debian-1deb11u1
   Runtime: OpenJDK Runtime Environment 17.0.2+8-Debian-1deb11u1
   System: Linux version 5.10.0-13-amd64 running on amd64; UTF-8; en_GB (nb)
   ```
   
   When it freezes it creates `.dump` files for all open files in `~/.netbeans/13/var/log` with similar content to the following:
   <details><summary>XyzController.dump</summary>
   
   ```txt
   Incorrectly reparsed file: file:/mnt/data/projects/spring-test/src/main/java/com/test/controllers/XyzController.java
   ----- Original text: ---------------------------------------------
   package com.test.controllers;
   
   import com.test.models.Xyz;
   import com.test.repositories.XyzRepository;
   import java.util.ArrayList;
   import java.util.List;
   import java.util.Set;
   import javax.validation.ConstraintViolation;
   import javax.validation.Validation;
   import javax.validation.Validator;
   import org.springframework.beans.factory.annotation.Autowired;
   import org.springframework.http.ResponseEntity;
   import org.springframework.transaction.annotation.Propagation;
   import org.springframework.transaction.annotation.Transactional;
   import org.springframework.web.bind.annotation.PathVariable;
   import org.springframework.web.bind.annotation.RequestBody;
   import org.springframework.web.bind.annotation.RequestMapping;
   import org.springframework.web.bind.annotation.RequestMethod;
   import org.springframework.web.bind.annotation.RestController;
   
   /**
    *
    * @author syco
    */
   @RestController
   @RequestMapping("/")
   @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class, readOnly = false)
   public class XyzController {
   
     @Autowired(required = true)
     private XyzRepository xyzRepository;
   
     @RequestMapping(value = "/xyz/{id}", method = RequestMethod.GET)
     public ResponseEntity<Xyz> xyz_get(@PathVariable(value = "id") Long id) throws Exception {
       Xyz xyz = xyzRepository.findById(id).orElse(null);
       if (xyz == null) {
         throw new Exception("Not Found");
       }
   
       return ResponseEntity.ok(xyz);
     }
   
     @RequestMapping(value = "/xyz/{id}", method = RequestMethod.PUT)
     public ResponseEntity<Xyz> xyz_put(@PathVariable(value = "id") Long id, @RequestBody Xyz xyzDetails) throws Exception {
       Xyz xyz = xyzRepository.findById(id).orElse(null);
       if (xyz == null) {
         return ResponseEntity.no
       }
   
       xyz.setAbc(xyzDetails.getAbc());
   
       Validator validator = Validation.buildDefaultValidatorFactory().getValidator();
       Set<ConstraintViolation<Xyz>> violations = validator.validate(xyz);
       if (!violations.isEmpty()) {
         List<String> violations_arr = new ArrayList<>();
         for (ConstraintViolation<Xyz> violation : violations) {
           violations_arr.add(violation.getMessage());
           System.out.println(violation.getMessage());
         }
         return ResponseEntity.badRequest().build();
       }
   
       Xyz updatedXyz = xyzRepository.save(xyz);
       return ResponseEntity.ok(updatedXyz);
     }
   }
   
   ----- Updated text: ---------------------------------------------
   package com.test.controllers;
   
   import com.test.models.Xyz;
   import com.test.repositories.XyzRepository;
   import java.util.ArrayList;
   import java.util.List;
   import java.util.Set;
   import javax.validation.ConstraintViolation;
   import javax.validation.Validation;
   import javax.validation.Validator;
   import org.springframework.beans.factory.annotation.Autowired;
   import org.springframework.http.ResponseEntity;
   import org.springframework.transaction.annotation.Propagation;
   import org.springframework.transaction.annotation.Transactional;
   import org.springframework.web.bind.annotation.PathVariable;
   import org.springframework.web.bind.annotation.RequestBody;
   import org.springframework.web.bind.annotation.RequestMapping;
   import org.springframework.web.bind.annotation.RequestMethod;
   import org.springframework.web.bind.annotation.RestController;
   
   /**
    *
    * @author syco
    */
   @RestController
   @RequestMapping("/")
   @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class, readOnly = false)
   public class XyzController {
   
     @Autowired(required = true)
     private XyzRepository xyzRepository;
   
     @RequestMapping(value = "/xyz/{id}", method = RequestMethod.GET)
     public ResponseEntity<Xyz> xyz_get(@PathVariable(value = "id") Long id) throws Exception {
       Xyz xyz = xyzRepository.findById(id).orElse(null);
       if (xyz == null) {
         throw new Exception("Not Found");
       }
   
       return ResponseEntity.ok(xyz);
     }
   
     @RequestMapping(value = "/xyz/{id}", method = RequestMethod.PUT)
     public ResponseEntity<Xyz> xyz_put(@PathVariable(value = "id") Long id, @RequestBody Xyz xyzDetails) throws Exception {
       Xyz xyz = xyzRepository.findById(id).orElse(null);
       if (xyz == null) {
         return ResponseEntity.notFound()
       }
   
       xyz.setAbc(xyzDetails.getAbc());
   
       Validator validator = Validation.buildDefaultValidatorFactory().getValidator();
       Set<ConstraintViolation<Xyz>> violations = validator.validate(xyz);
       if (!violations.isEmpty()) {
         List<String> violations_arr = new ArrayList<>();
         for (ConstraintViolation<Xyz> violation : violations) {
           violations_arr.add(violation.getMessage());
           System.out.println(violation.getMessage());
         }
         return ResponseEntity.badRequest().build();
       }
   
       Xyz updatedXyz = xyzRepository.save(xyz);
       return ResponseEntity.ok(updatedXyz);
     }
   }
   
   ----- Errors: ---------------------------------------------
   Expected diags: [file:/mnt/data/projects/spring-test/src/main/java/com/test/controllers/XyzController.java:ERROR:1735:1735:1735:50:1:compiler.err.expected:';' expected, file:/mnt/data/projects/spring-test/src/main/java/com/test/controllers/XyzController.java:ERROR:1710:1733:1735:48:6:compiler.err.prob.found.req:incompatible types: HeadersBuilder<CAP#1> cannot be converted to ResponseEntity<Xyz>
     where CAP#1 is a fresh type-variable:
       CAP#1 extends HeadersBuilder<CAP#1> from capture of ?], actual diags: [file:/mnt/data/projects/spring-test/src/main/java/com/test/controllers/XyzController.java:ERROR:1710:1733:1735:47:37:compiler.err.prob.found.req:incompatible types: HeadersBuilder<CAP#1> cannot be converted to ResponseEntity<Xyz>
     where CAP#1 is a fresh type-variable:
       CAP#1 extends HeadersBuilder<CAP#1> from capture of ?, file:/mnt/data/projects/spring-test/src/main/java/com/test/controllers/XyzController.java:ERROR:1735:1735:1735:47:39:compiler.err.expected:';' expected]
   
   ```
   </details>
   
   Any help or suggestion is more than welcome.
   Thanks
   
   
   ### How to reproduce
   
   No idea, it's very random.
   
   ### Did this work correctly in an earlier version?
   
   No
   
   ### Operating System
   
   Debian 11 x86_64 Kernel 5.10.0-13-amd64
   
   ### JDK
   
   openjdk version "17.0.2" 2022-01-18 64-Bit
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   `Did this work correctly in an earlier version?`
   I don't have a real answer for this, I updated to netbeans 13 and java 17 the same day.
   Netbeans 12 and java 11 used to work fine.
   Please don't make me rollback these changes..
   
   ### Are you willing to submit a pull request?
   
   Yes
   
   ### 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] neilcsmith-net commented on issue #3986: Netbeans 13 freezes

Posted by GitBox <gi...@apache.org>.
neilcsmith-net commented on issue #3986:
URL: https://github.com/apache/netbeans/issues/3986#issuecomment-1100133485

   Have you seen #3913 ?  Is Spring a common factor here?


-- 
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] sandreou commented on issue #3986: Netbeans 13 freezes

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

   I have the same issue with the same symptoms with netbeans 12 and 12.6
   Most of times are when performing copy/paste or searching in a file or when going to save the file
   Also no related logs found only those xxx.dump files
   
   System info 
   -----------------
   OS: Ubuntu 20.04.4 LTS 64-bit
   Gnome Version: 3.36.8
   
   openjdk 11.0.14.1 2022-02-08
   OpenJDK Runtime Environment (build 11.0.14.1+1-Ubuntu-0ubuntu1.20.04)
   OpenJDK 64-Bit Server VM (build 11.0.14.1+1-Ubuntu-0ubuntu1.20.04, mixed mode, sharing)
   
   **Also tested with no luck, with** 
   
   java version "1.8.0_251"
   Java(TM) SE Runtime Environment (build 1.8.0_251-b08)
   Java HotSpot(TM) 64-Bit Server VM (build 25.251-b08, mixed mode)
   
   
    


-- 
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] syco closed issue #3986: Netbeans 13 freezes

Posted by GitBox <gi...@apache.org>.
syco closed issue #3986: Netbeans 13 freezes
URL: https://github.com/apache/netbeans/issues/3986


-- 
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] sandreou commented on issue #3986: Netbeans 13 freezes

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

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

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] syco commented on issue #3986: Netbeans 13 freezes

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

   Seems to be spring boot, I've always worked with spring before and never had this.
   But let's continue in the other thread.
   Thanks


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