Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse locking Linux Mint Cinnamon desktop when debugging Java((using breakpoints under very specific conditions))
Eclipse locking Linux Mint Cinnamon desktop when debugging Java [message #1737552] Sat, 09 July 2016 18:49 Go to next message
Lou H. is currently offline Lou H.Friend
Messages: 2
Registered: July 2016
Junior Member
I have a reproducible (for me) problem with the Mint Cinnamon desktop locking up when hitting a breakpoint debugging with Eclipse. When I say it's locking up, I mean mouse clicks are completely inoperable (even on the Mint panel). Alt-Tab looks like it's working, but selecting another window doesn't focus or activate the window (only the Alt-Tab selector works).

Debugging and breakpoints work fine everywhere as far as I can tell except when the breakpoint is inside an anon inner class or lambda. When it "freezes", Ctrl-Alt-ESC restarts Cinnamon and everything proceeds fine after that.

Public git repo with a fairly simple example project causing this:
(I guess I can't post links - go to bitbucket.org/jfxexamples/eclipseminttest )

Linux Mint 17.3
Eclipse Neon 4.6.0
Java 8 (1.8.0_92) (Using JavaFX)

Code below (you'll have to grab the project files to run it though):

package application;
	
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
 
public class Main extends Application {
	@Override
	public void start(Stage primaryStage) {
		try {
			BorderPane root = (BorderPane)FXMLLoader.load(getClass().getResource("Sample.fxml"));
			Scene scene = new Scene(root,400,400);
			scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm());
			primaryStage.setScene(scene);
			primaryStage.show();
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
	
	public static void main(String[] args) {
		launch(args);
	}
}
 
package application;
 
import javafx.event.Event;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.scene.control.Tab;
import javafx.scene.control.TabPane;
 
public class SampleController {
	
	@FXML
	private TabPane tabPane;
	
	public void createTab() {
		
		Tab tab = new Tab("New tab");//Breakpoint here does NOT freeze desktop
		
//		tab.setOnCloseRequest(e -> {
//			System.out.println("bleh");//Breakpoint here, freezes desktop
//		});
		tab.setOnCloseRequest(new EventHandler<Event>(){
		    @Override public void handle(Event e){
		    	System.out.println("bleh");//Breakpoint here, also freezes desktop
		    }
		});
		
		tabPane.getTabs().add(tab);//Breakpoint here does NOT freeze desktop
		int index = tabPane.getTabs().size() - 1;
		tabPane.getSelectionModel().select(index);
	}
}

Re: Eclipse locking Linux Mint Cinnamon desktop when debugging Java [message #1737894 is a reply to message #1737552] Wed, 13 July 2016 19:57 Go to previous message
Lou H. is currently offline Lou H.Friend
Messages: 2
Registered: July 2016
Junior Member
Just FYI - I've narrowed this down to rule out an Eclipse issue. Same issue occurs with IntelliJ CE! Maybe a Mint/Cinnamon issue...
Previous Topic:Failed while installing JAX-RS (Rest Web Services) 1.1
Next Topic:Can't start Eclipse
Goto Forum:
  


Current Time: Sun Oct 06 22:37:21 GMT 2024

Powered by FUDForum. Page generated in 0.03858 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top