Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

CSV Extension for StringTables causing errors

Discussion in 'Localization Tools' started by endam, Feb 10, 2021.

  1. endam

    endam

    Joined:
    Feb 1, 2021
    Posts:
    5
    After creating a StringTableCollection and loading the CSV extension into it this error appears when I move or create any files:

    UnityException: get_isUpdating is not allowed to be called during serialization, call it from OnEnable instead. Called from ScriptableObject 'StringTableCollection'.

    This begins to happen immediately after adding the csv extension and stops once I remove the extension from the StringTableCollection. I recreated it using a new project so I don't think it is an issue with my files, but am I missing something or is this a bug?

    (I'm on 2019.4.19f1)
    error.PNG
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,787
    Hi.
    Do you have a callstack for where that error is coming from?
    Can you share the editor log?
    Could you file a bug report? I was unable to reproduce it.
     
  3. endam

    endam

    Joined:
    Feb 1, 2021
    Posts:
    5
    Code (CSharp):
    1. UnityException: get_isUpdating is not allowed to be called during serialization, call it from OnEnable instead. Called from ScriptableObject 'StringTableCollection'.
    2. See "Script Serialization" page in the Unity Manual for further details.
    3. UnityEditor.AddressableAssets.AddressableAssetSettingsDefaultObject.get_Settings () (at Library/PackageCache/com.unity.addressables@1.16.13/Editor/AddressableAssetSettingsDefaultObject.cs:113)
    4. UnityEditor.AddressableAssets.AddressableAssetSettingsDefaultObject.GetSettings (System.Boolean create) (at Library/PackageCache/com.unity.addressables@1.16.13/Editor/AddressableAssetSettingsDefaultObject.cs:173)
    5. UnityEditor.Localization.LocalizationEditorSettings.GetAddressableAssetSettings (System.Boolean create) (at Library/PackageCache/com.unity.localization@0.10.0-preview/Editor/Settings/LocalizationEditorSettings.cs:381)
    6. UnityEditor.Localization.LocalizationEditorSettings.GetLocalesInternal () (at Library/PackageCache/com.unity.localization@0.10.0-preview/Editor/Settings/LocalizationEditorSettings.cs:544)
    7. UnityEditor.Localization.LocalizationEditorSettings.GetLocales () (at Library/PackageCache/com.unity.localization@0.10.0-preview/Editor/Settings/LocalizationEditorSettings.cs:101)
    8. UnityEditor.Localization.Plugins.CSV.Columns.ColumnMapping.AddLocaleMappings (System.Collections.Generic.IList`1[T] cells, System.Boolean includeComments) (at Library/PackageCache/com.unity.localization@0.10.0-preview/Editor/Plugins/CSV/Columns/ColumnMapping.cs:19)
    9. UnityEditor.Localization.Plugins.CSV.Columns.ColumnMapping.CreateDefaultMapping (System.Boolean includeComments) (at Library/PackageCache/com.unity.localization@0.10.0-preview/Editor/Plugins/CSV/Columns/ColumnMapping.cs:13)
    10. UnityEditor.Localization.Plugins.CSV.CsvExtension..ctor () (at Library/PackageCache/com.unity.localization@0.10.0-preview/Editor/Plugins/CSV/CsvExtension.cs:13)
    11.  
    Here is the call stack, I don't think there is anything in the editor log, though I am not sure if I'm looking in the right place.

    Thanks for the quick reply though :)
     
  4. endam

    endam

    Joined:
    Feb 1, 2021
    Posts:
    5
    I have filed a bug report but I mistakenly thought it was starting when I loaded a csv in but I did some more testing this morning and narrowed it down to adding the extension, is there a way to ammend a bug report?
     
  5. endam

    endam

    Joined:
    Feb 1, 2021
    Posts:
    5
    If it narrows it down in order to recreate it in the new project I added localization in the package manager from com.unity.localization. I then created new localization settings in the project settings panel, adding English and German. I then made a new string table for english and german from Asset Management > Localization Tables. I then added the CSV extension.

    The error then happens if I make a new script or move a file to a new locations.
     
    Last edited: Feb 10, 2021
  6. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,787
    Do you have the bug number? I can amend it.
     
  7. endam

    endam

    Joined:
    Feb 1, 2021
    Posts:
    5
    It is number 1313563
     
    karl_jones likes this.