SoftbearStudios / kiomet

Kiomet.com real-time strategy game
https://kiomet.com
GNU Affero General Public License v3.0
83 stars 12 forks source link

could not set open file limit: unsupported OS #7

Open zhx201933 opened 11 months ago

zhx201933 commented 11 months ago

The server will stop responding when start executing show in command line: [ERROR game_server::entry_point] could not set open file limit: unsupported OS thread 'main' has overflowed its stack

i run it on Windows 10.0.19045.3803 and Windows Server 2016 but all failed image

finnbear commented 11 months ago

Thanks!

This is a duplicate of https://github.com/SoftbearStudios/mk48/issues/214

(it's another repository, so I don't blame you at all for not seeing it)

zhx201933 commented 11 months ago

but i checked the entry_point.rs and the set open file limit function in os.rs, it seems did not define operations for Windows OS, so can i simply redownload the whole code and compile it again on Linux and execute is properly?

finnbear commented 11 months ago

First of all, the open file limit (which is logged but ignored) has absolutely nothing to do with the crash. The crash is due to use of stack memory in excess of the default thread stack size, which only happens when you compile in debug mode on Windows.

A workaround is to use release mode, which makes more efficient use of stack memory. Linux should also work.

zhx201933 commented 11 months ago

i already execute the server in release mode, but the bug seems appearing anyway. image

zhx201933 commented 11 months ago

it seems you have written a code in https://github.com/SoftbearStudios/mk48/issues/214 , but can it solve this problem and where should i put it please?