Author Topic: Error using Smart Localization  (Read 259 times)

Offline raphaelns

  • Member
  • *
  • Posts: 7
    • View Profile
Error using Smart Localization
« on: October 20, 2018, 01:02:37 am »
I don't know wich version of Smart Localization you are using, but for me it is not working. Using the last version of Smart Localization 2 git project fix the issues on `GUIHelper` file.

Offline Migoun

  • Administrator
  • *****
  • Posts: 42
    • View Profile
Re: Error using Smart Localization
« Reply #1 on: October 21, 2018, 12:17:15 pm »
Hello, thank you for your feedback. We are using the Smart Localization 2 version from July. We didn't notice an issue with GUIHelper yet. Could you tell us what Unity version you are using please? So we can reconstruct and fix this?

Thanks a lot.
Best, Michael

Offline raphaelns

  • Member
  • *
  • Posts: 7
    • View Profile
Re: Error using Smart Localization
« Reply #2 on: November 05, 2018, 10:34:07 pm »
I'm using Unity 2018.2.6f1 on Windows 10.

Offline Migoun

  • Administrator
  • *****
  • Posts: 42
    • View Profile
Re: Error using Smart Localization
« Reply #3 on: November 06, 2018, 05:45:52 pm »
Ok I've tested it with Unity 2018.2.12f1. No issue at all. Could you tell me what exactly it is, that's not working? Thanks.

Offline raphaelns

  • Member
  • *
  • Posts: 7
    • View Profile
Re: Error using Smart Localization
« Reply #4 on: November 07, 2018, 01:01:17 am »
To make sure that the error is not only with my project i created a new project with not assets and added the Tutotrial Designer to it. When i tried to open the SmartLocalization window a got this errors:

Code: (csharp) [Select]
y/Rotorz/Reorderable List Field/Editor/ReorderableListControl.cs:1098)
TutorialDesigner.SmartLocalization.ReorderableList.ReorderableListControl.Draw (IReorderableListAdaptor adaptor) (at Assets/TutorialDesigner/SmartLocalization/Scripts/Editor/ThirdParty/Rotorz/Reorderable List Field/Editor/ReorderableListControl.cs:1119)
TutorialDesigner.SmartLocalization.Editor.SmartLocalizationWindow.ShowCreateAndSettingsActions () (at Assets/TutorialDesigner/SmartLocalization/Scripts/Editor/EditorWindows/SmartLocalizationWindow.cs:222)
TutorialDesigner.SmartLocalization.Editor.SmartLocalizationWindow.OnGUI () (at Assets/TutorialDesigner/SmartLocalization/Scripts/Editor/EditorWindows/SmartLocalizationWindow.cs:203)
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)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:295)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:288)

Code: (csharp) [Select]
GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Code: (csharp) [Select]
NullReferenceException: Object reference not set to an instance of an object
TutorialDesigner.SmartLocalization.ReorderableList.ReorderableListControl.PrepareState (Int32 controlID, IReorderableListAdaptor adaptor) (at Assets/TutorialDesigner/SmartLocalization/Scripts/Editor/ThirdParty/Rotorz/Reorderable List Field/Editor/ReorderableListControl.cs:465)
TutorialDesigner.SmartLocalization.ReorderableList.ReorderableListControl.Draw (Int32 controlID, IReorderableListAdaptor adaptor, TutorialDesigner.SmartLocalization.ReorderableList.DrawEmpty drawEmpty) (at Assets/TutorialDesigner/SmartLocalization/Scripts/Editor/ThirdParty/Rotorz/Reorderable List Field/Editor/ReorderableListControl.cs:1098)
TutorialDesigner.SmartLocalization.ReorderableList.ReorderableListControl.Draw (IReorderableListAdaptor adaptor) (at Assets/TutorialDesigner/SmartLocalization/Scripts/Editor/ThirdParty/Rotorz/Reorderable List Field/Editor/ReorderableListControl.cs:1119)
TutorialDesigner.SmartLocalization.Editor.SmartLocalizationWindow.ShowCreateAndSettingsActions () (at Assets/TutorialDesigner/SmartLocalization/Scripts/Editor/EditorWindows/SmartLocalizationWindow.cs:222)
TutorialDesigner.SmartLocalization.Editor.SmartLocalizationWindow.OnGUI () (at Assets/TutorialDesigner/SmartLocalization/Scripts/Editor/EditorWindows/SmartLocalizationWindow.cs:203)
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)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:295)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:288)
UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:255)

Offline Migoun

  • Administrator
  • *****
  • Posts: 42
    • View Profile
Re: Error using Smart Localization
« Reply #5 on: November 07, 2018, 08:13:21 pm »
Ok now I can see it. Thanks a lot for your help. I'm going to fix it soon and push an update.

Best, Michael

Offline Migoun

  • Administrator
  • *****
  • Posts: 42
    • View Profile
Re: Error using Smart Localization
« Reply #6 on: November 26, 2018, 08:39:40 pm »
Fixed with 1.3.3