HumanSignal / HumanSignal/label-studio

In TimeBox function formatTime accepts `infinity` as time, and throws

Open
#8,963 3 comments 0 reactions 0 assignees View on GitHub
community_reviewed
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

**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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.