Old 6th March 2015, 11:42   #1
kalverson
Senior Member
 
Join Date: May 2007
Location: Maple Grove, Minnesota
Posts: 134
Exclamation ExecDos hanging on Java process

This is just to document that it happened. I resolved my issue by using the older nsExec in place of ExecDos. I lose the output in the log, but it does not hang. Something about the Java output from flyway.cmd version 3.1 is causing ExecDos to hang up. When the same process is run in a command shell it runs fine. JStack on the hanging process just shows Java is outputting; there doesn't seem to be anything suspicious.
kalverson is offline   Reply With Quote
Old 31st March 2015, 17:44   #2
kalverson
Senior Member
 
Join Date: May 2007
Location: Maple Grove, Minnesota
Posts: 134
The 4k pipe is probably filling up. From a Google link on why Java processes hang:

Java doesn't do anything in this area. It just uses OS services to create the pipes. All Unix like OSs and Windows behave the same in this regard: A pipe with a 4K is created between parent and child. When that pipe is full (because one side isn't reading), the writing process blocks. This is the standard since the inception of pipes. There is not much Java can do.
kalverson is offline   Reply With Quote
Old 31st March 2015, 18:07   #3
aerDNA
Senior Member
 
aerDNA's Avatar
 
Join Date: Feb 2007
Location: Rijeka, Croatia
Posts: 225
Quote:
I resolved my issue by using the older nsExec in place of ExecDos. I lose the output in the log, but it does not hang.
What about nsExec::ExecToLog ?

PostEnd:
aerDNA is offline   Reply With Quote
Old 9th December 2016, 14:30   #4
kalverson
Senior Member
 
Join Date: May 2007
Location: Maple Grove, Minnesota
Posts: 134
I haven't tried the logging part yet. I did run into this same issue again with a different product running a postgresql sql script. Once again the install hangs on ExecDos.
kalverson is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump