Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice

Question Crashes - Metal: MTLReportFailure.cold.1, MTLReportFailure + 468

Discussion in 'iOS and tvOS' started by studentvz, Apr 13, 2021.

  1. studentvz

    studentvz

    Joined:
    Dec 14, 2014
    Posts:
    149
    We have updated our project from Unity 2017.4.32f1 to Unity 2019.4.24f1 and now we are experiencing a load of crashes on users' devices and can't figure out what is going on. Auto graphics API is off and we manually have set: Metal, OpenGL ES 3.0, OpenGL ES 2.0. That was the only change.

    AppStoreCrashes.png

    Crashes are marked as Metal: MTLReportFailure.cold.1 +52 and MTLReportFailure.cold.1 +56 and they are happening on every device model as we saw by browsing crash log details.

    MTLReportFailure + 448
    MTLReportFailure + 468
    MTLReportFailure + 476

    bool MTLGetEnvCase<MTLErrorModeType>(char const*, MTLErrorModeType&, std::initializer_list<std::__1::pair<char const*, MTLErrorModeType> > const&) (.cold.1) + 50

    bool MTLGetEnvCase<MTLErrorModeType>(char const*, MTLErrorModeType&, std::initializer_list<std::__1::pair<char const*, MTLErrorModeType> > const&) (.cold.1) + 54

    -[_MTLCommandEncoder dealloc]:131: failed assertion `Command encoder released without endEncoding'

    Command encoder released without endEncoding

    Screenshot 2021-04-13 at 11.56.55.png

    Crash log example: pastebin or
    Similar issue tracker: https://issuetracker.unity3d.com/is...when-running-build-with-graphics-jobs-enabled
     
    Last edited: Aug 4, 2021
  2. studentvz

    studentvz

    Joined:
    Dec 14, 2014
    Posts:
    149
  3. studentvz

    studentvz

    Joined:
    Dec 14, 2014
    Posts:
    149
  4. Elscherino

    Elscherino

    Joined:
    Oct 30, 2017
    Posts:
    3
  5. studentvz

    studentvz

    Joined:
    Dec 14, 2014
    Posts:
    149
  6. Luchs06

    Luchs06

    Joined:
    Jan 8, 2016
    Posts:
    7
  7. studentvz

    studentvz

    Joined:
    Dec 14, 2014
    Posts:
    149
  8. Nico8292

    Nico8292

    Joined:
    Oct 14, 2019
    Posts:
    10
    Same for us with Unity 2019.4.28. We are suspecting Textmesh Pro dynamic fonts.
     
  9. studentvz

    studentvz

    Joined:
    Dec 14, 2014
    Posts:
    149
  10. studentvz

    studentvz

    Joined:
    Dec 14, 2014
    Posts:
    149
  11. Nico8292

    Nico8292

    Joined:
    Oct 14, 2019
    Posts:
    10
    It is fixed for us with 2019.4.30
     
  12. makomarkus

    makomarkus

    Joined:
    Oct 28, 2020
    Posts:
    61
    Didn't have it in 2020.3.18f1 but it started appearing in 2020.3.26f1 - possibly a regression?
    On MacOS
     
  13. falsevac

    falsevac

    Joined:
    Mar 16, 2016
    Posts:
    33
    Yep, happening to me too with 2020.3.26f1. Regression.
     
  14. normus28

    normus28

    Joined:
    Feb 16, 2014
    Posts:
    5
    This crash its constantly appearing in my app (2020.3.23, iOS 15.1)

    Code (CSharp):
    1. 0   libsystem_kernel.dylib                   0x1bab75964 __pthread_kill + 8
    2. 1   libsystem_pthread.dylib                  0x1f3a9c378 pthread_kill + 268
    3. 2   libsystem_c.dylib                        0x18f743f50 abort + 164
    4. 3   libsystem_c.dylib                        0x18f79a914 __assert_rtn + 212
    5. 4   Metal                                    0x19eccfd58 MTLReportFailure.cold.1 + 56
    6. 5   Metal                                    0x19ecbb6e0 MTLReportFailure + 476
    7. 6   Metal                                    0x19ec265e0 -[MTLComputePipelineDescriptorInternal setComputeFunction:] + 224
    8. 7   Metal                                    0x19ec25764 -[_MTLDevice newComputePipelineStateWithFunction:error:] + 64
    9. 8   ARKitCore                                0x1b823b9d8 -[ARDualGuidedFilter initWithDevice:useSmoothing:] + 672
    10. 9   ARKitCore                                0x1b8236ffc -[ARMatteGenerator _commonInitWithDevice:matteResolution:useSmoothing:] + 316
    11. 10  ARKitCore                                0x1b8236ea0 -[ARMatteGenerator initWithDevice:matteResolution:] + 108
    12. 11  UnityFramework                           0x1194ebd70 (anonymous namespace)::ARKitXROcclusionProvider::SetupPostProcessing() + 248
    13. 12  UnityFramework                           0x11bfeeed0
     
  15. makomarkus

    makomarkus

    Joined:
    Oct 28, 2020
    Posts:
    61
    Should be gone with latest 2020.3.x
     
  16. lfarkas73

    lfarkas73

    Joined:
    Jul 27, 2017
    Posts:
    3
    Hello, It is in 2020.3.30f and also in 20.3.34f1.
    However for me it works fine on almost all iOS devices except of iPhone 6s with iOS14.
     
  17. hexdecc

    hexdecc

    Joined:
    Oct 24, 2014
    Posts:
    146

    Attached Files: