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

It just won't work - first, "Arial font" error, then "GPU process" error. #37

Open
FrankieFalzon opened this issue Apr 10, 2023 · 2 comments

Comments

@FrankieFalzon
Copy link

I was very interested in this program, it sounded very promising, and I wanted to try it out very much, but it looks like I have to give up on trying to run it. I tried on Windows Virtual Machine and several Ubuntus (16, 20), even a Pie. Finally, after many versions, one Ubuntu ran it, after hours of updates and upgrades, installing and fixing and updating NPM and Nodejs, NPM electron, others... It finally ran. But the graphics below the sample was missing and there was the error about the font.

url: data:text/html;charset=utf-8, <HTML/> <body style="padding: 8px 0px 0px 8px; background-color:white;"> <span style="padding 0px 0px 0px 0px; font-weight: normal; line-spacing: 0px; word-spacing: 0px; white-space: pre; margin: 0; font-size: 32px; font-family:'Arial'">a</span><span style="padding 0px 0px 0px 0px; margin: 0; color: blue; font-size: 32px; font-family:'Arial'">█</span> </body> </HTML>

A hint here suggested to open the file main.ts and change "sandbox: true" to "sandbox: false" - that made the error disappear, but now there is another one.

(node:27185) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[27185:1226/123022.939019:FATAL:gpu_data_manager_impl_private.cc(439)] GPU process isn't usable. Goodbye.

And that's it, there's no way around that. Looks like that's the end of trying out the program.

@nilbuz
Copy link

nilbuz commented Oct 22, 2023

edit package.json in the root directory, change the line

"start": "npm run build && electron ./dist/main.js"
to
"start": "npm run build && electron --in-process-gpu ./dist/main.js"

@str4int
Copy link

str4int commented Jan 14, 2024

@nilbuz unfortunatelly is not working. npm start fail with this change.
best

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