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

Selecting char and then clicking off causes crash #1

Open
ChromaQ opened this issue Sep 25, 2022 · 1 comment
Open

Selecting char and then clicking off causes crash #1

ChromaQ opened this issue Sep 25, 2022 · 1 comment

Comments

@ChromaQ
Copy link

ChromaQ commented Sep 25, 2022

When I select the "character" and then click off of it without correctly using an action, the API appears to crash.

Reproduction Steps:

  1. Click character
  2. Click elsewhere - a different tile, etc.

Results in urban-memory Docker container exiting, requires a manual restart of container.

Results in this Docker error:

parseCharacter
cacheCharacter {
  operator: { name: 'bob', operatorId: 'affe525a-1140-4c13-bfd1-d22d1970d31a' },
  class: {
    name: Translatable { translations: [Object] },
    ap: 2,
    maxAp: 6,
    initiativeModifier: NaN
getOperator is deprecated, should look up by operator uuid instead of socket id
TypeError: Cannot read properties of undefined (reading 'game')
    at /app/src/websocket/game/events/tile_interaction.ts:18:27
    at step (/app/src/websocket/game/events/tile_interaction.ts:33:23)
    at Object.next (/app/src/websocket/game/events/tile_interaction.ts:14:53)
    at fulfilled (/app/src/websocket/game/events/tile_interaction.ts:5:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
error Command failed with exit code 1.
@ChromaQ
Copy link
Author

ChromaQ commented Sep 25, 2022

It seems like just re-clicking the avatar again also causes a crash. oopsie

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

1 participant