coco-annotator
coco-annotator copied to clipboard
page becomes unresponsive when using magic wand tool on newest version with single band image
To reproduce:
- docker-compose up
- make a dataset and load an image ( I used a 50Mb png)
- try to use magic wand tool

annotator_webclient | [2021-10-19 18:02:59 +0000] [12] [DEBUG] GET /api/dataset/7/scan
annotator_workers | [2021-10-19 18:02:59,097: INFO/MainProcess] Received task: workers.tasks.scan.scan_dataset[39239d04-ac3e-405c-882a-6ae50b0b44ec]
annotator_workers | [2021-10-19 18:02:59,120: INFO/ForkPoolWorker-6] Server initialized for eventlet.
annotator_workers | [2021-10-19 18:02:59,140: INFO/ForkPoolWorker-6] emitting event "taskProgress" to all [/]
annotator_message_q | 2021-10-19 18:02:59.146194+00:00 [info] <0.1222.0> accepting AMQP connection <0.1222.0> (172.18.0.4:38926 -> 172.18.0.2:5672)
annotator_message_q | 2021-10-19 18:02:59.147546+00:00 [info] <0.1222.0> connection <0.1222.0> (172.18.0.4:38926 -> 172.18.0.2:5672): user 'user' authenticated and granted access to vhost '/'
annotator_message_q | 2021-10-19 18:02:59.156665+00:00 [info] <0.1233.0> accepting AMQP connection <0.1233.0> (172.18.0.4:38928 -> 172.18.0.2:5672)
annotator_message_q | 2021-10-19 18:02:59.158153+00:00 [info] <0.1233.0> connection <0.1233.0> (172.18.0.4:38928 -> 172.18.0.2:5672): user 'user' authenticated and granted access to vhost '/'
annotator_workers | [2021-10-19 18:02:59,160: INFO/MainProcess] Received task: workers.tasks.thumbnails.thumbnail_generate_single_image[ad75c6b7-8e95-4e76-9186-6783c7a13bdf]
annotator_workers | [2021-10-19 18:02:59,161: INFO/ForkPoolWorker-6] emitting event "taskProgress" to all [/]
annotator_workers | [2021-10-19 18:02:59,162: INFO/ForkPoolWorker-6] Task workers.tasks.scan.scan_dataset[39239d04-ac3e-405c-882a-6ae50b0b44ec] succeeded in 0.06322081200050889s: None
annotator_workers | [2021-10-19 18:02:59,164: ERROR/ForkPoolWorker-5] Task workers.tasks.thumbnails.thumbnail_generate_single_image[ad75c6b7-8e95-4e76-9186-6783c7a13bdf] raised unexpected: error("OpenCV(4.0.0) /io/opencv/modules/imgproc/src/color.cpp:181: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'\n",)
annotator_workers | Traceback (most recent call last):
annotator_workers | File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 382, in trace_task
annotator_workers | R = retval = fun(*args, **kwargs)
annotator_workers | File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 641, in __protected_call__
annotator_workers | return self.run(*args, **kwargs)
annotator_workers | File "/workspace/workers/tasks/thumbnails.py", line 8, in thumbnail_generate_single_image
annotator_workers | image.thumbnail()
annotator_workers | File "/workspace/database/images.py", line 105, in thumbnail
annotator_workers | pil_image = self.generate_thumbnail()
annotator_workers | File "/workspace/database/images.py", line 143, in generate_thumbnail
annotator_workers | image = self().draw(color_by_category=True, bbox=False)
annotator_workers | File "/workspace/database/images.py", line 181, in __call__
annotator_workers | image = im.Image.from_path(self.path)
annotator_workers | File "/usr/local/lib/python3.6/site-packages/imantics/image.py", line 46, in from_path
annotator_workers | image_array = cv2.cvtColor(brg, cv2.COLOR_BGR2RGB)
annotator_workers | cv2.error: OpenCV(4.0.0) /io/opencv/modules/imgproc/src/color.cpp:181: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'
annotator_workers |
annotator_webclient | [2021-10-19 18:03:04 +0000] [12] [DEBUG] GET /api/dataset/data
annotator_webclient | [2021-10-19 18:03:04 +0000] [12] [DEBUG] GET /api/admin/users
annotator_webclient | [2021-10-19 18:03:04 +0000] [12] [DEBUG] GET /api/image/168
annotator_webclient | [2021-10-19 18:03:10 +0000] [12] [DEBUG] GET /api/dataset/7/data
annotator_webclient | [2021-10-19 18:03:10 +0000] [12] [DEBUG] GET /api/image/172
annotator_webclient | [2021-10-19 18:03:10 +0000] [12] [DEBUG] GET /api/image/175
annotator_webclient | [2021-10-19 18:03:10 +0000] [12] [DEBUG] GET /api/image/176
annotator_webclient | [2021-10-19 18:03:10 +0000] [12] [DEBUG] GET /api/image/174
annotator_webclient | [2021-10-19 18:03:10 +0000] [12] [DEBUG] GET /api/image/179
annotator_webclient | [2021-10-19 18:03:10 +0000] [12] [DEBUG] GET /api/image/168
annotator_webclient | [2021-10-19 18:03:10 +0000] [12] [DEBUG] GET /api/image/170
annotator_webclient | [2021-10-19 18:03:10 +0000] [12] [DEBUG] GET /api/image/173
annotator_webclient | [2021-10-19 18:03:10 +0000] [12] [DEBUG] GET /api/image/171
annotator_webclient | [2021-10-19 18:03:10 +0000] [12] [DEBUG] GET /api/image/177
annotator_webclient | [2021-10-19 18:03:10 +0000] [12] [DEBUG] GET /api/image/178
annotator_webclient | [2021-10-19 18:03:11 +0000] [12] [DEBUG] GET /api/image/169
annotator_webclient | [2021-10-19 18:03:24 +0000] [12] [DEBUG] GET /api/image/178
annotator_webclient | [2021-10-19 18:03:24 +0000] [12] [DEBUG] GET /api/annotator/data/178
annotator_message_q | 2021-10-19 18:03:29.695750+00:00 [info] <0.1259.0> accepting AMQP connection <0.1259.0> (172.18.0.5:60724 -> 172.18.0.2:5672)
annotator_message_q | 2021-10-19 18:03:29.697169+00:00 [info] <0.1259.0> connection <0.1259.0> (172.18.0.5:60724 -> 172.18.0.2:5672): user 'user' authenticated and granted access to vhost '/'
annotator_webclient | [2021-10-19 18:03:29 +0000] [12] [INFO] ravery has started annotating image 178
annotator_webclient | [2021-10-19 18:03:47 +0000] [12] [DEBUG] POST /api/annotator/data
annotator_workers | [2021-10-19 18:03:47,295: INFO/MainProcess] Received task: workers.tasks.thumbnails.thumbnail_generate_single_image[7161cbb4-d8cc-4bf1-99fb-54045b2cc00c]
annotator_webclient | [2021-10-19 18:03:47 +0000] [12] [DEBUG] GET /api/category/data
annotator_workers | [2021-10-19 18:03:49,185: INFO/ForkPoolWorker-3] Task workers.tasks.thumbnails.thumbnail_generate_single_image[7161cbb4-d8cc-4bf1-99fb-54045b2cc00c] succeeded in 1.8892460210045101s: None
annotator_webclient | [2021-10-19 18:03:49 +0000] [12] [DEBUG] GET /api/dataset/data
annotator_webclient | [2021-10-19 18:03:49 +0000] [12] [DEBUG] GET /api/admin/users
annotator_webclient | [2021-10-19 18:03:50 +0000] [12] [DEBUG] GET /api/dataset/7/data
annotator_webclient | [2021-10-19 18:03:50 +0000] [12] [DEBUG] GET /api/image/169
annotator_webclient | [2021-10-19 18:03:50 +0000] [12] [DEBUG] GET /api/image/179
annotator_webclient | [2021-10-19 18:03:50 +0000] [12] [DEBUG] GET /api/image/176
annotator_webclient | [2021-10-19 18:03:50 +0000] [12] [DEBUG] GET /api/image/178
annotator_webclient | [2021-10-19 18:03:50 +0000] [12] [DEBUG] GET /api/image/170
annotator_webclient | [2021-10-19 18:03:50 +0000] [12] [DEBUG] GET /api/image/172
annotator_webclient | [2021-10-19 18:03:50 +0000] [12] [DEBUG] GET /api/image/173
annotator_webclient | [2021-10-19 18:03:50 +0000] [12] [DEBUG] GET /api/image/175
annotator_webclient | [2021-10-19 18:03:50 +0000] [12] [DEBUG] GET /api/image/174
annotator_webclient | [2021-10-19 18:03:50 +0000] [12] [DEBUG] GET /api/image/177
annotator_webclient | [2021-10-19 18:03:50 +0000] [12] [DEBUG] GET /api/image/168
annotator_webclient | [2021-10-19 18:03:50 +0000] [12] [DEBUG] GET /api/image/171
annotator_webclient | [2021-10-19 18:03:52 +0000] [12] [INFO] ravery has started annotating image 177
annotator_webclient | [2021-10-19 18:03:52 +0000] [12] [DEBUG] GET /api/image/177
annotator_webclient | [2021-10-19 18:03:52 +0000] [12] [DEBUG] GET /api/annotator/data/177
annotator_webclient | [2021-10-19 18:04:18 +0000] [12] [DEBUG] POST /api/annotator/data
annotator_workers | [2021-10-19 18:04:18,702: INFO/MainProcess] Received task: workers.tasks.thumbnails.thumbnail_generate_single_image[29a78fd9-225b-4479-8897-faa97438ab91]
annotator_webclient | [2021-10-19 18:04:18 +0000] [12] [DEBUG] GET /api/category/data
annotator_workers | [2021-10-19 18:04:20,563: INFO/ForkPoolWorker-6] Task workers.tasks.thumbnails.thumbnail_generate_single_image[29a78fd9-225b-4479-8897-faa97438ab91] succeeded in 1.8602032380003948s: None
annotator_webclient | [2021-10-19 18:04:39 +0000] [12] [DEBUG] POST /api/category/
annotator_webclient | [2021-10-19 18:04:39 +0000] [12] [DEBUG] GET /api/category/data
annotator_webclient | [2021-10-19 18:04:43 +0000] [12] [DEBUG] GET /api/dataset/data
annotator_webclient | [2021-10-19 18:04:43 +0000] [12] [DEBUG] GET /api/admin/users
annotator_webclient | [2021-10-19 18:04:44 +0000] [12] [DEBUG] GET /api/dataset/7/data
annotator_webclient | [2021-10-19 18:04:44 +0000] [12] [DEBUG] GET /api/image/175
annotator_webclient | [2021-10-19 18:04:44 +0000] [12] [DEBUG] GET /api/image/178
annotator_webclient | [2021-10-19 18:04:44 +0000] [12] [DEBUG] GET /api/image/172
annotator_webclient | [2021-10-19 18:04:44 +0000] [12] [DEBUG] GET /api/image/176
annotator_webclient | [2021-10-19 18:04:44 +0000] [12] [DEBUG] GET /api/image/170
annotator_webclient | [2021-10-19 18:04:44 +0000] [12] [DEBUG] GET /api/image/168
annotator_webclient | [2021-10-19 18:04:44 +0000] [12] [DEBUG] GET /api/image/177
annotator_webclient | [2021-10-19 18:04:44 +0000] [12] [DEBUG] GET /api/image/171
annotator_webclient | [2021-10-19 18:04:44 +0000] [12] [DEBUG] GET /api/image/179
annotator_webclient | [2021-10-19 18:04:44 +0000] [12] [DEBUG] GET /api/image/169
annotator_webclient | [2021-10-19 18:04:44 +0000] [12] [DEBUG] GET /api/image/174
annotator_webclient | [2021-10-19 18:04:44 +0000] [12] [DEBUG] GET /api/image/173
annotator_webclient | [2021-10-19 18:04:46 +0000] [12] [INFO] ravery has started annotating image 177
annotator_webclient | [2021-10-19 18:04:46 +0000] [12] [DEBUG] GET /api/annotator/data/177
annotator_webclient | [2021-10-19 18:04:52 +0000] [12] [DEBUG] POST /api/annotator/data
annotator_workers | [2021-10-19 18:04:52,080: INFO/MainProcess] Received task: workers.tasks.thumbnails.thumbnail_generate_single_image[2e683c46-b95b-4938-9701-d6b073d4e217]
annotator_webclient | [2021-10-19 18:04:52 +0000] [12] [DEBUG] GET /api/category/data
annotator_workers | [2021-10-19 18:04:53,887: INFO/ForkPoolWorker-5] Task workers.tasks.thumbnails.thumbnail_generate_single_image[2e683c46-b95b-4938-9701-d6b073d4e217] succeeded in 1.806443692999892s: None
annotator_webclient | [2021-10-19 18:05:08 +0000] [12] [DEBUG] PUT /api/category/10
annotator_webclient | [2021-10-19 18:05:08 +0000] [12] [DEBUG] GET /api/category/data
annotator_webclient | [2021-10-19 18:05:10 +0000] [12] [DEBUG] GET /api/dataset/data
annotator_webclient | [2021-10-19 18:05:10 +0000] [12] [DEBUG] GET /api/admin/users
annotator_webclient | [2021-10-19 18:05:16 +0000] [12] [DEBUG] POST /api/dataset/7
annotator_webclient | [2021-10-19 18:05:16 +0000] [12] [DEBUG] GET /api/dataset/data
annotator_webclient | [2021-10-19 18:05:16 +0000] [12] [DEBUG] GET /api/admin/users
annotator_webclient | [2021-10-19 18:05:16 +0000] [12] [DEBUG] GET /api/dataset/7/data
annotator_webclient | [2021-10-19 18:05:17 +0000] [12] [DEBUG] GET /api/image/168
annotator_webclient | [2021-10-19 18:05:17 +0000] [12] [DEBUG] GET /api/image/176
annotator_webclient | [2021-10-19 18:05:17 +0000] [12] [DEBUG] GET /api/image/179
annotator_webclient | [2021-10-19 18:05:17 +0000] [12] [DEBUG] GET /api/image/170
annotator_webclient | [2021-10-19 18:05:17 +0000] [12] [DEBUG] GET /api/image/178
annotator_webclient | [2021-10-19 18:05:17 +0000] [12] [DEBUG] GET /api/image/175
annotator_webclient | [2021-10-19 18:05:17 +0000] [12] [DEBUG] GET /api/image/173
annotator_webclient | [2021-10-19 18:05:17 +0000] [12] [DEBUG] GET /api/image/169
annotator_webclient | [2021-10-19 18:05:17 +0000] [12] [DEBUG] GET /api/image/171
annotator_webclient | [2021-10-19 18:05:17 +0000] [12] [DEBUG] GET /api/image/177
annotator_webclient | [2021-10-19 18:05:17 +0000] [12] [DEBUG] GET /api/image/172
annotator_webclient | [2021-10-19 18:05:17 +0000] [12] [DEBUG] GET /api/image/174
annotator_webclient | [2021-10-19 18:05:19 +0000] [12] [INFO] ravery has started annotating image 177
annotator_webclient | [2021-10-19 18:05:19 +0000] [12] [DEBUG] GET /api/annotator/data/177
annotator_webclient | [2021-10-19 18:05:27 +0000] [12] [DEBUG] POST /api/annotation/
annotator_webclient | [2021-10-19 18:05:27 +0000] [12] [INFO] ravery has created an annotation for image 177 with None
annotator_webclient | [2021-10-19 18:05:27 +0000] [12] [INFO] ravery has created an annotation for image 177
annotator_message_q | 2021-10-19 18:05:53.393125+00:00 [erro] <0.1195.0> closing AMQP connection <0.1195.0> (172.18.0.4:38880 -> 172.18.0.2:5672):
annotator_message_q | 2021-10-19 18:05:53.393125+00:00 [erro] <0.1195.0> missed heartbeats from client, timeout: 60s
annotator_message_q | 2021-10-19 18:05:59.161145+00:00 [erro] <0.1233.0> closing AMQP connection <0.1233.0> (172.18.0.4:38928 -> 172.18.0.2:5672):
annotator_message_q | 2021-10-19 18:05:59.161145+00:00 [erro] <0.1233.0> missed heartbeats from client, timeout: 60s
annotator_webclient | [2021-10-19 18:06:06 +0000] [12] [INFO] Socket connection has been disconnected with ravery
annotator_webclient | [2021-10-19 18:06:46 +0000] [12] [DEBUG] Closing connection.
annotator_message_q | 2021-10-19 18:06:53.272156+00:00 [erro] <0.1181.0> closing AMQP connection <0.1181.0> (172.18.0.5:60602 -> 172.18.0.2:5672):
annotator_message_q | 2021-10-19 18:06:53.272156+00:00 [erro] <0.1181.0> missed heartbeats from client, timeout: 60s
annotator_webclient | [2021-10-19 18:07:46 +0000] [12] [DEBUG] GET /