HumanSignal / HumanSignal/label-studio

[mobx-state-tree] errors with 1.7.2 on openshift

Open
#4,053 3 comments 1 reaction 1 assignee Claimed by @makseq View on GitHub
installation problem
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

Using 1.7.2 I am no longer able to get Labelstudio working properly on openshift with the redhat image.
The specific issue is the following:
Registering/Logging in/ creating projects/ Importing data in a project... everything works fine.
But the moment I try to label the imported data, I get a frontend error:

```
Uncaught (in promise) Error:
[mobx-state-tree] Cannot resolve a reference to type 'AnonymousModel' with id: 'image#0' unambigously,
there are multiple candidates:
/annotationStore/root/children/1/imageEntities/0,
/annotationStore/annotations/0/root/children/1/imageEntities/0,
/annotationStore/annotations/0/root/children/1/imageEntities/1
```

I also tried importing Data using the API.
Importing Tasks with embedded links ( tags ) for pdfs, it works fine. But with image files the issue persists. After aborting the labeling task and routing to the projects overview page, I get the following frontend warning:

```
Error:
[mobx-state-tree] You are trying to read or write to an object that is no longer part of a state tree.
(Object type: 'TabStore', Path upon death: '/viewsStore', Subpath: 'selected', Action: '').
Either detach nodes first, or don't use objects after removing / replacing them in the tree.
```

I have not seen those errors being mentioned anywhere before. Since 1.7.2 seems to work fine for everyone else and also has no issues working for me locally, I suspect it has to be openshift related?

**To Reproduce**
Steps to reproduce the behavior:
1. Deploy on openshift using redhat image (hard to reproduce since openshift...)
2. create Project and Upload Data
3. try to label data
4. See error

**Environment (please complete the following information):**
- Openshift Pod OS Information:
```
NAME="Red Hat Enterprise Linux"
VERSION="8.7 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.7"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.7 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
```

- Label Studio Version 1.7.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.