SkyFactory 5

SkyFactory 5

280k Downloads

Crash randomly

shawnbucholtz opened this issue ยท 3 comments

commented

Bug Description

Crashes randomly in fairly new world. Crash log linked. Seems related to tinted campfires. This is not the first time I saw this crash, second time in a different world.

The following line looks familiar from the last time I had a crash. I do not have the first crash log anymore so you'll have to take my word for it. Nor do I know Java so I am just speculating.

Current CompileTask:
C2:6613022 87618       4       com.cozary.tintedcampfires.EventHandler::ReplaceCampfire (2175 bytes)

First time this happened I was making quite a bit of ash from templates at once so I toned it down a bit after that. This is the second time it happened in a new world (I restarted) but this time I was not making any ash, but I did have campfires.

Did this behavior used to work in the previous version?

Unknown

If you answered Yes above...

No response

Steps to Reproduce (for bugs)

Cannot be reliably reproduced. I would place a ton of campfires in a regular survival world and start making a bunch of ash. It will happen eventually.

Client/Server Log:

No response

Crash Log:

https://gist.github.com/shawnbucholtz/3e23ce053f17cc0986ffee53dbed831d

Modpack Version world created in:

v5.0.7

Additional Content Installed?

none

Modpack Version:

v5.0.7

Java Version:

read the log

Launcher Used:

CurseForge

Memory Allocated:

8512MB

Single Player/LAN/Server:

Singleplayer

Optifine Installed:

No

Shaders Enabled:

No

commented

This crash log you shared isn't from campfires but shows a Java error.

I tested out the method you used to try and cause the crash but had no problems on my end

commented

Our server is also just randomly crashing. However, I can't find any crash logs to help identify any potential problems. Are they being stored in someplace other the /logs?

commented

I also experienced and (mostly) solved this issue on a multiplayer non-dedicated LAN server.

After tracing periodic, but increasingly frequent (from ~3 hours to ~20 minutes) crashes back to the compilation of com.cozary.tintedcampfires.EventHandler::ReplaceCampfire, I took the following steps to solve the problem:

  1. disable the "Tinted Campfires" mod. This solution alone is not enough, as it breaks Ex Nihilo objects

    • If you use the ATLauncher, you can do this by selecting "Instances" on the right, and then clicking "Edit Mods" for SkyFactory5, check "Tinted Campfires" from the list on the left, and then click "Disable Selected".
  2. Navigate to SkyFactory5\scripts\modded_recipes\ex_nihillo_sequentia and edit heat.zs with the following:

    • At line 163 you will see the "// Level 5" section of the config, and below will be entries for each of the different color fires. Remove all entries from this section that reference Tinted Campfires until it looks like this
// Level 5

<recipetype:exnihilosequentia:heat>.addRecipe("campfire_heat",5,<block:minecraft:campfire>,properties);
<recipetype:exnihilosequentia:heat>.addRecipe("fire_heat",5,<block:minecraft:fire>,any_properties);

This step fixes ex-nihilo, but stops leaf blocks from dropping anything

  1. Navigate to SkyFactory5\scripts\colors\content\registry and edit item_registry.zs as follows:

    • Remove lines 37 to 44, which should remove the following code block
 .registerItem(ColoredItem.Campfire, (color) => {
    if color.getName() == ColorName.None {
      return null;
    }

    return <item:tintedcampfires:${color.getResourceName()}_campfire>;
  })
  1. Hurray, It should be fixed at this point! Not having Tinted Campfires may hinder gameplay advancement, so it may be necessary to "cheat in" initial campfires until you have the capability to make black dye and coal, then you can produce vanilla campfires. Please reply if you encounter any additional bugs caused by disabling tinted campfires, or if you are able to figure out what is causing the problem with Tinted Campfires in the first place.