This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Watergems keeps crashing after opening a model

07/24/2020 15:49:14.07 System.AccessViolationException: Tentative de lecture ou d'écriture de mémoire protégée. Cela indique souvent qu'une autre mémoire est endommagée.

à wglMakeCurrent(HDC__* , HGLRC__* )
à CGLDevice.InitializeDevice(CGLDevice* , Int32 hWnd)
à Haestad.GraphicsLibrary.OpenGL.GLDevice.InitializeDevice(IntPtr hWnd)
à Haestad.Drawing.Windows.Forms.Components.GLDrawingControl.GLDrawingControl_Load(Object sender, EventArgs e)
à System.Windows.Forms.UserControl.OnLoad(EventArgs e)
à System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
à System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
à System.Windows.Forms.Control.CreateControl()
à TD.SandDock.DockControl.OpenDocument(WindowOpenMethod openMethod)
à TD.SandDock.DockControl.Open(WindowOpenMethod openMethod)
à Haestad.Drawing.Control.Forms.GraphicalDrawingParentForm.AddDocument(IProject aproject)
à Haestad.Drawing.Control.Forms.GraphicalDrawingParentForm.OpenMdiDrawingDocument(IProject aproject)
à Haestad.Drawing.Control.Forms.GraphicalDrawingParentForm.ProjectEventChannel_ProjectOpening(Object aobject, ProjectEventArgs apea)
à Haestad.Framework.Application.ProjectEventHandler.Invoke(Object aobject, ProjectEventArgs apea)
à Haestad.Framework.Application.ProjectManagerBase.OnProjectOpening(IProject aproject)
à Haestad.Framework.Application.ProjectManagerBase.NotifyProjectOpening(IProject aproject)
à Haestad.Framework.Application.ProjectBase.Create(ProjectProperties app)
à Haestad.Framework.Application.DomainProjectBase.Create(ProjectProperties app)
à Haestad.Framework.Application.ProjectManagerBase.CreateUntitledProject(ProjectProperties app)
à Haestad.Framework.Windows.Forms.Forms.HaestadParentForm.NewUntitledFile(ProjectProperties app)
à Haestad.Drawing.Control.Forms.GraphicalDrawingParentForm.FileNew()
à TD.SandBar.ToolbarItemBase.OnActivate()
à TD.SandBar.xf92605a24a69622a.x0ef5a9135fb0040c(TopLevelMenuItemBase xccb63ca5f63dc470, Boolean x674341222c6bbaba, Boolean x37b4525011735d95, Point x13d4cb8d1bd20347)
à TD.SandBar.TopLevelMenuItemBase.Show(Boolean select)
à TD.SandBar.ToolBar.OnItemPush(ToolbarItemBase item, Point position)
à TD.SandBar.ToolBar.OnMouseDown(MouseEventArgs e)
à TD.SandBar.MenuBar.OnMouseDown(MouseEventArgs e)
à System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
à System.Windows.Forms.Control.WndProc(Message& m)
à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
à System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
à System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
à System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
à System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
à Haestad.Framework.Application.ApplicationModelBase.StartUserInterface(IUserInterface aiui, Object aoContext)
à Haestad.Framework.Application.ApplicationModelBase.Start(IUserInterface aiui, IApplicationContext acontext, Boolean shouldCheckForLicense)
à Haestad.Framework.Windows.Forms.Forms.HaestadParentForm.StartApplication(IApplicationContext acontext)
à Haestad.Idaho.Starter.Starter.Main(String[] args)

Parents
  • If the solution in Scott's response does not help, the problem could be related to video/graphics. I see several phrases in the error details that seem to point to this. If this happens in all models (even when starting a new model) or when opening a model that has certain background layers, that would be further evidence of a video driver-related issue. In this case, please see the troubleshooting tips in the following article: Updating video drivers and troubleshooting video hardware issues


    Regards,

    Jesse Dringoli
    Technical Support Manager, OpenFlows
    Bentley Communities Site Administrator
    Bentley Systems, Inc.

  • Hello Jesse,

    First of all thanks for your quick answer and Scott's one.

    All of Scott solutions did not work for my case therefor I focused on your solutions cocnerning the video drivers and graphic card settings.

    1. The drivers are already up to date

    2. Adding Watergems to use the discrete video hardware did not resolve my issue.

    I played a bit more with my display settings and Watergems finally works as follows:

    Change of the screen resolution from 'True colors (32bits), 60hz' to '256 colors, 60hz'

    It is not as confortable as normal screen display but it works.

    My best,

    Marwan

    UPDATE: It also works in Safemode 

  • Hi Marwan,

    You screenshot seems to indicate that the change you made to the color depth (32 bit vs 256 color) is for the integrated graphics hardware (Intel HD 530). If this had an impact on the issue in question, that would seem to indicate that your WaterGEMS is using the integrated graphics hardware and not your discrete graphics hardware.

    If you do have discrete graphics (like an Nvidia or AMD graphics accelerator), then you will want to ensure that WaterGEMS is set to use that instead of the integrated hardware. Right click on your desktop and look for an item like "Nvidia Control Panel". There is a screenshot in the article I linked to in my previous reply that shows what the option looks like for Nvidia hardware, to set apps to use discrete hardware.

    If setting WaterGEMS to use discrete hardware does not help, try reinstalling the latest drivers, choosing the option for "clean reinstall" (this is an option for Nvidia drivers), then restart your computer and try again.

    If you are using a laptop with a docking station, try updating the docking station drivers, or test to see if it works when not docked.

    Lastly, try updating the drivers for your monitor/display. If you are using multiple monitors, be sure to update the drivers for all.

    If this does not help, please provide screenshots showing the name of the discrete hardware, the driver version and the setting for WaterGEMS to use the discrete hardware.


    Regards,

    Jesse Dringoli
    Technical Support Manager, OpenFlows
    Bentley Communities Site Administrator
    Bentley Systems, Inc.

    Answer Verified By: Marwan Haddad 

Reply
  • Hi Marwan,

    You screenshot seems to indicate that the change you made to the color depth (32 bit vs 256 color) is for the integrated graphics hardware (Intel HD 530). If this had an impact on the issue in question, that would seem to indicate that your WaterGEMS is using the integrated graphics hardware and not your discrete graphics hardware.

    If you do have discrete graphics (like an Nvidia or AMD graphics accelerator), then you will want to ensure that WaterGEMS is set to use that instead of the integrated hardware. Right click on your desktop and look for an item like "Nvidia Control Panel". There is a screenshot in the article I linked to in my previous reply that shows what the option looks like for Nvidia hardware, to set apps to use discrete hardware.

    If setting WaterGEMS to use discrete hardware does not help, try reinstalling the latest drivers, choosing the option for "clean reinstall" (this is an option for Nvidia drivers), then restart your computer and try again.

    If you are using a laptop with a docking station, try updating the docking station drivers, or test to see if it works when not docked.

    Lastly, try updating the drivers for your monitor/display. If you are using multiple monitors, be sure to update the drivers for all.

    If this does not help, please provide screenshots showing the name of the discrete hardware, the driver version and the setting for WaterGEMS to use the discrete hardware.


    Regards,

    Jesse Dringoli
    Technical Support Manager, OpenFlows
    Bentley Communities Site Administrator
    Bentley Systems, Inc.

    Answer Verified By: Marwan Haddad 

Children
  • Hello Jesse,

    Thank you for the complete answer.

    Watergemens now works completely after changing my NvVidia graphic card as the default graphic card of the laptop screen.

    I needed to change additional parameters, in the Nvidia Control Panel, to the one in the article:

    1.  Under 3D Parameters: Set Nvidia preferences to high performances

    2. Under 3D Parameters: assign Watergems to Nvidia

    3. Under 3D Parameters: Define PhysX configuration to Nvidia card

    My best,

    Marwan

  • Hi Marwen, I am glad to hear that it is working now. I have updated the related wiki article based on your feedback.


    Regards,

    Jesse Dringoli
    Technical Support Manager, OpenFlows
    Bentley Communities Site Administrator
    Bentley Systems, Inc.

    Answer Verified By: Marwan Haddad