Labeling Interface won't finish loading for simple TextArea labeling task with pre-annotation.
Describe the bug The labeling interface on a new project sits at the loading bar for a very long time. It is a sequence-to-sequence labeling tasks, and tasks are loading just fine on another project with much longer text.
To Reproduce Steps to reproduce the behavior:
- This is my interface xml:
<View>
<Text name="source_uri" value="Excel File: $excel_file"/>
<Text name="sheet_name" value="Sheet: $sheet_name"/>
<Header value="Official Fields"/>
<Text name="official_fields" value="$official_fields"/>
<Header value="Extracted Fields"/>
<TextArea name="target_sequence" toName="official_fields" showSubmitButton="true" maxSubmissions="1" editable="true" rows="5" required="true"/>
</View>
- This is a small example task json, with a (fake) prediction to use as pre-annotation:
{'data': {'excel_file': 'Redacted Customer Name',
'sheet_name': 'P&L- Monthly',
'mongo_id': '664e22cdbe7762824cd41056',
'official_fields': "['Revenues', 'Cost of Good Sold', 'Gross Profit', 'Operating Expenses', 'Depreciation & Amortization', 'Operating Income', 'Interest', 'Taxes', 'EBITDA', 'EBITDA Adjustments', 'Adjusted EBITDA']"},
'meta': {},
'annotations': [],
'predictions': [{'model_version': 'claude-3-haiku-20240307',
'result': [{'id': None,
'from_name': 'target_sequence',
'to_name': 'official_fields',
'type': 'textarea',
'value': {'text': ['this is fake and short']}}]}],
'prediction_model': 'claude-3-haiku-20240307',
'id': 0}
**Expected behavior**
The labeling interface should eventually load completely.
**Screenshots**
This is what I see, and it just sits there forever. Notice that all the data seem to be loading, but they're in the background waiting for the progress bar to stop. Again, a simlar task that has large csv files as input texts and very long textarea outputs on a similar project are loading just fine.

**Environment (please complete the following information):**
- OS: Sonoma 14.4.1 is the local machine where the browser is running
- Label Studio is running on a t2.large EC2 box with Ubuntu 22.04.4
- Label Studio Version 1.12.0
**Additional context**
- I can provide an axample from the other project that works if that will help to use as a reference point.
- Label-studio is not running inside a docker container, but there are two other docker lightweight containers running on the same machine
- I have tried rebooting the EC2 instance as well as Label Studio and have done a `docker system prune` just in case there were disk space issues making things hang up. The problem persisted through those initial sniff tests.
Thanks for making this issue @dzornek and sorry to hear the UI is hanging for a long time.
Does it eventually finish loading or does it hang indefinitely? Are there any server logs you can provide? As a first step, can you upgrade to the latest (1.12.1)?
Hi @sajarin, thanks for taking this issue on.
It hangs indefinitely; the longest I've waited before closing out the window is approximately 30 minutes. I have upgraded to 1.12.1, and the issue persists.
Here are the logs going from a fresh start of the server, up until I try to load the task:
System check identified no issues (1 silenced).
June 18, 2024 - 21:34:35
Django version 3.2.25, using settings 'label_studio.core.settings.label_studio'
Starting development server at http://0.0.0.0:8080/
Quit the server with CONTROL-C.
[2024-06-18 21:34:37,452] [django.server::log_message::161] [INFO] "GET / HTTP/1.1" 302 0
[2024-06-18 21:34:37,452] [django.server::log_message::161] [INFO] "GET / HTTP/1.1" 302 0
[2024-06-18 21:34:43,013] [django.server::log_message::161] [INFO] "GET / HTTP/1.1" 302 0
[2024-06-18 21:34:43,013] [django.server::log_message::161] [INFO] "GET / HTTP/1.1" 302 0
[2024-06-18 21:34:53,227] [django.server::log_message::161] [INFO] "GET /api/ml?project=17 HTTP/1.1" 200 2
[2024-06-18 21:34:53,227] [django.server::log_message::161] [INFO] "GET /api/ml?project=17 HTTP/1.1" 200 2
[2024-06-18 21:34:53,234] [django.server::log_message::161] [INFO] "GET /api/projects/17 HTTP/1.1" 200 1883
[2024-06-18 21:34:53,234] [django.server::log_message::161] [INFO] "GET /api/projects/17 HTTP/1.1" 200 1883
[2024-06-18 21:34:53,367] [django.server::log_message::161] [INFO] "GET /api/dm/columns?project=17 HTTP/1.1" 200 4848
[2024-06-18 21:34:53,367] [django.server::log_message::161] [INFO] "GET /api/dm/columns?project=17 HTTP/1.1" 200 4848
[2024-06-18 21:34:53,743] [django.server::log_message::161] [INFO] "GET /api/dm/project?project=17 HTTP/1.1" 200 2067
[2024-06-18 21:34:53,743] [django.server::log_message::161] [INFO] "GET /api/dm/project?project=17 HTTP/1.1" 200 2067
[2024-06-18 21:34:53,754] [django.server::log_message::161] [INFO] "GET /api/users?project=17 HTTP/1.1" 200 1150
[2024-06-18 21:34:53,754] [django.server::log_message::161] [INFO] "GET /api/users?project=17 HTTP/1.1" 200 1150
[2024-06-18 21:34:53,772] [django.server::log_message::161] [INFO] "GET /api/dm/actions?project=17 HTTP/1.1" 200 2104
[2024-06-18 21:34:53,772] [django.server::log_message::161] [INFO] "GET /api/dm/actions?project=17 HTTP/1.1" 200 2104
[2024-06-18 21:34:53,777] [django.server::log_message::161] [INFO] "GET /api/dm/views?project=17 HTTP/1.1" 200 967
[2024-06-18 21:34:53,777] [django.server::log_message::161] [INFO] "GET /api/dm/views?project=17 HTTP/1.1" 200 967
[2024-06-18 21:34:54,141] [django.server::log_message::161] [INFO] "GET /api/tasks?page=1&page_size=30&view=24&project=17 HTTP/1.1" 200 1794
[2024-06-18 21:34:54,141] [django.server::log_message::161] [INFO] "GET /api/tasks?page=1&page_size=30&view=24&project=17 HTTP/1.1" 200 1794
[2024-06-18 21:35:02,330] [django.server::log_message::161] [INFO] "GET /api/projects/17/label-stream-history?project=17 HTTP/1.1" 200 2
[2024-06-18 21:35:02,330] [django.server::log_message::161] [INFO] "GET /api/projects/17/label-stream-history?project=17 HTTP/1.1" 200 2
[2024-06-18 21:35:02,338] [django.server::log_message::161] [INFO] "GET /api/tasks/2436?project=17 HTTP/1.1" 200 1547
[2024-06-18 21:35:02,338] [django.server::log_message::161] [INFO] "GET /api/tasks/2436?project=17 HTTP/1.1" 200 1547
/home/ubuntu/.local/lib/python3.10/site-packages/rest_framework/pagination.py:200: UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object_list: <class 'labels_manager.models.LabelLink'> QuerySet.
paginator = self.django_paginator_class(queryset, page_size)
[2024-06-18 21:35:02,472] [django.server::log_message::161] [INFO] "GET /api/label_links?project=17&expand=label HTTP/1.1" 200 52
[2024-06-18 21:35:02,472] [django.server::log_message::161] [INFO] "GET /api/label_links?project=17&expand=label HTTP/1.1" 200 52
[2024-06-18 21:35:07,446] [django.server::log_message::161] [INFO] "GET / HTTP/1.1" 302 0
[2024-06-18 21:35:07,446] [django.server::log_message::161] [INFO] "GET / HTTP/1.1" 302 0
[2024-06-18 21:35:13,031] [django.server::log_message::161] [INFO] "GET / HTTP/1.1" 302 0
[2024-06-18 21:35:13,031] [django.server::log_message::161] [INFO] "GET / HTTP/1.1" 302 0