Search Issue Tracker

Won't Fix

Votes

0

Found in

2017.4

2018.4

2019.3

2020.1

2020.1.0b2

2020.2

Issue ID

1230182

Regression

No

Crash on UnityEngine.TerrainData.set_detailPrototypes when adding Terrain Detail Mesh

Terrain

-

Reproduction steps:
1. Open the attached project ("1230182.zip")
2. Open "SampleScene"
3. Select "Terrain" in the Hierarchy
4. Open the Paint Details tab in the Terrain Component
5. Click "Edit Details..." and select "Add Detail Mesh"
6. Drag the "ToBeDetailMeshGO" to the "Detail" field and click "Add" button

Reproducible with: 2017.4.38f1, 2018.4.19f1, 2019.3.7f1, 2020.1.0b3, 2020.2.0a5

First lines of the stacktraces:
at (wrapper managed-to-native) UnityEngine.TerrainData.set_detailPrototypes (UnityEngine.TerrainData,UnityEngine.DetailPrototype[]) [0x00014] in <f7066d1ad92d45278e45462c4d1030bc>:0
at UnityEditor.DetailMeshWizard.DoApply () [0x0016e] in <89faf899e9c14826b38ffd64a0c1974d>:0
at UnityEditor.DetailMeshWizard.OnWizardCreate () [0x00002] in <89faf899e9c14826b38ffd64a0c1974d>:0
at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) [0x0004f] in <fb001e01371b4adca20013e0ac763896>:0

0x00007FF6B2809F3E (Unity) std::vector<Vector3f,std::allocator<Vector3f> >::_Assign_range<StrideIterator<Vector3f> >
0x00007FF6B2817490 (Unity) DetailDatabase::RefreshPrototypesStep1
0x00007FF6B28167FE (Unity) DetailDatabase::RefreshPrototypes
0x00007FF6B281E9D0 (Unity) DetailDatabase::SetDetailPrototypes
0x00007FF6B2802996 (Unity) TerrainDataScriptingInterface::SetDetailPrototypes

Note:
- The GameObject added as the Terrain Detail Mesh contains a Mesh Filter with a mesh that doesn't have normals, a Mesh Renderer and a default shader
- There's always an assertion failure before the crash: "Assertion failed on expression: 'm_Stride != 0 && "Stide must not be zero"'"

  1. Resolution Note:

    Reproduces only in an edge case scenario which is not a valid use case. (Assigning a mesh that has 0 verts and 0 indices)

Comments (2)

  1. swill8298

    Nov 15, 2021 07:58

    Anyone who faces this kind of issue, Use this online.uoregon.edu for assistance. I experienced them for my site ClothingRIC. Also please visit us for the latest coupons and discounts for everything clothingric.com/categories

  2. darrendemers12

    Jul 13, 2020 09:58

    The Collection Marts is platform where you can view latest designs about home décor and bedding. We have large range in different categories with finest fabric in cotton and silk. You can view not only present trends but also view huge collection with reasonable price. The Collection Marts can provide fast service about delivery as well as customer support too. Our products are not only self-made but also, well connected with markets to ensure for possibility of available designs if client want to purchase. The Collection Marts customer support open 24/7 to guide their customers about material or product stuff. <a href="http://www.thecollectionmarts.com/product-category/bedding/">summer bed sheets</a> , <a href="http://www.thecollectionmarts.com/product-category/comforter-set/">king size comforter size</a> , <a href="http://www.thecollectionmarts.com/product-category/high-quality-bedsheets/">gul ahmed bed sheets online shopping</a> , <a href="http://www.thecollectionmarts.com/product-category/bridal-set/">bed sheet fancy</a> , <a href="http://www.thecollectionmarts.com/product-category/bed-spread/">bedspreads and comforter sets</a> , <a href="http://www.thecollectionmarts.com/product-category/gadday/">buy cotton mattress near me</a> , <a href="http://www.thecollectionmarts.com/product-category/blanket/">blanket shop near me</a> , <a href="http://www.thecollectionmarts.com/product-category/razai-set/">jaipuri cotton razai</a> , <a href="http://www.thecollectionmarts.com/product-category/sofa-cover/">cheap sofa covers online</a> , <a href="http://www.thecollectionmarts.com/product-category/multani-gultex-bed-sheet/">crushed velvet bed sheets</a>

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.