RPTools.net

Discussion and Support

Skip to content

It is currently Sat May 18, 2013 10:08 pm 




Forum rules


PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior. :)



Reply to topic  [ 8 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Kobold
 
Joined: Tue Oct 25, 2011 7:17 am
Posts: 20
 Post subject: Linux - Error: Stack overflow
PostPosted: Sun Apr 22, 2012 3:20 pm 
I changed from Windows to Linux and got some problems.

Old system (where everything works fine):
- Windows 7
- MapTool 1.3 b87
- MAXMEMSZ="256m"
- MINMEMSZ="64m"
- STACKSZ="2m"

New system:
- Linux Ubuntu 11.10 (64bit)
- OpenJDK Java 7 Runtime
- MapTool 1.3 b87
(where I gave up:)
- MAXMEMSZ="1024m"
- MINMEMSZ="512m"
- STACKSZ="200m"


1) There's no more window "MapTool Launcher Settings" when I start MT.

2) I used "dialog" in a token macro for background informations about a selected character. This isn't working anymore. Now I get an error message
Code:
<html>A stack overflow has occurred.<b>This is commonly because a macro being used has exceeded the stack space specified when MapTool was executed (...)


Cause I do not get a the Launcher Setting window, I modified the "launchMapToll.sh" file. But it doesn't matter whether the stack size is 2 or 200, I always get this error. Is there a way to control if MT really started the way was defined?

The macro looks like this:
Code:
[dialog("Text "): {
<br><b>Text </b>:  <br>
Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text <br>
<br><b>Text </b>:  <br>
Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text <br>
<br><b>Text </b>:<br>
Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text }]


Top
 Profile  
 
 Offline
Kobold
 
Joined: Tue Oct 25, 2011 7:17 am
Posts: 20
 Post subject: Re: Linux - Error: Stack overflow
PostPosted: Sun Apr 22, 2012 4:37 pm 
I tried maptool-1.3.b88 which doesn't work with OpenJDK Java 7 Runtime at all. With OpenJDK Java 6 Runtime I got the error mentioned above.
So maybe I just need the proper Java Runtime and everything will be fine?


Top
 Profile  
 
 Offline
Giant
 
Joined: Sun Sep 04, 2011 6:01 am
Posts: 185
 Post subject: Re: Linux - Error: Stack overflow
PostPosted: Mon Apr 23, 2012 3:09 pm 
Try reducing stacksize to the old "2m". 200m ís way out of bounds.


Top
 Profile  
 
 Offline
Kobold
 
Joined: Tue Oct 25, 2011 7:17 am
Posts: 20
 Post subject: Re: Linux - Error: Stack overflow
PostPosted: Mon Apr 23, 2012 4:49 pm 
I did - but this makes no difference.


Top
 Profile  
 
 Offline
Great Wyrm
 
Joined: Tue May 26, 2009 7:51 pm
Posts: 2060
Location: Philadelphia, PA
 Post subject: Re: Linux - Error: Stack overflow
PostPosted: Tue Apr 24, 2012 6:59 am 
MapTool does not work with OpenJDK. Swap it out with Oracle's version and see if the overflow goes away.

_________________
Image
Time-Zone information UTC -5


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Sep 11, 2007 6:31 pm
Posts: 5228
 Post subject: Re: Linux - Error: Stack overflow
PostPosted: Tue Apr 24, 2012 7:11 am 
neofax wrote:
MapTool does not work with OpenJDK. Swap it out with Oracle's version and see if the overflow goes away.


Ditto.... OpenJDK just plain blows. I was testing (for the first time really on this "newish" machine) and could not start a server. OpenJDK(1.6) showed my network address as 127.0.0.1 when checking in MapTool's start Connection information dialog as well as the system diagnostics. And I assume that that address just won't bind to a port (which it shouldn't.) I already had Oracle Java installed, so I did an update alternatives(using linux Mint, so Debian based) and boom... it picked up my "real" address right away and I was able to start a server correctly.

_________________
I save all my Campaign Files to DropBox. Not only can I access a campaign file from pretty much any OS that will run Maptool(Win,OSX, linux), but each file is versioned, so if something goes crazy wild, I can always roll back to a previous version of the same file.

Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..


Top
 Profile  
 
 Offline
Kobold
 
Joined: Tue Oct 25, 2011 7:17 am
Posts: 20
 Post subject: Re: Linux - Error: Stack overflow
PostPosted: Wed Apr 25, 2012 2:45 am 
Thanks for your relays.

I'll install Oracle's Java in a few weeks (after the actual running game is finished).


Top
 Profile  
 
 Offline
Kobold
 
Joined: Tue Oct 25, 2011 7:17 am
Posts: 20
 Post subject: Re: Linux - Error: Stack overflow
PostPosted: Sun May 06, 2012 4:46 pm 
Not sure, not yet .. but it looks like a "maptool.sh" including
Code:
java -Xmx512M -Xms64M -Xss5M -jar /.../maptool-1.3.b82.jar

was all I needed.


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 8 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there are 2 users online :: 1 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: Bing [Bot] and 1 guest





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman