Application crashes

Issue Description:
If you play long enough (this case may depend on user’s performance) plugin just crashes without any errors in application logs, but there are some lines in OW client logs, that I can’t decode and understand the reason of crash

Steps to reproduce:
Just play for a while, there is no any clear way to reproduce, it tooks 2-3 hours of playing for me, but it depends on user’s PC as far as I know

Impact for my app: critical
Do you currently have a workaround? No

Here’s my logs, plugin named Sample App. There are log lines in OW files(OverwolfHelper, Trace, etc.) that seem interesting, but I don’t know what is the reason if “Did not find consumers for (R6 id)” or “Fail to inject pending process” logs (1.6 MB)
TIME: 03.09.2020 (20:05 -20:07)

Here’s logs of the user who find that problem: (145.9 KB)
TIME: 03.09.2020 (00:33)

Look at OverwolfBrowserError logs - I see this:
2020-08-12 16:51:53,162 (ERROR) Failed to execute Log on Main with 1 arguments. details: System.Reflection.TargetInvocationException: Адресат вызова создал исключение. —> System.TypeInitializationException: Инициализатор типа “Flexer.Analytics.AnalyticController” выдал исключение. —> System.IO.FileNotFoundException: Не удалось загрузить файл или сборку “Newtonsoft.Json, Version=, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed” либо одну из их зависимостей. Не удается найти указанный файл.
в AmplitudeSharp.AmplitudeService…ctor(String apiKey)
в AmplitudeSharp.AmplitudeService.Initialize(String apiKey, Action`2 logger, Stream persistenceStream)
в Flexer.Analytics.Analytic.AmplitudePrivider…ctor()
в Flexer.Analytics.AnalyticController…cctor()
— Конец трассировки внутреннего стека исключений —
в Flexer.Analytics.AnalyticController.RefreshLogs(StringBuilder logs, String userKey, String sessionKey)
в Flexer.Common.LogWriter.OnWrite(String data)
в Flexer.Common.LogWriter.WriteLineGeneric[T](T value)
в Flexer.Common.LogWriter.WriteLine(String value)
в System.IO.TextWriter.SyncTextWriter.WriteLine(String value)
в System.Console.WriteLine(String value)
в Flexer.Common.LogManager.LogFinal(String data, String className, String methodName, String type)
в Flexer.Common.LogManager.LogFinal(String data, String type)
в Flexer.OWInterlayer.Main.Log(String data)
— Конец трассировки внутреннего стека исключений —
в System.RuntimeMethodHandle.InvokeMethod(Object target, Object arguments, Signature sig, Boolean constructor)
в System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object parameters, Object arguments)
в System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
в CEFBrowserProcess.V8.DynamicObjectFuncHandler.Execute(String name, CefV8Value obj, CefV8Value arguments, CefV8Value& returnValue, String& exception)

Yea, I saw this too, maybe this errors caused by our logging dll that connected to plugin, but I don’t know is this the main reason of crashes

Yes - if the plugin crashes, it will crash your app.
Better protect it with try…catch… in the C# code.

Thank you! We’ll fix this plugin crashes and after that I’ll write down the result

1 Like

I am closing this issue.
You can always ask to reopen it by mentioning me.