ImageLibrary

Moved

Total Downloads: 18,291 - First Release: Oct 29, 2016 - Last Update: Jun 11, 2018

5/5, 36 likes
  1. I found a error
    info:
    Failed to Call hook 'GetImage' on plugin 'ImageLibrary v2.0.1' <NullReferenceException:Object reference note set to an instance of an object>
    So how do we solve this ?
     
  2. Noticed this when I checked out RCON, looks like it triggered something after a player join. This is the first time it happened that I know of since the last update.

    Code:
    (23:24:10) | Web request callback raised an exception (NullReferenceException: Object reference not set to an instance of an object)
    (23:24:10) | at Oxide.Plugins.ImageLibrary+ImageAssets.StoreByteArray (System.Byte[] bytes, System.String name) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ImageLibrary+ImageAssets.Next () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ImageLibrary+ImageAssets.BeginIndividual (System.String name, System.String url, System.Byte[] bytes) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ImageLibrary.AddImage (System.String url, System.String imageName, UInt64 imageId) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ImageLibrary+<GetPlayerAvatar>c__AnonStorey2.<>m__0 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00000] in <filename unknown>:0
     
  3. Why my server files are now 32GB (continuously increasing after installing imagelibrary) ?
     
  4. i have 94Gt my rust server files.now its a 20Gt.i delete 74Gt backup files.i am almost sure server not need 74Gt backup.lol
    and its not imagelibrary fail(mayby) if server make backup many times
     
  5. Maybe not entirely, but it does take a lot of memory and slows the server startup/restart ;/
     
  6. I hope next serverstart not take 30 minutes anymore:)
     
  7. Code:
    [05/18/2017 12:43:03] Loaded plugin ImageLibrary v2.0.1 by Absolut & K1lly0u
    [05/18/2017 12:43:03] at Oxide.Plugins.ImageLibrary.RefreshImagery () [0x00000] in <filename unknown>:0
    at Oxide.Plugins.ImageLibrary.CheckForRefresh () [0x00000] in <filename unknown>:0
    at Oxide.Plugins.ImageLibrary.OnServerInitialized () [0x00000] in <filename unknown>:0
    at Oxide.Plugins.ImageLibrary.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: May 18, 2017
  8. Disable avatars. see if it is fixed.
    [DOUBLEPOST=1495135304][/DOUBLEPOST]
    Only when ServerID changes and 30 minutes seems REALLY excessive. I've seen load times decrease considerable with this new version. I doubt it has to do with this plugin at all.
    [DOUBLEPOST=1495135374][/DOUBLEPOST]
    Well, this plugin downloads images to the local server to speed up the image loading process and present higher quality images. If that is not desired then talk with the plugin dev of whatever plugin you use that requires this plugin and ask for a version that doesnt download images.. goodluck..
    [DOUBLEPOST=1495135452][/DOUBLEPOST]
    No idea what plugin is calling the hook, or what image you are trying to get, or anything else. So no.. no chance of fixing your specific issue. This is almost certainly not a IL issue but rather a plugin using the hook incorrectly or not passing data that it should.
    [DOUBLEPOST=1495135480][/DOUBLEPOST]
    disable avatars, see if it fixes it.
     
  9. Absolut updated ImageLibrary with a new update entry:

    2.0.2

     
  10. Code:
    Failed to call hook 'cmdRefreshAllImages' on plugin 'ImageLibrary v2.0.2' (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.ImageLibrary.RefreshImagery () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ImageLibrary.cmdRefreshAllImages (.Arg arg) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ImageLibrary.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0 
    [DOUBLEPOST=1495137693][/DOUBLEPOST]How can i Add new icon for server rewards? I have all url but I really don`t understend how it works with ServerRewards
     
  11. MY understanding is on page load of ServerRewards that K1lly0u is downloading the images required for that page. So if you wanted different icons, I'd guess you just update the url field of the SR entry? ---> I dont develop SR so I am not 100% sure but that makes sense.
     
  12. Now all right bro thx. But some pic could be added that`s - heavy.plate.helment, metalblade, sewingkit,flamethrower - not showing i think.
     

    Attached Files:

    Last edited by a moderator: May 18, 2017
  13. Code:
      at Oxide.Plugins.ImageLibrary.HasImage (System.String imageName, UInt64 imageId) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LustyMap.ValidateImages () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LustyMap.OnServerInitialized () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LustyMap.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0 
    Number of Plugins with a similar error. I've tried the refresh command, deleting the ImageLibrary Data folder and reloading all relevant plugins and still no go. Kits and Maps are offline because of it :/ @Absolut do you have any ideas of what can be done to fix this? Up till today it's been working flawlessly, thank you!
     
  14. FIXED! 'Unloaded ImageLibrary, which unloaded LustyMap... Deleted the ImageLibrary folder in the data folder. Reloaded IL. Reloaded Lusty. Worked fine.'
     
    Last edited by a moderator: May 19, 2017
  15. I found this mistake
    Because the
    'GUI SkipNight'
    plug-in
     
  16. Ahh, ya they need to fix it if they haven't already
     
  17. Code:
    21:41 [Info] ImageLibrary and LustyMap were compiled successfully in 2508ms
    21:41 [Warning] Calling 'Unload' on 'LustyMap v2.1.2' took 214ms
    21:41 [Info] Unloaded plugin LustyMap v2.1.2 by Kayzor / k1lly0u
    21:41 [Info] Unloaded plugin ImageLibrary v2.0.2 by Absolut & K1lly0u
    21:41 [Debug] LustyMap plugin is waiting for requirements to be loaded: ImageLibrary
    21:41 [Info] Loaded plugin ImageLibrary v2.0.2 by Absolut & K1lly0u
    21:41 [Error] Failed to call hook 'OnServerInitialized' on plugin 'ImageLibrary v2.0.2' (NullReferenceException: Object reference not set to an instance of an object)
    21:41 [Stacktrace]   at Oxide.Plugins.ImageLibrary.CheckForRefresh () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ImageLibrary.OnServerInitialized () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ImageLibrary.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
    21:41 [Info] Loaded plugin LustyMap v2.1.2 by Kayzor / k1lly0u
    21:41 [Info] [LustyMap] [Warning] Validating imagery
    21:41 [Error] Failed to call hook 'OnServerInitialized' on plugin 'LustyMap v2.1.2' (NullReferenceException: Object reference not set to an instance of an object)
    21:41 [Stacktrace]   at Oxide.Plugins.ImageLibrary.HasImage (System.String imageName, UInt64 imageId) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LustyMap.ValidateImages () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LustyMap.OnServerInitialized () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LustyMap.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
    21:41 [Warning] Calling 'OnServerInitialized' on 'LustyMap v2.1.2' took 354ms
     

    Attached Files:

  18. Sounds like corrupt files. Try to unload ImageLibrary and delete the ImageLibrary folder or its contents (in data directory)
     
  19. did that, still no dice
    [DOUBLEPOST=1495206725][/DOUBLEPOST]
    Update. I deleted all the files and reloaded and came up fine. Not just the folder in the data dir. The file in the root of the data dir and the conf file too.
     
  20. Code:
    [Stacktrace]   at Oxide.Plugins.ImageLibrary+ImageAssets.StoreByteArray (System.Byte[] bytes, System.String name) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ImageLibrary+ImageAssets.Next () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ImageLibrary+ImageAssets.BeginIndividual (System.String name, System.String url, System.Byte[] bytes) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ImageLibrary.AddImage (System.String url, System.String imageName, UInt64 imageId) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ImageLibrary+<GetPlayerAvatar>c__AnonStorey2.<>m__0 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00000] in <filename unknown>:0