Question: Bug report. Maple 2025. Error in device driver: plot terminated

I am trying a trial version of Maple 2025 on Linux, since not able to use Maple 2025 on windows (uninstalled it).

Everything was working well, (no UI shuffling at all so far) except now I find I am not able to export plot to PostScript. 

Same code works fine using cmaple.exe on windows. But using cmaple on Linux, it fails.

How does one export a plot using Maple 2025 on linux to PostScript, and it must be using cmaple, since I run everything from command line.

I also made sure I have /home/me/maple2025 and /home/me/maple2025/bin.X86_64_LINUX
 in my Linux $PATH. 

Here is a MW

# A.mpl file

    p:=plot(sin(x),x=-3..3):
    plotsetup(ps, plotoutput="p.ps");
    try
        print(p); 
    catch:        
        plotsetup(default):   
        print(lastexception);
    end try;     

   exit();

I run the above using the command

>/home/me/maple2025/bin.X86_64_LINUX/cmaple A.mpl 

License expires in 14 days
    |\^/|     Maple 2025 (X86 64 LINUX)
._|\|   |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2025
 \  MAPLE  /  All rights reserved. Maple is a trademark of
 <____ ____>  Waterloo Maple Inc.
      |       Type ? for help.
>     p:=plot(sin(x),x=-3..3):
>     plotsetup(ps, plotoutput="p.ps");
>     try
>         print(p); 
>     catch:        
>         plotsetup(default):   
>         print(lastexception);
>     end try;     
cannot locate postscript AFM files
                                                                     0, "Error in device driver: plot terminated"


>     exit();
                                                                                        exit()

> quit
memory used=7.5MB, alloc=41.3MB, time=0.06
>

The problem seems to be due to cannot locate postscript AFM files which I've seen this before and was never been able to get any help on it. I asked about this missing AFM files here many years ago, but can't find the question now searching and no one from Maplesoft seems to know why this happens.

Same exact code works fine on windows under DOS using cmaple.exe.

Any one knows any workaround? I looked at export command but it does not support PostScript.

Without being able to export plots from command line, I can't use Maple 2025 on Linux. So I hope there is a work around. Are these AFM files supposed to come with Maple? Maybe I need to set some path to help Maple find them?

When I google this, it says

So maybe Maple does not ship with AFM files like it does with windows and mac? Where do I get these from and where do I put them on Linux? Why Maplesoft does not mention anything about this in installation instructions for Linux?

Could someone with Maple 2025 on Linux try the above and see if it works for them?

Update

so far, jpeg export works only

>/home/me/maple2025/bin.X86_64_LINUX/cmaple A.mpl
License expires in 14 days
    |\^/|     Maple 2025 (X86 64 LINUX)
._|\|   |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2025
 \  MAPLE  /  All rights reserved. Maple is a trademark of
 <____ ____>  Waterloo Maple Inc.
      |       Type ? for help.
#    p:=plot(sin(x),x=-3..3):
>     plotsetup(jpeg, plotoutput="p.jpeg");
>     try
>         plot(sin(x),x=-3..3);
>     catch:        
>         plotsetup(default):   
>         print(lastexception);
>     end try;     

>     exit();
                                                                                                         exit()

> quit

But can't use jpeg. need ps.

I also copied Maple afm/ to /usr/share/fonts and refreshed font config using fc-cache -fv , and Maple still does not find the AFM font files.  So I have no idea how to make Maple find its own afm/ folder.

 

Update

Version information. I use Linux inside Virtual box. I use Arch based distrubution called endeavouros

cat /etc/os-release
NAME="EndeavourOS"
PRETTY_NAME="EndeavourOS"
ID="endeavouros"
ID_LIKE="arch"


hostnamectl
 Static hostname: me-virtualbox
       Icon name: computer-vm
  Virtualization: oracle
Operating System: EndeavourOS                     
          Kernel: Linux 6.13.8-arch1-1
    Architecture: x86-64
 Hardware Vendor: innotek GmbH
  Hardware Model: VirtualBox
Firmware Version: VirtualBox
   Firmware Date: Fri 2006-12-01
    Firmware Age: 18y 3month 3w 5d   

 

Please Wait...