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

Error with CCP4Module when loading data #427

Open
mgaonach opened this issue Sep 17, 2024 · 1 comment
Open

Error with CCP4Module when loading data #427

mgaonach opened this issue Sep 17, 2024 · 1 comment

Comments

@mgaonach
Copy link

Hello,

I am getting an error when loading data into moorhen, please see screenshot bellow for trace.

This error seems to happen randomly. If it appears and I reload the page, it will not always appear again.

It happens when automatically loading data from a MTZ and PDB file URL using the methods defined here:
https://gitlab.esrf.fr/icat/icat-edm-viewer/-/blob/main/src/moorhen/data.ts?ref_type=heads
they are called from there:
https://gitlab.esrf.fr/icat/icat-edm-viewer/-/blob/main/src/moorhen/MoorhenContainer.tsx?ref_type=heads

The error seems to happen when calling functions on window.CCP4Module which is undefined at the time of the error, but is defined when I log it into the console myself (see screenshot).
This makes me think that I am probably calling the data loading methods too soon, sometimes before it is properly initialized.
But I am using the cootInitialized state selector so I don't know why this happens.

Probably I am missing something, do you have any idea what?

Thanks for the help!

Full trace + CCP4Module log:
moorhenlogs

First error:
1

Second error:
2

@stuartjamesmcnicholas
Copy link
Contributor

Sorry, I have not been monitoring this forum recently. Many apologies, the person who used to look after it has left the project. I will look into this asap.

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

2 participants