You are not logged in.

#1 2020-08-05 01:45:42

jrpraks
Member
Registered: 2020-08-05
Posts: 5

[Solved]X Error opening plots in xfoil and avl

I've built xfoil, which is a supersonic airfoil analysis tool and avl, which is an fixed wing aircraft stability analysis tool. These tools were both written a combination of C and Fortran 77, and are well trusted tools in aerospace. They both have similar cli interfaces and feature interactive plotting tools. I've successfully built and used each on other (non arch) linux systems, but I am having difficulty getting the plotting functionality to work properly on my (relatively) new arch install.

When I attempt to display a plot in xfoil, I obtain the following error:

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  1 (X_CreateWindow)
  Value in failed request:  0x0
  Serial number of failed request:  8
  Current serial number in output stream:  13

When I attempt to display a plot in avl, I obtain the following error:

X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  45 (X_OpenFont)
  Serial number of failed request:  26
  Current serial number in output stream:  28

Some system specs are:
WM: i3-gaps
CPU: Intel i7-7600U
GPU: Intel HD Graphics 620

I'm not using any window compositor, and I have no other window managers/desktop environments installed. Any help fixing these errors would be appreciated. Thanks!

Last edited by jrpraks (2020-08-05 22:53:53)

Offline

#2 2020-08-05 07:27:30

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [Solved]X Error opening plots in xfoil and avl

Do you use the AUR package?
At least https://aur.archlinux.org/packages/xfoil/ has one patch that prevents an integer overflow.

Offline

#3 2020-08-05 12:36:34

jrpraks
Member
Registered: 2020-08-05
Posts: 5

Re: [Solved]X Error opening plots in xfoil and avl

No, the build failed when I used the AUR package. It looked like gfortran version 10 was flagging something as an error that had previously only been a warning, so I edited the makefiles to use gfortran-9 instead.

I just looked at my other system that I built xfoil on previously, and it looks like I was using gfortran version 7, so I guess I could give that a shot to see if that fixes something.

Offline

#4 2020-08-05 22:49:04

jrpraks
Member
Registered: 2020-08-05
Posts: 5

Re: [Solved]X Error opening plots in xfoil and avl

[Solved]
I'm not 100% sure what I did, but let me explain my methodology. On my last system where I had each of these programs working, I had both i3 and cinnamon installed, so I looked through the dependencies for cinnamon and added the packages that were missing from my current installation that seemed relevant. After rebooting (just to be sure), everything seems to be working.

Offline

#5 2020-08-06 05:15:00

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [Solved]X Error opening plots in xfoil and avl

From the error, the context and some forum history I'm gonna say: some font package?

Offline

#6 2020-08-06 13:59:19

jrpraks
Member
Registered: 2020-08-05
Posts: 5

Re: [Solved]X Error opening plots in xfoil and avl

That was what I thought at first, but installing xorg fonts and related packages didn't seem to fix the problem. If I had to guess, it was one of the dependencies of muffin (cinnamon's wm), which isn't a dependency of i3. I'm not certain of this, but it's my best guess.

Offline

#7 2020-08-06 14:20:56

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [Solved]X Error opening plots in xfoil and avl

Did you install any ttf/otf package?

Offline

#8 2020-08-06 14:34:14

jrpraks
Member
Registered: 2020-08-05
Posts: 5

Re: [Solved]X Error opening plots in xfoil and avl

I don't think so. Unless there were ttf or otf packages that were dependencies of files I did install and didn't notice, the only font files I installed to try to fix this were xorg-fonts-100dpi xorg-fonts-75dpi xorg-fonts-misc xorg-fonts-encodings and xorg-fonts-type1.

Offline

#9 2020-08-06 14:41:11

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [Solved]X Error opening plots in xfoil and avl

On a quick check, muffin would at least pull https://www.archlinux.org/packages/extr … ell-fonts/

pacman -Qs font

"pacman -Qi <package>" tells you why it was installed (and as dep for what)

Offline

Board footer

Powered by FluxBB