minetest-tools / mcimport

71 stars 22 forks source link

Segmentation fault in minetest after converting with mcimport #31

Open sbrl opened 4 years ago

sbrl commented 4 years ago

If I try to convert a particular Minecraft world with mcimport, I get a Segmentation Fault when I try to load it in minetest. Here's the error from minetest:

.....
2020-06-16 19:09:23: INFO[Main]: Client::scanModSubfolder(): Loading "/usr/share/minetest/builtin/common/chatcommands.lua" as "*builtin*:common/chatcommands.lua".
2020-06-16 19:09:23: INFO[Main]:   size: 3138 bytes
2020-06-16 19:09:23: INFO[Main]: Client::scanModSubfolder(): Loading "/usr/share/minetest/builtin/common/information_formspecs.lua" as "*builtin*:common/information_formspecs.lua".
2020-06-16 19:09:23: INFO[Main]:   size: 4038 bytes
2020-06-16 19:09:23: VERBOSE[Main]: Loading and running script @*builtin*:init.lua
2020-06-16 19:09:23: ERROR[Main]: The following mods could not be found: "colour_chat" "csm_who_plus"
2020-06-16 19:09:23: INFO[Main]: Client loading mods: 
2020-06-16 19:09:23: INFO[Main]: Client got TOCLIENT_MOVE_PLAYER pos=(-10,0,0) pitch=0 yaw=0
2020-06-16 19:09:23: INFO[Main]: Client: Privileges updated: ban basic_privs debug interact kick password privs server shout 
2020-06-16 19:09:23: INFO[Main]: Client: Detached inventory update: "creative_Snowflake", mode=update
2020-06-16 19:09:23: INFO[Main]: Client: Detached inventory update: "creative_Snowflake", mode=update
Segmentation fault (core dumped)

Said world can be found here, with the input and output of mcinput: https://send.firefox.com/download/1260c04323ecf744/#xyqM2fr2P49OY0bSx4KYLw

(it's a big file, so unfortunately I had to use Firefox Send. Download expires after 100 downloads or 7 days)

Unfortunately, Minetest isn't giving me much to work with to debug the problem.

I have discovered some other example Minecraft worlds that cause the same problem too if they are required.

sofar commented 4 years ago

Unfortunately this is likely 2 problems at once - a core engine bug, and maybe a mcimport bug. Because of the core dump, I think it's best to treat as a core bug first. It's possible mcimport creates corrupt data, but I think that's unlikely, but, idk.

sbrl commented 4 years ago

Thanks for the reply! Looks like the download expired. Would the download there still be helpful? I can host it elsewhere if you like.