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

[bug] when playing game a client-side crash occured #95

Open
shlagevuk opened this issue Nov 3, 2022 · 2 comments
Open

[bug] when playing game a client-side crash occured #95

shlagevuk opened this issue Nov 3, 2022 · 2 comments

Comments

@shlagevuk
Copy link

Describe the bug
when playing the game their is a random chance for client to crash
Bug happen on firefox mobile (android 106.1) chrome mobile (android 107.0.5304.91) and desktop (linux, v105).

To Reproduce
Steps to reproduce the behavior:

  1. play the game
  2. ???
  3. See error

It seems to happen more frequently when playing fast (dragging cards quickly) mayby it's related to card not loading properly.

Screenshots
image

Additional context
Console export when bug happened.
console-export-2022-11-3_9-53-31.txt

@Flaburgan
Copy link

Hello, I also had a crash today while playing. I don't have the exact message in the console but it was written something about charAt().

@rowboat1
Copy link
Contributor

rowboat1 commented Jul 2, 2024

Steps to reproduce error:

  1. Cause the game to draw Punic Wars

The game is attempting to run the capitalize function on an undefined value.

Root cause is that the const type = React.useMemo on line 52 of item-card.tsx returns item.instance_of[0] as a fallback, but this can be undefined if the array is empty.

Working on a fix.

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

3 participants