CSV Extension for StringTables causing errors

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)

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.

UnityException: get_isUpdating is not allowed to be called during serialization, call it from OnEnable instead. Called from ScriptableObject 'StringTableCollection'.
See "Script Serialization" page in the Unity Manual for further details.
UnityEditor.AddressableAssets.AddressableAssetSettingsDefaultObject.get_Settings () (at Library/PackageCache/com.unity.addressables@1.16.13/Editor/AddressableAssetSettingsDefaultObject.cs:113)
UnityEditor.AddressableAssets.AddressableAssetSettingsDefaultObject.GetSettings (System.Boolean create) (at Library/PackageCache/com.unity.addressables@1.16.13/Editor/AddressableAssetSettingsDefaultObject.cs:173)
UnityEditor.Localization.LocalizationEditorSettings.GetAddressableAssetSettings (System.Boolean create) (at Library/PackageCache/com.unity.localization@0.10.0-preview/Editor/Settings/LocalizationEditorSettings.cs:381)
UnityEditor.Localization.LocalizationEditorSettings.GetLocalesInternal () (at Library/PackageCache/com.unity.localization@0.10.0-preview/Editor/Settings/LocalizationEditorSettings.cs:544)
UnityEditor.Localization.LocalizationEditorSettings.GetLocales () (at Library/PackageCache/com.unity.localization@0.10.0-preview/Editor/Settings/LocalizationEditorSettings.cs:101)
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)
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)
UnityEditor.Localization.Plugins.CSV.CsvExtension..ctor () (at Library/PackageCache/com.unity.localization@0.10.0-preview/Editor/Plugins/CSV/CsvExtension.cs:13)

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 :slight_smile:

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?

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.

Do you have the bug number? I can amend it.

It is number 1313563

1 Like