Skip to content

Can't wait longer than 2147483.647 seconds #1010

@ericrosenbaum

Description

@ericrosenbaum

Expected Behavior

Any number of seconds entered into e.g. a "say" or "wait" block should cause the block to wait that number of seconds.

Actual Behavior

Numbers of seconds over a certain large threshold cause the wait time to be zero. We often see kids typing in very large numbers like this.

With help from @rschamp, we found the exact threshold, which is 2147483.647 (1/1000 of max int, presumably because it is converted to milliseconds). So, waiting for 2147483.647 seconds seems to work (though we didn't actually wait for 24.8 days to find out), but waiting for 2147483.648 seconds waits for 0 instead:

big-wait-bug

Steps to Reproduce

See gif

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions