Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux Build issues #46

Open
tank-trax opened this issue Jul 10, 2020 · 5 comments
Open

Linux Build issues #46

tank-trax opened this issue Jul 10, 2020 · 5 comments

Comments

@tank-trax
Copy link

I was able to build magenta-studio standalone app on Debian Stretch in the past but have never been able to on Debian Buster

yarn -v
1.22.4

npm -v
6.14.5

node -v
v14.5.0

I decided to try again and am still encountering problems. The first is this when trying to run any of the apps for example

./Continue

Returns this error:

The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure ~/dev/magenta-studio/dist/linux-standalone-1.0.0/Continue-linux-x64/chrome-sandbox is owned by root and has mode 4755.
sudo chmod 4755 chrome-sandbox 
sudo chown root:root chrome-sandbox

does not resolve it

However running

sudo sysctl kernel.unprivileged_userns_clone=1

will allow the program to run but now presents a new error...

./Continue

(Continue:10932): Gtk-WARNING **: 14:37:45.092: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version

(Continue:10932): Gtk-WARNING **: 14:37:45.092: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version

(Continue:10932): Gtk-WARNING **: 14:37:45.092: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version
[10961:0710/143745.332715:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command

in the command line and this pop up

Screenshot_20200710_011802

@tank-trax
Copy link
Author

Another thing I noticed is building using npm gives a white screen that cannot be dragged.

Screenshot_20200710_144225

Building using yarn displays a screen that matches my desktop theme and is draggable

Screenshot_20200710_144139

As well (must use ALSA to JACK bridge) the yarn version connects to audio whereas the npm build does not

@DarkRTA
Copy link

DarkRTA commented Sep 3, 2020

The latest commit where electron was bumped 5 major versions broke this.

I get the same error message but window actually renders, however the choose file button is completely broken.

if i revert to c76f20c, everything works as expected.

@tank-trax
Copy link
Author

The latest commit where electron was bumped 5 major versions broke this.

I get the same error message but window actually renders, however the choose file button is completely broken.

if i revert to c76f20c, everything works as expected.

I reverted to this commit c76f20c and it successfully built on Linux and runs without error
Thanks @DarkRTA

@xnghu
Copy link

xnghu commented Jan 12, 2021

I ran into similar issues, using Debian. although I'm currently running sid so i have:
npm -v
7.3.0

node -v
v15.5.1

reverting to c76f20c did not work for me i still get the unmovable white box

@tank-trax
Copy link
Author

tank-trax commented Feb 20, 2023

@xnghu

I ran into the same issue however was able to build the standalone apps on Debian 11 successfully again, no white screen or errors and all apps functional

It's important to use Node.js v14.x as the other versions won't work.

to have a clean sweep I deleted the following folders

~/.node-gyp/
~/.npm/
~/.electron/

and cleared ~/.cache using bleachbit

I was able to install on another system without having to clean folders, however it was a fresh install

next step.... install Node.js v14.x:

If Using Ubuntu

curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash - &&\
sudo apt-get install -y nodejs

If Using Debian, as root (sudo -i)

curl -fsSL https://deb.nodesource.com/setup_14.x | bash - &&\
apt-get install -y nodejs

Verify versions, should be similar to....

npm -v
6.14.10

node -v
v14.21.3
git clone https://github.com/magenta/magenta-studio.git
cd magenta-studio
git checkout c76f20c
npm install
npm run build linux-standalone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants