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

Crash on Host tab #83

Open
wattieswatties opened this issue Apr 21, 2021 · 2 comments
Open

Crash on Host tab #83

wattieswatties opened this issue Apr 21, 2021 · 2 comments
Assignees
Labels
crash Crash
Milestone

Comments

@wattieswatties
Copy link

wattieswatties commented Apr 21, 2021

crash_2021-04-21T04-56-05-565.log

WHen clicking host on the host tab it crashes to desktop with no errors. Above crash log has this text, the error.log file is empty:
BF2142Unlocker.nim(3401) BF2142Unlocker
BF2142Unlocker.nim(3389) main
gio.nim(28049) run
macros.nim(559) timeoutfunc_cdecl_3
BF2142Unlocker.nim(2117) timerGameServer
parser.nim(38) parseGsData
strutils.nim(1115) parseInt
Error: unhandled exception: invalid integer: [ValueError]

I thought my Server exe might not be correct. The dedicated server says 1.10.112.0 ( i hope that is 1.51 server)
Seems to be correct one - so assume the error is caused by one of the server settings has an out of range value(integer) but its hard to find which or if they are gui controlled on not. I am testing on Air Bavaria map from reclaim map pack and running 64 size in coop mode. When I hit host it shows the http waiting for clients for half a seconds on console and then exits cleanly to desktop.

@Dankr4d
Copy link
Owner

Dankr4d commented Apr 21, 2021

This is caused by the (undedicated) game server standard output parser. The parser isn't that stable and don't have any try'n catches if something is going wrong.
In this case it couldn't parse an integer. Maybe the output was another than the parser expected, and it crashed.

I'm going to make the parser optional in next release (and more stable), that you need to enable it manually if you want it. Currently it only shows visually which map is running.
For the time until then, you can run the undedicated server manually or just start the game in Singleplayer/LAN (Play-tab); unlocks work there too.

@Dankr4d Dankr4d self-assigned this Apr 21, 2021
@Dankr4d Dankr4d added the crash Crash label Apr 21, 2021
@Dankr4d Dankr4d added this to the 0.9.7 milestone Apr 21, 2021
Dankr4d added a commit that referenced this issue Jun 17, 2021
- Added try 'n catch to prevent crashes when gameserver output cannot be
  parsed.

Signed-off-by: Dankr4d <dude569@freenet.de>
@Dankr4d
Copy link
Owner

Dankr4d commented Jun 18, 2021

In commit referenced above I just added a try 'n catch. For release 0.9.7 there won't be functionality to disable it. I'll add it later.

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

No branches or pull requests

2 participants