-
Notifications
You must be signed in to change notification settings - Fork 396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Numetalfan ojectives.properties 2.5 Release Problem #8214
Comments
2.5.22294: TechActivationDelegate#start:64 - java.lang.NullPointerException Mapworld_war_ii_v4 TripleA Version2.5.22294 Java Version11.0.4 Operating SystemWindows 7 MemoryHeap utilization statistics [MB] Stack Trace
|
hope this helps |
Thanks, that does help! |
As an attempt to learn, can you walk me through what all helped here? |
Hi all, anyone an Idea, why the game is playable until Italy and after Italys tun - it crashes. please help |
@Numetalfan I replied at the triplea site |
Hi, thats the error with 2.5 with the newest xml: Dez. 08, 2020 10:45:07 VORM. org.triplea.game.client.HeadedGameRunner lambda$initializeClientSettingAndLogging$0 the crashing of the game ist still the same, it occurs after Italys move. |
@Numetalfan , can you post the entire map zip or tell me which map this is based off of and what changes I need to make to it so that I can play this map? I tried loading the save but it failed because I don't have the map. |
@CharlieAtlas , the two things that helps is the stack trace and the saved game. The stack trace shows that the error is happening That brings up two questions:
I can't play the game yet, so I can't answer 1 but I can go through the git history and answer 2. Using So, it looks like in <1.9, the code allowed for One fix would be to change the code back to |
Hi, please download the map for testing issues https://storage.driveonweb.de/dowdoc/c84fc4098f53f8a891526fe7c7ba3a61288eec3f04cf9286 password is TripleAAA |
https://forums.triplea-game.org/topic/2435/post-turn-summary/21 here there are some more error messages from my latest try to play the game, but it crashed again. |
... . Thx, looks we are getting close to the missing link. |
@Numetalfan , I found the issue. In your xml, you have:
Notice the extra space at the end of I'm going to push a change that will throw an error if a player is specified but it couldn't be found. |
@CharlieAtlas , here's some details on how I figured out the issue. I downloaded the map files that @Numetalfan provided. I unzipped them in my Going up the stack trace, I can see that |
This is where some kind of map XML validation tool would be useful.
Thomas
…On Tue, Dec 8, 2020 at 7:38 AM trevan ***@***.***> wrote:
@CharlieAtlas <https://github.com/CharlieAtlas> , here's some details on
how I figured out the issue.
I downloaded the map files that @Numetalfan
<https://github.com/Numetalfan> provided. I unzipped them in my
downloadedMaps directory that triplea reads. I then added a breakpoint to
the first line in TechActivationDelegate#start. I started the game in
debug mode from my IDE and loaded the map. The breakpoint caught and I
noticed that player was indeed null.
Going up the stack trace, I can see that TechActivationDelegate#start was
called from ServerGame#startStep. And right before the call to #start is
a call to delegate.setDelegateBridgeAndPlayer. So I put a break point at
delegate.setDelegateBridgeAndPlayer and restarted the map. When the
breakpoint triggered, I stepped through the setDelegateBridgeAndPlayer
code to see how it found the player. I noticed that it would call
GameSequence.getStep and in the debugger, I looked through all of the
items in the steps list. I noticed that most of them had a valid player
except the american_westTechActivation step. I then opened up the xml
file, went to that definition, and looked at it closely and found the
errant space.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#8214 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABB5HAJIUB4IXOU6JOCL7R3STZB57ANCNFSM4T5MML5Q>
.
--
Thomas Leavitt
Internet enabled since 1990
|
thx@all |
How can the problem be recreated?
Do you have any ideas for an expected fix?
Attach a Save Game
testgame-playbyemail-2.5xx-after-italys-move.zip
testgame_1.9.xx-after-italys-move.zip
If playing a prerelease, which version are you using?
Game Version:
If playing a prerelease, does this happen on the latest release?
Is there anything else we should know?
This is created on Numetalfan's behalf. I will tell him to add more details. Here is his xml:
ww2v4-1941.xml.zip
Originally discussed here:
https://forums.triplea-game.org/topic/2435/post-turn-summary/4
The text was updated successfully, but these errors were encountered: