0
Searching answer

OpenICE Supervisor hanging on close?

Bradford Needham 9 years ago in OpenICE updated by Jeff Peterson 9 years ago 2

Folks,


We've run into an interesting symptom: normally the OpenICE Supervisor closes normally (after a few seconds). When we're on a slightly different network configuration, the Supervisor hangs - seemingly forever - after we click the close button.


The difference in the network configuration is that the "hang-on-close" configuration is that the laptop is on a subnet hosted by another computer, which is then connected to the main network.


Any ideas why network configuration would cause the OpenICE Supervisor to hang on close?


Thanks,

Brad

Searching answer

Hi Brad,


I've seen this error before as well. My hunch is that the DDS thread doesn't play nice with the network configuration you described. I have no evidence of this, however, there are known issues with DDS-Java and "hot swapping" the network configuration that may be related.


I spent a few minutes working backwards from "stop" in the Supervisor code (Main.java) hoping to find anything useful. We may be able to show that the error is directly related to an OpenICE App using the log (which would invalidate my DDS hunch). The messages "All apps closed, stop OK" or conversely ""Failed to stop/destroy " + aName, ex" would indicate success or failure, respectively, of the teardown of the apps in IceAppsContainer.java. These log entries are trigger by a lambda function in the event handler for the Java Fx primary stage "setOnHiding" method which the Supervisor uses to start app teardown. There is a java.util.concurrent CountDownLatch named stopOk that is not cleared until after app teardown is successful that may be causing the Supervisor to hang. BUT if the hang-on-close is occurring even on the "home" screen of the Supervisor (not in an app), this doesn't really apply and I'm out of ideas.


The work around is to simply kill the app with your OS' preferred method. On Mac, Force Quit works nicely. I'll escalate this internally to see if we can find something.


Thanks,
Jeff

Actually I misspoke because I read to quickly. The latch is cleared no matter what the outcome of stopping and destroying the open app was. If you see the log message "All apps closed, stop OK", it is safe to assume the App did not cause the hang.