Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.9.1a is out! (05/10/19); Updated the Forum Rules and Guidelines (02/29/20); Blog post: GIF Roundup (04/11/20)

Author Topic: [0.7a RC10] Planet render NPE  (Read 4065 times)

Histidine

  • Admiral
  • *****
  • Posts: 2621
    • View Profile
    • Bitbucket profile
    • Email
[0.7a RC10] Planet render NPE
« on: December 04, 2015, 07:04:21 AM »

From Nexerelin thread:

Code
6035225 [Thread-5] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
at com.fs.starfarer.combat.entities.terrain.Planet.render3d(Unknown Source)
at com.fs.starfarer.combat.entities.terrain.Planet.renderSphere(Unknown Source)
at com.fs.starfarer.combat.entities.terrain.Planet.render(Unknown Source)
at com.fs.starfarer.ui.newui.N.renderImpl(Unknown Source)
at com.fs.starfarer.ui.private.render(Unknown Source)
at com.fs.starfarer.campaign.JumpPoint.render(Unknown Source)
at com.fs.starfarer.campaign.BaseCampaignEntity.render(Unknown Source)
at com.fs.graphics.LayeredRenderer.render(Unknown Source)
at com.fs.starfarer.campaign.BaseLocation.render(Unknown Source)
at com.fs.starfarer.campaign.CampaignEngine.render(Unknown Source)
at com.fs.starfarer.campaign.CampaignState.render(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$2.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
6035331 [Thread-11] INFO  sound.O  - Creating streaming player for music with id [miscallenous_corvus_campaign_music.ogg]
6035331 [Thread-11] INFO  sound.H  - Playing music with id [miscallenous_corvus_campaign_music.ogg]

Nexerelin, Corvus mode game (i.e. vanilla systems), with Shadowyards as the only faction mod
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 16523
    • View Profile
Re: [0.7a RC10] Planet render NPE
« Reply #1 on: December 04, 2015, 10:16:56 AM »

How reproducible is this?
Logged

alfa2

  • Ensign
  • *
  • Posts: 19
    • View Profile
Re: [0.7a RC10] Planet render NPE
« Reply #2 on: December 04, 2015, 04:46:42 PM »

one more bug
Code
0    [main] INFO  com.fs.starfarer.StarfarerLauncher  - Starting Starsector 0.7a-RC10 launcher
1    [main] INFO  com.fs.starfarer.StarfarerLauncher  - Running in D:\Games\Starsector\starsector-core
1    [main] INFO  com.fs.starfarer.StarfarerLauncher  - OS: Windows 7 6.1
1    [main] INFO  com.fs.starfarer.StarfarerLauncher  - Java version: 1.8.0_60 (32-bit)
21   [main] INFO  com.fs.starfarer.launcher.ModManager  - Found mod: lw_lazylib [D:\Games\Starsector\starsector-core\..\mods\LazyLib]
22   [main] INFO  com.fs.starfarer.launcher.ModManager  - Found mod: nexerelin [D:\Games\Starsector\starsector-core\..\mods\Nexerelin]
23   [main] INFO  com.fs.starfarer.launcher.ModManager  - Found mod: shaderLib [D:\Games\Starsector\starsector-core\..\mods\ShaderLib]
23   [main] INFO  com.fs.starfarer.launcher.ModManager  - Found mod: shadow_ships [D:\Games\Starsector\starsector-core\..\mods\shadow_ships]
24   [main] INFO  com.fs.starfarer.launcher.ModManager  - Found mod: lw_version_checker [D:\Games\Starsector\starsector-core\..\mods\Version Checker]
30   [main] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading JSON from [data/config/settings.json]
1133 [main] INFO  com.fs.starfarer.StarfarerLauncher  - Found display mode: 640x480, 60Hz, 32bpp
1133 [main] INFO  com.fs.starfarer.StarfarerLauncher  - Found display mode: 640x480, 60Hz, 16bpp
1133 [main] INFO  com.fs.starfarer.StarfarerLauncher  - Found display mode: 640x480, 75Hz, 16bpp

Code
33921 [Thread-5] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Ogma by 3.0918288E-4, is now 0.025346387
6033921 [Thread-5] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Ogma by 3.0918288E-4, is now 0.025578275
6033921 [Thread-5] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Ogma by 0.0010821401, is now 0.02638988
6033923 [Thread-5] INFO  exerelin.world.InvasionSupportFleetAI  - Strike fleet standing down; critical damage? true
6034005 [Thread-5] INFO  com.fs.starfarer.api.impl.campaign.shared.MarketConnectionActivityData  - Updating connection: [jangala_umbra]: trade (s: 0, l: 0), smuggling: (s: 0, l: 0)
6034040 [Thread-5] INFO  com.fs.starfarer.api.impl.campaign.shared.MarketConnectionActivityData  - Updating connection: [euripides_lumen]: trade (s: 0, l: 0), smuggling: (s: 0, l: 0)
6034359 [Thread-5] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Auris Grip by 2.720464E-4, is now 0.11052433
6034360 [Thread-5] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Auris Grip by 2.720464E-4, is now 0.11072836
6034360 [Thread-5] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Auris Grip by 2.720464E-4, is now 0.110932395
6034361 [Thread-5] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Auris Grip by 2.720464E-4, is now 0.11113644
6034362 [Thread-5] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Auris Grip by 2.720464E-4, is now 0.11134048
6034362 [Thread-5] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Auris Grip by 2.720464E-4, is now 0.11154451
6034717 [Thread-5] INFO  com.fs.starfarer.api.impl.campaign.shared.MarketConnectionActivityData  - Updating connection: [culann_starforge_tigra_city]: trade (s: 0, l: 0), smuggling: (s: 0, l: 0)
6035018 [Thread-5] INFO  sound.OOoO  - Cleaned buffer for sound music (using cast)
6035025 [Thread-9] INFO  sound.OOoO  - Cleaned buffer for sound music (using cast)
6035225 [Thread-5] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
at com.fs.starfarer.combat.entities.terrain.Planet.render3d(Unknown Source)
at com.fs.starfarer.combat.entities.terrain.Planet.renderSphere(Unknown Source)
at com.fs.starfarer.combat.entities.terrain.Planet.render(Unknown Source)
at com.fs.starfarer.ui.newui.N.renderImpl(Unknown Source)
at com.fs.starfarer.ui.private.render(Unknown Source)
at com.fs.starfarer.campaign.JumpPoint.render(Unknown Source)
at com.fs.starfarer.campaign.BaseCampaignEntity.render(Unknown Source)
at com.fs.graphics.LayeredRenderer.render(Unknown Source)
at com.fs.starfarer.campaign.BaseLocation.render(Unknown Source)
at com.fs.starfarer.campaign.CampaignEngine.render(Unknown Source)
at com.fs.starfarer.campaign.CampaignState.render(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$2.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
6035331 [Thread-11] INFO  sound.O  - Creating streaming player for music with id [miscallenous_corvus_campaign_music.ogg]
6035331 [Thread-11] INFO  sound.H  - Playing music with id [miscallenous_corvus_campaign_music.ogg]

Same error on
Code
 INFO  com.fs.starfarer.StarfarerLauncher  - Starting Starsector 0.7.1a-RC3 launcher
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 16523
    • View Profile
Re: [0.7a RC10] Planet render NPE
« Reply #3 on: December 04, 2015, 04:49:51 PM »

Thanks! Beyond starting a game with Nexerelin/Shadowyards, how would I go about reproducing this crash?
Logged

alfa2

  • Ensign
  • *
  • Posts: 19
    • View Profile
Re: [0.7a RC10] Planet render NPE
« Reply #4 on: December 04, 2015, 04:54:55 PM »

Can  put save here?
My save crash in 30 seconds( in the univerce) after load..
Damn save 5mb
I can send via email....
« Last Edit: December 04, 2015, 05:05:07 PM by alfa2 »
Logged

alfa2

  • Ensign
  • *
  • Posts: 19
    • View Profile
Re: [0.7a RC10] Planet render NPE
« Reply #5 on: December 04, 2015, 05:10:21 PM »

I put it on
https://cloud.mail.ru/public/J2Ff/FatwZPoAk

Bug happens when i fly out from system
into hyperspace
and heads to "hybrasil"
by safe noncloud passage

I tryed to fly at another direction - no crash....
« Last Edit: December 04, 2015, 05:19:51 PM by alfa2 »
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 16523
    • View Profile
Re: [0.7a RC10] Planet render NPE
« Reply #6 on: December 04, 2015, 05:18:47 PM »

(Ah, please disregard my PM, hadn't seen that you posted the save here.)
Logged

alfa2

  • Ensign
  • *
  • Posts: 19
    • View Profile
Re: [0.7a RC10] Planet render NPE
« Reply #7 on: December 04, 2015, 05:20:33 PM »

kk
Prev post updated
Quote
Bug happens when i fly out from system
into hyperspace
and heads to "hybrasil"
by safe noncloud passage

I tryed to fly at another direction - no crash....
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 16523
    • View Profile
Re: [0.7a RC10] Planet render NPE
« Reply #8 on: December 04, 2015, 05:43:37 PM »

Thanks for the save, reproduced the crash.

It crashes when it tries to draw the Hybrasil star, the rendering of it you see through the jump point.

The reason it crashes is it's looking for a texture with this filename:
graphics/planets/star_white.jpg

However, in Nexerelin's planets.json, star_white has the following texture defined for it:
graphics/exerelin/planets/star_texture_white.jpg

I'm not sure how this mismatch might have come about. Did this save go through several versions of Nexerlin, from a version where it wasn't providing a star_white definition, to one where it did? That's the only possibility that comes to mind.
Logged

alfa2

  • Ensign
  • *
  • Posts: 19
    • View Profile
Re: [0.7a RC10] Planet render NPE
« Reply #9 on: December 04, 2015, 05:50:53 PM »

this save come
from
[0.7a RC10]
to
[0.7.1a RC10]

and from
Nexerelin v0.7
to
Nexerelin + hotfix
« Last Edit: December 04, 2015, 05:53:25 PM by alfa2 »
Logged

Histidine

  • Admiral
  • *****
  • Posts: 2621
    • View Profile
    • Bitbucket profile
    • Email
Re: [0.7a RC10] Planet render NPE
« Reply #10 on: December 04, 2015, 06:08:48 PM »

Nexerelin's planets.json has been untouched since being added in 2013. I'll clean out the duplicate entries (that vanilla already has).

I think alfa2's save started out as a vanilla save and had Nexerelin added to it later (judging from a previously encountered crash).

In any case, I'm a bit confused as to how the crash occurs. Both the image files exist if Nexerelin is loaded, and both can be loaded by the game, right?
« Last Edit: December 04, 2015, 06:10:33 PM by Histidine »
Logged

alfa2

  • Ensign
  • *
  • Posts: 19
    • View Profile
Re: [0.7a RC10] Planet render NPE
« Reply #11 on: December 04, 2015, 06:14:38 PM »

Ssory.
I dont remember exactly.
But it most possible that this save was made from basic... I remember that i did so - but dont remember - is that a the old save. Or i start a new game after previous bug..
Sorry for disturbing

Now i remember that
I start new save after i am add those mods...
But before that i tryed to add mod to other basic save..

« Last Edit: December 04, 2015, 06:36:52 PM by alfa2 »
Logged

alfa2

  • Ensign
  • *
  • Posts: 19
    • View Profile
Re: [0.7a RC10] Planet render NPE
« Reply #12 on: December 04, 2015, 06:28:24 PM »

updated prev post
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 16523
    • View Profile
Re: [0.7a RC10] Planet render NPE
« Reply #13 on: December 04, 2015, 06:38:49 PM »

In any case, I'm a bit confused as to how the crash occurs. Both the image files exist if Nexerelin is loaded, and both can be loaded by the game, right?

Nothing else calls for that image to be loaded, so it isn't loaded on startup. The game doesn't generally load things on the fly.
Logged