label-studio: UI hangs when opening project: uncaught in promise error shown in console

Describe the bug

The UI hangs when opening project: it just shows the Heidi opossum animation walking. In addition, the following error is shown in the console log:

mobx-state-tree.module.js:3128 Uncaught (in promise) Error: [mobx-state-tree] No matching type for union (() | null?) at Do (mobx-state-tree.module.js:3128) at t.instantiate (mobx-state-tree.module.js:5435) ... at $r (mobx-state-tree.module.js:2456) at l (mobx-state-tree.module.js:3617) at A (mobx-state-tree.module.js:3631) Do @ mobx-state-tree.module.js:3128 t.instantiate @ mobx-state-tree.module.js:5435 Here are the backend and console log files: _backend-07sep21.log _console-7sept21.log

To Reproduce

Steps to reproduce the behavior: I’m not quite sure how to reproduce the hangup. We have been using the attached JSON file (combined-204671-205834-206619-admin-corresp.03sep21.new.1.json.txt) for several days with no problem. In addition, this is the first time we encountered the hangup and have been using Label Studio regularly for over a month.

combined-204671-205834-206619-admin-corresp.03sep21.new.1.json.txt

Expected behavior

The system reports an error, so that we can try to fix the data (either via database update or via new import).

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: Ubuntu 18.02
  • Label Studio Version 1.2.0

Additional context Add any other context about the problem here.

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 17 (6 by maintainers)

Most upvoted comments

Got the same behavior with different data.

Hi, just a quick note that the “drop all tabs” tip helped me today. Thank you !

OK, see the attached files: one is a video and the other is the captured log file.

This was invoked as following using the DB attached above (label_studio.sqlite3.gz): label-studio start --port 6666 --data-dir . --database ./label_studio.sqlite3 --no-browser --debug --log-level DEBUG tomasohara-label-stupid-hangup-24sept21.mp4-split-c.gz tomasohara-label-stupid-hangup-24sept21.mp4-split-b.gz tomasohara-label-stupid-hangup-24sept21.mp4-split-a.gz _heidi-hangup-24sept21.log

Shouldn’t that be left open? The issue still remains, and so we are still vulnerable to a potential hangup. (Removing the tabs is just an expedient to make the system usable. )

Thanks very much for the clarification. Max! That’s a quick fix.

Best, Tom

On Thu, Sep 23, 2021 at 4:11 PM Max Tkachenko @.***> wrote:

@tomasohara https://github.com/tomasohara Sorry for the delay. The solution for you:

  1. Go to the broken Project => Settings
  2. Open Danger Zone
  3. Click “Drop All Tabs”

@victor-ab https://github.com/victor-ab Hope this steps help you too.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/heartexlabs/label-studio/issues/1420#issuecomment-926163902, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFCQ2EVOTWD5DAVFYAY7VLUDOJZDANCNFSM5DTDG4FA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

@tomasohara Sorry for the delay. The solution for you:

  1. Go to the broken Project => Settings
  2. Open Danger Zone
  3. Click “Drop All Tabs”

@victor-ab Hope this steps help you too.