s-leger / archipack

Archipack for blender 2.79
https://blender-archipack.org
GNU General Public License v3.0
356 stars 49 forks source link

undoing more actions that have been actually make the application crash #339

Open frandevel opened 1 year ago

frandevel commented 1 year ago

Archipack version: 2.5.1

Blender version: 3.3.1 LTS

Os version: MacOS 12.6 (Monterrey)

Description of the issue: When trying to undo more actions than the ones that have taken place, the application crashes exiting without prompting anything. Repro-steps: 1.- Open a new project 2.- Create a wall 3.- Undo more times than the number of actions you've executed Should be: Nothing happens once the actions have been undone. Is: The application crashes when "cmd+z" is pressed after the first action in the project has been undone.

s-leger commented 1 year ago

Hi, In order to solve most of undo issues, in blender's preferences -> Interface, enable "developper extras", then in new "Experimental" tab, enable "undo legacy".

Basically blender's undo system is in a huge refactory process in order to improve performance, but there are still many things to do, so it at this time it still is somewhat "half broken" at this stage - basically not recovering properly python pointers on undo, leading into instability.

3.- Undo more times than the number of actions you've executed (....) uhum, do not try this, ever, or you'll go in hell right away ;)

frandevel commented 1 year ago

Thanks for the response, It's actually very easy to run into this "index out of bounds" issue when undoing, as you might have started the day, made something wrong, and executed "undo" more than once to go back quickly. I hope they stabilize this topic asap.