Search Issue Tracker
Won't Fix
Votes
3
Found in
2018.3.0a1
2018.3.8f1
Issue ID
1140054
Regression
No
Unity crashes when enabling Mesh Renderer Lightmap Static
How to reproduce:
1. Open attached project "map"
2. In Hierarchy select TerrainBag/Default Terrain0/LowPolyTerrain
3. In Inspector tick Mesh Renderer/Lightmap Static checkbox
--------------------------------------
Observe crashing
Reproduced with: 2018.3.11f1
Could not reproduce with 2019.2 as the checkbox has been removed.
Does not reproduce with 2019.1, but ticking checkbox constantly produces these errors:
[PathTracer] Failed to add geometry; mesh is missing required attribute. Please make sure mesh contains positions, normals and texcoord0.
[PathTracer] AddGeometry job with hash: 66b0b10e164295898602f480784ec297 failed with exit code 1.
Comments (2)
-
pokerFace
Dec 20, 2019 20:38
Sorry for question, but can you explain, what do you mean on "to make sure that the meshes used for baking (lightmap static objects) have positions, normals and texture coordinates"?
All objects have positions and texture coordinates (if they have UV map).
So I don't understand what i have to change to avoid PathTracer error? -
Jesper-Mortensen
Apr 29, 2019 07:45
This has been fixed in 2019.1.
The workaround for earlier versions is to make sure that the meshes used for baking (lightmap static objects) have positions, normals and texture coordinates.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on GUIManager::DoGUIEvent when focusing on the Game view window on a specific project
- Asset creation in the Project Browser is not always undone/inconsistent when the undo shortcut is pressed right after creating an asset
- JobTempAlloc memory leak warning is thrown when the Player is shut down
- Graphics State Collection warm-up does not work when using with Addressables Shaders
- "Baked Shadow Radius" field is visible but inactive when when the Shadow Type is set to "Hard Shadows" under the Light Component
Resolution Note:
This has been fixed in 2019.1. The fix is not easily backportable. The workaround is to ensure that positions, normals and texcoords are available on meshes used for baking.