Puzzlefy icon indicating copy to clipboard operation
Puzzlefy copied to clipboard

[Bug] In Fullscreen mode, get error when placing puzzle pieces.

Open RukshanJS opened this issue 2 years ago • 0 comments

Uncaught TypeError: Cannot read properties of undefined (reading 'push')
    at drawPuzzleSideShape (jigsaw.js:35:8)
    at drawPuzzleSide (script.js:652:9)
    at drawJigsaw (script.js:661:5)
    at Piece.drawPost (script.js:552:17)
    at draw (script.js:313:15)
    at p.draw (transform.js:30:15)
    at _main.default.redraw (p5.js:70809:27)
    at _draw (p5.js:63046:25)

I was able to reproduce this multiple times.

Steps,

  1. Go to fullscreen mode
  2. Start solving the puzzle
  3. At some point when placing pieces on the board, this error is thrown and all the puzzle pieces are disappeared.

When exiting fullscreen after the error, the pieces are visible again, but the puzzle is messed up. (See screenshot below) Screenshot 2023-01-29 at 18 08 55

UPDATE - Couldn't reproduce it lately. Will close if not get the error in near future.

RukshanJS avatar Jan 29 '23 12:01 RukshanJS