TeX-Live / tlcockpit

GUI for tlmgr written in Scala
GNU General Public License v3.0
27 stars 2 forks source link

tlcockpit seems to run into an infinite loop on exit #2

Closed 7Z0t99 closed 6 years ago

7Z0t99 commented 6 years ago

I have tried tlcockpit from TeX Live rev 45426 running on Win 7 64 bit with the 64bit Oracle jre 8u141. It really feels a lot more fluid than tlmgr-gui! When I close tlcockpit, its window closes but in the background its javaw.exe seems to run into an infinite loop.

norbusan commented 6 years ago

Can you try to run it from a cmd window manually with java -jar ...../tlcockpit.jar and see if the same happens?

7Z0t99 commented 6 years ago

I just tried: the same happens.

norbusan commented 6 years ago

Hmm, thanks. Needs investigation (but rarely I use Win7 and on Win10 it works).

abenori commented 6 years ago

I have the same problem with Win 10.

norbusan commented 6 years ago

Hmmm, do you have texlive.infra from tlcritical installed?

abenori commented 6 years ago

No, I only use tlnet.

norbusan commented 6 years ago

Hmm, that should actually be enough. What version of Java are you running? On my Windows10 I don't see this behaviour.

abenori commented 6 years ago

The result of java -showversion is:

java version "1.8.0_141"
Java(TM) SE Runtime Environment (build 1.8.0_141-b15)
Java HotSpot(TM) Client VM (build 25.141-b15, mixed mode)
norbusan commented 6 years ago

Hmm, all my systems have _144 installed. Could you try out some 1.8 144 version and see if this changes anything?

abenori commented 6 years ago

I updated it to _151 and had the same problem. I'll look for _144.

norbusan commented 6 years ago

No, there should be no need to test that. Thanks for testing 151, that is enough.

norbusan commented 6 years ago

This is really strange. I have now done the following:

and there was no hang whatsoever ...

norbusan commented 6 years ago

Ahhh, I see now what happens: When you close tlcockpit with the X of the window manager, it hangs. When you close tlcockpit with the menu entry TLCockpit -> Exit it does not hang

Can you confirm this?

7Z0t99 commented 6 years ago

Yes, I can. To be honest I hadn't thought of closing the program via the menu entry before I read your post; I always used the X

norbusan commented 6 years ago

It is supposed to do the same, I have added a special exit function and on Linux it does work, but somehow the way how Windows terminates programs via the X seems to be different. I need to investigate ...

abenori commented 6 years ago

Yes, I can.

Me too!

norbusan commented 6 years ago

Thanks for checking!

norbusan commented 6 years ago

Can you two please try with the new jar pulled from master branch here? I have added additional shutdown code and now it works at least on my win10 when using the Exit menu item (as before) but also when closing the Window with the X button.

Thanks

abenori commented 6 years ago

looks good!

norbusan commented 6 years ago

Thanks for testing. I will not push an update to TL, though, because I first want to get the JSON functionality in shape (texlive.infra/tlmgr side) and make tlcockpit use the json output, allowing for more detailed display.

Anyway, I am closing this since it is fixed in the code.

Thanks

Norbert