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

[1822CA] Game freezes on ICR tile lay #11491

Open
Lime-Turtle opened this issue Jan 29, 2025 · 4 comments
Open

[1822CA] Game freezes on ICR tile lay #11491

Lime-Turtle opened this issue Jan 29, 2025 · 4 comments

Comments

@Lime-Turtle
Copy link

ICR is trying to lay two yellow tiles. First on no problem. Second lay allows me to select tile (gentle bend large city) and rotate (heading SW) but then freezes at green tick / Red Cross moment.

iOS by phone and by Mac.

What's your Game ID?

How to Reproduce the Bug?

Which Browser / Platform?

@ollybh
Copy link
Collaborator

ollybh commented Jan 30, 2025

In game 191569 ICR is attempting to lay a 57 tile on hex AN6.

This doesn't completely crash the interface, if you leave it for a while it will eventually complete the action. It took just under five minutes to finish on my desktop computer.

Here is the debug log that was produced. It's the destination check that's taking all the time, for some reason there were more than 22 million calls to node.walk despite ICR being in a part of the map that isn't connected to much else.

io.rb:310 D, [2025-01-30T20:38:07.246000] DEBUG -- : Rendering game view...
io.rb:310 D, [2025-01-30T20:38:07.535000] DEBUG -- : Done rendering game view
io.rb:310 D, [2025-01-30T20:38:09.120000] DEBUG -- : Rendering game view...
io.rb:310 D, [2025-01-30T20:38:09.390000] DEBUG -- : Done rendering game view
io.rb:310 D, [2025-01-30T20:38:11.285000] DEBUG -- : Game::Base#process_action({ id: 1579, ... }, ...)
io.rb:310 D, [2025-01-30T20:38:11.290000] DEBUG -- :     Graph#compute(ICR, routes_only: false, one_token: )
io.rb:310 D, [2025-01-30T20:38:11.293000] DEBUG -- :     Graph computed with 17 completed walk calls (skipped 3)
io.rb:310 D, [2025-01-30T20:38:11.296000] DEBUG -- :     nodes_connected?(#<Engine::Part::City:0x2796>, #<Engine::Part::City:0x4cee>, ICR)
io.rb:310 D, [2025-01-30T20:41:56.016000] DEBUG -- :     nodes_connected? returning false after 22195399 walk calls (0 skipped)
io.rb:310 D, [2025-01-30T20:41:56.023000] DEBUG -- : Rendering game view...
io.rb:310 D, [2025-01-30T20:41:56.304000] DEBUG -- : Done rendering game view
io.rb:310 D, [2025-01-30T20:41:59.026000] DEBUG -- : Rendering game view...
io.rb:310 D, [2025-01-30T20:41:59.321000] DEBUG -- : Done rendering game view

@ollybh ollybh changed the title 1822CA 191659 Game freezes on ICR tile lay [1822CA] Game freezes on ICR tile lay Jan 30, 2025
@andre-steenbergen
Copy link

When trying to call the JSON Api endpoint a 502 error is given. The same thing could also be happening server-side.

@andre-steenbergen
Copy link

Image

@kepakiano
Copy link
Contributor

kepakiano commented Feb 9, 2025

Game https://18xx.games/game/194826 suffers from the same bug. When cloned the game can be continued, even though the CPU usage spikes for a few seconds.

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

No branches or pull requests

4 participants