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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note:
Fixed by another internal issue: UUM-40584: Errors are being thrown after clicking on a specific asset in Package Manager