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

NetInfo is null #378

Closed
originalfoo opened this issue Jun 13, 2019 · 3 comments · Fixed by #513
Closed

NetInfo is null #378

originalfoo opened this issue Jun 13, 2019 · 3 comments · Fixed by #513
Labels
discussion Contains debate on certain topics low priority Issue with low priority of work question General question
Milestone

Comments

@originalfoo
Copy link
Member

In a TMPE.log:

[Warning] @ 1889057900 SpeedLimitManager.OnBeforeLoadData: NetInfo @ 68 is null!
   at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
   at CSUtil.Commons.Log.Warning(System.String s)
   at TrafficManager.Manager.Impl.SpeedLimitManager.OnBeforeLoadData()
   at TrafficManager.State.SerializableDataExtension.OnLoadData()
   at SerializableDataWrapper.OnLoadData()
   at SimulationManager.LateUpdateData(UpdateMode mode, Single minProgress, Single maxProgress)
   at SimulationManager.Managers_LateUpdateData(UpdateMode mode, Single minProgress, Single maxProgress)
   at LoadingManager+<LoadSimulationData>c__IteratorB.MoveNext()
   at AsyncTask.Execute()
   at SimulationManager.SimulationStep()
   at SimulationManager.SimulationThread()

[Warning] @ 1889086080 SpeedLimitManager.OnBeforeLoadData: NetInfo @ 69 is null!
   at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
   at CSUtil.Commons.Log.Warning(System.String s)
   at TrafficManager.Manager.Impl.SpeedLimitManager.OnBeforeLoadData()
   at TrafficManager.State.SerializableDataExtension.OnLoadData()
   at SerializableDataWrapper.OnLoadData()
   at SimulationManager.LateUpdateData(UpdateMode mode, Single minProgress, Single maxProgress)
   at SimulationManager.Managers_LateUpdateData(UpdateMode mode, Single minProgress, Single maxProgress)
   at LoadingManager+<LoadSimulationData>c__IteratorB.MoveNext()
   at AsyncTask.Execute()
   at SimulationManager.SimulationStep()
   at SimulationManager.SimulationThread()

Does this cause any problems in-game? Is there a way to track down the source of the issue?

@originalfoo originalfoo added question General question discussion Contains debate on certain topics labels Jun 13, 2019
@krzychu124
Copy link
Member

Looks like some network prefabs are missing/broken - check output.log, there must be something

@originalfoo
Copy link
Member Author

For the null netinfo message, would it be possible to output the name of non-null adjacent netinfos?

It might give some indication as to the root of the problem. For example, if it's something in NEXT or MOM mods, we'd see from name of non-null adjacent netinfos something recognisable to those mods.

@originalfoo originalfoo added the low priority Issue with low priority of work label Aug 26, 2019
@originalfoo
Copy link
Member Author

Found the code, will try and output some details.

Will also try and fix #510 while in there.

originalfoo added a commit that referenced this issue Aug 30, 2019
First commit ensures that non-vehicle networks (eg. decorative networks) and bicycle paths are skipped in the speed limit manager.

Fixes #510

Second commit will add some logging either side of null netinfos to hopefully make source of them easier to track down (I suspect it's something to do with NExt2 or MOM).

#Fixes #378
@originalfoo originalfoo added this to the 11.0 milestone Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Contains debate on certain topics low priority Issue with low priority of work question General question
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants