Search Issue Tracker

Fixed in 2018.1

Fixed in 2017.3, 2017.4

Votes

0

Found in

2017.3.0b3

Issue ID

955674

Regression

Yes

'kValidSceneObjectIdentifier == res' assert after selecting a prefab and its preview window is visible

Scene/Game View

-

The bug still occurs in trunk Unity 2018.1.0a1 #3622 8e2bcab90b4e on windows and mac platform

Steps to reproduce:

1. Open attached project
2. Select 'Assets/Props/barrel_pile' prefab

Additional steps:
3. Close preview window
4. Deselect and reselect prefab - assertion is gone

Reproduced with: 2017.3.0b1, 2017.3.0b3
Not reproducible: 2017.2.0f2, 2017.3.0a7

Regression introduced in: 2017.3.0b1

Steps to reproduce the error from scratch:
1) Create a empty GameObject in Hiearchy
2) Create two cubes as a child of empty GameObject
3) Drag the GameObject to Project tab to convert it to a prefab
4) In Project tab, mark the prefab as `Lightmap static`
5) In Hierachy, duplicate the GameObject
6) Drag the duplicated GameObject to Project folder
7) Observe the `Assertion failed: Assertion failed on expression: 'kValidSceneObjectIdentifier == res'` asserts in console

Comments (10)

  1. 507a55c1d264c180cd60720447a850a9?d=mm

    GameDesignDude

    Dec 26, 2018 08:20

    I am still having the issue in 201830f2 Personal (64 Bit) Mac OS

  2. Df8c5f23d0e28e6b277f88828ec660e8?d=mm

    zwcloud

    Jul 31, 2018 12:27

    noticed

  3. Df8c5f23d0e28e6b277f88828ec660e8?d=mm

    zwcloud

    Jul 31, 2018 12:25

    For anyone who ran into this issue when baking lightmap for dynamically created mesh. Make an editor tool and write:

    EditorPrefs.SetBool("MeshRendererEditor.Lighting.ShowSettings", false);

    This closes the *Lighting* part in the Inspector of the MeshRenderer. I just notified that the error disappeared after I close the *Lighting* part.

  4. B6779983e45d6b41498deb00b9113c40?d=mm

    MeTx

    Mar 29, 2018 11:05

    Still here in 5.6.3p2
    Assertion failed on expression: 'CompareApproximately(SqrMagnitude(result), 1.0F)'
    UnityEngine.Transform:set_eulerAngles(Vector3) NewBoatMovement:Update()

  5. 9b2f003c85e2fe2a7c8c8a476f051b08?d=mm

    mikelo

    Jan 31, 2018 09:39

    Still active in Unity 2018.1.0b4

  6. C72662fdd0faa10ba3089e0f0c192f57?d=mm

    Desktopdaydreams

    Jan 22, 2018 19:35

    Hi folks, I just came across this. For me, I had to clear all the flags from each mesh renderer in the prefab and then clear the occlusion culling. That cleared up the errors in the console. Hope it helps.

  7. 7989f50f472ffdd3145a65fd7ec7e758?d=mm

    Vagrant-VX

    Nov 21, 2017 22:24

    workarounds for this issue
    uncheck "Auto Generate" checkbox in Lighting Settings

  8. 19431a867d734fc182d5c5e32685bf2d?d=mm

    rcfearn

    Nov 17, 2017 07:27

    I still have this issue in 2017.3.0b9 Personal (64 Bit) Mac OS

  9. 5e2ef6f3202ce91c0613fc9e79449d03?d=mm

    Nerzal

    Nov 08, 2017 15:52

    I still have that Issue in Unity 2017.3.0b8

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.