Inactive [FIX/ADMN] NoLagg v1.88.1 - Prevent common lag causes on your server [2338]

Discussion in 'Inactive/Unsupported Plugins' started by bergerkiller, Sep 17, 2011.

  1. Offline

    bergerkiller

    I had already made this plugin before after having a major lag issue. (lots of torches being filled, turned into items, lag for 20 minutes) It also works for 1060.

    Some feature ideas are taken over from PerformanceTweaks by @LexManos so some credit goes to him. Code, however, written from scratch by me. :)

    Important:

    If you get a warning message [NoLagg TLN] followed up with a stack trace in the log, this has to do with the main thread not having responded within 10 seconds. When a plugin takes more than this time to enable, it will show that. The warning is NOT an error and is no bug, and not a bug related to NoLagg. To disable this feature, disable 'threadlocknotifier' in the config.yml. This feature is mainly intended to notify you what plugin is causing the server to freeze, may it ever happen. It is used to debug plugins in general, as they may get stuck for whatever reason.

    NoLagg's features in a nutshell

    Description

    Prevent lag caused by many items

    Every time an item gets spawned, it is buffered per chunk. For example, you spawn 30 items using Q and the maximum allowed items per chunk is 20, then the 10 remaining items are not spawned. They are spawned as soon the item count in this chunk is < 20 again.

    Read more...

    Form item stacks - fully automatically

    Whenever two or more (configurable) items or experience orbs get near each other, they form a single stack of that item type. If someone drops 64 dirt blocks on the ground using Q, it will show a single item of 64 dirt instead.

    Read more...

    Prevent lag caused by TNT

    This plugin takes over tnt ignition caused by explosions. When exploding stacks of tnt, it does not rush all tnts into a single tick, but detonate them nicely in sync. This results in pretty awesome fireworks. :)

    Read more...

    Prevent lag caused by lighting glitches

    Whenever a new chunk is generated, it's lighting information is generated and all nearby players receive the updated chunk data. If the auto-method fails, you can use /nolagg fix to do it manually. This fixing fixes, for example, dark spots in and around caves lagging the client.

    Read more...

    Set entity spawn limits

    You can set a spawn limit on virtually every entity in the game. From mobs to items to TNT. Only thing being excluded is Players, since I can't simply kick someone 'like that'. :)
    Note: It removes already spawned entities too. So, if you want to keep your animals alive, don't set mob or animal limits, or it will possibly clear your farm animals. (or you can disable the spawn limiter all together)

    I recommend finding an alternative plugin for this instead. Removing entities after they are spawned causes more lag than it prevents!

    Global auto-saver

    Since asynchronous chunk saving is now implemented internally, it is no longer a problem to save entire worlds frequently. You can set auto-save intervals in the configuration. If used with an interval higher than 400 ticks (20 seconds) it will use a scheduled task instead of the internal saver to prevent chunks never getting saved. Another benefit is that player information is also auto-saved, preventing your players losing their inventory state.

    New chunk sending mechanics

    Instead of loading chunks all around the player, the player direction is used to load the visible chunks first. This means that players can expect chunks in front of them to load quickly, while chunks on the sides take a bit longer to appear. When the player looks into another direction, the direction changes and thus the new visible chunks get loaded first. Only if all chunks ahead of the player are loaded, chunks around the player are sent. This all can be configured using a simple minimum and maximum sending rate.

    Read more...

    Examining the server tick rate

    If you encounter very low tick rates and you want to find out what plugin is causing it, you can use the examine component to find it out. It comes with a graphic viewer, which makes bug tracking the easiest thing ever.

    Read more...

    Prevent cross-thread access for events

    As it seems, some plugins don't follow the rules and use Bukkit methods in another thread. This plugin will notify you and cancel if possible whenever this happens so other plugins understand their mistake. If you encounter a lot of spam in the console, first check the stack trace for the plugin that caused the error. Report this error to the author or remove the plugin, if you have questions you are free to ask.



    Configuration (on BukkitDev)

    Commands and Permissions (on BukkitDev)

    Synchronized code accessed by another thread? (BukkitDev)



    Media



    Video by brandcool86


    FAQ

    - Help I experience missing chunks
    If you are using Spout, don't use Reloads. This is also the reason why Spout added a warning when a player tries to reload the server. Not using Spout, then it's a bug which you can report.

    - Can this plugin be used with PTweaks
    (this message was really old...) Yes, they are compatible, but if certain features overlap, make sure you disable these features in either plugin.

    - I get a warning about the async auto save and interval. Wat do?
    Change the autoSaveInterval value in the configuration to a value higher than 400, like 600. The warning is to prevent endless autosaves to occur, clogging up CPU.

    - I have experienced CPU usage
    CPU usage is not the same as lag. NoLagg uses multiple (2-3) extra threads to prevent tick and network lag. If a lot has to be done, it does this quicker, but this takes more CPU obviously.

    - I have lag when using NoLagg
    See also the FAQ above. Explain what type of lag you have: tick lag, client lag, network lag and/or 'block placement' lag. You can use /nolagg monitor to check the tick rate. If this is normal (>15), then you have network lag. Client lag is when the FPS drops. Block placement lag is lag when the tick rate is normal and other network messages, like chat, are instant.

    - WorldEdit causes lag...
    YES because it is unsafe to take over the main thread while another plugin is having hold over it. I can try fixing this, but it could ultimately lead to some serious concurrency exceptions. Don't expect this to be implemented very soon...

    - Do spawn limits interfere with mob-spawning plugins like MobArena?
    No, it does not. It only limits mobs spawned by 'nature': all custom creature spawns are ignored throughout the run of the plugin. Only after you reload will it lose track of these entities and will it remove custom-spawned mobs. If you use MobArena, be sure nothing is going on when you reload the server.

    - Does item stacking interfere with Showcase or BleedingMobs?
    It supports Showcase and ShowcaseStandalone entirely. (showcased items are completely ignored at all times) The same applies to the 'particles' created by the BleedingMobs plugin. Know of a plugin where it stacks items which should not be stacked? Post the plugin name so I can add support. You are an owner and want to add support? Only having a function in your plugin to check if an item is 'ignored' is enough.

    - Can this plugin be used with Chunk Manager
    If you want to use the Chunk Manager with Nolagg, disable the chunk sending of Nolagg first. If you don't do that, this plugin will do that by itself and send a warning in the log. Of course, compare the results first. :)

    - What are the best settings if I have a lot of RAM memory?
    This plugin does not deal with reduced RAM memory. If I could, I would, but you simply can't reduce the amount of memory Java uses. This data is locked and secured, so I can't simply throw away bits of data or write and read data from/to disk. Any plugin claiming to reduce RAM usage on a server, is probably 'garbage collecting'. This fakes having less RAM usage by removing unused data, but Java does this by itself as well once it hits a certain limit. All these plugins will do is make the Garbage Collector run in overdrive, which will only kill your tick rate and/or CPU speeds. A bad thing.

    - I get a lot of 'Synchronized code accessed from another thread' errors
    Find out what plugin is acting up by inspecting the stack trace. If the plugin that causes this is inactive, all you can do is wait for a refurnished version or someone to fix it for you, or use an alternative plugin. If it's still under development, notify the author of this, it IS an error caused by that plugin. If you can't find out the cause, PM me or post in this thread.


    Before you begin writing a lag issue

    This is very important, just posting a 'it causuz lagz und shitz' won't do, won't help and I won't be able to help you any further either. Question is if I even want to help you, if you post such a message without anything worth looking at. Things to include in your message:
    - Errors in the log if possible
    - What CB version you use and what NoLagg version you use
    - When this lag occurs. Tick rate drop in general?
    - The configuration you used when running this plugin
    - What type of lag if applicable. Options are: tick lag, client lag, network lag (see above)

    Important links

    NoLagg Download page and others at Dev Bukkit
    View the source code of NoLagg at GitHub

    Use an archive extracting program (WinRar, WinZip) to open the archive.

    TODO-list:
    - Add option to disable physics when the tick delay becomes too high

    Changelog

    Show your appreciation for my plugins by donating
    [​IMG]
     
  2. Offline

    bergerkiller

    chopstick121
    What were the errors again? I already fixed the 'Blabla can not be cast to WorldManager' error, if that is what you mean. Otherwise, I do not know (yet)

    Status:
    • TrainCarts is ready for use, but pending a bit (final additions people request...)
    • MyWorlds is fixed
    • SignLink was already fixed, but had compat. updates. Done.
    • StreamRemover is exported and done.
    • Redstone Mania works and has been exported
    • NoLagg *has been exported*, but sure, if something is wrong with it, I have to look at it first...
    I expect all of these plugins to be uploaded tomorrow.
     
  3. Offline

    chopstick121

    2012-09-20 17:58:42 [WARNING] Failed to handle packet: java.lang.ClassCastException: com.bergerkiller.bukkit.nolagg.spawnlimiter.EntityWorldWatcher cannot be cast to net.minecraft.server.WorldManager
    java.lang.ClassCastException: com.bergerkiller.bukkit.nolagg.spawnlimiter.EntityWorldWatcher cannot be cast to net.minecraft.server.WorldManager
    at net.minecraft.server.World.makeSound(World.java:791)
    at net.minecraft.server.Entity.a(Entity.java:710)
    at net.minecraft.server.Entity.move(Entity.java:642)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:377)
    at net.minecraft.server.Packet10Flying.handle(SourceFile:136)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:296)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:578)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
     
  4. Offline

    bergerkiller

    chopstick121
    Yes, that will be fixed in the new version. (Note that this was caused by a change in the latest dev build of CraftBukkit, not CB++.)
     
  5. Offline

    chopstick121

    @bergerkiller
    So i can i use it with cb++?

    @bergerkiller
    2012-09-21 16:40:51 [WARNING] Failed to handle packet: java.lang.ClassCastException: com.bergerkiller.bukkit.nolagg.spawnlimiter.EntityWorldWatcher cannot be cast to net.minecraft.server.WorldManager
    java.lang.ClassCastException: com.bergerkiller.bukkit.nolagg.spawnlimiter.EntityWorldWatcher cannot be cast to net.minecraft.server.WorldManager
    at net.minecraft.server.World.makeSound(World.java:791)
    at net.minecraft.server.Entity.a(Entity.java:710)
    at net.minecraft.server.Entity.move(Entity.java:642)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:377)
    at net.minecraft.server.Packet10Flying.handle(SourceFile:136)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:296)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:578)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 14, 2016
  6. Offline

    CitizenL

    I'm not using the SpoutPlugin, but I'm still getting a lot of missing chunks.
    Especially when I'm teleporting to far away places.

    (Sorry for my bad english :( )
     
    Adrenaline likes this.
  7. Offline

    Adrenaline

    Agreed
     
  8. Offline

    DemonCraft

    Wouldn't you be able to prevent the lag from massive block change?
    Like make it where it only loads a specific amount of blocks at a time and once those blocks are finished loading it starts with the rest and repeats?
     
  9. Offline

    bergerkiller

    DemonCraft
    Most of the block lag is happening because of the lighting and actual block changes WorldEdit performs. It does not have to do with chunk loading. All I could do is somehow replace all chunks on the server to buffer lighting and physics updates when the count/tick reaches a certain threshold, but it would be the same world corruption b.s. all over again. I don't want to risk it.
     
  10. Offline

    TomYaMee

    Code:
    2012-09-26 17:40:53 [WARNING] [NoLagg TLN] The main thread failed to respond after 10 seconds
    2012-09-26 17:40:53 [WARNING] [NoLagg TLN] What follows is the stack trace of the main thread
    2012-09-26 17:40:53 [WARNING] [NoLagg TLN] This stack trace will be further refined as long as the thread is stuck
    2012-09-26 17:40:53 [INFO]    at java.io.WinNTFileSystem.getBooleanAttributes(Native Method)
    2012-09-26 17:40:53 [INFO]    at java.io.File.exists(Unknown Source)
    2012-09-26 17:40:53 [INFO]    at com.gmail.nossr50.util.blockmeta.HashChunkletManager.saveWorld(HashChunkletManager.java:117)
    2012-09-26 17:40:53 [INFO]    at com.gmail.nossr50.listeners.WorldListener.onWorldSave(WorldListener.java:30)
    2012-09-26 17:40:53 [INFO]    at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
    2012-09-26 17:40:53 [INFO]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    2012-09-26 17:40:53 [INFO]    at java.lang.reflect.Method.invoke(Unknown Source)
    2012-09-26 17:40:53 [INFO]    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330)
    2012-09-26 17:40:53 [INFO]    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    2012-09-26 17:40:53 [INFO]    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
    2012-09-26 17:40:53 [INFO]    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
    2012-09-26 17:40:53 [INFO]    at net.minecraft.server.MinecraftServer.saveChunks(MinecraftServer.java:316)
    2012-09-26 17:40:53 [INFO]    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:478)
    2012-09-26 17:40:53 [INFO]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)
    2012-09-26 17:40:53 [INFO]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    2012-09-26 17:41:03 [WARNING] [NoLagg TLN] The main thread is still stuck, updated stack trace is:
    2012-09-26 17:41:03 [INFO]    at com.gmail.nossr50.listeners.WorldListener.onWorldSave(WorldListener.java:30)
    2012-09-26 17:41:03 [INFO]    at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
    2012-09-26 17:41:03 [INFO]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    2012-09-26 17:41:03 [INFO]    at java.lang.reflect.Method.invoke(Unknown Source)
    2012-09-26 17:41:03 [INFO]    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330)
    2012-09-26 17:41:03 [INFO]    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    2012-09-26 17:41:03 [INFO]    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
    2012-09-26 17:41:03 [INFO]    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
    2012-09-26 17:41:03 [INFO]    at net.minecraft.server.MinecraftServer.saveChunks(MinecraftServer.java:316)
    2012-09-26 17:41:03 [INFO]    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:478)
    2012-09-26 17:41:03 [INFO]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)
     
  11. Offline

    bergerkiller

    tommy210
    Please look for the plugin made by 'nossr50'. Its world save handler is too slow.
     
  12. Offline

    TomYaMee

    So you mean mcMMO is not compatible with NoLagg?
     
  13. Offline

    bergerkiller

    tommy210
    Noooo..I am saying that mcMMO has to fix their shit up. The thread lock message is a message sent by NoLagg when the server stops responding. NoLagg does not cause anything, it notifies you that something is wrong. Detecting lag is also part of NoLagg, and many plugins stall the server by performing slow tasks in the wrong locations.
     
  14. Offline

    TomYaMee

    Ok... thanks for the info :)

    Code:
    2012-09-28 14:42:32 [WARNING] [NoLagg TLN] The main thread failed to respond after 10 seconds
    2012-09-28 14:42:32 [WARNING] [NoLagg TLN] What follows is the stack trace of the main thread
    2012-09-28 14:42:32 [WARNING] [NoLagg TLN] This stack trace will be further refined as long as the thread is stuck
    2012-09-28 14:42:32 [INFO]    at java.io.WinNTFileSystem.getBooleanAttributes(Native Method)
    2012-09-28 14:42:32 [INFO]    at java.io.File.exists(Unknown Source)
    2012-09-28 14:42:32 [INFO]    at net.minecraft.server.WorldNBTStorage.save(WorldNBTStorage.java:182)
    2012-09-28 14:42:32 [INFO]    at net.minecraft.server.ServerConfigurationManagerAbstract.b(ServerConfigurationManagerAbstract.java:142)
    2012-09-28 14:42:32 [INFO]    at net.minecraft.server.ServerConfigurationManagerAbstract.savePlayers(ServerConfigurationManagerAbstract.java:632)
    2012-09-28 14:42:32 [INFO]    at com.bergerkiller.bukkit.nolagg.saving.AutoSaveChanger$1.run(AutoSaveChanger.java:18)
    2012-09-28 14:42:32 [INFO]    at com.bergerkiller.bukkit.nolagg.examine.TimedWrapper.run(TimedWrapper.java:27)
    2012-09-28 14:42:32 [INFO]    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126)
    2012-09-28 14:42:32 [INFO]    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:512)
    2012-09-28 14:42:32 [INFO]    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
    2012-09-28 14:42:32 [INFO]    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
    2012-09-28 14:42:32 [INFO]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
    2012-09-28 14:42:32 [INFO]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 14, 2016
  15. Offline

    bergerkiller

    tommy210
    Update CraftBukkit and NoLagg. This is an older version.
     
  16. Offline

    Adrenaline

    Recommended build OUT:
    * http://dl.bukkit.org/downloads/craftbukkit/view/01434_1.3.2-R1.0/

    • Bukkit 1.3.2 Recommend
    • NoLagg v.1.88.5
    • Orebfuscator 1.6.2
    Crash server when i type /nolagg examine

    Code:java
    1.  
    2. 2012-09-29 09:07:58 [INFO] [32;1mThe server will be examined for 500 ticks (25 seconds)[m
    3. 2012-09-29 09:07:58 [INFO] [32;1mYou will be notified when the report has been generated[m
    4. 2012-09-29 09:07:58 [SEVERE] [OFC] java.lang.NoSuchMethodError: org.bukkit.craftbukkit.util.LongObjectHashMap.get(II)Ljava/lang/Object;
    5. 2012-09-29 09:07:58 [SEVERE] java.lang.NoSuchMethodError: org.bukkit.craftbukkit.util.LongObjectHashMap.get(II)Ljava/lang/Object;
    6. 2012-09-29 09:07:58 [SEVERE] at net.timedminecraft.server.TimedChunkProviderServer.getChunkAt(TimedChunkProviderServer.java:81)
    7. 2012-09-29 09:07:58 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.getChunkAt(CraftWorld.java:107)
    8. 2012-09-29 09:07:58 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.getBlockAt(CraftWorld.java:71)
    9. 2012-09-29 09:07:58 [SEVERE] at com.lishid.orebfuscator.obfuscation.CalculationsUtil.getBlockAt(CalculationsUtil.java:47)
    10. 2012-09-29 09:07:58 [SEVERE] at com.lishid.orebfuscator.obfuscation.Calculations.Obfuscate(Calculations.java:302)
    11. 2012-09-29 09:07:58 [SEVERE] at com.lishid.orebfuscator.obfuscation.Calculations.ComputeChunkInfoAndObfuscate(Calculations.java:155)
    12. 2012-09-29 09:07:58 [SEVERE] at com.lishid.orebfuscator.obfuscation.Calculations.Obfuscate(Calculations.java:107)
    13. 2012-09-29 09:07:58 [SEVERE] at com.lishid.orebfuscator.threading.OrebfuscatorThreadCalculation.run(OrebfuscatorThreadCalculation.java:178)
    14. 2012-09-29 09:07:58 [SEVERE] java.lang.NoSuchMethodError: org.bukkit.craftbukkit.util.LongObjectHashMap.get(II)Ljava/lang/Object;
    15. 2012-09-29 09:07:58 [SEVERE] at net.timedminecraft.server.TimedChunkProviderServer.getChunkAt(TimedChunkProviderServer.java:81)
    16. 2012-09-29 09:07:58 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.getChunkAt(CraftWorld.java:107)
    17. 2012-09-29 09:07:58 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.getBlockAt(CraftWorld.java:71)
    18. 2012-09-29 09:07:58 [SEVERE] at net.minecraft.server.BlockFire.b(BlockFire.java:115)
    19. 2012-09-29 09:07:58 [SEVERE] at net.minecraft.server.WorldServer.a(WorldServer.java:462)
    20. 2012-09-29 09:07:58 [SEVERE] at net.minecraft.server.WorldServer.doTick(WorldServer.java:169)
    21. 2012-09-29 09:07:58 [SEVERE] at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:557)
    22. 2012-09-29 09:07:58 [SEVERE] at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)
    23. 2012-09-29 09:07:58 [SEVERE] at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473)
    24. 2012-09-29 09:07:58 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405)
    25. 2012-09-29 09:07:58 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    26. 2012-09-29 09:07:58 [SEVERE] Encountered an unexpected exception NoSuchMethodError
    27. java.lang.NoSuchMethodError: org.bukkit.craftbukkit.util.LongObjectHashMap.get(II)Ljava/lang/Object;
    28. at net.timedminecraft.server.TimedChunkProviderServer.getChunkAt(TimedChunkProviderServer.java:81)
    29. at org.bukkit.craftbukkit.CraftWorld.getChunkAt(CraftWorld.java:107)
    30. at org.bukkit.craftbukkit.CraftWorld.getBlockAt(CraftWorld.java:71)
    31. at net.minecraft.server.BlockFire.b(BlockFire.java:115)
    32. at net.minecraft.server.WorldServer.a(WorldServer.java:462)
    33. at net.minecraft.server.WorldServer.doTick(WorldServer.java:169)
    34. at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:557)
    35. at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)
    36. at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473)
    37. at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405)
    38. at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    39. 2012-09-29 09:07:58 [SEVERE] This crash report has been saved to: /home/./crash-reports/crash-2012-09-29_09.07.58-server.txt
    40. 2012-09-29 09:07:58 [SEVERE] Exception in thread "ProximityHider Thread"
    41. 2012-09-29 09:07:58 [SEVERE] java.lang.NoSuchMethodError: org.bukkit.craftbukkit.util.LongObjectHashMap.get(II)Ljava/lang/Object;
    42. 2012-09-29 09:07:58 [SEVERE] at net.timedminecraft.server.TimedChunkProviderServer.getChunkAt(TimedChunkProviderServer.java:81)
    43. 2012-09-29 09:07:58 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.getChunkAt(CraftWorld.java:107)
    44. 2012-09-29 09:07:58 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.getBlockAt(CraftWorld.java:71)
    45. 2012-09-29 09:07:58 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.getBlockAt(CraftWorld.java:464)
    46. 2012-09-29 09:07:58 [SEVERE] at org.bukkit.Location.getBlock(Location.java:82)
    47. 2012-09-29 09:07:58 [SEVERE] at com.lishid.orebfuscator.proximityhider.ProximityHider.run(ProximityHider.java:106)
    48. 2012-09-29 09:08:06 [INFO] Connection reset
    49. 2012-09-29 09:08:11 [WARNING] [Server] The main thread failed to respond after 10 seconds
    50. 2012-09-29 09:08:11 [WARNING] [Server] What follows is the stack trace of the main thread
    51. 2012-09-29 09:08:11 [WARNING] [Server] at java.lang.Thread.sleep(Native Method)
    52. 2012-09-29 09:08:11 [WARNING] [Server] at net.minecraft.server.DedicatedServer.a(DedicatedServer.java:195)
    53. 2012-09-29 09:08:11 [WARNING] [Server] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:433)
    54. 2012-09-29 09:08:11 [WARNING] [Server] at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    55. 2012-09-29 09:08:23 [WARNING] [Server] The main thread is still stuck, current loop line is:
    56. 2012-09-29 09:08:23 [WARNING] [Server] at net.minecraft.server.DedicatedServer.a(DedicatedServer.java:195)
    57. [/code]
    58.  
    59. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 14, 2016
  17. Offline

    bergerkiller

    Last edited by a moderator: Jul 14, 2016
    Adrenaline likes this.
  18. Offline

    StrangeOne101

    Code:
    195 recipes
    27 achievements
    2012-10-02 10:39:13 [INFO] Starting minecraft server version 1.3.2
    2012-10-02 10:39:13 [INFO] Loading properties
    2012-10-02 10:39:13 [INFO] Default game type: SURVIVAL
    2012-10-02 10:39:13 [INFO] Generating keypair
    2012-10-02 10:39:13 [INFO] Starting Minecraft server on 192.168.0.4:25565
    2012-10-02 10:39:13 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    2012-10-02 10:39:13 [WARNING] The server will make no attempt to authenticate us
    ernames. Beware.
    2012-10-02 10:39:13 [WARNING] While this makes the game possible to play without
     internet access, it also opens up the ability for hackers to connect with any u
    sername they choose.
    2012-10-02 10:39:13 [WARNING] To change this, set "online-mode" to "true" in the
     server.properties file.
    2012-10-02 10:39:13 [INFO] This server is running CraftBukkit version git-Bukkit
    -1.3.2-R0.1-17-gc610d2a-b2368jnks (MC: 1.3.2) (Implementing API version 1.3.2-R0
    .2-SNAPSHOT)
    2012-10-02 10:39:14 [INFO] [SpeedTeleporter] Loading SpeedTeleporter v1.0
    2012-10-02 10:39:14 [INFO] [BKCommonLib] Loading BKCommonLib v1.24
    2012-10-02 10:39:14 [INFO] [WorldEdit] Loading WorldEdit v5.4.2
    2012-10-02 10:39:14 [INFO] [MobDisguise] Loading MobDisguise v1.81
    2012-10-02 10:39:14 [INFO] [CraftBookCommon] Loading CraftBookCommon v1068-1afdc
    85
    2012-10-02 10:39:14 [INFO] [NoLagg] Loading NoLagg v1.88.3
    2012-10-02 10:39:14 [INFO] [BKCommonLib] Enabling BKCommonLib v1.24
    2012-10-02 10:39:14 [INFO] BKCommonLib version 1.24 enabled!
    2012-10-02 10:39:14 [INFO] [NoLagg] Enabling NoLagg v1.88.3
    2012-10-02 10:39:14 [INFO] [NoLagg Saving] will write world data to all region f
    iles every 12000 ticks (10.0 minutes)
    2012-10-02 10:39:14 [INFO] NoLagg version 1.88.3 enabled!
    2012-10-02 10:39:14 [INFO] Preparing level "Walls 2"
    2012-10-02 10:39:14 [INFO] Preparing start region for level 0 (Seed: 16158506144
    46281026)
    2012-10-02 10:39:15 [INFO] Preparing start region for level 1 (Seed: 34452442978
    74181160)
    2012-10-02 10:39:15 [WARNING] ----- Bukkit Auto Updater -----
    2012-10-02 10:39:15 [WARNING] Your version of CraftBukkit is out of date. Versio
    n 1.3.2-R1.0 (build #2377) was released on Fri Sep 28 20:34:43 NZST 2012.
    2012-10-02 10:39:15 [WARNING] Details: [URL]http://dl.bukkit.org/downloads/craftbukki[/URL]
    t/view/01434_1.3.2-R1.0/
    2012-10-02 10:39:15 [WARNING] Download: [URL]http://dl.bukkit.org/downloads/craftbukk[/URL]
    it/get/01434_1.3.2-R1.0/craftbukkit.jar
    2012-10-02 10:39:15 [WARNING] ----- ------------------- -----
    2012-10-02 10:39:15 [INFO] Preparing spawn area: 77%
    2012-10-02 10:39:15 [INFO] Preparing start region for level 2 (Seed: -9172260160
    991761811)
    2012-10-02 10:39:16 [INFO] [SpeedTeleporter] Enabling SpeedTeleporter v1.0
    2012-10-02 10:39:16 [INFO] [WorldEdit] Enabling WorldEdit v5.4.2
    2012-10-02 10:39:16 [INFO] WEPIF: Using the Bukkit Permissions API.
    2012-10-02 10:39:16 [INFO] [MobDisguise] Enabling MobDisguise v1.81
    2012-10-02 10:39:16 [INFO] [MobDisguise] by desmin88 version 1.81 enabled.
    2012-10-02 10:39:16 [INFO] [CraftBookCommon] Enabling CraftBookCommon v1068-1afd
    c85
    2012-10-02 10:39:16 [INFO] CraftBookCommon: Default configuration file written:
    en_US.txt
    2012-10-02 10:39:16 [INFO] CraftBookCommon 1068-1afdc85 enabled.
    2012-10-02 10:39:16 [INFO] Server permissions file permissions.yml is empty, ign
    oring it
    2012-10-02 10:39:16 [INFO] Done (2.151s)! For help, type "help" or "?"
    2012-10-02 10:39:22 [INFO] robotboy86[/122.57.0.78:49576] logged in with entity
    id 34 at ([Walls 2] -785.5, 98.62000000476837, -58.5)
    2012-10-02 10:39:24 [WARNING] Failed to handle packet: java.lang.ClassCastExcept
    ion: com.bergerkiller.bukkit.nolagg.spawnlimiter.EntityWorldWatcher cannot be ca
    st to net.minecraft.server.WorldManager
    java.lang.ClassCastException: com.bergerkiller.bukkit.nolagg.spawnlimiter.Entity
    WorldWatcher cannot be cast to net.minecraft.server.WorldManager
            at net.minecraft.server.World.makeSound(World.java:769)
            at net.minecraft.server.Entity.a(Entity.java:710)
            at net.minecraft.server.Entity.move(Entity.java:642)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:377)
            at net.minecraft.server.Packet10Flying.handle(SourceFile:136)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:282)
            at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
            at net.minecraft.server.ServerConnection.b(SourceFile:35)
            at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
            at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:577)
            at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)
            at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    2012-10-02 10:39:26 [INFO] [SpeedTeleporter] Loading locations
    2012-10-02 10:39:26 [WARNING] [SpeedTeleporter] Task #11 for SpeedTeleporter v1.
    0 generated an exception
    java.lang.NullPointerException
            at org.bukkit.Location.getChunk(Location.java:73)
            at me.jtjj222.SpeedTeleporter.SpeedTeleporter$1.run(SpeedTeleporter.java
    :57)
            at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:52)
            at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C
    raftScheduler.java:321)
            at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:509)
            at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)
            at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    2012-10-02 10:39:28 [INFO] robotboy86[/122.57.0.78:49582] logged in with entity
    id 35 at ([Walls 2] -786.7034700083307, 97.0, -58.14348247955103)
    2012-10-02 10:39:30 [WARNING] Failed to handle packet: java.lang.ClassCastExcept
    ion: com.bergerkiller.bukkit.nolagg.spawnlimiter.EntityWorldWatcher cannot be ca
    st to net.minecraft.server.WorldManager
    java.lang.ClassCastException: com.bergerkiller.bukkit.nolagg.spawnlimiter.Entity
    WorldWatcher cannot be cast to net.minecraft.server.WorldManager
            at net.minecraft.server.World.makeSound(World.java:769)
            at net.minecraft.server.Entity.a(Entity.java:710)
            at net.minecraft.server.Entity.move(Entity.java:642)
            at net.minecraft.server.EntityLiving.e(EntityLiving.java:953)
            at net.minecraft.server.EntityHuman.e(EntityHuman.java:1073)
            at net.minecraft.server.EntityLiving.d(EntityLiving.java:1124)
            at net.minecraft.server.EntityHuman.d(EntityHuman.java:305)
            at net.minecraft.server.EntityLiving.h_(EntityLiving.java:447)
            at net.minecraft.server.EntityHuman.h_(EntityHuman.java:158)
            at net.minecraft.server.EntityPlayer.g(EntityPlayer.java:203)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:347)
            at net.minecraft.server.Packet10Flying.handle(SourceFile:136)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:282)
            at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
            at net.minecraft.server.ServerConnection.b(SourceFile:35)
            at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
            at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:577)
            at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)
            at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    2012-10-02 10:39:34 [INFO] robotboy86[/122.57.0.78:49591] logged in with entity
    id 36 at ([Walls 2] -787.4198315359773, 97.0, -56.20855465092613)
    2012-10-02 10:39:36 [WARNING] Failed to handle packet: java.lang.ClassCastExcept
    ion: com.bergerkiller.bukkit.nolagg.spawnlimiter.EntityWorldWatcher cannot be ca
    st to net.minecraft.server.WorldManager
    java.lang.ClassCastException: com.bergerkiller.bukkit.nolagg.spawnlimiter.Entity
    WorldWatcher cannot be cast to net.minecraft.server.WorldManager
            at net.minecraft.server.World.makeSound(World.java:769)
            at net.minecraft.server.Entity.a(Entity.java:710)
            at net.minecraft.server.Entity.move(Entity.java:642)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:377)
            at net.minecraft.server.Packet10Flying.handle(SourceFile:136)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:282)
            at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
            at net.minecraft.server.ServerConnection.b(SourceFile:35)
            at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
            at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:577)
            at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)
            at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    
    This is what happens when anyone logs in with this plugin, including myself. Any reason why?
     
  19. Offline

    bergerkiller

    StrangeOne101
    Yes, you have to use the latest version of NoLagg on the newest CraftBukkit build. Someone thought it was funny to screw with net.minecraft.server, resulting in this error to occur. Had to fix this by moving all entity events to BKCommonLib and handle this Event in the plugins, as opposed to using 'world listeners' like I did before.

    To fix it, use the latest BKCommonLib found on the dev-bukkit page for it, in combination with the latest test build of NoLagg.

    https:dl.dropbox.com/u/3681706/NoLagg%20v1.88.6%20test.zip
     
  20. Offline

    dubaaron

    Thanks bergerkiller. /nolagg examine seems to be crashing my server, but I'm running the 1.3.2-R1.0 version of Spigot. I noticed 1.88.5 is supposed to run with 1.3.2-R0.1. Do you think that's the problem? Will 1.88.6_test work on 1.3.2-R1.0? Should compatibility with Spigot be significantly different than with plain CraftBukkit?

    Also, your url was missing a // so it didn't work, here is the correct URL:
    https://dl.dropbox.com/u/3681706/NoLagg v1.88.6 test.zip

    I'm gonna try it and see if I continue having the problem. I noticed some people posted some tickets to you about examine crashing, and they all had a build newer than the one 1.3.2-R0.1. I wonder if that's the issue. I might try going back to 1.3.2-R0.1 Spigot / or plain CraftBukkit build and testing as well.
     
  21. Offline

    bergerkiller

    dubaaron
    It should work, yes, but if it doesn't, I will have to fix it.
     
  22. Offline

    TomYaMee

    Code:
    2012-10-04 21:08:08 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2012-10-04 21:08:25 [WARNING] [Server] The main thread failed to respond after 10 seconds
    2012-10-04 21:08:25 [WARNING] [Server] Probable Plugin cause: 'NoLagg'
    2012-10-04 21:08:25 [WARNING] [Server] What follows is the stack trace of the main thread
    2012-10-04 21:08:25 [WARNING] [Server]    at java.io.WinNTFileSystem.rename0(Native Method)
    2012-10-04 21:08:25 [WARNING] [Server]    at java.io.Win32FileSystem.rename(Unknown Source)
    2012-10-04 21:08:25 [WARNING] [Server]    at java.io.File.renameTo(Unknown Source)
    2012-10-04 21:08:25 [WARNING] [Server]    at net.minecraft.server.WorldNBTStorage.save(WorldNBTStorage.java:186)
    2012-10-04 21:08:25 [WARNING] [Server]    at net.minecraft.server.ServerConfigurationManagerAbstract.b(ServerConfigurationManagerAbstract.java:142)
    2012-10-04 21:08:25 [WARNING] [Server]    at net.minecraft.server.ServerConfigurationManagerAbstract.savePlayers(ServerConfigurationManagerAbstract.java:643)
    2012-10-04 21:08:25 [WARNING] [Server]    at com.bergerkiller.bukkit.nolagg.saving.AutoSaveChanger$1.run(AutoSaveChanger.java:31)
    2012-10-04 21:08:25 [WARNING] [Server]    at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:52)
    CraftBukkit : 2377
    No Lagg : 1.88.6

    P.S: I found out that this happen when my computer is on idle mode(afk mode)
    P.S: Currently hosting server through personal comp.. any help?

    EDIT: Izzit lack of RAM or something?? (RAM : 1.5GB for mc server, Max 2GB)
     
  23. Offline

    bergerkiller

    tommy210
    I actually think it has to do with the saving component. Saving the chunks or all the player information is too slow I think. Try disabling the forced saving, the file writing can be kept enabled. (it is async)
     
  24. Offline

    TomYaMee

    So will MineBackup cause this problem?
     
  25. Offline

    bergerkiller

  26. Offline

    TomYaMee


    I think its really MineBackup problem, I don't get any crashes since i removed minebackup yesterday.
     
  27. Offline

    oftendeaddotcom

    10:51:22 PM
    CONSOLE:
    [SEVERE] Could not pass event PlayerChangedWorldEvent to NoLagg
    10:51:22 PM
    CONSOLE:
    java.lang.NoClassDefFoundError: Could not initialize class com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue
     
  28. Offline

    bergerkiller

    oftendeaddotcom
    • Is there only one jar file of NoLagg in the plugins folder?
    • Did you install BKCommonLib
    • What is the full error (pastebin it)
     
  29. Offline

    oftendeaddotcom

    since the last post i went a head and updated to 1.88.3, all the error messages stoped, though i now have chunk errors or black holes in the map. any suggestions? :)
     
  30. Offline

    bergerkiller

  31. Offline

    oftendeaddotcom

    Sorry for the late response, work has been hectic.
    As for this latest update i no longer get console errors, though i do still get random black holes or voids in some areas of my world. Though i will admit it seems more smoother with less lag. Out of curiosity, what would causes the evil voids/ black holes to hell?
     

Share This Page