mtwango
mtwango
Not yet, hopefully I can get something more usefull tomorrow. Its kinda hard to debug windows service. I was able to build before and after that commit, to check where...
During service installation `SphereSvrX64_nightly.exe -k install` I get error: ``` AppName SphereSvrX64_nightly.exe AppVersion 1.1.0.4032 AppTimeStamp 681ee876 ModuleName ntdll.dll ModuleVersion 10.0.26100.3912 ModuleTimeStamp bae89f93 ExceptionCode c0000005 FaultingOffset 0000000000062673 ProcessId 0xe974 ProcessCreationTime 0x1dbc3d000654aae...
I did some debugging: Using latest dev nightly or debug: ``` 15:30:Starting Service. (null) 15:30:CmdMainStart before service_table_entry (null) - logging test, ntservice.cpp#438 15:30:CmdMainStart after service_table_entry (null) - logging test, after...
Update: it goes all the way to main entry point https://github.com/Sphereserver/Source-X/blob/758bfe78426ecf6d847e592535588f79c9532976/src/sphere/ntservice.cpp#L222 So it seems there isnt really any issue in service file, but somewhere in `Sphere_MainEntryPoint`
Follow up: the first issue is this line: https://github.com/Sphereserver/Source-X/blob/7efe1722a51635f6694122d79b9284f9520c3b06/src/game/CServer.cpp#L443 If I remove it, it can move forward and next fail is here: https://github.com/Sphereserver/Source-X/blob/7efe1722a51635f6694122d79b9284f9520c3b06/src/game/CServerConfig.cpp#L5235 So it looks like the `ADDTOCALLSTACK` macro...
I'll update and post debug log I'm using, so it will show which steps it takes and where it dies
Logs: this is first bug in `ntservice.cpp` - `if (0 == _chdir(szPath))`. The condition should be negated: [sphere_condition.txt](https://github.com/user-attachments/files/22020336/sphere_condition.txt) this is log when running service file with `-I` parameter `sc config...
Different error this time. Seems like it is trying to write messages to log, but log is not ready? ``` root@Mulambo-WS:/home/mulambo/xxx# ./SphereSvrX64_debug -? Registered thread 'dummy' with ThreadHolder ID 0....
No errors now, but `-?` and `-H` doesn't return anything. Using `-Gsave/` ends hanging with 100% CPU thread usage (even with actual save with data) on Linux. On Windows it...
Sorry, Windows: ``` C:\sphereX>SphereSvrX64_nightly.exe -H C:\sphereX>SphereSvrX64_nightly.exe -? C:\sphereX> ``` Log file gets created, but it is empty.