Sender: |
|
Date: |
Tue, 14 Feb 2017 10:34:58 +0100 |
MIME-version: |
1.0 (Mac OS X Mail 7.3 \(1878.6\)) |
Reply-To: |
|
Content-type: |
text/plain; charset=us-ascii |
Subject: |
|
From: |
|
Message-ID: |
|
Content-Transfer-Encoding: |
8bit |
Parts/Attachments: |
|
|
It's not a bug in MASON, it's some kind of graphics resources allocation bug in Java 1.7.x on Linux distros. If you fire up your simulation and it displays a large window (typically larger than 500x500), Java will hang badly. But if you launch some *other* simulation, then use New Simulation... to go to your simulation, everything will work fine.
If you get bitten by this Linux-only bug, here's the workaround we've been playing with. On roughly line 1806 of sim/display/Display2D.java, there's there's the statement:
frame.pack();
Replace this with
final JFrame frame2 = frame;
SwingUtilities.invokeLater(new Runnable() {
public void run() {
frame.pack(); } } );
This should be entirely unnecessary but seems to not tickle the Linux bug.
Sean
|
|
|