Multiple Web Browsers #292
-
What platform are you experiencing this issue on?Windows What architecture is your platform?64-Bit What version of UWB are you using?Latest VoltstroUPM Release What Unity version are you running?2022.3.11f1 Describe what the issue you are experiencing is.When using two Web Browsers the first one works fine while the second one throws the following error: [Web Browser]: [Engine]: Uncaught exception occured in the entry point! UnityEngine.Logger:LogError (string,object) VoltstroStudios.UnityWebBrowser.Logging.DefaultUnityWebBrowserLogger:Error (object) (at ./Library/PackageCache/[email protected]/Runtime/Logging/DefaultUnityWebBrowserLogger.cs:36) VoltstroStudios.UnityWebBrowser.Logging.ProcessLogHandler:HandleOutputProcessLog (object,System.Diagnostics.DataReceivedEventArgs) (at ./Library/PackageCache/[email protected]/Runtime/Logging/ProcessLogHandler.cs:54) System.Threading._ThreadPoolWaitCallback:PerformWaitCallback () Is there anything i have to configure to allow for multiple instances? Any additional info you like to provide?I've updated to the current CEF Versions. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Ensure your communication layer is operating on different ports, and that either you have cache disabled, or change the cache path via |
Beta Was this translation helpful? Give feedback.
-
I am creating a separate TCPCommunicationLayer ScriptableObject for each Whiteboard with different ports (5555,5556) and (5557,5558)
while it works for a single whiteboard, for a second one it always throws the [Web Browser]: [Engine]: Uncaught exception occured in the entry point Exception.
I disabled Cache for both and upped the timeout to 7000 with no changes. Is there anything i am missing? |
Beta Was this translation helpful? Give feedback.
I had a look into it quickly, looks like CEF has changed it behavior since I last experimented with running two instance.
What I did to get it working was to enable cache, and change
WebBrowserClient.CachePath
to a random path in the temp dir before UWB starts.