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

Server crash when trying to expand a resource area #143

Open
Eldrinn-Elantey opened this issue Feb 28, 2022 · 0 comments · May be fixed by #181
Open

Server crash when trying to expand a resource area #143

Eldrinn-Elantey opened this issue Feb 28, 2022 · 0 comments · May be fixed by #181

Comments

@Eldrinn-Elantey
Copy link

The server crashed when I tried to expand the oil section, or rather clicked on the expansion function, tried to allocate, but the neighboring copper was allocated as a new section and when trying to cancel the expansion of the site, the server crashed with an error:

98455.947 Error MainLoop.cpp:1284: Exception at tick 6052938: The mod YARM - Resource Monitor (0.8.203) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event YARM::on_gui_click (ID 1)
__YARM__/resmon.lua:550: attempt to index local 'site' (a nil value)
stack traceback:
        __YARM__/resmon.lua:550: in function 'submit_site'
        __YARM__/resmon.lua:1137: in function 'expand_site'
        __YARM__/resmon.lua:1271: in function <__YARM__/resmon.lua:1259>
98455.948 Error ServerMultiplayerManager.cpp:91: MultiplayerManager failed: "The mod YARM - Resource Monitor (0.8.203) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event YARM::on_gui_click (ID 1)
__YARM__/resmon.lua:550: attempt to index local 'site' (a nil value)
stack traceback:
        __YARM__/resmon.lua:550: in function 'submit_site'
        __YARM__/resmon.lua:1137: in function 'expand_site'
        __YARM__/resmon.lua:1271: in function <__YARM__/resmon.lua:1259>"
98455.949 Info ServerMultiplayerManager.cpp:796: updateTick(6052938) changing state from(InGame) to(Failed)
98455.963 Quitting: multiplayer error.
narc0tiq added a commit that referenced this issue Oct 30, 2024
It is possible for the game to attempt to submit "the current site" when there is no current site (see #143 for an example) so just make sure that `submit_site` doesn't try to do anything if there is no current site.

Fixes #143
@narc0tiq narc0tiq linked a pull request Oct 30, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant