This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 247089

Summary: IDE Hangs with custom JavaFX Control
Product: javafx Reporter: KonradZuse
Component: EditorAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: .npss file attached from NetBeans

Description KonradZuse 2014-09-13 07:31:44 UTC
Hello all,

I was creating custom controls and ran into a point where it would hang for several minutes.  I was having some errors getting from a normal fxml document to making sure it's a root for a custom control, and now it just hangs.

I will attach a dump through the IDE, this is the first time I've done a report, so I hope this dump works out.

Should I post my code or anything else, or is the dump good enough?
Comment 1 KonradZuse 2014-09-13 07:33:30 UTC
Created attachment 149188 [details]
.npss file attached from NetBeans

.npss file
Comment 2 KonradZuse 2014-09-13 21:31:21 UTC
Since this was done late, I forgot to add exactly where it hangs.

ant -f C:\\Users\\Konrad\\Documents\\NetBeansProjects\\Uploader -Djavac.includes=uploader/Uploader.java -Dnb.internal.action.name=run.single -Drun.class=uploader.Uploader run-single
init:
Deleting: C:\Users\Konrad\Documents\NetBeansProjects\Uploader\build\built-jar.properties
deps-jar:
Updating property file: C:\Users\Konrad\Documents\NetBeansProjects\Uploader\build\built-jar.properties
Compiling 1 source file to C:\Users\Konrad\Documents\NetBeansProjects\Uploader\build\classes
compile-single:
run-single:

HAAAAAAAAAAAAAAAAAAANG :P


/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package uploader;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;

/**
 *
 * @author Konrad
 */
public class Uploader extends Application
{
      //  LoginControl login = new LoginControl();

            Scene scene;
    

        
    
    
    
     @Override
    public void start(Stage stage) throws Exception
    {
        
stage.setScene(new Scene(new LoginControl());
stage.setTitle("Custom Control");
stage.setWidth(300);
stage.setHeight(200);
stage.show();
       
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args)
    {
        launch(args);
    }
    
}


EDIT:  So I decided to try and move my classes all into my other package and try to dissect it.

I was not getting anywhere because I forgot that apparently netbeans likes to run the last built dist and I have to keep rebuilding in order to check changes.  I'll have to look into why it's not looking at my build folder anymore....

Anyways for some reason after getting it back to a regular test it worked, and now for some reason it's working all together, no more hang...

Hopefully it stays this way, but I figured I would make a mention.


TBH I am also developing a web app, and sometimes it hangs when trying to browse localhost, which actually happened when I tried to test to see if that also would hang (since I forgot to rebuild my project as mentioned above).  Other projects did work, but the web app did hang.

Oh wells, hopefully the profile I attached helps with something.

Thanks all.