Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnityException in TooltipManager #18

Closed
linuxgurugamer opened this issue Dec 17, 2019 · 4 comments
Closed

UnityException in TooltipManager #18

linuxgurugamer opened this issue Dec 17, 2019 · 4 comments
Assignees
Labels

Comments

@linuxgurugamer
Copy link

As a result of the upgrade to the current version of Unity, some previously acceptable coding practices are now causing hidden errors, which eventually cause the game to crash.
This is only visible on a debug install.

AT_Utils has at least one issue, the error is here:
Uploading Crash Report
UnityException: set_mode is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or Start instead. Called from MonoBehaviour 'TooltipManager' on game object 'TooltipManager'.
See "Script Serialization" page in the Unity Manual for further details.
at (wrapper managed-to-native) UnityEngine.Gradient.set_mode(UnityEngine.Gradient,UnityEngine.GradientMode)
at AT_Utils.UI.SimpleGradient.update (UnityEngine.Color _) [0x00012] in <8bfbc58247c04f19a32608d8d8e980d4>:0
at AT_Utils.UI.SimpleGradient..ctor (System.Collections.Generic.IEnumerable1[T] content) [0x0002e] in <8bfbc58247c04f19a32608d8d8e980d4>:0 at AT_Utils.UI.Colors..cctor () [0x000f1] in <8bfbc58247c04f19a32608d8d8e980d4>:0 Rethrow as TypeInitializationException: The type initializer for 'AT_Utils.UI.Colors' threw an exception. at AT_Utils.AT_UtilsGlobals.Save (ConfigNode node) [0x00013] in <06fc2bb492054b45919a0c96aa2441ac>:0 at AT_Utils.PluginConfig.Load (System.String[] files) [0x0003b] in <06fc2bb492054b45919a0c96aa2441ac>:0 at AT_Utils.PluginGlobals1[T].Load () [0x00023] in <06fc2bb492054b45919a0c96aa2441ac>:0
at AT_Utils.PluginGlobals`1[T].get_Instance () [0x0000c] in <06fc2bb492054b45919a0c96aa2441ac>:0
at AT_Utils.TooltipWindow..ctor () [0x00000] in <06fc2bb492054b45919a0c96aa2441ac>:0
at AT_Utils.TooltipManager..cctor () [0x00000] in <06fc2bb492054b45919a0c96aa2441ac>:0
Rethrow as TypeInitializationException: The type initializer for 'AT_Utils.TooltipManager' threw an exception.

@allista allista added the bug label Dec 17, 2019
@allista allista self-assigned this Dec 17, 2019
@allista
Copy link
Owner

allista commented Dec 17, 2019

Thanks! I've found and a number of similar bugs already, but they're indeed hard to spot.

@linuxgurugamer
Copy link
Author

Cool. Any idea when you will release an update? I'd rebuild an interm version for myself, but wasn't able to do a full compile, I think it was missing something

@allista
Copy link
Owner

allista commented Dec 17, 2019

Actually, wanted to do it tonight =]

@allista
Copy link
Owner

allista commented Dec 18, 2019

Nope, couldn't do it; at the last moment found a problem in AnizotropicPartResizer that causes PAW to freeze if a part is in a symmetry group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants