InvalidCastException at CreateUiFixed

Hey. Yesterday such errors began to pour in, but sorting works.
Yesterday was an Oxide update

Failed to call hook 'OnTick' on plugin 'FurnaceSplitter v2.2.7' (InvalidCastException: Null object cannot be converted to a value type.)
at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00029] in <437ba245d8404784b9fbab9b439ac908>:0
at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <437ba245d8404784b9fbab9b439ac908>:0
at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <cf88a28c7fb44d36890d85a78331cc9d>:0
at Oxide.Plugins.FurnaceSplitter.CreateUi (BasePlayer player, BaseOven oven, Oxide.Plugins.FurnaceSplitter+OvenInfo ovenInfo) [0x000a8] in <d8af09fc8eea467684ecee843c34088b>:0
at Oxide.Plugins.FurnaceSplitter+<OnTick>c__AnonStorey0.<>m__0 (BasePlayer plr) [0x00016] in <d8af09fc8eea467684ecee843c34088b>:0
at System.Collections.Generic.List`1[T].ForEach (System.Action`1[T] action) [0x00024] in <437ba245d8404784b9fbab9b439ac908>:0
at Oxide.Plugins.FurnaceSplitter.OnTick () [0x0006a] in <d8af09fc8eea467684ecee843c34088b>:0
at Oxide.Plugins.FurnaceSplitter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00240] in <d8af09fc8eea467684ecee843c34088b>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0
What did you place down when this happens
errors on any item that you send to the oven
First, remove all other plugins and try, sounds like you have a plugin conflict.
I have the same issue, and it is conflicting with UI Scale Manager. It seems the new update has messed something up with Furnace Splitter that causes incompatibility issues. Only way I can see this being fixed is if FastBurst fixes the issue within the plugin itself.
So the issue is that v2 of UIScaleManager isn't compatible with Furnace Splitter yet.
I'm looking into updating Furnace Splitter now to fix this problem but in the meantime, just use v1 of UIScaleManager.

Any ideas on how to fix this? It spams console when someone is using a furnace.

Failed to call hook 'OnTick' on plugin 'FurnaceSplitter v2.2.7' (InvalidCastException: Null object cannot be converted to a value type.)
  at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00029] in <437ba245d8404784b9fbab9b439ac908>:0
  at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <437ba245d8404784b9fbab9b439ac908>:0
  at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <cf88a28c7fb44d36890d85a78331cc9d>:0
  at Oxide.Plugins.FurnaceSplitter.CreateUi (BasePlayer player, BaseOven oven, Oxide.Plugins.FurnaceSplitter+OvenInfo ovenInfo) [0x000a8] in <d042c6603ad744c6ab11179f2477fabe>:0
  at Oxide.Plugins.FurnaceSplitter+<OnTick>cAnonStorey0.<>m0 (BasePlayer plr) [0x00016] in <d042c6603ad744c6ab11179f2477fabe>:0
  at System.Collections.Generic.List1[T].ForEach (System.Action1[T] action) [0x00024] in <437ba245d8404784b9fbab9b439ac908>:0
at Oxide.Plugins.FurnaceSplitter.OnTick () [0x0006a] in <d042c6603ad744c6ab11179f2477fabe>:0
at Oxide.Plugins.FurnaceSplitter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00240] in <d042c6603ad744c6ab11179f2477fabe>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0

Hey.
In the console such error takes off:

Failed to call hook 'OnTick' on plugin 'FurnaceSplitter v2.2.7' (InvalidCastException: Null object cannot be converted to a value type.)
  at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00029] in <fb001e01371b4adca20013e0ac763896>:0
  at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <fb001e01371b4adca20013e0ac763896>:0
  at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <ec05e0208c9149bba43236ca58fea105>:0
  at Oxide.Plugins.FurnaceSplitter.CreateUi (BasePlayer player, BaseOven oven, Oxide.Plugins.FurnaceSplitter+OvenInfo ovenInfo) [0x000a8] in <39eb97f90bc74cedb108f7350debab14>:0
  at Oxide.Plugins.FurnaceSplitter+<OnTick>c__AnonStorey0.<>m__0 (BasePlayer plr) [0x00016] in <39eb97f90bc74cedb108f7350debab14>:0
  at System.Collections.Generic.List`1[T].ForEach (System.Action`1[T] action) [0x00024] in <fb001e01371b4adca20013e0ac763896>:0
  at Oxide.Plugins.FurnaceSplitter.OnTick () [0x0006a] in <39eb97f90bc74cedb108f7350debab14>:0
  at Oxide.Plugins.FurnaceSplitter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00240] in <39eb97f90bc74cedb108f7350debab14>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0
When about more of 3 people use furnace server crash. Lot of errors all time. 
Failed to call hook 'OnTick' on plugin 'FurnaceSplitter v2.2.7' (InvalidCastException: Null object cannot be converted to a value type.) at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00029] in :0 at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in :0 at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in :0 at Oxide.Plugins.FurnaceSplitter.CreateUi (BasePlayer player, BaseOven oven, Oxide.Plugins.FurnaceSplitter+OvenInfo ovenInfo) [0x000a8] in :0 at Oxide.Plugins.FurnaceSplitter+c__AnonStorey0.<>m__0 (BasePlayer plr) [0x00016] in :0 at System.Collections.Generic.List`1[T].ForEach (System.Action`1[T] action) [0x00024] in :0 at Oxide.Plugins.FurnaceSplitter.OnTick () [0x0006a] in :0 at Oxide.Plugins.FurnaceSplitter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00240] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0​


Merged post

I resolved issue with deleting UIScalemanager, Furnacesplitter and Quicksmelt with their data and config. Then i installed Quicksmelt and Furnacesplitter. When i edited config files i first done oxide.unload "Plugin name" and after that oxide.load "Plugin name". When i unload plugin deleting .cs file and installing again that cause me troubles in a lot of plugins. I hope that helps :)
Failed to call hook 'OnTick' on plugin 'FurnaceSplitter v2.2.7' (InvalidCastException: Null object cannot be converted to a value type.) at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00029] in <fb001e01371b4adca20013e0ac763896>:0 at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <fb001e01371b4adca20013e0ac763896>:0 at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <ec05e0208c9149bba43236ca58fea105>:0 at Oxide.Plugins.FurnaceSplitter.CreateUi (BasePlayer player, BaseOven oven, Oxide.Plugins.FurnaceSplitter+OvenInfo ovenInfo) [0x000a8] in <ac505699c1ca4da3abf3c46f25411922>:0 at Oxide.Plugins.FurnaceSplitter+<OnTick>c__AnonStorey0.<>m__0 (BasePlayer plr) [0x00016] in <ac505699c1ca4da3abf3c46f25411922>:0 at System.Collections.Generic.List`1[T].ForEach (System.Action`1[T] action) [0x00024] in <fb001e01371b4adca20013e0ac763896>:0 at Oxide.Plugins.FurnaceSplitter.OnTick () [0x0006a] in <ac505699c1ca4da3abf3c46f25411922>:0 at Oxide.Plugins.FurnaceSplitter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00240] in <ac505699c1ca4da3abf3c46f25411922>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0​
I'm getting this error when I add ore to a furnace.

Plugin is working well however each time I open a furnace I get this error (see below)

I re-installed the plugins multiples time (deleted every configuration too) + server restart and I always seem to have this error.

I have small stacks (max 2000)

Do you have any idea what could be the problem? Thank you!

23:19 [Error] Failed to call hook 'OnTick' on plugin 'FurnaceSplitter v2.3.1' (InvalidCastException: Null object cannot be converted to a value type.)
at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00029] in <fb001e01371b4adca20013e0ac763896>:0
at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <fb001e01371b4adca20013e0ac763896>:0
at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <ec05e0208c9149bba43236ca58fea105>:0
at Oxide.Plugins.FurnaceSplitter.CreateUi (BasePlayer player, BaseOven oven, Oxide.Plugins.FurnaceSplitter+OvenInfo ovenInfo) [0x000a8] in <018ea6fa6102479d9e53957339e06d4a>:0
at Oxide.Plugins.FurnaceSplitter+<OnTick>c__AnonStorey0.<>m__0 (BasePlayer plr) [0x00016] in <018ea6fa6102479d9e53957339e06d4a>:0
at System.Collections.Generic.List`1[T].ForEach (System.Action`1[T] action) [0x00024] in <fb001e01371b4adca20013e0ac763896>:0
at Oxide.Plugins.FurnaceSplitter.OnTick () [0x0006a] in <018ea6fa6102479d9e53957339e06d4a>:0
at Oxide.Plugins.FurnaceSplitter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00240] in <018ea6fa6102479d9e53957339e06d4a>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0

the problem continues. I'm following

I should start looking into this again. I might do so sometime in the next few days but no promises.

Anyway, for those having this issue, downgrade UIScaleManager to version 1 for now (assuming you have no other plugins that rely on it).

@FastBurst

This issue is because UIScaleManager has an option to prompt users on login to set a scale.  Some may have it configured to not do that (it's configurable) So what ends up happening is, even though you're null checking on UIScaleManager

            float uiScale = UIScaleManager == null ? 1.0f : UIScaleManager.Call<float>("API_CheckPlayerUISize", player.UserIDString);

This call to UIScaleManager returns null since the player has no setting. 

This can be fixed on line 643 to just:

float uiScale = UIScaleManager?.Call<float>( "API_CheckPlayerUISize", player.UserIDString ) ?? 1.0f;​

Love your plugin, I've recently started implementing UIScaleManager in some of our home grown UI plugins so it was sad to see this become an issue. 

Thanks. 

I have this problem too. I'm following you. There was no such problem before UIScaleManager. I hope it gets better.

Locked automatically