Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug 2022 LTS Cloth causes crashing on play

Discussion in 'Editor & General Support' started by Filopuk, Jun 29, 2023.

  1. Filopuk

    Filopuk

    Joined:
    Jul 24, 2015
    Posts:
    10
    Hi!
    I've upgraded to 2022 LTS from 2021 LTS today. Every time I'm pressing Play, the engine crashes when an object with the cloth component is active. It is the cloth that causes it, as turning the object active in a working playmode causes the engine to crash again.

    I've removed the library folder and let Unity rebuild it already.

    Info about the crash from the log:


    =================================================================
    Native Crash Reporting
    =================================================================
    Got a UNKNOWN while executing native code. This usually indicates
    a fatal error in the mono runtime or one of the native libraries
    used by your application.
    =================================================================

    =================================================================
    Managed Stacktrace:
    =================================================================
    =================================================================
    Received signal SIGSEGV
    Obtained 15 stack frames
    0x00007ff7b5772d49 (Unity) ClothScene::PrepareScene
    0x00007ff7b577273e (Unity) ClothManager::LateUpdate
    0x00007ff7b5771d2b (Unity) `ClothManager::Initialize'::`2'::PostLateUpdatePhysicsSkinnedClothBeginUpdateRegistrator::Forward
    0x00007ff7b4e99bba (Unity) ExecutePlayerLoop
    0x00007ff7b4e99d46 (Unity) ExecutePlayerLoop
    0x00007ff7b4ea0605 (Unity) PlayerLoop
    0x00007ff7b5e5c58f (Unity) PlayerLoopController::InternalUpdateScene
    0x00007ff7b5e53d93 (Unity) PlayerLoopController::EnterPlayMode
    0x00007ff7b5e640d6 (Unity) PlayerLoopController::SetIsPlaying
    0x00007ff7b5e67760 (Unity) Application::TickTimer
    0x00007ff7b62da7ba (Unity) MainMessageLoop
    0x00007ff7b62df8c0 (Unity) WinMain
    0x00007ff7b76c42fe (Unity) __scrt_common_main_seh
    0x00007ff8a06b7614 (KERNEL32) BaseThreadInitThunk
    0x00007ff8a18226f1 (ntdll) RtlUserThreadStart
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    39,134
    Make a blank project with a piece of cloth, run and see if it crashes.

    If it does, file a bug with Unity (Help -> Report a Bug is the ONLY way to file bugs)

    If it does not, bisect from an empty project to your project and find the asset (s) that are crashing it.

    https://en.wikipedia.org/wiki/Bisection_(software_engineering)

    NOTE: you may need to recreate a particular asset(s) to resolve the issue.
     
  3. GediminasR

    GediminasR

    Unity Technologies

    Joined:
    Aug 19, 2021
    Posts:
    53