Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Chasing an unnerving bug

Discussion in 'Addressables' started by sebas77, Feb 10, 2021.

  1. sebas77

    sebas77

    Joined:
    Nov 4, 2011
    Posts:
    1,594
    it's the whole day I am chasing a bug linked to some kind of data corruption I cannot understand. During the building of the addressables I get this error:

    Script attached to '' in scene 'Assets/Data/_Scenes/FullGame.unity' is missing or no valid script is attached.
    UnityEditor.GenericMenu:CatchMenu (object,string[],int)


    I ended up completely delete the content of the scene:

    upload_2021-2-10_19-5-32.png

    but the error is still there. I opened the .unity file and there is nothing weird in it:


    %YAML 1.1
    %TAG !u! tag:unity3d.com,2011:
    --- !u!29 &1
    OcclusionCullingSettings:
    m_ObjectHideFlags: 0
    serializedVersion: 2
    m_OcclusionBakeSettings:
    smallestOccluder: 5
    smallestHole: 0.25
    backfaceThreshold: 100
    m_SceneGUID: 00000000000000000000000000000000
    m_OcclusionCullingData: {fileID: 0}
    --- !u!104 &2
    RenderSettings:
    m_ObjectHideFlags: 0
    serializedVersion: 9
    m_Fog: 0
    m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
    m_FogMode: 3
    m_FogDensity: 0.01
    m_LinearFogStart: 0
    m_LinearFogEnd: 300
    m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
    m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
    m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
    m_AmbientIntensity: 1
    m_AmbientMode: 0
    m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
    m_SkyboxMaterial: {fileID: 0}
    m_HaloStrength: 0.5
    m_FlareStrength: 1
    m_FlareFadeSpeed: 3
    m_HaloTexture: {fileID: 0}
    m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
    m_DefaultReflectionMode: 0
    m_DefaultReflectionResolution: 128
    m_ReflectionBounces: 1
    m_ReflectionIntensity: 1
    m_CustomReflection: {fileID: 0}
    m_Sun: {fileID: 0}
    m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
    m_UseRadianceAmbientProbe: 0
    --- !u!157 &3
    LightmapSettings:
    m_ObjectHideFlags: 0
    serializedVersion: 12
    m_GIWorkflowMode: 1
    m_GISettings:
    serializedVersion: 2
    m_BounceScale: 1
    m_IndirectOutputScale: 1
    m_AlbedoBoost: 1
    m_EnvironmentLightingMode: 0
    m_EnableBakedLightmaps: 1
    m_EnableRealtimeLightmaps: 0
    m_LightmapEditorSettings:
    serializedVersion: 12
    m_Resolution: 2
    m_BakeResolution: 40
    m_AtlasSize: 1024
    m_AO: 0
    m_AOMaxDistance: 1
    m_CompAOExponent: 1
    m_CompAOExponentDirect: 0
    m_ExtractAmbientOcclusion: 0
    m_Padding: 2
    m_LightmapParameters: {fileID: 0}
    m_LightmapsBakeMode: 1
    m_TextureCompression: 1
    m_FinalGather: 0
    m_FinalGatherFiltering: 1
    m_FinalGatherRayCount: 256
    m_ReflectionCompression: 2
    m_MixedBakeMode: 2
    m_BakeBackend: 1
    m_PVRSampling: 1
    m_PVRDirectSampleCount: 32
    m_PVRSampleCount: 512
    m_PVRBounces: 2
    m_PVREnvironmentSampleCount: 256
    m_PVREnvironmentReferencePointCount: 2048
    m_PVRFilteringMode: 1
    m_PVRDenoiserTypeDirect: 1
    m_PVRDenoiserTypeIndirect: 1
    m_PVRDenoiserTypeAO: 1
    m_PVRFilterTypeDirect: 0
    m_PVRFilterTypeIndirect: 0
    m_PVRFilterTypeAO: 0
    m_PVREnvironmentMIS: 1
    m_PVRCulling: 1
    m_PVRFilteringGaussRadiusDirect: 1
    m_PVRFilteringGaussRadiusIndirect: 5
    m_PVRFilteringGaussRadiusAO: 2
    m_PVRFilteringAtrousPositionSigmaDirect: 0.5
    m_PVRFilteringAtrousPositionSigmaIndirect: 2
    m_PVRFilteringAtrousPositionSigmaAO: 1
    m_ExportTrainingData: 0
    m_TrainingDataDestination: TrainingData
    m_LightProbeSampleCountMultiplier: 4
    m_LightingDataAsset: {fileID: 0}
    m_LightingSettings: {fileID: 0}
    --- !u!196 &4
    NavMeshSettings:
    serializedVersion: 2
    m_ObjectHideFlags: 0
    m_BuildSettings:
    serializedVersion: 2
    agentTypeID: 0
    agentRadius: 0.5
    agentHeight: 2
    agentSlope: 45
    agentClimb: 0.4
    ledgeDropHeight: 0
    maxJumpAcrossDistance: 0
    minRegionArea: 2
    manualCellSize: 0
    cellSize: 0.16666667
    manualTileSize: 0
    tileSize: 256
    accuratePlacement: 0
    maxJobWorkers: 0
    preserveTilesOutsideBounds: 0
    debug:
    m_Flags: 0
    m_NavMeshData: {fileID: 0}



    at this point I don't know what else to do
     
  2. einWikinger

    einWikinger

    Joined:
    Jul 30, 2013
    Posts:
    93
    Do you have any automatic scene processing with e.g. IProcessSceneWithReport that automatically adds stuff to your scenes?
    It may also be that the error not actually referes to a object in the scene (If I remember correctly I had this issue once because scripts were missing on a prefab).
    Does the scene build correctly without errors when you include it into a "normal" player build (i.e. add it to the build settings)?
     
    sebas77 likes this.
  3. sebas77

    sebas77

    Joined:
    Nov 4, 2011
    Posts:
    1,594
    I actually do not remember now what I did to get rid of it, too tired chasing the problem, but I do have another one which is also worrying:

    The referenced script on this Behaviour (Game Object '<null>') is missing!
    The referenced script on this Behaviour (Game Object '<null>') is missing!
    The referenced script on this Behaviour (Game Object '<null>') is missing!
    The referenced script on this Behaviour (Game Object '<null>') is missing!

    there are no broken references in the prefabs, but obviously something is wrong
     
  4. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,796
    If you haven't yet, we highly recommend you file a bug report so our QA team can take a look.
     
  5. sebas77

    sebas77

    Joined:
    Nov 4, 2011
    Posts:
    1,594
    thanks, so you think it's a unity bug?