Search Unity

Undo error when working with 9 terrain textures

Discussion in 'Editor & General Support' started by jessee03, Dec 27, 2014.

  1. jessee03

    jessee03

    Joined:
    Apr 27, 2011
    Posts:
    729
    I'm getting the following error whenever I try painting on my terrain with 9 textures present in the paint texture editor. Not sure if this is as intended? I never get this error any other time when working with terrains. Then if I try painting with the 9th texture and then use undo it leaves a black texture in the textures place.

    Code (csharp):
    1.  
    2. Failed to create Object Undo, because the action is too large. Clearing undo buffer
    3. UnityEditor.DockArea:OnGUI()
    4.  
     
    MaximilianPs likes this.
  2. jessee03

    jessee03

    Joined:
    Apr 27, 2011
    Posts:
    729
    I am still getting this error and now its happening randomly on one of my terrains that only has 7 textures. Very frustrating... Could this be a memory issue ?
     
  3. SteenLund

    SteenLund

    Unity Technologies

    Joined:
    Jan 20, 2011
    Posts:
    639
    Currently the undo integration with terrain has issues and in order to avoid enormous memory usage when working with terrain the undo system has a memory usage limit. This limit is quickly reached when working with terrain.

    We are already aware of this issue, but currently we don't have any one assigned to work on the issue.

    Unfortunately there is no work around for you.
     
  4. jessee03

    jessee03

    Joined:
    Apr 27, 2011
    Posts:
    729
    Thank you for your answer. Hopefully it will be fixed in the future. I guess I will have to make due for the meantime.
     
  5. paverson

    paverson

    Joined:
    Jul 17, 2012
    Posts:
    11
    I'm also having this problem, and not only does it not undo, but replaces textures i've worked on with other ones, which makes me lose hours of work. has there been any progress on this, or jessee03, have you found any workarounds?
     
  6. cowtrix

    cowtrix

    Joined:
    Oct 23, 2012
    Posts:
    322
  7. Stone-Legion

    Stone-Legion

    Joined:
    Aug 16, 2013
    Posts:
    112
    Going bump this. Over a year old since the last answer and I'm getting this. With the 64bit client can we get more memory or an option to allow more memory to be used?
     
    jessee03 likes this.
  8. jf3000

    jf3000

    Joined:
    Dec 31, 2013
    Posts:
    166
    Still no work around for this, you'd think they would address this issue. Bloody annoying.
     
  9. zt3ff3n

    zt3ff3n

    Joined:
    Feb 19, 2016
    Posts:
    37
    I know this is an old thread, but I was having this issue myself where I would get this warning, and if I tried painting the (large) terrain again Unity would crash. Googled for days before I figured out a solution, so I figured I'd share it in case someone else is having similar issues.

    Open the Preferences and under GI Cache, click Clear Cache and increase the Maximum Cache size.


    At least that worked for me!
     
  10. kautsar211086

    kautsar211086

    Joined:
    Jan 31, 2013
    Posts:
    3
    not work for me :(
     
  11. AndreyO

    AndreyO

    Joined:
    Jan 31, 2014
    Posts:
    20
    its can be easily fixed by clicking on your splatmap by Repeat to Clamp and back.
    upload_2018-8-28_13-7-6.png
    Also u can try in scene view change view from shaded to normal
     
  12. tangwilliam

    tangwilliam

    Joined:
    May 4, 2016
    Posts:
    22
    Those do not work for me. I am using 2018.1.f6 , and I must set build setting to Iphone which can not use normal view mode.
     
    FlightOfOne likes this.
  13. alexanderlarsen

    alexanderlarsen

    Joined:
    Feb 26, 2015
    Posts:
    13
    I also have this issue in 2019.2.10
     
  14. EmpirisoftNathan

    EmpirisoftNathan

    Joined:
    Sep 6, 2016
    Posts:
    12
    Its crazy that this issue still exists.

    The ability to set the memory limit should be included at the absolute minimum. With 23GB free on my machine I should be able to dedicate a little more memory fat to the issue.

    5 years later, is anyone looking into it yet???!!!
     
  15. Dabartos

    Dabartos

    Joined:
    May 26, 2016
    Posts:
    33
    doesn't seem like it. Interesting.
     
  16. browne11

    browne11

    Joined:
    Apr 30, 2015
    Posts:
    138
    I noticed this issue pops up if you crank the texture resolutions (on terrain data) too high. Somewhere around 2048 control texture resolution it appears.
     
  17. Rodolfo-Rubens

    Rodolfo-Rubens

    Joined:
    Nov 17, 2012
    Posts:
    1,197
    Still happening in 2019.3.14f1, Terrain Tools 3.0.1. :(
     
  18. Goldenvale

    Goldenvale

    Joined:
    Feb 26, 2015
    Posts:
    86
    I've got the same issue in 2019.3.0f3, using microsplat.
     
    Bauschen likes this.
  19. zackblack

    zackblack

    Joined:
    May 17, 2015
    Posts:
    76
    Seriously? I guess Unity doesn't care about painting terrain. I've got the same issue in 2019.4.13f1, also using Microsplat.
     
  20. GrapePaste

    GrapePaste

    Joined:
    May 23, 2020
    Posts:
    17
    Same problem. Different year.
     
  21. KoschKX

    KoschKX

    Joined:
    Jun 15, 2017
    Posts:
    1
    It's been 5 years and this bug is still showing up. Unreal Engine is looking pretty nice right now.

    Edit: I've got 32gb of ram and my textures are all set to lowest settings and the bug still appears. Unity does not reach any physical limit on my machine. Not even close.
     
    Last edited: Dec 26, 2020
    ansjuan and GrapePaste like this.
  22. ansjuan

    ansjuan

    Joined:
    May 15, 2018
    Posts:
    21
    Same here, happens in unity 2019.4 LTS with terrain tools
     
  23. GiftedMamba

    GiftedMamba

    Joined:
    Feb 25, 2017
    Posts:
    46
    Well, I think that we will celebrate ten years of this bug soon. If Unity can stand against Unreal 5, ofcourse, for the next three years
     
  24. zetingq

    zetingq

    Joined:
    Dec 8, 2016
    Posts:
    26
    2020.1.14The same problem was encountered when drawing the sixth texture
     
  25. Vincent454

    Vincent454

    Joined:
    Oct 26, 2014
    Posts:
    167
    Same here this is really frustrating :(
     
  26. Lipoly

    Lipoly

    Joined:
    Feb 11, 2014
    Posts:
    42
    Just thought I'd chime in to say I'm seeing this as well. I don't really care about not having an undo, but the bigger problem is that after the operation, it doesn't mark the scene as dirty, so saving it does nothing. Now, you can just tweak anything else, save, then revert the change to get it to save.
     
  27. Vict0r3znov

    Vict0r3znov

    Joined:
    Oct 14, 2018
    Posts:
    26
    Sorry, but its 2021 and this error still persists, at least give us a way to just stop the error from popping up, its really annoying !
     
    GrapePaste likes this.
  28. grassy756_unity

    grassy756_unity

    Joined:
    Dec 26, 2020
    Posts:
    12
    My terrain kept saying this when I painted textures on it, I fixed it by changing my Control Texture Resolution down by one (It was on 2048x2048, I changed it to 1024x1024) This fixed the issue for me, hope it works for everyone else! :)
     
  29. Vict0r3znov

    Vict0r3znov

    Joined:
    Oct 14, 2018
    Posts:
    26
    Yes bro we do realize that this method works, tho i'm working on a project where performance doesn't matter and require the highest quality possible, even when painting very small places , so i increased it to the MAXIMUM, i don't need the undo, i need that error to get the H out and stop popping cause its really annoying
     
  30. THE2FUN

    THE2FUN

    Joined:
    Aug 25, 2015
    Posts:
    63
    Problem is fixed :
     
    Vincent454 likes this.
  31. zh99998

    zh99998

    Joined:
    Mar 2, 2020
    Posts:
    18
    irrelevant.

    still happen in latest 2022.2 alpha.
     
  32. Vict0r3znov

    Vict0r3znov

    Joined:
    Oct 14, 2018
    Posts:
    26
    wow, 8 years now since the original post and no fix yet LMAO !
     
  33. jcomouth_de

    jcomouth_de

    Joined:
    Dec 28, 2017
    Posts:
    5
    Same with Unity 2020.3.24f1 LTS. Is there realy no fix for this? Added 8 Layers and started painting a (large) terrain, quickly became this error which blocks any new paint. Clearing GI Cache and increasing did not solved the issue.
     
    Vincent454 likes this.
  34. jessee03

    jessee03

    Joined:
    Apr 27, 2011
    Posts:
    729
    There's a ton of weird terrain bugs that still haven't been fixed
     
    Vincent454, Rukas90 and Roller1 like this.
  35. timur90890890

    timur90890890

    Joined:
    Jul 7, 2022
    Posts:
    3
    Ha ha ha) It's 2023 (01/21/2023) now! I'm running Unity 2021.3.14f1! And I also have this problem))) Clearing the cache and increasing it does not help ... It's been 7 years 11 months and 17 days since the official message was written) I think you can no longer wait for a fix)
     
  36. Vincent454

    Vincent454

    Joined:
    Oct 26, 2014
    Posts:
    167
    The entire terrain system and the terrain tools are causing soo many errors, even in a new project, theyre almost unusable. All of these bugs have been reported multiple times but they arent fixed :(
     
  37. timur90890890

    timur90890890

    Joined:
    Jul 7, 2022
    Posts:
    3
    Agree! I constantly suffer, after each restart of the project, to draw new colliders in the Grid using the Tile Palette, and a bunch of other bugs to fix ... For example - how I got this error - I decided to delete 24,700 trees) I ended up adding them to the prefab and deleting them his... In short, he's still crap, considering that the prefab was created for a very long time, it's just kick-ass how long...
     
    bebros2 and Vincent454 like this.
  38. UserNobody

    UserNobody

    Joined:
    Oct 3, 2019
    Posts:
    144
    It's 2023 and this issue is still present... It's been more than eight years!! Just patch this problem already... It shouldn't be this hard for a company of this size...
     
    Vincent454 likes this.
  39. Michal_Stangel

    Michal_Stangel

    Joined:
    Apr 17, 2017
    Posts:
    151
    Agree. The fact I cannot use Undo while painting my terrain textures is really annoyng. And it's already 8 years since Unity acknowledged this problem here...
     
  40. Deleted User

    Deleted User

    Guest

    Bumping once mare, I am having this issue using Microsplat with 16 textures. Unfortunate that it hasn't been fixed yet.
     
  41. NOT_Lonely

    NOT_Lonely

    Joined:
    Feb 2, 2013
    Posts:
    538
    Try lowering the resolution of the control texture in the terrain settings tab. It's not good to have low resolution splats, but that's the only known solution for me.
     
  42. lophiusgames

    lophiusgames

    Joined:
    Oct 18, 2023
    Posts:
    1
    I discovered the solution to the problem...

    First, copy the Terrain you are having trouble with from the scene and paste it into a newly created scene called "Test". After copying, it will be synchronized with the one in your actual scene, and problems such as the rollback issue have been resolved for me.

    Thank me later