bardsoftware / ganttproject

Official GanttProject repository.
http://ganttproject.biz
GNU General Public License v3.0
860 stars 301 forks source link

Quit not working on Praha428 on Linux #230

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start the program
2. Try to quit it by using the windows X button, menu Quit or ctrl+q
3. Nothing happens (cmd shows no output on these events)

What is the expected output? What do you see instead?
One expects the application to quit, that doesnt happen.

What version of the product are you using? On what operating system?
openSUSE 11.4, java:
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.7) (suse-1.2.1-x86_64)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)

Original issue reported on code.google.com by hcder...@gmail.com on 5 May 2011 at 7:21

GoogleCodeExporter commented 9 years ago
Is there anything in the log? It must be in ~/.ganttproject.log or in 
~/.GanttProject/ganttproject-<timestamp>.log 

Original comment by dbarashev on 5 May 2011 at 10:31

GoogleCodeExporter commented 9 years ago
Here is the logfile, i don't see anything specifically related to closing, some 
other errors though.

Original comment by hcder...@gmail.com on 5 May 2011 at 10:44

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks! May I also ask you to try Sun's (well, Oracle's) JRE (not Open JDK) ?

Original comment by dbarashev on 5 May 2011 at 2:54

GoogleCodeExporter commented 9 years ago
Unfortunately the same result with this configuration (although i must add i 
didn't remove the openJDK, i just exported the JAVA_HOME and JAVA_COMMAND vars 
to the other locations), this is the output of JAVA_COMMAND -version 

java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

Original comment by hcder...@gmail.com on 5 May 2011 at 3:11

GoogleCodeExporter commented 9 years ago
What window manager are you using? Is it possible that you modified a project 
and your window manager hid a confirmation dialog from you?

Original comment by dbarashev on 5 May 2011 at 8:39

GoogleCodeExporter commented 9 years ago
I am using GNOME (2) and GDM, and i've just tried, but no dialog is shown.
Actually the only way to end it is by running top and killing the java proces 
(which is quite a task since i run quite a lot of java stuff, like eclipse).

Original comment by hcder...@gmail.com on 5 May 2011 at 8:46

GoogleCodeExporter commented 9 years ago
Strange. I am using similar setup and it works fine. As far as I know, Maarten 
also uses Linux and he didn't report such problems.

Since you're using Eclipse, you must be familiar with Java programming. Do you 
mind debugging?

Original comment by dbarashev on 5 May 2011 at 9:05

GoogleCodeExporter commented 9 years ago
Sure, no problem, i'll try and free up some time this weekend (this started out 
like a simple bugreport, hmm! :-)) no promises however!

Original comment by hcder...@gmail.com on 5 May 2011 at 9:13

GoogleCodeExporter commented 9 years ago
Thanks, and sorry for the troubles. Checkout/build/run instructions are here: 
http://code.google.com/p/ganttproject/wiki/GP20ForDevelopers 

For debugging, you'll probably want to start from GanttProject.quitApplication 
method, it is called directly from Swing action

Original comment by dbarashev on 5 May 2011 at 9:22

GoogleCodeExporter commented 9 years ago
Thanks for the pointers, i'll see what i can do!

Hey, i like your project and use it quite a lot, might as wel give something 
back!

Original comment by hcder...@gmail.com on 5 May 2011 at 9:28

GoogleCodeExporter commented 9 years ago
Currently checked out (or cloned) code from the repository works fine.
I did have a look at the quitapplication method, as it calls System.exit(0) 
when a project is saved (and as far as i can see following the checked route), 
it should simply work.

I think this issue can be considered closed.

Original comment by hcder...@gmail.com on 7 May 2011 at 11:55

GoogleCodeExporter commented 9 years ago
Why it doesn't work on your system then?

Original comment by dbarashev on 7 May 2011 at 5:38

GoogleCodeExporter commented 9 years ago
I really dont know, i've tested it with the current sources and both openJDK 
and Oracles' vm didnt give any trouble when ran as Eclipse Application.
I followed the checks that are done before calling System.exit(0), mainly a 
check if the current project has a flag "saved" set, and they all seem logical 
and seem to work.

Original comment by hcder...@gmail.com on 9 May 2011 at 8:32

GoogleCodeExporter commented 9 years ago
If it helps any, I have the exact same issue on Windows 7 x64 (running JRE 
6.0.19 (64-bit) & 6.0.26 (32-bit)) and Windows XP (6.0.17).

Same "Premature end of file." error when the main window opens. Similar log 
file attached.

Also, the Recent Projects submenu doesn't open.

Original comment by pkut...@gmail.com on 18 Jun 2011 at 3:09

Attachments:

GoogleCodeExporter commented 9 years ago
When you say "the exact same", do you mean that "Quit is not working" ? 

With respect to that "premature end of file" error, please check that 
~/.ganttproject file exists and has  meaning content. You may as well try 
deleting it.

Original comment by dbarashev on 18 Jun 2011 at 11:48

GoogleCodeExporter commented 9 years ago

Original comment by dbarashev on 6 Sep 2011 at 11:27