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

gevent.exceptions.InvalidThreadUseError #1074

Open
Baokangwen opened this issue Nov 5, 2024 · 8 comments
Open

gevent.exceptions.InvalidThreadUseError #1074

Baokangwen opened this issue Nov 5, 2024 · 8 comments

Comments

@Baokangwen
Copy link

@beenje @olofsvensson @pkeller @tbn @AKastner
Dear everyone,

I have the following problem in the process of configuring MXCUBE, I have tried many methods, I don't know how to do it, have you ever encountered this situation, what changes should I make to the program?

image

Thank you for your reply.

Best regards,
kven

@beteva
Copy link
Member

beteva commented Nov 5, 2024

Dear @Baokangwen, the error message you report is not explicit enough to understand your problem. One can only see that you are using the exporter protocol for your device and that the device is still busy. As the error says cannot read image, this leads to think that you are using the exporter protocol to read you OAV image, but I can only speculate on this. Please, be more explicit and show not only all the trace, but also what device you have the error with and the xml configuration of this device.

@marcus-oscarsson
Copy link
Member

Hi @Baokangwen, could you give us some more context, what are you trying to do when this happens ? What version of mxcubecore are you using ? It seems to be some sort of gevent issue.

@Baokangwen
Copy link
Author

Dear @beteva @marcus-oscarsson,

Attached is my run log file.I am using the latest MXCUBE version.

mxcube3.log

Best regard,
kven

@Baokangwen
Copy link
Author

Dear @marcus-oscarsson @beteva,
As shown in the image below, the Beamline attri (id) of MotorAdapter is shown as none, I found that the name of the HO filename is also wrong, I don't have the xml file tox, my file is called dtox.xml.
058abc880583f8acfd6aa27ff768460
Thanking you for your reply.

@marcus-oscarsson
Copy link
Member

You perhaps have a typo in your beamline.yml or detector.xml file, look for tox in those files ?

@Baokangwen
Copy link
Author

You perhaps have a typo in your beamline.yml or detector.xml file, look for tox in those files ?

Thank you marcus,this problem was successfully resolved.

@Baokangwen
Copy link
Author

Dear @Baokangwen, the error message you report is not explicit enough to understand your problem. One can only see that you are using the exporter protocol for your device and that the device is still busy. As the error says cannot read image, this leads to think that you are using the exporter protocol to read you OAV image, but I can only speculate on this. Please, be more explicit and show not only all the trace, but also what device you have the error with and the xml configuration of this device.

@ Dear betava
I had this issue when I was getting a video stream from the MD2 camera.
Just like the image below.
b83471e4ee8e02c4f9473c6288e0f6a
If the data is obtained correctly, it should look like this.
981b1e2d970a439478519df9244d003
Do you know how to solve this problem?

@marcus-oscarsson
Copy link
Member

Sorry for taking sometime to answer, we have all been on Christmas holidays :). I assume that you are using Tango to communicate with the camera is that correct ?. Is this in a hardware object or in the mxcube-video-streamer project ?

The numbers in the last screenshot somehow looks correct, its binary data. What would you like to do with this data ?

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