LGhassen / Deferred

Add deferred rendering to KSP
Other
72 stars 2 forks source link

A few NREs from SubpixelMorphologicalAntialiasing in the SPH #7

Closed BrettRyland closed 3 months ago

BrettRyland commented 3 months ago

On entering the SPH, I'm seeing some NREs. The first is

[EXC 00:37:33.988] UnityException: GetComponentFastPath is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or Start instead. Called from MonoBehaviour 'SubpixelMorphologicalAntialiasing' on game object 'Main Camera'.
See "Script Serialization" page in the Unity Manual for further details.
  UnityEngine.Component.GetComponent[T] () (at <2425394cf09642369e2109953e31f62b>:0)
  Deferred.SubpixelMorphologicalAntialiasing..ctor () (at <ce07a0bdd1c54274b4b2af87d2fba355>:0)
  UnityEngine.DebugLogHandler:LogException(Exception, Object)
  ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
  UnityEngine.GameObject:AddComponent()
  Deferred.EditorLighting:HandleSMAA()
  Deferred.EditorLighting:Apply()
  Deferred.EditorLighting:Start()

which is followed by a steady stream of

[EXC 00:37:34.117] NullReferenceException: Object reference not set to an instance of an object
  Deferred.SubpixelMorphologicalAntialiasing.OnPreCull () (at <ce07a0bdd1c54274b4b2af87d2fba355>:0)
  UnityEngine.DebugLogHandler:LogException(Exception, Object)
  ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
  UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

which I suspect is caused by whatever failed in the constructor.

The Player.log and KSP.log files are here: logfiles.zip