Closed riddle closed 11 years ago
Note: disabling animal respawn module seemed to stop the problem from occurring. I managed to initialize a lot of chests and it was just fine.
So disabling spawning module fixes it despite database still being 22MB?
Can you try creating Index with Sqlite Manager? I think that should help, but I forgot to integrate it.
(yes you need to create two different indexes)
Also please enable debug in Core so we can see what is going on with animal spawning.
Creating of those indexes fail on me… I cannot press the OK button (it just flashes in and out) and when I press Cancel, it asks if it should execute raw SQL which I agree to, but it never happens actually. Bugged as fuck.
Also please enable debug in Core so we can see what is going on with animal spawning.
You mean Mantle. Will do.
Yep, enabled animalrespawn, started the server, entered duty mode, flew over to a restockable chest opened it and it froze, crashed seconds later. Enabling debug resulted in one extra line:
13:19:28 [INFO] [Mantle] Enabling Mantle v1.2.0
13:19:28 [INFO] [Mantle] Loading module Hard mode....
13:19:28 [INFO] [Mantle] Loading module Generation....
13:19:28 [INFO] [Mantle] Loading module Restockable chests....
13:19:28 [INFO] [Mantle] Loading module Portals....
13:19:28 [INFO] [Mantle] Module disabled. Skipping.
13:19:28 [INFO] [Mantle] Loading module Structure Regeneration....
13:19:28 [INFO] [Mantle] Module disabled. Skipping.
13:19:28 [INFO] [Mantle] Loading module Hydration....
13:19:28 [INFO] [Mantle] Loading module Animal spawning....
13:19:29 [INFO] [Mantle] Loading module Nether spawning....
13:19:29 [INFO] [Mantle] Module disabled. Skipping.
13:19:29 [INFO] [Mantle] Loading module Spellbooks....
13:19:29 [INFO] [Mantle] Loading module Nanobot....
13:19:29 [INFO] [MCNSAFlatcore] Mantle v1.2.0 loaded!
13:19:29 [INFO] Server permissions file permissions.yml is empty, ignoring it
13:19:29 [INFO] Done (12.993s)! For help, type "help" or "?"
13:19:29 [INFO] [NoCheatPlus] Post-enable running...
13:19:29 [INFO] [NoCheatPlus] Post-enable finished.
13:19:30 [INFO] /127.0.0.1:56488 lost connection
13:19:30 [INFO] [Mantle] Starting animal spawning PREPARE!
13:19:35 [INFO] ridddle[/127.0.0.1:56501] logged in with entity id 61 at ([world] -18.42105237292759, 5.0, 4367.888792319819)
13:19:35 [INFO] [MCNSAChat][INFO] ridddle joined Flatcore.
13:19:38 [INFO] CH: Running original command on player ridddle ----> /mod
13:19:38 [INFO] You changed player 'ridddle' group to 'Overseer' in world 'world'.
13:19:38 [INFO] CONSOLE: Set ridddle's game mode to CREATIVE mode
13:19:38 [INFO] [Duties 1.2.0] Duty mode enabled for player ridddle.
13:19:43 [INFO] [WorldEdit] Using inbuilt NmsBlock for this version.
13:20:45 [SEVERE] The server has stopped responding!
And to be super sure, I did exactly the same steps now with Animal Spawns module disabled and it worked like a charm and server didn’t crash.
Interesting. Can you retry with new version? Added some more debugging code.
13:56:45 [INFO] [Mantle] Starting animal spawning PREPARE!
13:56:45 [INFO] [Mantle] [ANIMAL] Executing SQL!
>ping
13:57:00 [INFO] Pong!
Typed this in console. Logged in.
13:57:29 [INFO] ridddle[/127.0.0.1:57049] logged in with entity id 61 at ([world] -18.42105237292759, 5.0, 4367.888792319819)
13:57:29 [INFO] [MCNSAChat][INFO] ridddle joined Flatcore.
>ping
13:57:33 [INFO] Pong!
13:57:35 [INFO] [Mantle] [ANIMAL] Iterating SQL!
>ping
13:57:38 [INFO] Yup, I'm still here!
>ping
13:57:42 [INFO] Yup, I'm still here!
13:57:46 [INFO] CH: Running original command on player ridddle ----> /mod
13:57:46 [INFO] You changed player 'ridddle' group to 'Overseer' in world 'world'.
13:57:46 [INFO] CONSOLE: Set ridddle's game mode to CREATIVE mode
13:57:46 [INFO] [Duties 1.2.0] Duty mode enabled for player ridddle.
13:57:51 [INFO] [WorldEdit] Using inbuilt NmsBlock for this version.
Entered duty mode as you can see, flew over to a chest, opened it and it crashed again.
You now either need to add index manually or delete animal_chunks table and let it generate.
Dedicated server runs SSD but my home computer is just on HDD. Any time anything is saved to that 22 megabyte database (like making a new restockable chest or I think think spawning animals too), it freezes the server and many times it will just crash:
As you can see I entered a few
/mantle createchest ManorRoomRare 1 1
commands but some of them registered only after the server crashed.I think something needs to be done to optimize the database. 22 megabytes is ridiculous, pardon my French.