0
Fixed

Getting occasionally ArgumentNullException

btsslawa 5 days ago updated by Lazlo Bonin (Lead Developer) 4 days ago 3

With Peek 1.1.3 and Unity 2019.3.0b9 I get every now and then this error.

When I save the scene or open the Ludiq-Peek-About section.

ArgumentNullException: Value cannot be null.

Parameter name: target

Ludiq.PeekCore.PluginConfiguration.SaveProjectSettingsAsset () (at Assets/Ludiq/Ludiq.PeekCore/Editor/Plugins/PluginConfiguration.cs:301)

Ludiq.PeekCore.ProjectSettingAccessor.Save () (at Assets/Ludiq/Ludiq.PeekCore/Editor/Meta/ProjectSettingAccessor.cs:36)

Ludiq.PeekCore.PluginConfiguration.Save () (at Assets/Ludiq/Ludiq.PeekCore/Editor/Plugins/PluginConfiguration.cs:62)

Ludiq.PeekCore.SetupCompletePage.OnShow () (at Assets/Ludiq/Ludiq.PeekCore/Editor/Windows/SetupWizard/SetupCompletePage.cs:58)

Ludiq.PeekCore.Page.Show () (at Assets/Ludiq/Ludiq.PeekCore/Editor/Windows/Page.cs:64)

Ludiq.PeekCore.Wizard.set_currentPage (Ludiq.PeekCore.Page value) (at Assets/Ludiq/Ludiq.PeekCore/Editor/Windows/Wizard.cs:33)

Ludiq.PeekCore.Wizard+<>c__DisplayClass20_0.b__0 () (at Assets/Ludiq/Ludiq.PeekCore/Editor/Windows/Wizard.cs:55)

Ludiq.PeekCore.Page.CompleteSwitch () (at Assets/Ludiq/Ludiq.PeekCore/Editor/Windows/Page.cs:38)

Ludiq.PeekCore.Wizard.Update () (at Assets/Ludiq/Ludiq.PeekCore/Editor/Windows/Wizard.cs:91)

System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)

Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.

System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)

System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <437ba245d8404784b9fbab9b439ac908>:0)

UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at <8fdb511b120d4b249e3a836bb395bfee>:0)

UnityEditor.HostView.Invoke (System.String methodName) (at <8fdb511b120d4b249e3a836bb395bfee>:0)

UnityEditor.HostView.SendUpdate () (at <8fdb511b120d4b249e3a836bb395bfee>:0)

System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)

Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.

System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)

System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <437ba245d8404784b9fbab9b439ac908>:0)

System.Delegate.DynamicInvokeImpl (System.Object[] args) (at <437ba245d8404784b9fbab9b439ac908>:0)

System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) (at <437ba245d8404784b9fbab9b439ac908>:0)

System.Delegate.DynamicInvoke (System.Object[] args) (at <437ba245d8404784b9fbab9b439ac908>:0)

UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at <8fdb511b120d4b249e3a836bb395bfee>:0)

Unity Version:
2019.3.0b9
Peek Version:
1.1.3
Working on Fix

Hi btsslawa,

It seems like you somehow deleted the Ludiq.Generated folder that contains the project settings.

I'm looking into fixing the error so that it silently recreates the project settings instead of erroring out.