[App Server] Anvil.pdf.render_form does not work

We have installed an anvil open source package on our own server now.

Most things work fine, bute “anvil.pdf.render_form does not work.”

We get this error:

Chrome: [0506/100020.730946:ERROR:gpu_init.cc(426)] Passthrough is not supported, GL is egl

Can you help please?
Ewald

####### Details:

Client Code:

pdf = anvil.server.call('create_pdf',self.text_box_artikel.text, self.text_box_stueckzahl.text, self.new_gridresults, form_details)
download(pdf)

Server Code:

@anvil.server.callable
def create_pdf(stueck, article_number, ordered_items, form_details):
pdf = anvil.pdf.render_form(“Form_PDF”,stueck, article_number, ordered_items, form_details)
return pdf

Installed in an Ubuntu 20.10 VM on Proxmox.

I installed it following the instruchtions from:

We added this too:sudo
apt-get update
sudo apt-get install -y libappindicator1 fonts-liberation
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb
sudo apt --fix-broken install
sudo apt-get install ghostscript

Command line output from anvil-app-server

Printing…
Encoding…
Generated PDF of 239365 bytes
Compressing PDF…
/usr/bin/ps2pdf -dPDFSETTINGS=/default /tmp/tmp1b2cny1v /tmp/tmpyrmb6_70
Compressed PDF to 178538 bytes
Responding…
PDF returned.
Chrome: [0506/100020.730946:ERROR:gpu_init.cc(426)] Passthrough is not supported, GL is egl
EOFError while reading worker stdout. This should not have happened.
Server code exited unexpectedly: 45e0292691 (IDs client-7kfzXpE07ITHVp8efoSdOQ==)
Worker terminated for IDs {‘client-7kfzXpE07ITHVp8efoSdOQ==’} (return code None)
******* Chrome terminated *******
1 children reaped

This is the key problem:
Its seems the anvil server needs a gpu:

Passthrough is not supported, GL is egl

Hi @e.ulrich,

That error is nonfatal in our experience - and, indeed, according to that output trace, the media object has already been returned by the PDF renderer. What error are you seeing in the calling code?