MASON-INTEREST-L Archives

February 2017

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Tue, 14 Feb 2017 10:34:58 +0100
MIME-version:
1.0 (Mac OS X Mail 7.3 \(1878.6\))
Reply-To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Content-type:
text/plain; charset=us-ascii
Subject:
From:
Sean Luke <[log in to unmask]>
Message-ID:
Content-Transfer-Encoding:
8bit
Parts/Attachments:
text/plain (17 lines)
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

ATOM RSS1 RSS2