diff --git a/CHANGELOG.md b/CHANGELOG.md index b6a6eaa2..3ad808be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Export of instance masks with holes () - Changing a label on canvas does not work when 'Show object details' enabled () +- Make sure frame unzip web worker correctly terminates after unzipping all images in a requested chunk () ### Security diff --git a/cvat-core/package-lock.json b/cvat-core/package-lock.json index 644895f5..f9c5f1c1 100644 --- a/cvat-core/package-lock.json +++ b/cvat-core/package-lock.json @@ -1,6 +1,6 @@ { "name": "cvat-core", - "version": "3.12.0", + "version": "3.12.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/cvat-core/package.json b/cvat-core/package.json index e0453e8e..dcd6aaf9 100644 --- a/cvat-core/package.json +++ b/cvat-core/package.json @@ -1,6 +1,6 @@ { "name": "cvat-core", - "version": "3.12.0", + "version": "3.12.1", "description": "Part of Computer Vision Tool which presents an interface for client-side integration", "main": "babel.config.js", "scripts": { diff --git a/cvat-core/src/frames.js b/cvat-core/src/frames.js index 4f029a3f..bd1009ef 100644 --- a/cvat-core/src/frames.js +++ b/cvat-core/src/frames.js @@ -286,7 +286,7 @@ if (nextChunkNumber * chunkSize < this.stopFrame) { provider.setReadyToLoading(nextChunkNumber); const nextStart = nextChunkNumber * chunkSize; - const nextStop = (nextChunkNumber + 1) * chunkSize - 1; + const nextStop = Math.min(this.stopFrame, (nextChunkNumber + 1) * chunkSize - 1); if (!provider.isChunkCached(nextStart, nextStop)) { if (!frameDataCache[this.tid].activeChunkRequest) { frameDataCache[this.tid].activeChunkRequest = {