TeleIO / Telemachus-1

MIT License
34 stars 19 forks source link

Add notice to documentation #67

Open ACH1980 opened 3 years ago

ACH1980 commented 3 years ago

Hi, I think it would be great to add a notice to the documentation (forum Post) that you shouldn't start KSP while Telemachus Site is open and running. Had several crashs yesterday at startup but couldn't figure out what was the unknown variable that decided if KSP would crash at startup. Until I found the following lines in the log short before crashing:

Obtained 7 stack frames.
#0  0x000000009de621 in (Unknown)
#1  0x00000000d65d1b in (Unknown)
#2  0x00000000e0fe2a in (Unknown)
#3  0x000000406cd752 in (wrapper managed-to-native) UnityEngine.Object:FindObjectsOfType (System.Type)
#4  0x00000040a4930e in Telemachus.DataLinkResponsibility:process (WebSocketSharp.Net.HttpListenerRequest,WebSocketSharp.Net.HttpListenerResponse)
#5  0x00000040a4874e in Telemachus.KSPWebServerDispatcher:DispatchRequest (object,WebSocketSharp.Server.HttpRequestEventArgs)
#6  0x00000040a4855b in WebSocketSharp.Server.HttpServer:processRequest (WebSocketSharp.Net.HttpListenerContext)
PartLoader: Compiling Internal Prop 'Squad/Props/buttonsGeneric/clusterButtons/genericClusterButtons'

After that I tried several times with Telemachus Site running and with paused execution in Firefox Debugger and when it ran KSP crashed every time, but when it didn't ran KSP didn't crash...

I don't think it would be a good idea to make a fix for this as I think it would be more work than use.