Dependents in undo queue
Submitted by an unknown user
Link to original bug (#741282)
Description
Bug 741197 is a symptom of something worse.
Any dependent that is placed in the undo queue because its expression got modified currently needs to outlast the undo queue item. (The expression will change if we insert/remove columns/rows, remove a sheet or something else.)
This is not a problem for cells because we have special purpose code that recreates the cells as needed. (Most of the places, not all, actually.)
This is not a problem for solver parameters because those are not deleted.
It is clearly a problem for style dependents and validation dependents. Those are stored in dynamically allocated places.
I am guessing that widget (buttons, graphs) dependents are affected too.
Luckily it is not easy to trigger crashes due to this. Knowing the above is enough to come up with recipes, though.
Version: git master