News:

 

Topic: Undo inconsistent with errors Oct 19-19 build  (Read 2839 times)

0 Members and 1 Guest are viewing this topic.

  • No avatar
  • Posts: 41
  • Vertex
November 05, 2019, 11:40:00 pm

Undo seems to be inconsistent in undoing commands in the Oct 19-19 build. Nothing seems consistent in what causes it. Something in retop mode maybe is usually where I'm working.

Got this error recently too after undoing:


System.NullReferenceException: Object reference not set to an instance of an object.
   at DigitalFossil.AnimationDesign.ModelDesigner.UndoRedoManager.RegulateUpdatingComponents(ArrayList componentsIn)
   at DigitalFossil.AnimationDesign.ModelDesigner.UndoRedoManager.ApplyKeyRecord(Record record, Record oppositeRecord, Boolean multyPasses, Boolean isSubobjectSelectionStackRecord, Boolean isObjectSelectionStackRecord, Boolean& hasCharacterListRelatedRecord, Boolean& hasMaterialRelatedRecord)
   at DigitalFossil.AnimationDesign.ModelDesigner.UndoRedoManager.UndoInternal(Boolean multyPasses)


This error was from pressing undo after extruding an edge:




See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at DigitalFossil.AnimationDesign.ModelDesigner.TransformManager.BasicItemSelection.get_SelectionCenter()
   at DigitalFossil.AnimationDesign.ModelDesigner.TransformManager.SelectionHolder.get_SelectionCenter()
   at DigitalFossil.AnimationDesign.ModelDesigner.TransformManager.get_SelectionCenter()
   at DigitalFossil.AnimationDesign.AnimationDesignGraphicWindow.get_SelectionCenter()
   at DigitalFossil.AnimationDesign.AnimationDesignGraphicWindow.get_ViewRotationCenter()
   at DigitalFossil.AnimationDesign.AnimationDesignGraphicWindow.OnMouseDown(Object sender, MouseEventArgs e)
   at DigitalFossil.AbstractGraphicWindow.CursorClerk.OnMouseDown(Object sender, MouseEventArgs e)
   at System.Windows.Forms.MouseEventHandler.Invoke(Object sender, MouseEventArgs e)
   at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
Nvil 1.0
    Assembly Version: 2.3.7212.38817
    Win32 Version: 2.3.7212.38817
    CodeBase:
----------------------------------------
WorkShop
    Assembly Version: 2.3.7209.23429
    Win32 Version: 2.3.7209.23429
    CodeBase:
----------------------------------------
BasicD3DClasses
    Assembly Version: 2.3.7209.23422
    Win32 Version: 2.3.7209.23422
    CodeBase:
----------------------------------------
CharacterClasses
    Assembly Version: 2.3.7209.23420
    Win32 Version: 2.3.7209.23420
    CodeBase:
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3801.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3752.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3752.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3752.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
SlimDX
    Assembly Version: 4.0.13.43
    Win32 Version:
    CodeBase:
----------------------------------------
DevExpress.Utils.v10.2
    Assembly Version: 10.2.4.0
    Win32 Version: 10.2.4.0
    CodeBase:
----------------------------------------
DevExpress.Data.v10.2
    Assembly Version: 10.2.4.0
    Win32 Version: 10.2.4.0
    CodeBase:
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3752.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3752.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
DevExpress.XtraBars.v10.2
    Assembly Version: 10.2.4.0
    Win32 Version: 10.2.4.0
    CodeBase:
----------------------------------------
DevExpress.XtraEditors.v10.2
    Assembly Version: 10.2.4.0
    Win32 Version: 10.2.4.0
    CodeBase:
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3752.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Management
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3752.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
FileManager2.3
    Assembly Version: 2.3.6941.18023
    Win32 Version: 2.3.6941.18023
    CodeBase:
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.




Thanks!



  • No avatar
  • Posts: 3705
  • Developer
  • Administrator
  • Polygon
November 06, 2019, 01:59:52 am
Did it work good before? What is the last version you used?

How did you perform undo? By hotkey Ctrl+Z? If yes, what other tools you have bind these two keys to?
If you perform Undo through menu or button, will the problems still there?

What do you mean by "inconsistent"? Can you recreate any of the bugs?

  • No avatar
  • Posts: 3705
  • Developer
  • Administrator
  • Polygon
November 06, 2019, 04:54:47 am
Try this and see if you still have the problem?

http://www.digitalfossils.com/Download/NVil-Nov-06-19.rar

  • No avatar
  • Posts: 41
  • Vertex
November 06, 2019, 07:26:46 am
Did it work good before? What is the last version you used?

Yeh i believe so. Last build i was using was about 2 months old. It's been awhile since I needed to use Nvil.


How did you perform undo? By hotkey Ctrl+Z? If yes, what other tools you have bind these two keys to?
If you perform Undo through menu or button, will the problems still there?


Always using Ctrl+Z keys. I dont believe i have anything else set to this. But i will double check.


What do you mean by "inconsistent"? Can you recreate any of the bugs?

I'll see if i can actively reproduce tomorrow.

Ill also give this new build of yours a test tomorrow too, thanks!!!



  • No avatar
  • Posts: 41
  • Vertex
November 06, 2019, 11:31:53 pm
I'm using the new build you made and have run into the issue again. Undo isn't working after creating some patches of geo in draw mesh mode.

I draw out a patch of mesh. Hit enter, geo is created. Hit undo, mesh remains.

Undo wont work with: the keyboard command, the menu command or the button on the draw panel.

If i am in DRAW mode, and use CTRL to enter tweak mode and move a vert, undo wont revert the moved vert back to its original spot. If i switch to "Mesh_Tweak" mode and do this, undo will revert the move.  This behavior seems consistant with other commands > if in DRAW mode and you press/hold a hotkey to do another command i.e. cut, move verts etc. and try and undo it wont work.


  • No avatar
  • Posts: 3705
  • Developer
  • Administrator
  • Polygon
November 06, 2019, 11:41:58 pm
In the Draw Mesh tool UI, there are these buttons, Undo Scene, Unod, ...
For the hotkey command, it will do "Undo" in Draw-Mode and do "Undo Scene" in Mesh-Mode.

  • No avatar
  • Posts: 41
  • Vertex
November 07, 2019, 01:27:59 am
oh interesting. What's the reason to split it up like that and avoid a unified undo stack?


  • No avatar
  • Posts: 3705
  • Developer
  • Administrator
  • Polygon
November 07, 2019, 01:43:01 am
I'll try to unify them into one.

  • No avatar
  • Posts: 3705
  • Developer
  • Administrator
  • Polygon
November 07, 2019, 10:52:25 am

  • No avatar
  • Posts: 41
  • Vertex
November 13, 2019, 06:38:28 pm
works great thanks heaps!!!