-
-
Notifications
You must be signed in to change notification settings - Fork 644
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
Crash on startup (Segmentation fault) on OpenWRT mips #5537
Comments
Interesting idea to compile Cuberite for an OpenWRT platform, I guess routers do actually have enough power to run Minecraft now! Sadly I think this might need some debugging, and I don't think any of the devs would be able to reproduce on our own hardware. Would you be able to please run this inside GDB and provide the logs of where the segfault occurred, or provide a core dump for us to take a look at? |
Isn't it possible to run mips architecture through Qemu? |
You should just be able to use the
Possibly, although there's no guarantee that the same error would result as on your hardware. So it's easier to confirm on the real hardware first rather than try and set up a whole emulated VM. |
Also i checked
I guess that at the moment of world creation there is a spike in ram consumption, and since I have ~30MB + 1GB swap free, this is the reason, although usually if some process uses all the ram, the router just hangs intentionally( But |
Using the last commit ( 5fd7cc3 ) the problem is still there UDP:
Maybe ram is not enough? |
I'm wondering, what C/C++ runtime library does OpenWRT use? Cuberite has had some problems with some alternate libraries, such as |
I use gcc to complie, but as i know openWRT use musl runtime as well
I figured it, but i also tried to generate world on pc and copy it to router, but there is a another error accured |
That's probably it, then. The generator is the most hungry, but it's not the only thing. The zlib compression (used everywhere in Minecraft) also uses statically-sized stack-based buffers, so that's probably the cause for the other error. |
Client version: unkown
Server OS: OpenWRT
Cuberite Commit id: ca705be
Expected behavior
Didn't crash on startup
Actual behavior
It crashes on startup
Steps to reproduce the behavior
Compile this project using OpenWRT SDK for
ramips/mt7621
withcmake ... -DNO_NATIVE_OPTIMIZATION=YES ..
Server log
The text was updated successfully, but these errors were encountered: