hackclub/sprig

Thumbnail generation script causes games to crash, causing generation to fail

Opened this issue · 2 comments

The thumbnail generation script overrides some functions with no-ops when running games. For example, setTune, for games running within the script, is set to () => {}. This causes some thumbnails to fail to generate, as seen below, when the return values of these functions are accessed (in this case: playTune().end()

Screenshot 2024-08-19 at 13 12 29

Relevant file: src/integrations/thumbnail.ts

please can you link a game that crashes while a thumbnail is being generated? or even better, provide steps to reproduce

https://sprig.hackclub.com/gallery/Hey_Hay_Cow
The game crashes internally and returns the default confused Orpheus image.