Skip to content

In TimeBox function formatTime accepts infinity as time, and throws #8963

@dev10231235

Description

@dev10231235

Describe the bug
In TimeBox.tsx, function formatTime accepts time: number.
Normally that accepts numbers.

But in my case (I do not know why), it accepts infinity (see screenshot below). And new Date throws.

UPD: apparently infinity is passed when I open .flac files that have no duration (it happens sometimes when you encode stream into flac - then a final file does not have a duration, is not seekable, etc).

Screenshots
Image

Image

Environment (please complete the following information):

  • OS: Client: windows. Server: linux, in docker.

I am using latest docker image and from time to time I docker compose pull to deploy latest version.

label-studio-app-1 heartexlabs/label-studio latest 0b13bfd77e3b 1.05GB
label-studio-db-1 pgautoupgrade/pgautoupgrade 13-alpine f306b002f6fd 497MB
label-studio-nginx-1 heartexlabs/label-studio latest 0b13bfd77e3b 1.05GB

pip list showed these versions:

label-studio                   1.21.0       /label-studio
label-studio-sdk               2.0.4

As a global result my labelling window is empty :(

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions