Open APRashedAhmed opened 6 years ago
Just found this happening to cxiopr
as well on cxi-console
Might look at this tomorrow
Is there something being added to the environment variables when you change between accounts?
On Wed, Dec 13, 2017 at 9:38 PM Zachary Lentz notifications@github.com wrote:
- Can these users run lightpath directly from the command line outside the gui?
- Are the permissions on any of these executables messed up? The exception here is a PermissionError
Might look at this tomorrow
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/slaclab/skywalker/issues/70#issuecomment-351614020, or mute the thread https://github.com/notifications/unsubscribe-auth/AHzmUQt7-pBdH46aevnW_5xKFIlmKLwvks5tALQ4gaJpZM4RBiaK .
This is not a segfault. Don't scare me like that.
Everything works 100% if you do a conda install for skywalker.
The problem is that our dev checkout did not do a formal conda install. Our temporary launch script doesn't do any path modulation, so running the lightpath
from the shell command widget doesn't have anything on the path to run. For whatever reason, subprocess.Popen
raises a PermissionError
instead of something more helpful.
The fast solution was to hotpatch the temporary launch script. No changes are needed to the skywalker
repo.
The "real" solution will be to include skywalker in the next environment release, so that lightpath
ends up in the conda bin.
Let me know if my fast solution didn't work for you.
I will be making a pydm PR for protecting the subprocess.Popen
command with a try/except block.
PR merged at PyDM. Thank you @ZLLentz
Expected Behavior
Clicking the lightpath button launches the lightpath screen
Current Behavior
Clicking on the lightpath button as myself (
apra
) andamoopr
causes the GUI to seg fault.The message is as follows:
Steps to Reproduce (for bugs)
Your Environment
This initially happened while I was using the GUI as myself. To see if this was just my account, I tried
xcsopr
and thenamoopr
and found thatxcsopr
worked fine whileamoopr
did not.This behavior seems to be account dependent and not machine dependent since I replicated the failure on
psbuild-rhel7-02
,xcs-console
, andamo-console
.