|
From: SourceForge.net <no...@so...> - 2005-11-05 00:21:12
|
Bugs item #1348387, was opened at 2005-11-04 09:36 Message generated for change (Comment added) made by jerryvos You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101703&aid=1348387&group_id=1703 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Repast J Group: None >Status: Open >Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: simulation does not reinitialize Initial Comment: Reinitializing the model (after finishing one run) blocks RePast 3.1 if the setup method in the model class calls System.out.println(). My e-mail address: rad...@ep... ---------------------------------------------------------------------- >Comment By: Jerry Vos (jerryvos) Date: 2005-11-04 18:21 Message: Logged In: YES user_id=1093815 Reopening because of the below comments. ---------------------------------------------------------------------- Comment By: Reuben Grinberg (reubgr) Date: 2005-11-04 14:34 Message: Logged In: YES user_id=174152 I'm not sure that's the best solution. Output won't necessarily appear when it is expected. A common debugging technique is to use printouts: print "A" do something print "B" do something else etc... using invokeLater means that what is printed and where thigs go wrong may not be correlated, making debugging very difficult. invokeAndWait isn't the problem - it's that the console is non-existent or hidden. There are other, more correct ways to fix this (In my opinion). ---------------------------------------------------------------------- Comment By: Jerry Vos (jerryvos) Date: 2005-11-04 14:30 Message: Logged In: YES user_id=1093815 Thanks for reporting this. The problem was with RepastConsole. It was using a SwingUtilities.invokeAndWait instead of a SwingUtilities.invokeLater. I believe the problem is it was trying to update a non-existant or hidden Repast console. In any case, it appears to be fixed in CVS now. This fix will be in the next Repast release. ---------------------------------------------------------------------- Comment By: Reuben Grinberg (reubgr) Date: 2005-11-04 13:27 Message: Logged In: YES user_id=174152 This might have something to do with the updated Console code that I wrote this summer. Someone else incorporated it into Repast though - I don't remember who. ---------------------------------------------------------------------- Comment By: S Phelps (sphelps) Date: 2005-11-04 13:17 Message: Logged In: YES user_id=379878 I also observe this. Note that this is a new bug- the same model run under 3.0 reinitialises ok. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101703&aid=1348387&group_id=1703 |