Comments (6)
I can see we have the name change in the xml file.
from mekhq.
Couple of errors in the log.
mekhq.campaign.personnel.Person.generateInstanceFromXML(Person.java:1906) - Failed to read person Unnamed Person from file
java.lang.NullPointerException
at mekhq.campaign.personnel.Person.generateInstanceFromXML(Person.java:1593)
at mekhq.campaign.io.CampaignXmlParser.processPersonnelNodes(CampaignXmlParser.java:858)
at mekhq.campaign.io.CampaignXmlParser.parse(CampaignXmlParser.java:233)
at mekhq.campaign.CampaignFactory.createCampaign(CampaignFactory.java:83)
at mekhq.gui.dialog.DataLoadingDialog$Task.doInBackground(DataLoadingDialog.java:346)
at mekhq.gui.dialog.DataLoadingDialog$Task.doInBackground(DataLoadingDialog.java:202)
at java.desktop/javax.swing.SwingWorker$1.call(SwingWorker.java:304)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.desktop/javax.swing.SwingWorker.run(SwingWorker.java:343)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
and
mekhq.gui.dialog.DataLoadingDialog$Task.done(DataLoadingDialog.java:374) -
java.util.concurrent.ExecutionException: java.util.NoSuchElementException
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at java.desktop/javax.swing.SwingWorker.get(SwingWorker.java:613)
at mekhq.gui.dialog.DataLoadingDialog$Task.done(DataLoadingDialog.java:370)
at java.desktop/javax.swing.SwingWorker$5.run(SwingWorker.java:750)
at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:847)
at java.desktop/sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)
at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:857)
at java.desktop/javax.swing.Timer.fireActionPerformed(Timer.java:317)
at java.desktop/javax.swing.Timer$DoPostEvent.run(Timer.java:249)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.util.NoSuchElementException
at java.base/java.util.Vector.lastElement(Vector.java:526)
at mekhq.campaign.Campaign.clearGameData(Campaign.java:5748)
at mekhq.campaign.unit.Unit.resetPilotAndEntity(Unit.java:3583)
at mekhq.campaign.io.CampaignXmlParser.lambda$parse$0(CampaignXmlParser.java:386)
at mekhq.campaign.Hangar.lambda$forEachUnit$0(Hangar.java:117)
at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
at mekhq.campaign.Hangar.forEachUnit(Hangar.java:117)
at mekhq.campaign.io.CampaignXmlParser.parse(CampaignXmlParser.java:380)
at mekhq.campaign.CampaignFactory.createCampaign(CampaignFactory.java:83)
at mekhq.gui.dialog.DataLoadingDialog$Task.doInBackground(DataLoadingDialog.java:346)
at mekhq.gui.dialog.DataLoadingDialog$Task.doInBackground(DataLoadingDialog.java:202)
at java.desktop/javax.swing.SwingWorker$1.call(SwingWorker.java:304)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.desktop/javax.swing.SwingWorker.run(SwingWorker.java:343)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
from mekhq.
I can confirm this is new behavior in 0.49.19, as the campaign file loads fine in .11 ~ .18.
Unfortunately it doesn't look like loading in .18 and then re-saving will fix the issue; I'd hoped for a simple work-around like that.
I'll see what changed and how much work it will be to fix this. If the solution looks A) simple, B) bulletproof, and C) easy to validate with tests, I'll add it to the backport list as well.
from mekhq.
This looks like a planet data issue or lookup issue.
@Officer1473 you have three personnel from planet "Stonarboi" of system "Stonarboi". According to Sarna.net this planet changed names in 3152, to Almotacen.
@HammerGS This system has entries in the universe data, but the lookup is failing for some reason.
from mekhq.
It looks like we should be using the name lookup if the ID lookup fails.
from mekhq.
Looks like there is another error while clearing entities after loading...
Ah, we have a new check for hasBAP() that is not validating the sensor list first. This is an easy fix.
from mekhq.
Related Issues (20)
- Temperature is incorrectly set in Scenario HOT 1
- Personnel has NULL injury that does not appear anywhere else, unit has a damage that does not appear anywhere else HOT 2
- Add AtB setting to restrict generation of bombs on fighters
- StratCon generated naval reinforcements on a map with no water
- [0.49.19] NPE, "Could not find a mech summary" HOT 2
- StratCon is generating missions with weather modifiers when they are disabled
- RFE: TOE Persistence or Export HOT 6
- Optimizing interstellar transport: caching jump routes in the campaign
- freezes when starting refit from Meklab HOT 1
- [0.49.19] NPE "megamek.common.Entity.getEquipment(int)" is null HOT 1
- [0.49.19] Battle ending with a push out of bounds can not be resolved
- Issues rebuilding Infantry in MekHQ Mek Lab and Java Exception when attempting to add via GM Unit Purchase HOT 3
- [0.49.19] Unable to load HQ file from 49.18 HOT 3
- Add Tabs/ScrollPane to Customize Scenario
- Incorrect field naming in Customize Scenario Objective
- RFE: Remove Child Marriage and Knocked Up Children Flags HOT 4
- Vessel Tech Crews do not repair their vessels when given the mass repair order.
- [0.49.19] RFE: option to default show expanded log sections on Personnel tab HOT 1
- MegaMek fails to load dropship sent from MekHQ HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mekhq.