TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    strange bug with the latest triple version on a new windows

    Scheduled Pinned Locked Moved Bug Reports
    10 Posts 4 Posters 1.9k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G Offline
      Gully
      last edited by

      Hi,

      I get a strange bug that triggers every time I try to load a game already started with the newest engine as well as older ones that were Play by Forum. It also triggers in a new game as soon as the game would reallly get going. So in the first round of Vasall rounds in TWW and before Combat move in Global 40. The bug message reads:
      Apr 01, 2019 6:50:22 PM games.strategy.engine.framework.GameRunner lambda$start$0
      SEVERE: null
      java.lang.StackOverflowError
      at java.util.zip.Deflater.deflate(Unknown Source)
      at java.util.zip.Deflater.deflate(Unknown Source)
      at java.util.zip.DeflaterOutputStream.deflate(Unknown Source)
      at java.util.zip.DeflaterOutputStream.write(Unknown Source)
      at java.util.zip.GZIPOutputStream.write(Unknown Source)
      at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source)
      at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(Unknown Source)
      at java.io.ObjectOutputStream.writeObject0(Unknown Source)
      at java.io.ObjectOutputStream.writeObject(Unknown Source)
      at games.strategy.engine.data.GameDataComponent.writeObject(GameDataComponent.java:36)
      And it goes on and on but it won't let me post it because it get's flagged as spam.

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gully
        last edited by

        Here's the error log:

        [0_1554138983433_error.log](Uploading 100%)

        1 Reply Last reply Reply Quote 0
        • G Offline
          Gully
          last edited by

          And again as txt. So uploading it works:
          error.txt

          PantherP 1 Reply Last reply Reply Quote 0
          • PantherP Offline
            Panther Admin Moderators @Gully
            last edited by

            @Gully Which Java version are you running on your newly installed windows?

            Don't always trust TripleA when it comes to rules questions. Know the rules before you start … and better check what TripleA has done.

            1 Reply Last reply Reply Quote 0
            • RoiEXR Offline
              RoiEX Admin
              last edited by

              @Gully
              Hi, you're experiencing a very system-specific issue that we can't easily fix.
              A StackOverflowError always means that the stack ran out of space (also the reason the error message is so long, it somehow has to take up all of the space).
              I'd assume your error is happening when the game tries to create an auto-save.
              There is a workaround to this that might do the trick.
              If you go to the folder you installed TripleA to (usually C:\Program Files\TripleA on Windows) you should find a file called TripleA.vmoptions. If you open this file with a Text editor (such as Notepad on windows), you can add a line -Xss4m, save the file and check if the problem still exists.

              1 Reply Last reply Reply Quote 2
              • G Offline
                Gully
                last edited by

                Thanks. That makes it go away. So what did I do by editing that file?

                redrumR 1 Reply Last reply Reply Quote 0
                • RoiEXR Offline
                  RoiEX Admin
                  last edited by

                  Well as I meantioned before this error occurs because the Stack runs out of space (hence the name StackOverflow).
                  By adding this line you increase the Stack size to 4 mb

                  1 Reply Last reply Reply Quote 1
                  • redrumR Offline
                    redrum Admin @Gully
                    last edited by

                    @Gully Out of curiosity, can you provide a bit more detail specs on your system and OS?

                    As @RoiEX mentioned, the error occurs because for some reason your system isn't allocating enough memory for the Java stack that TripleA uses by default so it runs of out space. Adding that line to the file sets an explicit amount of memory for the Java stack.

                    TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      Gully
                      last edited by

                      It's an ancient machine with singel core 3,4 GHz 4MB Ram and newly installled Windows 7

                      redrumR 1 Reply Last reply Reply Quote 0
                      • redrumR Offline
                        redrum Admin @Gully
                        last edited by

                        @Gully Ah. I'm guessing its just not cooperating well with Java given its that old.

                        TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • 1 / 1
                        • First post
                          Last post
                        Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums