Closed SONGOKOMETA closed 1 month ago
Based off your call stack, it seems the issue is with loading global.lua, specifically it seems to have some information regarding an npc that reads to be nothing... if its not actually the global.lua perhaps you have an npc's xml file pointing to a nonexistent lua file, that seems like it could be the case maybe? Otherwise, my guess would be someone tried to make tfs have more threads and failed.
I cannot confirm. CLOSE this Issue?
I've followed Ubuntu build ( https://github.com/otland/forgottenserver/wiki/Compiling-on-Ubuntu ) on Ubuntu 20.04:
I ran that on my Oracle ARM 4 cores 24 GB RAM server (all TFS 0.2 to 1.x C++ libraries already installed):
wget https://github.com/otland/forgottenserver/archive/refs/heads/1.4.zip
unzip 1.4.zip
cd forgottenserver-1.4/
mkdir build
cd build/
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
make -j 4
mv tfs ../tfs
cd ..
mysql -e 'CREATE DATABASE tfs14test'
mysql tfs14test < schema.sql
-- edit SQL login data
pico config.lua
-- NO ERROR
./tfs
Edited data/global.lua
:
pico data/global.lua
-- added 'idc' as first line of 'data/global.lua'
./tfs
TFS 1.4 thrown a lot of Lua errors ex.:
Lua Script Error: [Scripts Interface]
/root/forgottenserver-1.4/data/scripts/talkactions/position.lua
...orgottenserver-1.4/data/scripts/talkactions/position.lua:3: attempt to index local 'talk' (a userdata value)
stack traceback:
[C]: in function '__newindex'
...orgottenserver-1.4/data/scripts/talkactions/position.lua:3: in main chunk
but it did not crash.
I'm 99% sure that vcpkg
build ( https://github.com/otland/forgottenserver/wiki/Compiling-on-Linux-&-Mac-OS-X-(vcpkg) ) wasn't configured in TFS 1.4 times ex. vcpkg.json
is missing in 1.4
It just might be an issue on my end, i cannot confirm or deny it for now. I will close the issue for now and mess around with the instalation again when i have some time.
By submitting this bug issue, you agree to the following.
Does this bug crash tfs?
yes
Server Version
1.4.x (Release)
Operation System
Ubuntu 22.04
Bug description
Server crash on start up
Steps to reproduce
Im running the server on Oracle Cloud. Fresh instance (4 OCPUs, 24GB RAM). Pretty much followed the wiki tutorial 1:1, repo installed with vcpkg. The only modified file in my server folder is config.lua, i added mysql configuration (mysqlUser, mysqlPass, mysqlDatabase)
Actual Behavior
Running tfs in gdb results in:
Thread 2 "tfs" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xfffff6a93080 (LWP 88711)] 0x0000aaaaaada28e4 in lua_gettop ()
Further inspection with bt full results in:
Expected Behavior
Server runs.
Backtrace