Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create task with images larger than ~900kb #722

Closed
vskubriev opened this issue Sep 17, 2019 · 12 comments
Closed

Cannot create task with images larger than ~900kb #722

vskubriev opened this issue Sep 17, 2019 · 12 comments
Labels
bug Something isn't working
Milestone

Comments

@vskubriev
Copy link
Contributor

We faced with problem. Additional information is on screenshoot:

image

@cvadim4two
Copy link

And i've got an issue with the amount of files >1k get and error https://monosnap.com/file/PmcmkZwTFzf53uhkt6wGiOamrIK5jg

@vskubriev
Copy link
Contributor Author

Corresponded traceback:

2019-09-17 14:15:11,267 DEBG 'rqworker_default_1' stderr output:
[2019-09-17 14:15:11,267] INFO cvat.server: create task #7

2019-09-17 14:15:41,529 DEBG 'rqworker_default_1' stderr output:
14:15:41 OSError: image file is truncated (21 bytes not processed)
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/rq/worker.py", line 812, in perform_job
    rv = job.perform()
  File "/usr/local/lib/python3.5/dist-packages/rq/job.py", line 588, in perform
    self._result = self._execute()
  File "/usr/local/lib/python3.5/dist-packages/rq/job.py", line 594, in _execute
    return self.func(*self.args, **self.kwargs)
  File "/usr/lib/python3.5/contextlib.py", line 30, in inner
    return func(*args, **kwds)
  File "/home/django/cvat/apps/engine/task.py", line 283, in _create_thread
    width, height = extractor.save_image(frame, image_dest_path)
  File "/home/django/cvat/apps/engine/media_extractors.py", line 68, in save_image
    image = image.convert('RGB')
  File "/usr/local/lib/python3.5/dist-packages/PIL/Image.py", line 879, in convert
    self.load()
  File "/usr/local/lib/python3.5/dist-packages/PIL/ImageFile.py", line 228, in load
    "(%d bytes not processed)" % len(b))
OSError: image file is truncated (21 bytes not processed)
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/rq/worker.py", line 812, in perform_job
    rv = job.perform()
  File "/usr/local/lib/python3.5/dist-packages/rq/job.py", line 588, in perform
    self._result = self._execute()
  File "/usr/local/lib/python3.5/dist-packages/rq/job.py", line 594, in _execute
    return self.func(*self.args, **self.kwargs)
  File "/usr/lib/python3.5/contextlib.py", line 30, in inner
    return func(*args, **kwds)
  File "/home/django/cvat/apps/engine/task.py", line 283, in _create_thread
    width, height = extractor.save_image(frame, image_dest_path)
  File "/home/django/cvat/apps/engine/media_extractors.py", line 68, in save_image
    image = image.convert('RGB')
  File "/usr/local/lib/python3.5/dist-packages/PIL/Image.py", line 879, in convert
    self.load()
  File "/usr/local/lib/python3.5/dist-packages/PIL/ImageFile.py", line 228, in load
    "(%d bytes not processed)" % len(b))
OSError: image file is truncated (21 bytes not processed)

2019-09-17 14:15:41,647 DEBG 'rqworker_default_1' stderr output:
14:15:41 Cleaning registries for queue: default

@bsekachev
Copy link
Member

@vskubriev

Could you send us this file for investigating?

@bsekachev
Copy link
Member

@cvadim4two

I suppose your case isn't related with image size. Just the whole request body is too large.
Try to use share to create a task with this set of files.

@bsekachev
Copy link
Member

@nmanovic
Also, I suppose it would be better to handle case of @cvadim4two. At least by showing better message.
Something like: "Too much data to upload thought a browser. Try to create this task via a shared file storage"

@vskubriev
Copy link
Contributor Author

@cvadim4two

I suppose your case isn't related with image size. Just the whole request body is too large.
Try to use share to create a task with this set of files.

Can you suggest: where is request body size should be increased in cvat (deployed with docker-compose) ?

@bsekachev
Copy link
Member

@vskubriev
You can try this: cvat/settings/base.py (the latest 4 lines are responsible for that)

@nmanovic
Copy link
Contributor

@vskubriev , if you can share with us some files (generated or original) to reproduce the issue it will be easy for us to fix.

@nmanovic nmanovic added the bug Something isn't working label Sep 30, 2019
@nmanovic nmanovic added this to the 1.0.0 - Beta milestone Sep 30, 2019
@vskubriev
Copy link
Contributor Author

@nmanovic A manager do not have time now for search those images. We will do it later. Please wait.

@cvadim4two
Copy link

cvadim4two commented Oct 14, 2019

451 files to reproduce https://drive.google.com/drive/folders/1hXbCafBqGyxBvovdmRYlkO9s0uX3BNKn?usp=sharing.
Stable got an error if I try to upload it via Local
And same error if I try to upload it Remote https://take.ms/uRKA4 or via Share https://take.ms/e3qCg

@bsekachev
Copy link
Member

@cvadim4two
Just two comments:

  1. Remote input dialog expects direct links to files (these links must have extenstions .jpg, .png, etc.)
  2. Share functionality works well, but it seems to be, one of images which you send to CVAT is broken and CVAT cannot process it.

@cvadim4two
Copy link

Checked, the issues can be closed.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants