forum

[resolved] [assigned] [confirmed] Undo states store indefinitely

posted
Total Posts
32
show more
Topic Starter
kisata

Shirayuki wrote:

This is from Undo History if I remember correctly, hence the "Disable Undo" in the option. But still, having to quit editor every now and then, or even having to restart osu! when mapping isn't fun T_T
"When working with extremely long marathon maps, long marathon maps undo/redo support can come at a performance cost. Use this option in extreme conditions."

If this is the case; the problem here is that it's not just on long maps/marathon maps (though it's definitely worse on those). A particularly dense, streamy map, or one with many green lines can do this too - or even just general hitsounding as BD showed. I was mapping a two minute long song and had it happen. So there's definitely something up here.
Jenny
I'd presume Edit is being autistic and saving practically unlimited copies of the entire undo history/map - at least that'd explain why it can stack up to like 1.5 GB RAM usage without you even looking at or opening multiple ones; I can't even imagine how it'd make over a Gigabyte of cache and undo savings from a ~30kb .osu file..
FrzR

RLC wrote:

map
things are fine
map some more
things are fine
map some more
things are fine
map some more
suddenly, there starts to be massive stuttering / delay in the editor
at this point, if i don't restart osu!, the whole thing just locks up completely after a bit longer
This. lol~
Ayesha Altugle

drum drum wrote:

It's from the undo history. Quoting Shirayuki here *runs*
really it is
Bara-
Just disable undo function: t/228559
Topic Starter
kisata

baraatje123 wrote:

Just disable undo function: t/228559
How on earth are we even considering this as a fix? At least part of the bug is exiting the editor doesn't actually fix it. You HAVE to close osu! reduce the memory usage.

You shouldn't have to disable one of the editor's main functions to make it work properly.
Bara-
Everything you do, counts up to the undo thing
So if you do 200 things, it saves all these 200 things.
If you disable undo, this is not the case.
If you read the thread, you know about This feature request which will help in this case
smoogipoo
This is currently being worked on by TheVileOne.
Bara-
how will it become?
Will there be a max amount of undos then?
smoogipoo
State saving is pretty inefficient right now, causing these seemingly memory leaking problems. TVO is working on reducing the amount of stuff stored in each state. I don't know if a limit will be put in place (but I don't think so).
Nyquill
Might as well confirm this for now though, but I'll rename the title to something appropriate
TheVileOne
It should only be storing at max 20 states unless something is broken and causing it to exceed that. In any case testplaying clears the undo states. If this does not lower the memory usage then there is something wrong with the disposal of undo states if this problem is actually related to undo states and not something else related to marathon maps.
Stefan

baraatje123 wrote:

Just disable undo function: t/228559
this is the worst suggestion I've ever read, honestly. Even that request is a better way to solve than disabling the undo function.

apaffy wrote:

How on earth are we even considering this as a fix? At least part of the bug is exiting the editor doesn't actually fix it. You HAVE to close osu! reduce the memory usage.
As far as I know you don't need to close osu! but you have to move out from the editor to decrease the RAM.

It's way worse when your map is longer (starting from 10 Minutes and increasing) so I have like after 15 Undos +1 GB RAM.
peppy
Can you link the maps you are working on when you experience this?
Jenny
Any map ever, be it modding or mapping, but still, have a few examples;

  1. Suzuki Konomi 'n Kiba of Akiba - Watashi ga Motenai no wa Dou Kangaete mo Omaera ga Warui! (TV Size)
  2. M2U feat. Guriri - Magnolia
  3. ICE - L
  4. sakuzyo - Neurotoxin
  5. Sota Fujimori - DANCE ALL NIGHT

Also, leaving edit/entering testplay/just normal playing does not clear it - once osu! is blowing up, there's no stopping it anymore.
Shirayuki
Actually it does clear it up sometime, but yes, "sometime", there are time when after osu! passes certain mark (1Gb for example), it will not be able to go down, other mark is like 700Mb I think.
Zare
tbh I've never even once come across with this bug.

my editor works like a charm
TheVileOne
I will look into this today. There is one thing that might be causing the problem. I will investigate and see if it fixes it.

I have fixed something that was more than likely allowed unlimited states to be stored. Please test on test build to confirm.
Nwolf
still happening
TheVileOne
It should not be possible. It wouldn't be because of the undo system. The system is very close to how it was always. It cannot store more than 20 states.
Nwolf
well okay not the same thing happening but I always get huge lag spikes after some time with undo states activated (and they don't go away after leaving editor) while I never get them without undo.
Please sign in to reply.

New reply