sld-columbia / esp

Embedded Scalable Platforms: Heterogeneous SoC architecture and IP integration made easy
Other
343 stars 107 forks source link

X11 error for non-root users on CentOS #180

Open SaltedFishLZ opened 2 years ago

SaltedFishLZ commented 2 years ago

Describe the bug ESP config GUI should pop up, but the process freezes or reports the following error if I log in as espuser. But if I switch to root, it can work. I guess it is due to some X11 settings.

To Reproduce Steps to reproduce the behavior:

  1. cd /home/espuser/esp/socs/xilinx-vc707-xc7vx485t
  2. make esp-xconfig

Expected behavior

    CC socgen/grlib/tkparse.o
    CC socgen/grlib/tkcond.o
    CC socgen/grlib/tkgen.o
    LINK socgen/grlib/tkparse
    BUILD socgen/grlib/main.tk
    BUILD socgen/grlib/lconfig.tk
    CHMOD socgen/grlib/lconfig.tk
    DIFF checking .grlib_config...
    INFO Using custom configuration found in ".grlib_config" for GRLIB
    RUN socgen/grlib/grlib_config.vhd
    INFO Creating grlib_config.vhd
    INFO grlib_config.vhd written

Running interactive ESP configuration...
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  25 (X_SendEvent)
  Resource id in failed request:  0xc00003
  Serial number of failed request:  22
  Current serial number in output stream:  22
make: *** [esp-xconfig] Error 1

Screenshots

image

Desktop (please complete the following information):

Additional context Is there any fix to run everything as a non-root user?

TrungNgoc20172869 commented 1 year ago

Describe the bug ESP config GUI should pop up, but the process freezes or reports the following error if I log in as espuser. But if I switch to root, it can work. I guess it is due to some X11 settings.

To Reproduce Steps to reproduce the behavior:

  1. cd /home/espuser/esp/socs/xilinx-vc707-xc7vx485t
  2. make esp-xconfig

Expected behavior

    CC socgen/grlib/tkparse.o
    CC socgen/grlib/tkcond.o
    CC socgen/grlib/tkgen.o
    LINK socgen/grlib/tkparse
    BUILD socgen/grlib/main.tk
    BUILD socgen/grlib/lconfig.tk
    CHMOD socgen/grlib/lconfig.tk
    DIFF checking .grlib_config...
    INFO Using custom configuration found in ".grlib_config" for GRLIB
    RUN socgen/grlib/grlib_config.vhd
    INFO Creating grlib_config.vhd
    INFO grlib_config.vhd written

Running interactive ESP configuration...
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  25 (X_SendEvent)
  Resource id in failed request:  0xc00003
  Serial number of failed request:  22
  Current serial number in output stream:  22
make: *** [esp-xconfig] Error 1

Screenshots image

Desktop (please complete the following information):

  • OS: CentOS 7.9 (20-09)
  • CAD tools versions: Xilinx Vivado 2019.2

Additional context Is there any fix to run everything as a non-root user?

Hi @SaltedFishLZ, I am having the same issue as you but when I run sudo make esp-xconfig, it requires password for espuser. Could you tell me what the password is?