Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity 5 Cloth crash all time

Discussion in 'Physics' started by JohnSmith1915, Feb 8, 2017.

  1. JohnSmith1915

    JohnSmith1915

    Joined:
    Apr 21, 2016
    Posts:
    143
    Hi, i use Unity 5 cloth for animate 2 simple flags but the console show hundreds of red messages like this:
    [Physics.PhysX] Call to PxCloth::setExternalAcceleration() not allowed while simulation is running.
    [Physics.PhysX] Call to PxCloth::getWorldBounds() not allowed while simulation is running.
    and then in few seconds Unity crash, i try with many versions and beta versions but the problem remains, i not found information about this problem, thanks for your help.
     
    Goldrake likes this.
  2. Goldrake

    Goldrake

    Joined:
    Feb 6, 2010
    Posts:
    148
    with unity 5.6 beta i have this problem too
     
    JohnSmith1915 likes this.
  3. Kim-Stockton

    Kim-Stockton

    Joined:
    Jan 15, 2014
    Posts:
    1
    Yeah I've got this too on the 5.6 beta, I'm building for iOS.
     
  4. JohnSmith1915

    JohnSmith1915

    Joined:
    Apr 21, 2016
    Posts:
    143
    possibly is a error only in the 5.6 beta, I cant use now the 5.5 version because i am using the new HDR cam effect, I hope that in the 5.6 final version the problem will be solved but is worrying that this and other problem like de bad update of the motion vectors in moving objetcs looks that have low priority to fix by Unity.
     
  5. JohnSmith1915

    JohnSmith1915

    Joined:
    Apr 21, 2016
    Posts:
    143
    Hi, in the Unity beta 5.6.0f1 published yesterday (i not understand the letter F in the beta version, looks like a RC or final version) the problem (in my case) is complety solved, thanks.
     
  6. Goldrake

    Goldrake

    Joined:
    Feb 6, 2010
    Posts:
    148
    I'll test it. Thanks
     
  7. Goldrake

    Goldrake

    Joined:
    Feb 6, 2010
    Posts:
    148
    If i compile it doesn't work... it crashes the game :(
     
  8. julianr

    julianr

    Joined:
    Jun 5, 2014
    Posts:
    1,212
    still throws Call to PxCloth::setExternalAcceleration() not allowed while simulation is running on 5.6 release.
     
  9. TimGS

    TimGS

    Joined:
    Apr 24, 2014
    Posts:
    70
    When I try to destroy gameobject wit cloth component (or if any of its children contains cloth component) it leads to crash.
    It happens all the time. Even if I create a new project and add there empty object with cloth component and try to destroy it in script.
    Absolutely unusable. Shame on you, Unity Team.

    Unity 5.6
    I had to roll back to 5.5.2

    I made a bug report hope it will be fixed.
     
    Last edited: Apr 2, 2017
  10. JohnSmith1915

    JohnSmith1915

    Joined:
    Apr 21, 2016
    Posts:
    143
    in my case in the 5.6f02 (beta) "PxCloth::setExternalAcceleration() not allowed" problem dissapear but when a cloth have more than 30 the value in Solver Frecuency the game crash, in 5.6f03 (final) all problems dissapear in my game, when i know that some problems have relation with prefabs i use cloth objects duplicated and not use more prefabs for this.
     
    EndUser and julianr like this.
  11. Darkworth

    Darkworth

    Joined:
    Jan 19, 2011
    Posts:
    41
    Confirmed: setting the resolver frequency below 30 fixed it for me as well. (this was in 5.6.0f3)
     
    EndUser likes this.
  12. sunyifeng

    sunyifeng

    Joined:
    Nov 4, 2014
    Posts:
    28
    With 5.6.0f3 i have the similar problem, the editor just stuck when clicking play.
     
  13. CradleGamesStudio

    CradleGamesStudio

    Joined:
    Jan 23, 2017
    Posts:
    5
    To sum up:

    5.4 -> 5.5 : Cloth can no longer be scaled.
    5.5 -> 5.6 : Cloth crashes.

    I see improvement here!
     
    EndUser likes this.
  14. Rafmorais

    Rafmorais

    Joined:
    Jan 13, 2015
    Posts:
    38
    Yeah I can confirm this aswell. You can't have more than one object with cloth without several crashes, also, using the solver below 30 does not make much sense since the simlation is very strange and buggy (at least on my end)
    Well, anyone knows if there is hope? I'm obsessed =[
     
  15. alan-lawrance

    alan-lawrance

    Joined:
    Feb 1, 2013
    Posts:
    360
    This was reported in the beta, and is still as issue as of 5.6.0p1. Is this on the radar for Unity?
     
  16. SomeGuy22

    SomeGuy22

    Joined:
    Jun 3, 2011
    Posts:
    722
    I'm still using Unity version 5.5.1f1, the exact issue is happening to me as well. Could this crash have been in the program this whole time? Kind of frustrating... and I'd like to actually use Cloths. Would a fix be rolled back to 5.5 as well?
     
  17. JohnSmith1915

    JohnSmith1915

    Joined:
    Apr 21, 2016
    Posts:
    143
    Sadly in last version 5.6f3 p02 the problem appear again in my project, i am uninstalling this version and installing a old 5.6 version, is really annoying that after many versions this problem continue, and now i have a new problem with the cloth modifier, cloth constrains editor fail and is impossible edit this, constrains points appear and dissapear all time, possibly i need reinstall v5.5 to edit constrains, the Cloth system of Unity make me waste hours and hours that i might use in other things.
     

    Attached Files:

    Last edited: Apr 27, 2017
  18. Renooo

    Renooo

    Joined:
    Feb 22, 2015
    Posts:
    1
    I'm using version 5.6.0f3 and I can no longer play my game (In-editor) without crashing right after I stop. If I don't stop, the PC freezes because this the editor creates around 10k errors in seconds.

    Should I downgrade to another version?
     
  19. sunyifeng

    sunyifeng

    Joined:
    Nov 4, 2014
    Posts:
    28
    Have the same problem and I have submited at least three bug reports to unity. Can unity technologies give us a reply on when will you fix the bug. The 5.6.0p3 still have the problem. In what version this bug will be fixed?
     
  20. Goldrake

    Goldrake

    Joined:
    Feb 6, 2010
    Posts:
    148
    Unity Team doesn't look interested .....
     
  21. alan-lawrance

    alan-lawrance

    Joined:
    Feb 1, 2013
    Posts:
    360
    Does anyone have an Issue Tracker link for this?
     
  22. maxxa05

    maxxa05

    Joined:
    Nov 17, 2012
    Posts:
    186
    I submitted a bug to Unity and they said it was a duplicate of that bug. I'm not even sure it was the same bug since mine is different, but they said it was. And, as you can see, it's only fixed in 2017...
     
  23. AFrisby

    AFrisby

    Joined:
    Apr 14, 2010
    Posts:
    223
    Is there a workaround for this?
     
  24. AFrisby

    AFrisby

    Joined:
    Apr 14, 2010
    Posts:
    223
    Just an update - this tentatively appears to be fixed in 5.6.1, our reproducible test case is no longer crashing instantaneously.
     
    Last edited: May 12, 2017
  25. AFrisby

    AFrisby

    Joined:
    Apr 14, 2010
    Posts:
    223
    Scratch that - it's no longer occurring in the editor (yay), but is still occurring in built player runtimes.
     
  26. SomeGuy22

    SomeGuy22

    Joined:
    Jun 3, 2011
    Posts:
    722
    This seems like an important thing to fix... Still no word on a rollback patch for 5.5 ... I can still add and use Cloth in 5.5.1f1, but deleting it always causes a crash, no matter the solver count or anything. For that reason I am scared to use Cloth entirely due to not being able to remove the Cloth. Disabling the Cloth causes a crash as well. The only solution was to delete the Game Object, which is horrible :(
     
  27. AFrisby

    AFrisby

    Joined:
    Apr 14, 2010
    Posts:
    223
    Actually the crash happens on more than deletion/disabling. It seems to be triggered almost arbitrarily in our projects - even objects which aren't changing are tripping it.
     
  28. alan-lawrance

    alan-lawrance

    Joined:
    Feb 1, 2013
    Posts:
    360
  29. JohnSmith1915

    JohnSmith1915

    Joined:
    Apr 21, 2016
    Posts:
    143
    Hi, if some of you continue with this problem read the fixed section in the new 5.6.1p1 version (patch 1, this version is in the section patches) in this readme you can see: " (845868) - Physics: Fixed a crash that occurred while updating active skinned Meshes. " then is possible that this problem is complety solved in this version of the 5.6 branch, good luck.
     
  30. renren50

    renren50

    Joined:
    Nov 10, 2016
    Posts:
    1
    This problem is still occuring when I try to use the add-on iTween on a plane (with cloth component added). Using version 5.6.1f1.
     
  31. alan-lawrance

    alan-lawrance

    Joined:
    Feb 1, 2013
    Posts:
    360
    You need to update to 5.6.1p1 to get the fix.
     
  32. SomeGuy22

    SomeGuy22

    Joined:
    Jun 3, 2011
    Posts:
    722
    Confirmed--the issue is not happening anymore in Unity 5.6.2f1.
     
    julianr likes this.
  33. Kbpro

    Kbpro

    Joined:
    Apr 1, 2015
    Posts:
    1
    Not fixed.
    Still happening on ios in Unity 5.6.2f1. Also I tested unity 2017 and again sometimes game crashes when trying to destroy any gameobject with cloth component.
     
  34. dimitroff

    dimitroff

    Joined:
    Apr 3, 2013
    Posts:
    131
    We are using Unity 5.6.3p3 and we get all kind of weird Cloth crashing errors, which we did not get before that. I guess somewhere Unity team introduced the buggy Cloth code again. I did not see any fixes for Cloth in the next few 5.6 patch releases, anybody having the same issues?
     
  35. AFrisby

    AFrisby

    Joined:
    Apr 14, 2010
    Posts:
    223
    Just started seeing this again in 5.6.4 as well. Somewhere between 5.6.1 and 5.6.3pX was quite stable.
     
  36. sd_trent

    sd_trent

    Joined:
    Jul 1, 2017
    Posts:
    37

    Attached Files:

  37. myfinz

    myfinz

    Joined:
    Jul 18, 2017
    Posts:
    1
    I am facing this problem in Unity 2017.1.1 pro aswell, any help???
     
  38. umairh2018

    umairh2018

    Joined:
    Dec 21, 2017
    Posts:
    1
    I am facing crashing issue in Unity 2017.1.1 . I have reduced external acceleration below 30. still facing the same issue any help???
     
  39. vapi

    vapi

    Joined:
    Sep 23, 2013
    Posts:
    5
    Getting Access Violation crash in 2017.3.0f3

    UnityPlayer!Unity::Cloth::ReadBackSkinnedBuffers+0x57
    UnityPlayer!SimulateClothingScene+0x1de
    UnityPlayer!UpdateClothsJob+0x86
     
  40. browne11

    browne11

    Joined:
    Apr 30, 2015
    Posts:
    137
    Yep crashes here too. For me I just have to look at the component in the inspector and hit play and the unity scene is completely useless and crashes to error log screen. If I reload that project and hit play the error persists without looking at the component.

    I managed to get the error to go away by loading another scene and hitting play. It seems that clears the error from where ever it's getting cached.
     
    Last edited: Feb 18, 2018
  41. XiaoLe-Mu

    XiaoLe-Mu

    Joined:
    Feb 4, 2015
    Posts:
    1
    Is there any update to this issue? I use unity 2017.3 always crash on ios device.