cvat: Could not save annotations

My actions before raising this issue

  • Read/searched the docs
  • Searched past issues

Expected Behaviour

The annotations are saved without a problem

Current Behaviour

A popup appears with the following message:

Could not save annotations Error: Request failed with status code 400. “duplicate key value violates unique constraint "engine_trackedshape_pkey"\nDETAIL: Key (id)=(113) already exists.\n”.

Steps to Reproduce (for bugs)

I am annotating a video with the tracking bounding boxes. When trying to save mid way through, the error appears.

Context

I am not able to save any annotations. All my work will be lost, when I close the window. When opening the job in a 2nd window it show the last save was 400 frames ago.

Edit: I was able to “save” my work by downloading the annotation via the “Menu” -> “Dump annotations” / “Export Dataset” Buttons.

Your Environment

  • Git hash commit (git log -1): cb4d8e6ee571594f74ff96bc6cbc7c597c732e4a
  • Docker version docker version (e.g. Docker 17.0.05): 19.03.5
  • Are you using Docker Swarm or Kubernetes? no
  • Operating System and version (e.g. Linux, Windows, MacOS): Ubuntu Desktop
  • Code example or link to GitHub repo or gist to reproduce problem:
  • Other diagnostic information / logs:

2020-09-09 07:05:44,580 DEBG ‘runserver’ stderr output: [Wed Sep 09 07:05:44.580126 2020] [wsgi:error] [pid 630:tid 139984631072512] [remote 172.28.0.7:54352] WARNING:django.request:Bad Request: /api/v1/jobs/2/annotations

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 30 (12 by maintainers)

Most upvoted comments

I can reproduce this error message consistently in browser by doing the following steps:

  • Create a tracked object
  • Save and reload the page
  • Remove the tracked object
  • Undo the remove

Trying to save after following these steps produces the error message.

Are there any update for this issue?