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

xrtGlow fails to load a new xml after working with a previous one #20

Closed
kklmn opened this issue May 30, 2018 · 1 comment
Closed

xrtGlow fails to load a new xml after working with a previous one #20

kklmn opened this issue May 30, 2018 · 1 comment
Assignees

Comments

@kklmn
Copy link
Owner

kklmn commented May 30, 2018

Load BioXAS_Main.xml, put the virtual screen, close xrtGlow, load another xml.

QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined
Traceback (most recent call last):
File "....\xrt\gui\xrtQook_init.py", line 3366, in blRunGlow
self.blViewer.updateOEsList(self.rayPath)
File "....\xrt\gui\xrtGlow_init.py", line 687, in updateOEsList
self.changeColorAxis(None)
File "....\xrt\gui\xrtGlow_init.py", line 983, in changeColorAxis
self.customGlWidget.populateVerticesArray(self.segmentsModelRoot)
File "....\xrt\gui\xrtGlow_init.py", line 2116, in populateVerticesArray
self.populateVScreen()
File "....\xrt\gui\xrtGlow_init_.py", line 3655, in populateVScreen
vColorArray <= self.selColorMax,
TypeError: '<=' not supported between instances of 'float' and 'NoneType'

@yxrmz
Copy link
Collaborator

yxrmz commented May 30, 2018

It's because the virtual screen is still on, but the rest of the beamline doesn't exist. A temporary workaround would be to disable the virtual screen before loading the beamline XML.

@yxrmz yxrmz self-assigned this May 30, 2018
yxrmz pushed a commit that referenced this issue May 30, 2018
Open virtual screen tried to redraw with empty/None values when a new
XML layout was loading.
@kklmn kklmn closed this as completed May 31, 2018
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