0
Fixed

Errors right after installation (on an existing project)

Luís Pedro Fonseca 2 years ago updated 2 years ago 5

I created an empty project and imported Bolt and everything went well. Afterwards, I tried to import Bolt into an already existing project (small but with some other plugins already) and I'm getting this error:

ArgumentOutOfRangeException: Cannot be negative.
Parameter name: length
System.String.Substring (Int32 startIndex, Int32 length) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/String.cs:348)
Ludiq.CSharpNameUtility.CSharpFileName (System.Type type, Boolean includeNamespace, Boolean includeGenericParameters) (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Utilities/CSharpNameUtility.cs:109)
Ludiq.Icons.GetCustomTypeIcon (System.Type type, Boolean inherit) (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Interface/Icons/Icons.cs:115)
Ludiq.Icons.Type (System.Type type) (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Interface/Icons/Icons.cs:73)
Bolt.UnitDescriptor`1[TUnit].GetPortIcon (IUnitPort port) (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Editor/Description/UnitDescriptor.cs:202)
Bolt.UnitDescriptor`1+<>c__DisplayClass28_0[Bolt.Expose].<UnitSpecificPorts>b__1 () (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Editor/Description/UnitDescriptor.cs:189)
Ludiq.UnityAPI.ProcessDelegates () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Utilities/UnityAPI.cs:32)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorApplication.cs:109)


And also:

ArgumentException: Expected a 'UnityEngine.Vector2' but got 'null'.
Parameter name: value
Ludiq.EnsureThat.IsOfType[Object] (System.Object param, System.Type expectedType) (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Ensure/EnsureThat.Types.cs:16)
Bolt.ValueInput.SetDefaultValue (System.Object value) (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow/Ports/ValueInput.cs:128)
Bolt.InvokeMember.Definition () (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow/Framework/Codebase/InvokeMember.cs:102)
Bolt.Unit.Define () (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow/Unit.cs:82)
Bolt.UnitBase.CacheStaticUnits () (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Editor/Options/UnitBase.cs:253)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
Ludiq.BackgroundWorker+<>c__DisplayClass0_0.<.cctor>b__4 () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Threading/BackgroundWorker.cs:53)
Ludiq.BackgroundWorker.Work () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Threading/BackgroundWorker.cs:140)
UnityEngine.Debug:LogException(Exception)
Ludiq.<>c__DisplayClass21_0:<Work>b__0() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Threading/BackgroundWorker.cs:144)
UnityEditor.EditorApplication:Internal_CallDelayFunctions()


The fuzzy finder doesn't work so it's not possible to work with the plugin. It keeps showing a circle loading animation.

Any ideas what might be happening?

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Pending Review

Hi Luis,

I'm sorry you're getting these issues right off the bat. Yikes.

The second error log has already been reported by another user in private and is fixed for v.1.0.1.

The first error log is new, but fortunately it seems like a very easy fix. I found and applied it, and hopefully it'll work in v.1.0.1 as well.

I'm waiting until tomorrow at the latest for initial bug reports, then submitting v.1.0.1 early on Monday. Depending on the asset store review delay, it should be available at the beginning of the week. 

Cheers,

Lazlo

Thanks, glad you managed to fix it quickly.

Is there any way to circumvent the problem or maybe to get early access to the updated version? I'd really like to continue to work on my project without having to wait for the asset store approval.

I understand, but unfortunately I don't have a beta distribution system in place yet and I can't spend time manually sending builds to users. I'll look into it for the future; it would need to be something that validates your invoice number to give you instant downloads.

I understand that manually approving and sending copies to clients is not desirable, but buying a product that I can't use is very annoying as well. Any how, I hope the asset store approval is quick.