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 read properties of undefined (reading 'graphicType') #256

Open
imedia3 opened this issue Nov 26, 2024 · 4 comments
Open

Cannot read properties of undefined (reading 'graphicType') #256

imedia3 opened this issue Nov 26, 2024 · 4 comments

Comments

@imedia3
Copy link

imedia3 commented Nov 26, 2024

Getting errors when trying to Draw ROI's:

An unexpected error occured in the App component

Cannot read properties of undefined (reading 'graphicType')

Component Stack:

TypeError: Cannot read properties of undefined (reading 'graphicType') at n.value (https://slim.url/static/js/687.0c899362.chunk.js:1:123697) at Fl (https://slim.url/static/js/main.336fd26c.js:2:238843) at Nl
(https://slim.url/static/js/main.336fd26c.js:2:238639) at Cu (https://slim.url/static/js/main.336fd26c.js:2:282298) at bc
(https://slim.url/static/js/main.336fd26c.js:2:270269) at gc (https://slim.url/static/js/main.336fd26c.js:2:270197) at mc
(https://slim.url/static/js/main.336fd26c.js:2:270060) at oc (https://slim.url/static/js/main.336fd26c.js:2:266840) at ac
(https://slim.url/static/js/main.336fd26c.js:2:265391) at E (https://slim.url/static/js/main.336fd26c.js:2:301646)

What's Been Done:

  1. git clone https://github.com/ImagingDataCommons/slim/ slim && cd slim

  2. Connected to Orthanc/DICOMweb in public/configs/local.js
    image

  3. Started the application with: docker compose up -d --build OR yarn start

  4. Accessed the Web UI, opened a study (any), and attempted to draw an ROI.
    Result: The UI crashed with multiple pop-up errors.
    Example:
    image

Is it a Bug, or we do wrong something? Few days ago it was working fine and I was able to draw ROIs (actually I had problems before some fixes on Nginx reverse-proxy for Orthanc side, but now without any changes it's stopped to work

@pedrokohler
Copy link
Collaborator

@imedia3 can you share the console logs of and right before the error occurs?

@pedrokohler
Copy link
Collaborator

@imedia3 if you could share a couple of sample studies where this happens it would also be very helpful.

@imedia3
Copy link
Author

imedia3 commented Nov 28, 2024

@pedrokohler

  1. Entered any study,
  • the Network tab has only 200/Finished/and two 304 statuses on all 3 described steps
    image
  1. Now I click "Draw ROI" > Choosing Polygon (result is not depends on chose) > Clicking on "picture" leads to Pop-up error on each click, as below
    image
  2. If I finishing drawing ROI, the page shown as crashed, as below, with this console output:
    image

Some new details,

  • at the same time all ROI's work without errors in another, stage environment under nginx reverse-proxy, with exact same config and data source, it seems stable for few days.
  • in Dev env (which is issue about), it worked from the deploy, then stopped to work without any actions, it is proxied by Caddy, tried to play with headers, no result.
  • 3rd case is in another environment, with 100% different orthanc/dicomWeb data. Proxied with Nginx too. ROI worked few days, then unexpectedly stopped to work with same errors mentioned above, but after 1 day of unavailability it started to work again, without Any actions to Nginx or Slim docker images (even no restarts)

@fedorov
Copy link
Member

fedorov commented Nov 28, 2024

@imedia3 unfortunately, the resources we have available for maintenance of Slim are very limited right now. The only project that is funding Slim maintenance at this time is Imaging Data Commons, where the main use case is support of visualization of images and annotations hosted via Google Healthcare DICOMweb implementation. Creation of annotations is not a feature we are actively using or maintaining at this time. We are actively looking for opportunities to secure resources to allow us to do more. We can spend only minimal time trying to investigate this issue, and @pedrokohler did that.

You are welcome to contribute to Slim by submitting a PR if you manage to identify and address the underlying issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants