Hi Guys,
I’ve trying to open an ETO Webview window with python and get this same error.
Are there any work arounds?
Cheers
DK
Hi Guys,
I’ve trying to open an ETO Webview window with python and get this same error.
Are there any work arounds?
Cheers
DK
A little more information
import rhinoscriptsyntax as rs
import scriptcontext
import Rhino
import Rhino.UI
import Eto as Eto
import Eto.Drawing as drawing
import Eto.Forms as forms
import time
import System
my_webview = forms.WebView()
my_webview.Size = drawing.Size(300, 400)
my_webview.Url = System.Uri(‘http://localhost:3456/’)
launcher = Eto.Forms.Form()
launcher.Title = “KaroroCAD Kite designer for Rhino”
launcher.ClientSize = drawing.Size(640, 480)
launcher.Padding = drawing.Padding(10)
launcher.Resizable = True
launcher.Content = my_webview
launcher.Show()
Bumping this up again - why would Webview crash Rhino 7 if Grasshopper is open?
(updated to correct image)
Since this was pulled onto its own thread - here is the error box just before Rhino crashes.
Cheers
DK
(I have way too many redundant imports in this script and my webview and form window sizes are not the same #cleanyourcodeDK)
Does Rhino 7 crash or Rhino 8? This us confusing messaging
Good spotting @nathanletwory - I’d copied over the pic from the previous thread and didn’t see the Rhino 8 directory.
I’ve just done the crash on my machine and updated the screen shot above.
Also - sys_info before someone asks:
Rhino 7 SR31 2023-6-15 (Rhino 7, 7.31.23166.15001, Git hash:master @ 850d276b2d59d7e51843939e4cf674b356bcd354)
License type: Commercial, build 2023-06-15
License details: Cloud Zoo
Windows 10 (10.0.19044 SR0.0) or greater (Physical RAM: 32Gb)
Computer platform: LAPTOP - Plugged in [95% battery remaining]
Non-hybrid graphics configuration.
Primary display and OpenGL: NVIDIA Quadro M1000M (NVidia) Memory: 2GB, Driver date: 6-22-2022 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 513.29
> Integrated accelerated graphics device with 4 adapter port(s)
- Windows Main Display is laptop’s integrated screen or built-in port
- Secondary monitor attached to adapter port #1
OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPU’s maximum)
Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High
Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 6-22-2022
Driver Version: 30.0.15.1329
Maximum Texture size: 16384 x 16384
Z-Buffer depth: 24 bits
Maximum Viewport size: 16384 x 16384
Total Video Memory: 2 GB
Rhino plugins that do not ship with Rhino
C:\Users\David Kay\AppData\Roaming\McNeel\Rhinoceros\packages\7.0\NVIDIADenoiser\0.4.3\NVIDIADenoiser.Windows.rhp “NVIDIADenoiser.Windows” 0.4.3.0
Rhino plugins that ship with Rhino
C:\Program Files\Rhino 7\Plug-ins\Commands.rhp “Commands” 7.31.23166.15001
C:\Program Files\Rhino 7\Plug-ins\WebBrowser.rhp “WebBrowser”
C:\Program Files\Rhino 7\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 7\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 7.31.23166.15001
C:\Program Files\Rhino 7\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 7.31.23166.15001
C:\Program Files\Rhino 7\Plug-ins\rdk_ui.rhp “Renderer Development Kit UI”
C:\Users\David Kay\AppData\Roaming\McNeel\Rhinoceros\7.0\Plug-ins\PanelingTools (6caed836-bc06-4ebc-b1fd-e10886a0dc94)\2018.12.17.906\PanelingTools.rhp “PanelingTools”
C:\Program Files\Rhino 7\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 7\Plug-ins\RhinoCycles.rhp “RhinoCycles” 7.31.23166.15001
C:\Program Files\Rhino 7\Plug-ins\Grasshopper\GrasshopperPlugin.rhp “Grasshopper” 7.31.23166.15001
C:\Program Files\Rhino 7\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 7.31.23166.15001
C:\Program Files\Rhino 7\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 7\Plug-ins\Displacement.rhp “Displacement”
@kiteboardshaper this is likely due to one of your Grasshopper plugin(s) including the WebView2 assemblies. When Eto tries to decide whether to use WebView2 (not supported in Rhino 7 with Eto) or the old IE WebView, it then thinks it could use WebView2 but is obviously not configured correctly as the default location for WebView2 cache files is not a writable directory.
I’ve filed RH-76083 to get that fixed up
@curtisw thank you, that makes a lot of sense, I have a suspect plugin too - I’ll go for look…
Cheers
DK
The GH plugin WebUI has been shifted to the naughty box and all is good with the world! Thank you @curtisw you have solved my problem.
Cheers
DK