MCMrARM / mcpelauncher-linux

Please note this is a legacy repository, please go to: https://github.com/minecraft-linux/mcpelauncher-manifest/wiki
GNU General Public License v3.0
311 stars 44 forks source link

server crash #295

Closed guppy42 closed 6 years ago

guppy42 commented 6 years ago

Tested with 1.2.7, 1.2.8, 1.2.9

$./server 
20:37:29 Trace [Launcher] Loading hybris libraries
20:37:29 Trace [Launcher] Loaded OS library libm.so.6
20:37:29 Trace [Launcher] Loading Minecraft library
20:37:30 Info [Launcher] Loaded Minecraft library
20:37:30 Debug [Launcher] Minecraft is at offset 0xf3948000
20:37:30 Info [ModLoader] Loading mods
20:37:30 Info [ModLoader] Loading mod: libmcpelauncher_testmod.so
**** Init test mod ****
20:37:30 Info [ModLoader] Loaded 1 mods
20:37:30 Info [Launcher] Starting server initialization
20:37:30 Trace [Launcher] Initializing AppPlatform (vtable)
20:37:30 Trace [AppPlatform] Vtable size = 185
20:37:30 Trace [Launcher] Initializing AppPlatform (create instance)
20:37:30 Trace [Launcher] Initializing AppPlatform (initialize call)
20:37:30 Trace [AppPlatform] createDeviceID: 
20:37:30 Debug [Launcher] AppPlatform initialized successfully
20:37:30 Trace [Launcher] Loading whitelist and operator list
20:37:30 Trace [Launcher] Initializing Minecraft API classes
20:37:30 Trace [Launcher] Setting up level settings
20:37:30 Trace [Launcher] Initializing FilePathManager
20:37:30 Trace [Launcher] Initializing MinecraftEventing (create instance)
20:37:30 Trace [Launcher] Initializing MinecraftEventing (init call)
20:37:30 Trace [AppPlatform] getSystemRegion: 0xdeadbeef
20:37:30 Trace [Launcher] Initializing ResourcePackManager
20:37:30 Trace [Launcher] Initializing PackManifestFactory
20:37:30 Trace [Launcher] Initializing SkinPackKeyProvider
20:37:30 Trace [Launcher] Initializing PackSourceFactory
20:37:30 Trace [Launcher] Initializing ResourcePackRepository
20:37:30 Trace [AppPlatform] getInternalStoragePath: /home/guppy42/.local/share/mcpelauncher/
20:37:30 Trace [AppPlatform] getInternalStoragePath: /home/guppy42/.local/share/mcpelauncher/
20:37:30 Trace [AppPlatform] getInternalStoragePath: /home/guppy42/.local/share/mcpelauncher/
20:37:30 Trace [AppPlatform] getInternalStoragePath: /home/guppy42/.local/share/mcpelauncher/
20:37:30 Trace [AppPlatform] getInternalStoragePath: /home/guppy42/.local/share/mcpelauncher/
20:37:30 Trace [AppPlatform] getInternalStoragePath: /home/guppy42/.local/share/mcpelauncher/
20:37:30 Trace [AppPlatform] getInternalStoragePath: /home/guppy42/.local/share/mcpelauncher/
20:37:30 Trace [Launcher] Adding vanilla resource pack
Signal 11 received
Backtrace elements: 3
#0 /home/guppy42/source/mcpelauncher-linux/server(_Z12handleSignaliPv+0x62) [0x808bfd6]
#1 [0xf76e3bc0]
#2 HYBRIS ResourcePack::getSubpackInfoStack() const+4 in libminecraftpe.so+0x1bcb264 [0xf5513264]
Dumping stack...
#17 HYBRIS ResourcePack::getSubpackInfoStack() const+4 in libminecraftpe.so+0x1bcb264 [0xf5513264]
#60 HYBRIS ResourcePack::getSubpackInfoStack() const+4 in libminecraftpe.so+0x1bcb264 [0xf5513264]
#100 HYBRIS operator delete(void*)+28 in libminecraftpe.so+0x2c8277c [0xf65ca77c]
#106 HYBRIS operator delete(void*)+6 in libminecraftpe.so+0x2c82766 [0xf65ca766]
#112 HYBRIS operator delete(void*)+28 in libminecraftpe.so+0x2c8277c [0xf65ca77c]
#118 HYBRIS operator delete(void*)+6 in libminecraftpe.so+0x2c82766 [0xf65ca766]
#128 HYBRIS ResourcePackRepository::ResourcePackRepository(MinecraftEventing&, PackManifestFactory&, IContentAccessibilityProvider&, FilePathManager*, PackSourceFactory&)+1984 in libminecraftpe.so+0x1bd54d0 [0xf551d4d0]
#372 HYBRIS operator delete(void*)+28 in libminecraftpe.so+0x2c8277c [0xf65ca77c]
#469 HYBRIS operator new(unsigned int)+12 in libminecraftpe.so+0x2c84a2c [0xf65cca2c]
#476 HYBRIS PackInstance::PackInstance(ResourcePack*, int, bool)+65 in libminecraftpe.so+0x1be4a51 [0xf552ca51]
#517 HYBRIS vtable for SkinPackKeyProvider+8 in libminecraftpe.so+0x37a70c0 [0xf70ef0c0]
#565 HYBRIS vtable for minecraft::api::Api+8 in libminecraftpe.so+0x37a1c2c [0xf70e9c2c]
#567 HYBRIS vtable for minecraft::api::PlayerInterface+8 in libminecraftpe.so+0x37a1c6c [0xf70e9c6c]
#568 HYBRIS vtable for minecraft::api::EntityInterface+8 in libminecraftpe.so+0x37a1c84 [0xf70e9c84]
#569 HYBRIS vtable for minecraft::api::NetworkInterface+8 in libminecraftpe.so+0x37a1c94 [0xf70e9c94]
#570 HYBRIS vtable for minecraft::api::PlayerInteractionInterface+8 in libminecraftpe.so+0x37a1ca8 [0xf70e9ca8]
#726 HYBRIS vtable for MinecraftEventing+8 in libminecraftpe.so+0x37b65cc [0xf70fe5cc]
#790 HYBRIS vtable for ResourcePackManager+8 in libminecraftpe.so+0x37b80e0 [0xf71000e0]
Signal 6 received
Aborted

mcpelauncher works fine with all of them.

MCMrARM commented 6 years ago

You need to extract the assets in the server's working directory.

MCMrARM commented 6 years ago

This might be a little bit unclear atm, I'll try to make some better documentation about that.

ghost commented 6 years ago

i have the same issue

guppy42 commented 6 years ago

Some documentation would be a good idea I think ( also of what the json file server.properties can contain ) .

guppy42 commented 6 years ago

did a fresh pull and ran it from ~/.local/share/mcpelauncher

extracting to another directory causes crash with undefined symbols - so some docs would still be nice ;)

guppy42 commented 6 years ago

Server seems to be running base on console output, but It's not visible either as a local game nor does it show any information when I add it as a server by IP.

so some info would be great :)

MCMrARM commented 6 years ago

I documented the server.properties there yesterday: https://github.com/MCMrARM/mcpelauncher-linux/wiki/Dedicated-Server's-server.properties

To have it show on the local world list, add a motd.

guppy42 commented 6 years ago

should've checked the wiki - was half way through documenting it here based on server.cpp when your message poped up xD

oh well live and learn.

guppy42 commented 6 years ago

Adding the server.properties also means the server is now discoverable.

I'll add a different issue for the case were there isn't a server.properties

MCMrARM commented 6 years ago

Also, since yesterday, it should be possible to run the server from any directory, and it should fall back to the ~/.local/share/mcpelauncher directory, otherwise if libs/libminecraftpe.so exists, it'll use the current working directory as the source dir instead. Maybe you had an older version of Minecraft extracted in the CWD?

Also, the server now supports extracting (to the CWD), using the extract option like this: ./server extract mcpe.zip.