Skip to content

GUI (wx?) problem on Linux dists #114

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

Open
briantoby opened this issue Dec 5, 2024 · 5 comments
Open

GUI (wx?) problem on Linux dists #114

briantoby opened this issue Dec 5, 2024 · 5 comments
Assignees
Labels
APS Bug or need identified/requested by APS user/staff bug Something isn't working In progress this is being addressed but is not complete

Comments

@briantoby
Copy link
Collaborator

The python distribution provided for Linux is not working properly, at least on some dists of Linux. This has been seen on RHEL 7.9 & 9.4 and also Ubuntu 22.04. What happens is that X11 graphics will "hang" particularly when working with textctrl widgets. Sometimes this message is seen:
image
but not always.

Some improvement is seen with an older version of Python, but spotless behavior was seen after installing Ubuntu's Python along with Python packages from Ubuntu.

One thing worth trying is use of wxpython via pip rather than from conda-forge.

@briantoby briantoby added bug Something isn't working APS Bug or need identified/requested by APS user/staff In progress this is being addressed but is not complete labels Dec 5, 2024
@briantoby briantoby self-assigned this Dec 5, 2024
@briantoby
Copy link
Collaborator Author

briantoby commented Dec 18, 2024

Here is GSAS-II running with Linux & wxpython from conda-forge, It shows the app hanging after I have changed text in a wx.TextCtrl

LinuxBug.mp4

FWIW, Same problems on RHEL 7.9 & 9.4.
FWIW, same bug using conda-forge Python and wxpython 4.2.2 installed from pip on RHEL 9.5.

Here is the same app (running exactly the same code) but using Python installed with apt-get on Ubuntu using their Python, wx, mpl, etc.

LinuxWorks.mp4

Here this runs fine..

The image I use is this:
bright_1s_000759.pxrd.h5_ave_1s_norm.tif.zip (N.B. This is a "16 bit Pixirad" TIF file.) Here is a .gpx file
with the image
.

@briantoby
Copy link
Collaborator Author

This does appear to be a problem arising from our own code, even though it seems to be Linux specific (and not even on all Python versions). The customized wx.TextCtrl class we use seems to be causing this.

briantoby added a commit that referenced this issue Dec 22, 2024
…rocess of replacing TextCtrl.SetValue to .ChangeValue in callbacks
@briantoby
Copy link
Collaborator Author

The SetFocus in the SetValue method of ValidatedTxtCtrl seemed to be causing problems, but another much more pervasive problem is that the calls to .SetValue for routines being used as a callback to a ValidatedTxtCtrl widget were causing recursion issues.

@briantoby
Copy link
Collaborator Author

maybe, just maybe, this is solved in a6ec664.

@lcgallington
Copy link

We are experiencing this problem again on a RHEL 9 machine at 1-ID.

@briantoby briantoby reopened this Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APS Bug or need identified/requested by APS user/staff bug Something isn't working In progress this is being addressed but is not complete
Projects
None yet
Development

No branches or pull requests

2 participants