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 gui click #25

Closed
ILLISIS opened this issue Mar 22, 2024 · 3 comments · Fixed by #30
Closed

crash on gui click #25

ILLISIS opened this issue Mar 22, 2024 · 3 comments · Fixed by #30
Labels
bug Something isn't working

Comments

@ILLISIS
Copy link

ILLISIS commented Mar 22, 2024

After creating and switch to my own force I was able to join without crashing an instance.. I imagine this is the result but should have a nil check anyway possibly.

`766.830 Error MainLoop.cpp:1404: Exception at tick 45582: The scenario level caused a non-recoverable error.
Please report this error to the scenario author.

Error while running event level::on_gui_click (ID 1)
...les/gridworld/faction/gui/faction_server_status/draw.lua:11: attempt to index local 'player_faction' (a nil value)
stack traceback:
...les/gridworld/faction/gui/faction_server_status/draw.lua:11: in function 'draw'
modules/gridworld/gui/menu/events.lua:10: in function '?'
...urrently-playing/modules/gridworld/util/run_function.lua:3: in function 'run_function'
modules/gridworld/gui/events.lua:11: in function 'on_gui_click'
modules/gridworld/gridworld.lua:187: in function 'handler'
core/lualib/event_handler.lua:47: in function <core/lualib/event_handler.lua:45>
766.831 Error ServerMultiplayerManager.cpp:92: MultiplayerManager failed: "The scenario level caused a non-recoverable error.
Please report this error to the scenario author.

Error while running event level::on_gui_click (ID 1)
...les/gridworld/faction/gui/faction_server_status/draw.lua:11: attempt to index local 'player_faction' (a nil value)
stack traceback:
...les/gridworld/faction/gui/faction_server_status/draw.lua:11: in function 'draw'
modules/gridworld/gui/menu/events.lua:10: in function '?'
...urrently-playing/modules/gridworld/util/run_function.lua:3: in function 'run_function'
modules/gridworld/gui/events.lua:11: in function 'on_gui_click'
modules/gridworld/gridworld.lua:187: in function 'handler'
core/lualib/event_handler.lua:47: in function <core/lualib/event_handler.lua:45>"`

@ILLISIS
Copy link
Author

ILLISIS commented Mar 22, 2024

After changing to a gridworld precreated faction:

334.934 Error MainLoop.cpp:1404: Exception at tick 55987: The scenario level caused a non-recoverable error.
Please report this error to the scenario author.

Error while running event level::on_gui_click (ID 1)
...les/gridworld/faction/gui/faction_server_status/draw.lua:11: attempt to index local 'player_faction' (a nil value)
stack traceback:
...les/gridworld/faction/gui/faction_server_status/draw.lua:11: in function 'draw'
modules/gridworld/gui/menu/events.lua:10: in function '?'
...urrently-playing/modules/gridworld/util/run_function.lua:3: in function 'run_function'
modules/gridworld/gui/events.lua:11: in function 'on_gui_click'
modules/gridworld/gridworld.lua:187: in function 'handler'
core/lualib/event_handler.lua:47: in function <core/lualib/event_handler.lua:45>
334.934 Error ServerMultiplayerManager.cpp:92: MultiplayerManager failed: "The scenario level caused a non-recoverable error.
Please report this error to the scenario author.

Error while running event level::on_gui_click (ID 1)
...les/gridworld/faction/gui/faction_server_status/draw.lua:11: attempt to index local 'player_faction' (a nil value)
stack traceback:
...les/gridworld/faction/gui/faction_server_status/draw.lua:11: in function 'draw'
modules/gridworld/gui/menu/events.lua:10: in function '?'
...urrently-playing/modules/gridworld/util/run_function.lua:3: in function 'run_function'
modules/gridworld/gui/events.lua:11: in function 'on_gui_click'
modules/gridworld/gridworld.lua:187: in function 'handler'
core/lualib/event_handler.lua:47: in function <core/lualib/event_handler.lua:45>"

@Danielv123 Danielv123 added the bug Something isn't working label Mar 22, 2024
@Danielv123
Copy link
Owner

Danielv123 commented Mar 22, 2024

How are you joining factions? I thought I disabled the button.

I disabled factions because they aren't updated to alpha 16 yet and they aren't really necessary for what I want to do with it (at least at first) either.

Does these faction bugs happen without joining a faction?

@ILLISIS
Copy link
Author

ILLISIS commented Mar 22, 2024

Not joining any factions..

simply:

  1. create a gridworld
  2. join lobby
  3. ran into the instance crash
  4. swapped forces

@Danielv123 Danielv123 linked a pull request Apr 13, 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
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants