• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ Loading Lua Libs - Segmentation Error - vcruntime140.dll

Orkanite

omfg mapper
Joined
May 11, 2008
Messages
365
Reaction score
115
Behavior:
  • run theforgottenserver-x64.exe (TFS 1.3 compile with Microsoft Visual C++ version 14.1)
  • Arrive at "Loading lua libs" and crash with "segmentation error," exception-
    • Unhandled exception at 0x00007FF9D44812DE (vcruntime140.dll) in theforgottenserver-x64.exe: 0xC0000005: Access violation writing location 0x0000000000000000.

Environment:
  • Windows 10 - Visual Studio 2017
  • Boost 1.66.0 installed with VCPKG
  • TFS SDK 3.2
  • Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.22.27821
  • TFS Project Configuration
    • Windows SDK Version: 10.0.17763.0
    • Platform Toolset: Visual Studio 2017 (v141)
It trips up as soon as it enters this for loop at line 53 in script.cpp
C++:
for(fs::recursive_directory_iterator it(dir); it != endit; ++it) {
    auto fn = it->path().parent_path().filename();
    if ((fn == "lib" && !isLib) || fn == "events") {
        continue;
    }
    if(fs::is_regular_file(*it) && it->path().extension() == ".lua") {
        size_t found = it->path().filename().string().find(disable);
        if (found != std::string::npos) {
            if (g_config.getBoolean(ConfigManager::SCRIPTS_CONSOLE_LOGS)) {
                std::cout << "> " << it->path().filename().string() << " [disabled]" << std::endl;
            }
            continue;
        }
        v.push_back(it->path());
    }
}

1567369442200.png

I had already tried with the same libraries except using VS 2019 and possibly a different Platform Toolset, maybe v142? and got the same behavior/exception.
This is my first experience compiling and running TFS or any ot server for that matter, so I apologize if I'm not including what might be normally required details. Just not sure where to go from here or what I might have set up incorrectly.
 
Back
Top