-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regions cause segmentation fault and stack smashing #56
Comments
Looking closer at my attempts to render each region file individually, at least one region file (
In that case, Some other region files (
In those cases, |
Hey ! Thank you for the detailed issue and the asciinema ! This is very peculiar. Considering the coordinates, my guess would be these regions have been around for a long long time, and they might have quirks my test samples did not show. I ran tests with worlds generated using Minecraft 1.13+, so problems were to be expected. I figure having access to those files is out of the question ? It would simplify greatly the process, but I would totally understand as this is personnal.
Unfortunately this is all the output I picked |
If anyone ever ends up with a similar error, please run (and comment the result):
With |
Segfaults on my world. Please tell me if there is anything else I can provide to help. Further information:
Tilesize twiddling only changes when the failure occurs:
Regionreader:
GDB backtrace:
|
Hey thanks for shaing ! Are the 'Rendering` messages the first ones of the full error message ? I am not sure what causes this. I never used mcmap with a non-vanilla world, and Fabric may change the expected format. |
Apologies for never getting back to you. This is probably now far too little far too late (not to mention the chunk was probably modified afterwards). I hope your end of the world is holding up OK. |
Hey don't apologize for not folllowing up a minecraft discussion, that is really helpful already. Looks like the mod does not change the world format, so it can be rendered. I rendered this region in both the version from February 1st and the latest. Either the chunks have been updated, or it was some kind of structure error with the rest of the world. The internals of I hope you are too. Good luck out there. |
Thankyou spoutn1k, that's a beautiful render and you have made my day. |
I have a world where some region files are causing
mcmap
to segfault or abort due to stack smashing.Using the official archlinux:latest docker image, I built
mcmap
from the latest source (as of today) like:I have been operating a vanilla Minecraft server with a very old world that has been through numerous version upgrades over the years. It's currently running Minecraft 1.16.3. There are some areas around the world that were made by users in creative mode, some that have things created using commands (mostly custom player heads, armor stands, and a few mobs), and some that have blocks tweaked using the debug stick (like changing the orientation of stairs and walls), but I believe all of these should be standard "supported" blocks and entities.
I pulled a backup of our world's files and tried rendering only a subset of the most recently modified regions, but
mcmap
blows up with*** stack smashing detected ***: terminated
andSegmentation fault
on some region files. Unfortunately, even with the-v
verbose flag set, I don't get a lot of helpful information. So, I captured my terminal session to show my attempts to build and usemcmap
against each of our world's region files. It looks like we have at least 4 region files (just in this subset that I examined) that causemcmap
to crash. Here's the asciinema recording: mcmap segfaults and stack smashingFWIW, I have been experimenting with multiple Minecraft mapping solutions. Minecraft-Overviewer and minutor's latest nightly build both rendered these regions without error.
Are there any additional arguments I can give
mcmap
to produce more verbose debug output? I'm happy to try building again from a custom branch or fork if there are any additional checks or messages you'd like to see when I process these region files.The text was updated successfully, but these errors were encountered: