Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.95a is out! (03/26/21); Blog post: Skill Changes, Part 2 (07/15/21)

Author Topic: Support Request: Arcane crash with unhelpful stack trace  (Read 117 times)

SirHartley

  • Captain
  • ****
  • Posts: 453
    • View Profile
Support Request: Arcane crash with unhelpful stack trace
« on: May 04, 2021, 11:47:34 AM »

Hey, I'm getting a crash when docking at random markets:

Code
133786 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
at com.fs.starfarer.campaign.ui.marketinfo.supersuper$o.getIconName(Unknown Source)
at com.fs.starfarer.campaign.ui.marketinfo.C.setNumIcons(Unknown Source)
at com.fs.starfarer.campaign.ui.marketinfo.Objectnew.autoSizeTo(Unknown Source)
at com.fs.starfarer.campaign.ui.marketinfo.Objectnew.autoSizeWithAdjust(Unknown Source)
at com.fs.starfarer.campaign.ui.marketinfo.intnew.sizeChanged(Unknown Source)
at com.fs.starfarer.ui.OO0O.setSize(Unknown Source)
at com.fs.starfarer.campaign.ui.marketinfo.IndustryListPanel.sizeChanged(Unknown Source)
at com.fs.starfarer.ui.OO0O.setSize(Unknown Source)
at com.fs.starfarer.campaign.ui.marketinfo.s.sizeChanged(Unknown Source)
at com.fs.starfarer.ui.OO0O.setSize(Unknown Source)
at com.fs.starfarer.campaign.ui.marketinfo.T.showOverview(Unknown Source)
at com.fs.starfarer.campaign.ui.marketinfo.T.sizeChanged(Unknown Source)
at com.fs.starfarer.ui.OO0O.setSize(Unknown Source)
at com.fs.starfarer.campaign.ui.E.sizeChanged(Unknown Source)
at com.fs.starfarer.ui.OO0O.setSize(Unknown Source)
at com.fs.starfarer.ui.interface.setSize(Unknown Source)
at com.fs.starfarer.coreui.k.sizeChanged(Unknown Source)
at com.fs.starfarer.ui.OO0O.setSize(Unknown Source)
at com.fs.starfarer.ui.interface.setSize(Unknown Source)
at com.fs.starfarer.ui.newui.o0oO$5.actionPerformed(Unknown Source)
at com.fs.starfarer.ui.newui.o0oO.setCurrentTab(Unknown Source)
at com.fs.starfarer.ui.newui.o0oO.setCurrentTab(Unknown Source)
at com.fs.starfarer.ui.newui.V.showCoreInternal(Unknown Source)
at com.fs.starfarer.ui.newui.V.showCore(Unknown Source)
at com.fs.starfarer.api.impl.campaign.rulecmd.OpenCoreTab.execute(OpenCoreTab.java:40)
at com.fs.starfarer.ui.newui.OoOO.actionPerformed(Unknown Source)
at com.fs.starfarer.ui.k.buttonPressed(Unknown Source)
at com.fs.starfarer.ui.oooO.new(Unknown Source)
at com.fs.starfarer.ui.oooO.processInput(Unknown Source)
at com.fs.starfarer.ui.V.super(Unknown Source)
at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

I am sure this is caused by my mod, IndEvo, but I have absolutely no idea at what I should be looking to fix it. It started happening after I added a new commodity. Adding it to the inventory, dropping it from combat, all of that works without issue.
Logged

SirHartley

  • Captain
  • ****
  • Posts: 453
    • View Profile
Re: Support Request: Arcane crash with unhelpful stack trace
« Reply #1 on: May 04, 2021, 02:54:38 PM »

okay, it's not the new commodity, it's something else.
Logged

SirHartley

  • Captain
  • ****
  • Posts: 453
    • View Profile
Re: Support Request: Arcane crash with unhelpful stack trace
« Reply #2 on: May 04, 2021, 03:05:57 PM »

figured it out.

crash is caused by the wonderful self explanatory piece of code that follows:
Code
market.getIndustry(industryId).setSpecialItem(new SpecialItemData(null, null));

Which causes the industry to not crash, not do anything, right until the player docks at the market - at which point it proceeds to crash because it tries to get the icon for null.
Logged