You are not logged in.

#1 2020-06-30 22:07:08

longbow_archer
Member
Registered: 2015-09-07
Posts: 11

asciiew: X Error of failed request

I'm trying to convert a jpg image to ascii art by using asciiview. However it is throwing 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:  7
  Current serial number in output stream:  8

I have aalib installed. I also installed xorg-fonts-misc but nothing happened.

  • aview version 1.3.0_rc1

  • aalib version 1.4rc5

The program works flawlessly in virtual terminals but not inside X environment.


Live long and prosper.

Offline

#2 2020-07-01 07:22:02

ondoho
Member
Registered: 2013-04-30
Posts: 692
Website

Re: asciiew: X Error of failed request

I don't know where the program 'asciiview' is at.
Have you tried jp2a, im2a or aview instead?

Offline

#3 2020-07-01 12:17:44

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,516
Website

Re: asciiew: X Error of failed request

Asciiview is just a wrapper for aview from the aur package aview.  The error is with aview itself - I just freshly built and installed it and got the same error.  Given that upstream developement stopped on a "release candidate" 20 years ago and has done nothing since, I suspect it is unlikely that they will provide a fix.  As noted above, there are much better alternatives available for the conversion.  And there is no need for an ascii image converter to try to include it's own x11 viewer.  Once converted to text/ascii, you can just print it in a terminal or open in any text editor.

One major benefit of the alternatives is they have options to preserve the color (using ansi color escape codes, or some have options to generated color styled html text).  Asciiview/aview converts to PNM first which is just grayscale.

Last edited by Trilby (2020-07-01 12:19:38)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2020-07-01 18:59:29

longbow_archer
Member
Registered: 2015-09-07
Posts: 11

Re: asciiew: X Error of failed request

Thank you everyone for your kind replies. However I am very embarassed to tell you that simply rebooting the system after installing xorg-fonts-misc solved the issue. I should have done that before making the post. Again, thank you.


Live long and prosper.

Offline

#5 2020-07-01 19:02:53

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,516
Website

Re: asciiew: X Error of failed request

That does seem sufficient to fix it here as well - the AUR package should be fixed to include th proper dependencies.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB