Hello,
On closing OpenRoads Designer and OpenRail Designer, I receive the dialog box asking me to Abort, Retry, or Ignore and that an exception log has been filed.
Exception caught in source file e:\builds\cif10102104\Source\Cif\src\managed\ui\tools\PrimitiveCommand\PrimitiveCommand.cs at method OnModelMotionInternal ================================================================================ Exception : The instance is not persisted. In Assembly : Bentley.CifNET.Objects.4.0 Stack Trace : at Bentley.CifNET.Objects.Engine.Instance.GetECInstanceFromProvider() at Bentley.CifNET.Objects.Engine.Instance.AddInstanceAsDeletedAndPerformCascadeDelete(InternalChangeSet changeSet, Boolean rootIsExplicitlyDeleted) at Bentley.CifNET.Objects.Engine.Instance.BuildChangeSet(InternalChangeSet changeSet, PersistDepth persistDepth) at Bentley.CifNET.Objects.Engine.ObjectSpace.PersistChanges(ObjectKeyInternal ecKey, PersistDepth persistDepth) at Bentley.CifNET.Objects.Engine.ObjectSpace.PersistChanges(Object obj, PersistDepth persistDepth) at Bentley.CifNET.Objects.Engine.ObjectSpace.Bentley.CifNET.Objects.IObjectTracker.PersistChanges(Object obj) at Bentley.CifNET.GeometryModel.Tool.GeometryCommand.ObjectSpaceHolder.PersistChanges(Object obj) at Bentley.CifNET.GeometryModel.SnapRules.PointEntryCreator.RemoveSnapRuleAndSetCoordinates(DPoint3d pointCoordinates, IObjectTracker objectTracker, PointEntity2d pointEntity) at Bentley.CifNET.GeometryModel.SnapRules.PointEntryCreator.SetPointSnapInternal(DPoint3d pointCoordinates, SnapDescriptor snapDescriptor, IObjectTracker objectTracker, PointEntity2d pointEntity, Boolean checkCircularDependency, Boolean addSnapRule) at Bentley.CifNET.GeometryModel.SnapRules.DistanceAlongEntryCreator.SetDistanceAlongEntry(GeometricModel targetModel, LinearEntity baseElement, DPoint3d coordinates, SnapDescriptor snapDiscriptor, IObjectTracker objectSpace, LinearEntity targetEntity, DistanceAlongEntry distanceAlongEntry) at Bentley.CifNET.GeometryModel.Tool.GeometryCommand.DistanceAlongEntryDescriptor.Calculate(DPoint3d coordinates, SnapDescriptor snapDiscriptor, IObjectSpace objectSpace) at Bentley.CifNET.GeometryModel.Tool.GeometryCommand.DistanceAlongEntryState.DoGetCursorValue(IButtonEvent buttonEvent, Double currentValue, Boolean valueLocked) at Bentley.CifNET.UI.Tools.ParameterEntryState`2.InternalPrimitiveParameterState.GetCursorValue(IButtonEvent buttonEvent, Object currentValue, Boolean valueLocked) at Bentley.CifNET.UI.Tools.CursorPrompt.CustomParameterDialogDefinition.OnModelMotion(IButtonEvent buttonEvent) at Bentley.CifNET.UI.Tools.CursorPrompt.ParameterPromptManager.Bentley.CifNET.UI.Tools.ICommandParameterPrompter.OnDynamics(IButtonEvent buttonEvent) at Bentley.CifNET.UI.Tools.ParameterState.OnModelMotion(IButtonEvent buttonEvent) at Bentley.CifNET.UI.Tools.PrimitiveCommand.<>c__DisplayClass99_0.<OnModelMotionInternal>b__0() at Bentley.CifNET.UI.Tools.PrimitiveCommand.ManagedBooleanCallBack(Func`1 method, Boolean exitCommandAndCleanupCaches, Boolean retValue, String message, String memberName, String sourceFilePath, Int32 sourceLineNumber)
I checked Task Manager and the process OpenRoadsDesigner.exe never closes even if I select Abort in the dialog box. This happens no matter what file I choose to open. No customization has been done. I have done the typical restart machine, reinstall with Admin privileges, etc.
Any help is appreciated.
Windows 10
OpenRoads Designer 10.10.21.004
We have been noticing this with ProjectWise when there is VBA macros being run.I was also getting errors on opening but was able to get past them by not trying to pass any custom types like TagSets or Cells from a function.
I have a suspicion that is when the classes that use "ImplementsModelActivate" events are being terminated, but I haven't tested that.
Can anyone else confirm that they are seeing issues with PW and VBA macros in 2021 R2?
Odd... this seems to be happening to many of you, but it has never happened to me with OpenRoads Designer 2021 R2. We are using a custom configuration as well, but we are NOT using ProjectWise.
Mark
As an update, I followed the uninstall instructions which included the removal of the Bentley Temp directories under the user folder. This resolved the crash when opening files from the delivered installed workspace examples. Once I implemented our custom configuration the crash came back so I removed our custom configuration and the crash did not happen. As a side note, this only started to happen when implementing 2021 R2.
Now to start digging thru the configurations developed in house and received from Client. Fun.....
I will report back my findings.
Looks like all versions of ORD share the following directory path for the prefs location "C:\Users\username\AppData\Local\Bentley\OpenRoadsDesigner\10.0.0 and will append an underscore and number combo to the 10.0.0 directory. So you will have multiple prefs directories to check and clear. Maybe clear them all and reopen the product.
This is happening to all our users since upgrading t0 2021 R2. Reinstalls dont look to resolve it.
Regards,
OpenRoads Designer 2023 | Microstation 2023.1 | ProjectWise 2023