Jump to content

Random crash when reading database


DolphinWing
  • Branch: Live Branch Version: Windows Fixed

Not sure how to reproduced it. It seems to happen more easier when clicking the hyperlinks in the database content.

I have loaded my custom font mod but I hope to leave the game log here. It begins with unity 6 update.

NullReferenceException: Object reference not set to an instance of an object
  at TMPro.TMP_Text.ValidateHtmlTag (TMPro.TMP_Text+TextProcessingElement[] chars, System.Int32 startIndex, System.Int32& endIndex) [0x012dd] in <3b265ecd9bed4c929078bc9df64cc5e5>:0 
  at TMPro.TMP_Text.CalculatePreferredValues (System.Single& fontSize, UnityEngine.Vector2 marginSize, System.Boolean isTextAutoSizingEnabled, TMPro.TextWrappingModes textWrapMode) [0x003ee] in <3b265ecd9bed4c929078bc9df64cc5e5>:0 
  at TMPro.TMP_Text.GetPreferredHeight () [0x000a5] in <3b265ecd9bed4c929078bc9df64cc5e5>:0 
  at TMPro.TMP_Text.get_preferredHeight () [0x00000] in <3b265ecd9bed4c929078bc9df64cc5e5>:0 
  at UnityEngine.UI.LayoutUtility+<>c.<GetPreferredHeight>b__7_1 (UnityEngine.UI.ILayoutElement e) [0x00000] in <d7e6fb7d811a44c59080a566e6198411>:0 
  at UnityEngine.UI.LayoutUtility.GetLayoutProperty (UnityEngine.RectTransform rect, System.Func`2[T,TResult] property, System.Single defaultValue, UnityEngine.UI.ILayoutElement& source) [0x00071] in <d7e6fb7d811a44c59080a566e6198411>:0 
  at UnityEngine.UI.LayoutUtility.GetLayoutProperty (UnityEngine.RectTransform rect, System.Func`2[T,TResult] property, System.Single defaultValue) [0x00000] in <d7e6fb7d811a44c59080a566e6198411>:0 
  at UnityEngine.UI.LayoutUtility.GetPreferredHeight (UnityEngine.RectTransform rect) [0x0002a] in <d7e6fb7d811a44c59080a566e6198411>:0 
  at UnityEngine.UI.LayoutUtility.GetPreferredSize (UnityEngine.RectTransform rect, System.Int32 axis) [0x00003] in <d7e6fb7d811a44c59080a566e6198411>:0 
  at UnityEngine.UI.HorizontalOrVerticalLayoutGroup.GetChildSizes (UnityEngine.RectTransform child, System.Int32 axis, System.Boolean controlSize, System.Boolean childForceExpand, System.Single& min, System.Single& preferred, System.Single& flexible) [0x0002f] in <d7e6fb7d811a44c59080a566e6198411>:0 
  at UnityEngine.UI.HorizontalOrVerticalLayoutGroup.CalcAlongAxis (System.Int32 axis, System.Boolean isVertical) [0x0008c] in <d7e6fb7d811a44c59080a566e6198411>:0 
  at UnityEngine.UI.VerticalLayoutGroup.CalculateLayoutInputVertical () [0x00000] in <d7e6fb7d811a44c59080a566e6198411>:0 
  at UnityEngine.UI.LayoutRebuilder+<>c.<Rebuild>b__12_2 (UnityEngine.Component e) [0x00000] in <d7e6fb7d811a44c59080a566e6198411>:0 
  at UnityEngine.UI.LayoutRebuilder.PerformLayoutCalculation (UnityEngine.RectTransform rect, UnityEngine.Events.UnityAction`1[T0] action) [0x00074] in <d7e6fb7d811a44c59080a566e6198411>:0 
  at UnityEngine.UI.LayoutRebuilder.PerformLayoutCalculation (UnityEngine.RectTransform rect, UnityEngine.Events.UnityAction`1[T0] action) [0x00050] in <d7e6fb7d811a44c59080a566e6198411>:0 
  at UnityEngine.UI.LayoutRebuilder.PerformLayoutCalculation (UnityEngine.RectTransform rect, UnityEngine.Events.UnityAction`1[T0] action) [0x00050] in <d7e6fb7d811a44c59080a566e6198411>:0 
  at UnityEngine.UI.LayoutRebuilder.PerformLayoutCalculation (UnityEngine.RectTransform rect, UnityEngine.Events.UnityAction`1[T0] action) [0x00050] in <d7e6fb7d811a44c59080a566e6198411>:0 
  at UnityEngine.UI.LayoutRebuilder.PerformLayoutCalculation (UnityEngine.RectTransform rect, UnityEngine.Events.UnityAction`1[T0] action) [0x00050] in <d7e6fb7d811a44c59080a566e6198411>:0 
  at UnityEngine.UI.LayoutRebuilder.PerformLayoutCalculation (UnityEngine.RectTransform rect, UnityEngine.Events.UnityAction`1[T0] action) [0x00050] in <d7e6fb7d811a44c59080a566e6198411>:0 
  at UnityEngine.UI.LayoutRebuilder.PerformLayoutCalculation (UnityEngine.RectTransform rect, UnityEngine.Events.UnityAction`1[T0] action) [0x00050] in <d7e6fb7d811a44c59080a566e6198411>:0 
  at UnityEngine.UI.LayoutRebuilder.PerformLayoutCalculation (UnityEngine.RectTransform rect, UnityEngine.Events.UnityAction`1[T0] action) [0x00050] in <d7e6fb7d811a44c59080a566e6198411>:0 
  at UnityEngine.UI.LayoutRebuilder.Rebuild (UnityEngine.UI.CanvasUpdate executing) [0x0005d] in <d7e6fb7d811a44c59080a566e6198411>:0 
  at UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () [0x00041] in <d7e6fb7d811a44c59080a566e6198411>:0 
UnityEngine.DebugLogHandler:Internal_LogException_Injected(Exception, IntPtr)
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
LogCatcher:UnityEngine.ILogHandler.LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception, Object)
UnityEngine.UI.CanvasUpdateRegistry:PerformUpdate()
UnityEngine.Canvas:SendWillRenderCanvases()

 


Steps to Reproduce

Navigate it database by using hyperlinks in the database

  • Sad Dupe 1



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

We have seen a number reports from the in game crash reporter. Two comments suggest it's related to Sweetles and sucrose database entries if that helps. Arabic and Japanese mods also have reported crashes. TextMeshPro was updated as part of the Unity upgrade. Quite a few internals have changed around fonts.

We haven't been able to reproduce the issue even with your mod. If you discover additional information please let me know.

  • Thanks 1

Share this comment


Link to comment
Share on other sites

Thanks for the info. I did upgrade my font mod with Unity 6 TextMeshPro and Asset Manager.

My user left comments for game crashes and I tried to find which entries caused that. I got the crash when I click the Pyrite in solid element list, but I restarted the game and click it again, it did not crash. After that I didn't get other crashes by navigating entries back and forth. I'll update when I find more info.

Share this comment


Link to comment
Share on other sites

We attempted a fix in today's hotfix. Let me know if it improves things.

 

  • Like 1

Share this comment


Link to comment
Share on other sites

Changed Status to Fixed

It appears to be fixed looking at in-game crash reports. We would've seen one by now.

  • Thanks 1

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...