Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could not set open file limit: unsupported OS #7

Open
zhx201933 opened this issue Dec 18, 2023 · 5 comments
Open

could not set open file limit: unsupported OS #7

zhx201933 opened this issue Dec 18, 2023 · 5 comments

Comments

@zhx201933
Copy link

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
Copy link
Member

Thanks!

This is a duplicate of SoftbearStudios/mk48#214

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

@zhx201933
Copy link
Author

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
Copy link
Member

finnbear commented Dec 19, 2023

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
Copy link
Author

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

@zhx201933
Copy link
Author

it seems you have written a code in SoftbearStudios/mk48#214 , but can it solve this problem and where should i put it please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants