Search Issue Tracker

Fixed in 2021.2.X

Duplicate in 2019.4.X

Votes

1

Found in

2019.4

2020.2

2021.1

2021.1.0b1

2021.2

Issue ID

1303935

Regression

No

[Metal] [iOS] Application crashes on BufferMetal::SetData when multithreaded rendering is on

Metal

-

Reproduction steps:
1. Open project in "case_1274547-minimum.zip"
2. Build the project for iOS and deploy it to a device
3. Wait

Actual result: the project crashes at launch or after some time (usually takes less than 20 seconds)

Reproducible with: 2019.4.29f1, 2020.3.13f1, 2021.1.14f1, 2021.2.0a17
Not reproducible wih: 2021.2.0a18 (Fix version), 2022.1.0a1
Could not test with 2018.4.31f1 (precompiled assembly exception)

Devices tested:
Reproducible with:
VLNQA00310 iPad Pro 12.9 1st gen (iOS 13.4.1)
iPhone 8+ (iOS 12.0)
iPhone XR (iOS 13.4.1)
iPad Air 2 (iOS 11.0.3)
iPad 9.7 6th gen (iOS 14.0b7)
Not reproducible with:
iPhone 11 (iOS 13.7)
iPhone 11 (iOS 14.3)
Apple TV 4th gen (tvOS 14)
iPhone SE 2nd gen (iOS 14.0.1)

Few lines from trace:
* thread #29, name = 'UnityGfxDeviceWorker', stop reason = EXC_BAD_ACCESS (code=1, address=0x18)
* frame #0: 0x0000000105dbb278 UnityFramework`BufferMetal::SetData(void const*, unsigned long, unsigned long) + 60
frame #1: 0x0000000105dca660 UnityFramework`GfxDeviceMetal::SetComputeBufferData(GfxBuffer*, void const*, unsigned long, unsigned long) + 40
...

  1. Resolution Note (fix version 2021.2):

    Fixed in 2021.2.0a18

Comments (2)

  1. NHN_Fujisawa

    Apr 28, 2022 01:54

    I want to know when this solution will be implemented in 2019.4.x.

  2. meryemekinci

    Sep 24, 2021 18:55

    I am having the same issue with 2020.3.10.

    There is no 2021.2.X version on Unity Download page. Which fixed version is available on the download page?

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.