dagoma3d / DagomaBurner

0 stars 1 forks source link

Unable to run on recent distros #3

Open lissyx opened 3 years ago

lissyx commented 3 years ago

Running DagomApp fails on recent systems, reproduced on Ubuntu 20.10 as well as Debian Sid.

STRs:

  1. Download latest package from setup guide of Disco Ultimate
  2. Extract
  3. Try to run with ./DagomApp

Expected: App run

Actual:

alex@portable-alex:~/bin/DagomApp-linux-x64$ LC_ALL=C ./DagomApp 
updateUrl :  https://dist.dagoma.fr/update/diff/DagomApp/1547474566/94c9c7f25dfc313681836fd14d326696

(DagomApp:1610097): Pango-ERROR **: 12:13:18.106: Harfbuzz version too old (1.2.1)

Trappe pour point d'arrêt et de trace (core dumped)

There are multiple reports on the interwebs about similar issues, which seems to be related to the embedded Electron runtime linked against a too old version of libpango compared to what the system can provide.

Workaround (found on some third-party Github issue):

  1. wget https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/23/Everything/x86_64/os/Packages/p/pango-1.38.1-1.fc23.x86_64.rpm
  2. $ mkdir pango-1.38.1-1.fc23.x86_64
  3. $ cd pango-1.38.1-1.fc23.x86_64
  4. pango-1.38.1-1.fc23.x86_64$ rpm2cpio ../pango-1.38.1-1.fc23.x86_64.rpm |cpio -div
  5. LD_LIBRARY_PATH=$PWD/pango-1.38.1-1.fc23.x86_64/usr/lib64 ./DagomApp

Maybe upgrading the Electron runtime can help and/or shipping a new release ?

lissyx commented 3 years ago

FTR this was the only way for me to be able to complete initial setup of my printer, and it worked fine.

lissyx commented 3 years ago

(Looks like rebuilding on recent Electron is limited by V8-level API changes)

Somehow, I don't know why the npm install step does not pick the proper --target=xx from src/package.json, but manually running:

./node_modules/.bin/node-pre-gyp rebuild --target=2.0.18 --runtime=electron --target_arch=x64 --directory=node_modules/serialport/ --update-binary --dist-url=https://electronjs.org/headers

It seems 2.x is the last one API compatible.

0r31 commented 3 years ago

Hi @lissyx ,

I am aware of this issue, will try to update the whole stuff (node version, electron,...) asap.

Regards, Orel

lissyx commented 3 years ago

Hi @lissyx ,

I am aware of this issue, will try to update the whole stuff (node version, electron,...) asap.

Regards, Orel

I tried to get a grasp, but I was lacking of time. I've had my head extensively in node-pre-gyp for shipping deepspeech, there might be things you want to pick from there