Anton SDF Atlas bugs

Hi guys,
I am a new developer and i am developing an MR game for Vision Pro, with polyspatial, of course.
I keep run into bug saying thing about the texture Anton SDF Atlas, like the log following:

RequestCreateTexture
SetupRenderTextureFromXRRequest (id: 1 col: 0x0 d: 0x0 sr: 0x0)
RenderTexture::Create (id: 1)
Texture 'Anton SDF Atlas' is degenerate (dimensions 0x0)
Unity.PolySpatial.Internals.ConversionHelpers:ToPolySpatialFallbackTextureData(Texture2D, Action`2, GraphicsFormat, PolySpatialTextureFallbackMode)
Unity.PolySpatial.Internals.LocalAssetManager:FetchAssetChangesCallback(TypeDispatchData)
Unity.PolySpatial.Internals.<>c__DisplayClass13_0:<.ctor>b__0(TypeDispatchData)
UnityEngine.<>c:<.cctor>b__54_0(Object[], IntPtr, IntPtr, Int32, Int32, Action`1)
Unity.PolySpatial.Internals.LocalAssetManager:ProcessChanges()
Unity.PolySpatial.Internals.PolySpatialUnitySimulation:UpdateInternal()
Unity.PolySpatial.Internals.PolySpatialCore:PolySpatialAfterLateUpdate()

[ line 1802836920]

[AssetManager] Exception calling GetPixels32() on Texture Anton SDF Atlas. The texture is likely not marked as readable, perhaps because it was dynamically created.
System.ArgumentException: Texture2D.GetPixels32: texture data is either not readable, corrupted or does not exist. (Texture 'Anton SDF Atlas')
  at Unity.PolySpatial.Internals.ConversionHelpers.ToPolySpatialFallbackTextureData (UnityEngine.Texture2D tex2d, System.Action`2[T1,T2] postConversionCallback, UnityEngine.Experimental.Rendering.GraphicsFormat fallbackGraphicsFormat, Unity.PolySpatial.Internals.PolySpatialTextureFallbackMode fallbackMode) [0x00000] in <00000000000000000000000000000000>:0 
  at Unity.PolySpatial.Internals.LocalAssetManager.FetchAssetChangesCallback (Unity.PolySpatial.Internals.ObjectDispatcherProxy+TypeDispatchData data) [0x00000] in <00000000000000000000000000000000>:0 
  at Unity.PolySpatial.Internals.ObjectDispatcherProxy+<>c__DisplayClass13_0.<.ctor>b__0 (UnityEngine.TypeDispatchData real) [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.ObjectDispatcher+<>c.<.cctor>b__54_0 (UnityEngine.Object[] changed, System.IntPtr changedID, System.IntPtr destroyedID, System.Int32 changedCount, System.Int32 destroyedCount, System.Action`1[T] callback) [0x00000] in <00000000000000000000000000000000>:0 
  at Unity.PolySpatial.Internals.LocalAssetManager.ProcessChanges () [0x00000] in <00000000000000000000000000000000>:0 
  at Unity.PolySpatial.Internals.PolySpatialUnitySimulation.UpdateInternal () [0x00000] in <00000000000000000000000000000000>:0 
  at Unity.PolySpatial.Internals.PolySpatialCore.PolySpatialAfterLateUpdate () [0x00000] in <00000000000000000000000000000000>:0 

At first I thought it was because I used the font Anton SDF, so I changed all the fonts, now I am sure I am not using any Anton SDF font.
I also did edit - clear all playerprefs, and clean build.
But those didn’t fixe the bug.
I have tried 10 hours… I dont even know where the source of the bug is…
Does anyone happen to have met the similar problem? Any suggestions would help.
Thanks

1 Answer

1

Hi guys,
I finally solved the bug just now. It turns out to be the Anton SDF material problem in TMPro, not the font.
At first I was using the Anton SDF font in TMPro. When the bug appeared, I replaced the font with Inter-Regular SDF. The material of the text should comply with the fond automatically, into Inter-Regular SDF material, and most of them did. But somehow some texts didnot change the material automatially, I don’t know why.
Anyway, I replaced the materials manually, and problem solved!
Thanks for your attention. Hope you guys pay attention to that scenario and enjoy your development.