App freezing on Linux

David Hill David.Hill at Oracle.com
Mon Dec 7 17:45:18 UTC 2015


On 12/7/15, 3:12 AM, Bryan Buchanan wrote:
> Found out what the problem was - I'm using Thrift for RPC, and was
> initialising the underlying Thrift socket with a connection timeout of zero
> (i.e. infinite). When there was a network disconnection, it appeared the FX
> UI thread was getting starved and the app freezes. All good now, and FX is
> fine.
Glad to hear you found your issue.

Sounds like a good place to use a worker thread to get that work off the UI thread. In fact, I happen to have this handy link to documentation on it :-)

https://docs.oracle.com/javase/8/javafx/interoperability-tutorial/concurrency.htm

Dave

-- 
David Hill<David.Hill at Oracle.com>
Java Embedded Development

"A man's feet should be planted in his country, but his eyes should survey the world."
-- George Santayana (1863 - 1952)



More information about the openjfx-dev mailing list