Search Unity

Unity becomes unresponsive after trying to create new StringTable with default TableName

Discussion in 'Localization Tools' started by CDF, Sep 16, 2019.

  1. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,311
    v0.4.0. Creating a string table with default name makes Unity unresponsive

    Code (CSharp):
    1. 'Assets/Tables/ Keys.asset' is not a valid asset file name.
    2. UnityEditor.AssetDatabase:CreateAsset(Object, String)
    3. UnityEditor.Localization.LocalizationEditorSettings:CreateAsset(Object, String) (at Library\PackageCache\com.unity.localization@0.4.0-preview\Editor\LocalizationEditorSettings.cs:729)
    4. UnityEditor.Localization.LocalizationEditorSettings:CreateAssetTablesInternal(List`1, KeyDatabase, String, Type, String, Boolean, Boolean) (at Library\PackageCache\com.unity.localization@0.4.0-preview\Editor\LocalizationEditorSettings.cs:677)
    5. UnityEditor.Localization.LocalizationEditorSettings:CreateAssetTablesFolderPanelInternal(List`1, KeyDatabase, String, Type) (at Library\PackageCache\com.unity.localization@0.4.0-preview\Editor\LocalizationEditorSettings.cs:659)
    6. UnityEditor.Localization.LocalizationEditorSettings:CreateAssetTablesFolderPanel(List`1, KeyDatabase, String, Type) (at Library\PackageCache\com.unity.localization@0.4.0-preview\Editor\LocalizationEditorSettings.cs:631)
    7. UnityEditor.Localization.UI.AssetTablesGenerator:CreateTables() (at Library\PackageCache\com.unity.localization@0.4.0-preview\Editor\UI\AssetTableGenerator.cs:95)
    8. UnityEngine.UIElements.Clickable:OnMouseUp(MouseUpEvent) (at C:\buildslave\unity\build\Modules\UIElements\Clickable.cs:152)
    9. UnityEngine.UIElements.EventCallbackFunctor`1:Invoke(EventBase) (at C:\buildslave\unity\build\Modules\UIElements\Events\EventCallback.cs:62)
    10. UnityEngine.UIElements.EventCallbackRegistry:InvokeCallbacks(EventBase) (at C:\buildslave\unity\build\Modules\UIElements\Events\EventCallbackRegistry.cs:332)
    11. UnityEngine.UIElements.CallbackEventHandler:HandleEvent(EventBase) (at C:\buildslave\unity\build\Modules\UIElements\Events\EventHandler.cs:80)
    12. UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent(EventBase, IPanel) (at C:\buildslave\unity\build\Modules\UIElements\Events\MouseCaptureDispatchingStrategy.cs:93)
    13. UnityEngine.UIElements.EventDispatcher:ProcessEvent(EventBase, IPanel) (at C:\buildslave\unity\build\Modules\UIElements\EventDispatcher.cs:280)
    14. UnityEngine.UIElements.EventDispatcher:Dispatch(EventBase, IPanel, DispatchMode) (at C:\buildslave\unity\build\Modules\UIElements\EventDispatcher.cs:156)
    15. UnityEngine.UIElements.BaseVisualElementPanel:SendEvent(EventBase, DispatchMode) (at C:\buildslave\unity\build\Modules\UIElements\Panel.cs:190)
    16. UnityEngine.UIElements.UIElementsUtility:DoDispatch(BaseVisualElementPanel) (at C:\buildslave\unity\build\Modules\UIElements\UIElementsUtility.cs:255)
    17. UnityEngine.UIElements.UIElementsUtility:ProcessEvent(Int32, IntPtr) (at C:\buildslave\unity\build\Modules\UIElements\UIElementsUtility.cs:78)
    18. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:\buildslave\unity\build\Modules\IMGUI\GUIUtility.cs:179)
    19.  
    20. [C:\buildslave\unity\build\Modules/AssetDatabase/Editor/V1/AssetInterface.cpp line 165]
    21. (Filename: Library/PackageCache/com.unity.localization@0.4.0-preview/Editor/LocalizationEditorSettings.cs Line: 729)
    22.  
    23. UnityException: Creating asset at path Assets/Tables\ Keys.asset failed.
    24.   at (wrapper managed-to-native) UnityEditor.AssetDatabase.CreateAsset(UnityEngine.Object,string)
    25.   at UnityEditor.Localization.LocalizationEditorSettings.CreateAsset (UnityEngine.Object asset, System.String path) [0x00001] in D:\Unity\Libraries\Unity Localization\Library\PackageCache\com.unity.localization@0.4.0-preview\Editor\LocalizationEditorSettings.cs:729
    26.   at UnityEditor.Localization.LocalizationEditorSettings.CreateAssetTablesInternal (System.Collections.Generic.List`1[T] selectedLocales, UnityEngine.Localization.KeyDatabase keyDatabase, System.String tableName, System.Type tableType, System.String assetDirectory, System.Boolean showProgressBar, System.Boolean showInTablesWindow) [0x00035] in D:\Unity\Libraries\Unity Localization\Library\PackageCache\com.unity.localization@0.4.0-preview\Editor\LocalizationEditorSettings.cs:677
    27.   at UnityEditor.Localization.LocalizationEditorSettings.CreateAssetTablesFolderPanelInternal (System.Collections.Generic.List`1[T] selectedLocales, UnityEngine.Localization.KeyDatabase keyDatabase, System.String tableName, System.Type tableType) [0x00028] in D:\Unity\Libraries\Unity Localization\Library\PackageCache\com.unity.localization@0.4.0-preview\Editor\LocalizationEditorSettings.cs:659
    28.   at UnityEditor.Localization.LocalizationEditorSettings.CreateAssetTablesFolderPanel (System.Collections.Generic.List`1[T] selectedLocales, UnityEngine.Localization.KeyDatabase keyDatabase, System.String tableName, System.Type tableType) [0x00001] in D:\Unity\Libraries\Unity Localization\Library\PackageCache\com.unity.localization@0.4.0-preview\Editor\LocalizationEditorSettings.cs:631
    29.   at UnityEditor.Localization.UI.AssetTablesGenerator.CreateTables () [0x00001] in D:\Unity\Libraries\Unity Localization\Library\PackageCache\com.unity.localization@0.4.0-preview\Editor\UI\AssetTableGenerator.cs:95
    30.   at UnityEngine.UIElements.Clickable.OnMouseUp (UnityEngine.UIElements.MouseUpEvent evt) [0x00084] in C:\buildslave\unity\build\Modules\UIElements\Clickable.cs:152
    31.   at UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt) [0x00046] in C:\buildslave\unity\build\Modules\UIElements\Events\EventCallback.cs:62
    32.   at UnityEngine.UIElements.EventCallbackRegistry.InvokeCallbacks (UnityEngine.UIElements.EventBase evt) [0x00045] in C:\buildslave\unity\build\Modules\UIElements\Events\EventCallbackRegistry.cs:332
    33.   at UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) [0x00039] in C:\buildslave\unity\build\Modules\UIElements\Events\EventHandler.cs:80
    34.   at UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) [0x0018b] in C:\buildslave\unity\build\Modules\UIElements\Events\MouseCaptureDispatchingStrategy.cs:93
    35.   at UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) [0x00090] in C:\buildslave\unity\build\Modules\UIElements\EventDispatcher.cs:280
    36.   at UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) [0x00048] in C:\buildslave\unity\build\Modules\UIElements\EventDispatcher.cs:156
    37.   at UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) [0x00024] in C:\buildslave\unity\build\Modules\UIElements\Panel.cs:190
    38.   at UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) [0x00093] in C:\buildslave\unity\build\Modules\UIElements\UIElementsUtility.cs:255
    39.   at UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) [0x00030] in C:\buildslave\unity\build\Modules\UIElements\UIElementsUtility.cs:78
    40.   at UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) [0x00012] in C:\buildslave\unity\build\Modules\IMGUI\GUIUtility.cs:179
    41. (Filename: Library/PackageCache/com.unity.localization@0.4.0-preview/Editor/LocalizationEditorSettings.cs Line: 729)
    Offending code:
    localizationError.PNG
    I assume filenames can't start with a space!
     
    karl_jones likes this.
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,282
    Hmm possibly. There was also an error with the new asset database in 2019.3 when using Start and Stop asset editing which we have fixed in the next release.
     
    CDF likes this.