Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MekHQ 0.3.15 Interstella Map Tab
#1
MekHQ 0.3.15

Anyone having problem displaying the Interstella Map Tab? I can't display it properly...


Attached Files Thumbnail(s)
   
Reply
#2
Another screen shot.


Attached Files Thumbnail(s)
   
Reply
#3
As a blanket guess based on past experience, since I can't check while at work, there's probably a bad faction change in there somewhere affecting that time frame. The mekhqlog.txt would be a lot more useful in tracking down what/where the issue actually is though.
Reply
#4
Yea, based on your screenshot, there's an uncaught exception, which is why you see the tab highlighted but it hasn't switched to the proper card.  There should be a stack trace in the logfile that will indicate what the problem is.
Reply
#5
(08-07-2015, 08:06 AM)Jayof9s link Wrote: As a blanket guess based on past experience, since I can't check while at work, there's probably a bad faction change in there somewhere affecting that time frame. The mekhqlog.txt would be a lot more useful in tracking down what/where the issue actually is though.

Bad faction? I thought battle tech was all about shades of grey Wink.

But yes, we need a log file to diagnose. Also, I am working to make MHQ more robust to these sorts of data problems, assuming that is what is going on.
Reply
#6
That's usually what causes it and they tend to only show up when the bad faction code is active so if it changes to the bad faction from 2400 to 2500 it would only cause a problem in that time period and... I can't check every year easily (even harder when a change is only for a month or a year, etc.)
Reply
#7
Weird.. it is working fine at home... not in the office... but then again I'm not loading the same campaign file. I can only post the error log on Monday. Sorry.
Reply
#8
(08-07-2015, 01:25 PM)SirMegaV link Wrote: Weird.. it is working fine at home... not in the office... but then again I'm not loading the same campaign file. I can only post the error log on Monday. Sorry.

It's only going to be a problem at that date (give or take some number of months/years).
Reply
#9
Is it an NPE problem? Can you tell me how I could edit the factions to make it occur?
Reply
#10
(08-07-2015, 02:55 PM)Taharqa link Wrote: Is it an NPE problem? Can you tell me how I could edit the factions to make it occur?

If it is what I'm thinking (checking in a few minutes) it is an incorrect faction code in one of the faction changes. I.e. one that doesn't exist in factions.xml

Edit: Can't confirm one way or another, I get no error on that date. It is either an entirely unrelated issue or he modified his own planets.xml and created the issue. And I forgot MHQ now pops up a warning for incorrect faction codes when you start it up, so that probably isn't it. That's how it used to react though.
Reply
#11
OK.. here's the error in the log...

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at mekhq.gui.InterstellarMapPanel.paintComponent(InterstellarMapPanel.java:357)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JSplitPane.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JSplitPane.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager$4.run(Unknown Source)
at javax.swing.RepaintManager$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.access$1300(Unknown Source)
at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Reply
#12
Btw, it's dated August 10, 2465.
Reply
#13
That does seem to be the error I recall when there's a broken/incorrect/missing faction - there should be an error pop-up when you load up MHQ saying that there's an incorrect faction though...

(08-09-2015, 10:12 PM)SirMegaV link Wrote: Btw, it's dated August 10, 2465.

Yes, I saw that from the screen shot and tried that date - it worked fine for me with no errors.

Have you modified your planets.xml or factions.xml at all? I made some changes to the factions.xml file after the current release (removed 1-2 duplicates and fixed some formatting) but nothing that should throw off my test.
Reply
#14
(08-09-2015, 11:30 PM)Jayof9s link Wrote: That does seem to be the error I recall when there's a broken/incorrect/missing faction - there should be an error pop-up when you load up MHQ saying that there's an incorrect faction though...

Tried loading the save again, no, no pop-up message.

(08-09-2015, 11:30 PM)Jayof9s link Wrote: Yes, I saw that from the screen shot and tried that date - it worked fine for me with no errors.

Have you modified your planets.xml or factions.xml at all? I made some changes to the factions.xml file after the current release (removed 1-2 duplicates and fixed some formatting) but nothing that should throw off my test.

No, I didn't modify any planets.xml and factions.xml. But I'm using a modified ratinfo from previous version of MHQ which shouldn't be related.

Edit: Can I try with your new planets.xml and factions.xml
Reply
#15
Just noticed that I can't save after loading that save file.

Saving campaign...
File copied.
java.lang.NullPointerException
java.lang.NullPointerException
at mekhq.campaign.JumpPath.writeToXml(JumpPath.java:157)
at mekhq.campaign.CurrentLocation.writeToXml(CurrentLocation.java:211)
at mekhq.campaign.Campaign.writeToXml(Campaign.java:3172)
at mekhq.gui.CampaignGUI.menuSaveXmlActionPerformed(CampaignGUI.java:4160)
at mekhq.gui.CampaignGUI.access$3000(CampaignGUI.java:272)
at mekhq.gui.CampaignGUI$59.actionPerformed(CampaignGUI.java:2583)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Reply
#16
Okay, I think I have an idea of what the issue might be.

The new planets info was introduced in 0.3.15 and that included new coordinates for all planets. Were you in the process of traveling when you transferred to 0.3.15? It is also possible that the planet you were on was renamed slightly. Which planet were you on?

If you were traveling, I would go back to your save from 0.3.14 and finish traveling before updating.
Reply
#17
Thanks. I'll try later. I migt be wrong (bad memory), I think I was indeed traveling during the upgrade. 
Reply
#18
I have taken a look at it. The issue is on a pre-existing jump path, presumably that you were following. For some reason one of the planets on that jump path is coming up as null and that is the reason for the errors. Can you post a copy of that save file along with the two error logs to the bug tracker?

In the meantime, I think you can resolve the bug by editing a copy of your save file. Open it with a text editor and search for a line that says "<jumpPath>" and delete that and all the lines up to and including "</jumpPath>".

EDIT:
(08-10-2015, 09:33 AM)Jayof9s link Wrote: The new planets info was introduced in 0.3.15 and that included new coordinates for all planets. Were you in the process of traveling when you transferred to 0.3.15? It is also possible that the planet you were on was renamed slightly. Which planet were you on?

I just now saw this. That is almost certainly the source of the error. The jump path finds planets by their name, and so if the name changed between versions, it will come up with a null planet. Still, please post the bug, as I would like to make the program more robust to these kinds of problems.
Reply
#19
Ok. I'll make the error log again. I think I can make both error in the same log. The problem is my campaign file.. Uncompressed is about 60+ mb... Even after compressed it might still be fairly large. Is there a size limit for upload? Also I'm using some of Dylan's infantry.
Reply
#20
(08-10-2015, 12:57 PM)SirMegaV link Wrote: Ok. I'll make the error log again. I think I can make both error in the same log. The problem is my campaign file.. Uncompressed is about 60+ mb... Even after compressed it might still be fairly large. Is there a size limit for upload? Also I'm using some of Dylan's infantry.

I realize just want to see the <jumpPath> part of it. If you could find that with a text editor and paste it into the bug report that would be enough. You don't need to reproduce the logs. Just copy and paste what you already put up here.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)