Skip to content
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

Kopernicus spams NRE's under Linux #158

Closed
kaa253 opened this issue Jan 7, 2017 · 25 comments
Closed

Kopernicus spams NRE's under Linux #158

kaa253 opened this issue Jan 7, 2017 · 25 comments

Comments

@kaa253
Copy link

kaa253 commented Jan 7, 2017

Steps to reproduce.

  1. Clean install KSP 1.2.2 for Linux 64 bit.
  2. Install Kopernicus into GameData from https://github.com/Kopernicus/Kopernicus/releases/tag/release-1.2.2-2.
  3. Go to flight scene and open debug console.
  4. Press "M" to switch to map.
  5. Observe NRE spam.

Log files attached.
Player.log.zip
KSP.log.zip

@StollD
Copy link
Member

StollD commented Jan 11, 2017

Sory, haven't seen this. Could you please post your Logs/Kopernicus folder?

@kaa253
Copy link
Author

kaa253 commented Jan 12, 2017

No problem. Reading back through the forum thread I just became aware you may want the logs. Coming here I see you do. Sweet.
Kopernicus.zip

@StollD
Copy link
Member

StollD commented Feb 1, 2017

This is... weird. I dont see anything in the logs that could have caused this, and I dont have this issue on my machine (windows).

Does this only occur when installing the raw Kopernicus, or with planet packs too?

@kaa253
Copy link
Author

kaa253 commented Feb 3, 2017

It occurs with raw Kopernicus and with OPM too. It does not occur in tracking station view only in the in-flight map view and although it is spamming NREs continuously in the map view I don't actually notice a performance hit to speak of so I am persevering with it.

@byaka
Copy link

byaka commented Feb 27, 2017

maybe same issue with SVT
KSP.log
Player.log

@mikeloeven
Copy link

mikeloeven commented Feb 27, 2017

Also encountering this under windows
https://youtu.be/EO1388cNs6g
(if the resolution is too low and you want the raw video send me a PM on the KSP forums)

KSP.txt

@StollD
Copy link
Member

StollD commented Feb 27, 2017

Both of your logs contain an exception while loading the Kopernicus Configs, which makes me think that this is an issue with the respective planet mods (one time the error occurs while loading Eve, and the other time while loading a body named "1")

@mikeloeven
Copy link

mikeloeven commented Feb 27, 2017

Yep I posted it on the TBG thread in the forum as well but thanks for confirming its an issue with world generation and not kopernicus it's self

@Sigma88
Copy link
Contributor

Sigma88 commented May 18, 2017

Have you managed to solve this issue?

@canisdirusleidy
Copy link

Looks like the root of the problem here lies in "Modular Flight Integrator" mod. Check (on Linux) with KSP 1.2.2 and 1.3 and latest (1.2.2-7 and 1.3.0-2) Kopernicus: everything is normal without MFI, but then MFI is installed I get "Kopernicus.RuntimeUtility.LateUpdate () [0x00000] in :0" spam after switching to map mode in flight.

KSP122log.zip
Kopernicus.zip

@Sigma88
Copy link
Contributor

Sigma88 commented Jun 7, 2017

Without mfi kopernicus disables itself.

So everything is indeed "normal" as in "not modified by kopernicus" :)

@Monchoman45
Copy link

I also have this problem in 1.3.0 with release-1.3.0-2 using only Kopernicus (no OPM or anything else). Interestingly, everything is fine if you have a level 1 tracking station; NREs only show up when you upgrade to level 2.

KSP.log

@StollD
Copy link
Member

StollD commented Jun 10, 2017

Please try it with this build and send me your logfiles. Just copy the files in the zip in GameData/Kopernicus/Plugins
DebugSpam.zip

@frencrs
Copy link

frencrs commented Jun 11, 2017

That build prints '4' to the log before each NullRefException. The first '4' is printed to the log before the first NullRefException.

KSP.log.txt

@Monchoman45
Copy link

Monchoman45 commented Jun 11, 2017

Here it is. The magic number is 4, apparently.

Edit: and this is what I get for leaving this page open all day.

KSP.log

@StollD
Copy link
Member

StollD commented Jun 11, 2017

I hope my last commit fixed this issue. Here is the build for you, so you can test it.
MaybeFixed.zip

@Monchoman45
Copy link

LGTM, no more NREs.

@frencrs
Copy link

frencrs commented Jun 11, 2017

Awesome that works, would that fix be easy to add to the 1.2.2 backport?

@canisdirusleidy
Copy link

But it broke compatibility with SigmaDimensions (at least under Linux): exceptions begins at game loading and endless loop of NREs then trying to start new game/load savefile from main menu.
KSP_logs.zip

Sorry, something went wrong.

@StollD
Copy link
Member

StollD commented Jun 12, 2017

@canisdirusleidy I need the logs from Logs/Kopernicus too please

Sorry, something went wrong.

@Sigma88
Copy link
Contributor

Sigma88 commented Jun 12, 2017

the modulemanager cache file also can help

Sorry, something went wrong.

@canisdirusleidy
Copy link

Here they are.
Kopernicus_logs.zip
ModuleManager_logs.zip

Sorry, something went wrong.

@Sigma88
Copy link
Contributor

Sigma88 commented Aug 24, 2017

I think this should have been addressed in one of the latest patches, are you still seeing this issue?

@kaa253
Copy link
Author

kaa253 commented Aug 26, 2017

Sorry about the slow follow up. I have been without internet for a couple of months.
It looks very much like this is now fixed. Thank you Dorian, Sigma88 and All!

@Sigma88
Copy link
Contributor

Sigma88 commented Aug 26, 2017

glad to hear!

@Sigma88 Sigma88 closed this as completed Aug 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants