Search Issue Tracker
Fixed
Votes
0
Found in
2023.2.0a20
Issue ID
UUM-40642
Regression
Yes
Text bug appears in console when starting play mode in Platform Asset
# Create a 3D Core project
# Install the Platform asset (linked in notes)
# Navigate to demo: Assets > BayatGames > Free Platform Game Assets > Demo
# Enter Demo scene
# Enter play mode
# Observe console
Expected Result: No errors in console
Actual Result: Multiple errors thrown into the console
Reproducible with: 2023.2.0a20
Not reproducible with: 2020.3.46f1, 2021.3.27f1, 2022.3.3f1, 2023.1.1f1
Platforms tested: Win 11
Notes:
Package: [https://assetstore.unity.com/packages/2d/environments/free-platform-game-assets-85838]
UnityException: GUIDToAssetPath_Internal can only be called from the main thread.
Constructors and field initializers will be executed from the loading thread when loading a scene.
Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
UnityEditor.AssetDatabase.GUIDToAssetPath_Internal (UnityEditor.GUID guid) (at <8ddf318822c84abf854a8a8c4c497c08>:0)
UnityEditor.AssetDatabase.GUIDToAssetPath (System.String guid) (at <8ddf318822c84abf854a8a8c4c497c08>:0)
UnityEditor.TextCore.Text.TextEditorResourceManager.GetSourceFontRef (System.String guid) (at <dfb79494a0cc47718e6fbf2c1563a8e4>:0)
UnityEngine.TextCore.Text.FontAsset.get_SourceFont_EditorRef () (at <b87564dc9ce242d881b3de128e60e943>:0)
UnityEngine.TextCore.Text.FontAsset.LoadFontFace () (at <b87564dc9ce242d881b3de128e60e943>:0)
UnityEngine.TextCore.Text.FontAsset.GetGlyphVariantIndex (System.UInt32 unicode, System.UInt32 variantSelectorUnicode) (at <b87564dc9ce242d881b3de128e60e943>:0)
UnityEngine.TextCore.Text.TextGenerator.SetArraySizes (UnityEngine.TextCore.Text.TextProcessingElement[] textProcessingArray, UnityEngine.TextCore.Text.TextGenerationSettings generationSettings, UnityEngine.TextCore.Text.TextInfo textInfo) (at <b87564dc9ce242d881b3de128e60e943>:0)
UnityEngine.TextCore.Text.TextGenerator.Prepare (UnityEngine.TextCore.Text.TextGenerationSettings generationSettings, UnityEngine.TextCore.Text.TextInfo textInfo) (at <b87564dc9ce242d881b3de128e60e943>:0)
UnityEngine.TextCore.Text.TextGenerator.GenerateText (UnityEngine.TextCore.Text.TextGenerationSettings settings, UnityEngine.TextCore.Text.TextInfo textInfo) (at <b87564dc9ce242d881b3de128e60e943>:0)
UnityEngine.TextCore.Text.TextHandle.Update (UnityEngine.TextCore.Text.TextGenerationSettings tgs) (at <b87564dc9ce242d881b3de128e60e943>:0)
UnityEngine.TextCore.Text.TextHandle.AddTextInfoToCache () (at <b87564dc9ce242d881b3de128e60e943>:0)
UnityEngine.UIElements.UITKTextHandle.AddTextInfoToCache () (at <71c83cdce8794d27955145fb1d4beba2>:0)
UnityEngine.UIElements.UITKTextJobSystem+GenerateTextJobData.Execute (System.Int32 index) (at <71c83cdce8794d27955145fb1d4beba2>:0)
Unity.Jobs.IJobParallelForExtensions+ParallelForJobStruct`1[T].Execute (T& jobData, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at <cb35319563ab49b8bcd1e04762456dfa>:0)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
Resolution Note:
Fixed by another internal issue: UUM-40584: Errors are being thrown after clicking on a specific asset in Package Manager