Search Issue Tracker

Fixed in 2020.1

Fixed in 2018.4, 2019.3

Votes

0

Found in

2018.4.0f1

2018.4.12f1

2019.2.0a6

2019.3

2020.1

Issue ID

1211482

Regression

Yes

Crash on memory allocation when double-clicking a Sprite which size is reassigned in OnDrawGizmos

2D

-

Steps to reproduce:
1. Open the attached project ("1211482.zip")
2. Open "EmptyScene" Scene
3. Delete all already created "New Game Objects"
3. Select the new "New Game Object"
4. In Inspector find Sprite Renderer component and change Draw Mode to Sliced or Tiled
5. Double-click the rendered Sprite in Scene View

Reproducible with: 2018.4.16f1, 2019.2.0a6 (5612105fae18), 2019.3.0f6, 2020.1.0a21
Not reproducible with: 2017.4.36f1, 2019.2.0a5

First lines of the stacktraces (occurs interchangeably):

0x00007FF6B0C9926E (Unity) memcpy_repmovs
0x00007FF6AD43EC23 (Unity) VertexData::VertexData
0x00007FF6AD409344 (Unity) SharedMeshData::SharedMeshData
0x00007FF6ACE9734E (Unity) SpriteRenderData::UnshareData
0x00007FF6ACE935EE (Unity) SpriteRenderData::AcquireWritableData

0x00007FF60A866A02 (Unity) block_remove
0x00007FF60A866E64 (Unity) tlsf_free
0x00007FF608C6D75A (Unity) DynamicHeapAllocator::Deallocate
0x00007FF608C69465 (Unity) DualThreadAllocator<DynamicHeapAllocator>::TryDeallocate
0x00007FF608C4DE4B (Unity) MemoryManager::Deallocate

0x00007FF620304BAD (Unity) aligned_free
0x00007FF61DCC619A (Unity) MemoryManager::Deallocate
0x00007FF61DCC5EA3 (Unity) MemoryManager::Deallocate
0x00007FF61DCC5C27 (Unity) MemoryManager::Deallocate
0x00007FF61DCD7B8A (Unity) free_alloc_internal

0x00000001405C89F3 (Unity) MemoryManager::GetAllocator
0x00000001405C869E (Unity) MemoryManager::Deallocate
0x000000014035D916 (Unity) SharedObject<SharedMeshData,1,SharedObjectDeleteReleaseOp<SharedMeshData> >::Release
0x0000000140594CEB (Unity) SpriteRenderData::UnshareData
0x000000014059287A (Unity) SpriteRenderData::AcquireWritableData

Notes:
- The crash doesn't reproduce with Simple set as Draw Mode
- The same code in Update() doesn't produce a crash
- The crash depends on the set Width and Height

  1. Response avatar

    Resolution Note (fix version 2020.1):

    Fixed in 2020.1.0a23

  2. Response avatar

    Resolution Note (fix version 2019.3):

    Fixed in 2019.3.4f1

  3. Response avatar

    Resolution Note (fix version 2018.4):

    Fixed in 2018.4.18f1

Comments (2)

  1. F66570a3a39e5c452c70d6771fbebfb8?d=mm

    licece6257

    Feb 28, 2020 07:38

  2. 2106d176300b2c18befb4d2736e9469d?d=mm

    hitller12

    Jan 25, 2020 16:44

    You can tell anything you want to know regarding Five Below through this Five Below Survey. Have you ever take purchase experience via the Five Below Online Survey? If no then follow the below post.

    https://checkthis.today/five-below-survey-www-fivebelowsurvey-com/

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.