hundredrabbits / Left

Distractionless Writing Tool
http://hundredrabbits.itch.io/left
Other
1.77k stars 141 forks source link

master branch does not build #163

Open roramigator opened 2 years ago

roramigator commented 2 years ago

Error

roramigator@box:~/Left/desktop$ npm install

added 164 packages, and audited 165 packages in 15s

6 packages are looking for funding
  run `npm fund` for details

12 vulnerabilities (7 moderate, 3 high, 2 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
roramigator@box:~/Left/desktop$ npm start

> Left@0.1.0 start
> electron . --disable-gpu

[83127:0609/202740.476494:FATAL:gpu_data_manager_impl_private.cc(986)] The display compositor is frequently crashing. Goodbye.
conner-mcnicholas commented 2 years ago

I'm able to resolve that immediate issue by executing the resolutions suggested by 'npm audit fix':

npm install --save-dev electron@19.0.4 npm install --save-dev electron-packager@15.5.1

Now, 'npm start' successfully launches the app.
But the window is black, and any user input just results in errors. I couldn't isolate the root cause.

lefterr

OhScee commented 1 year ago

Hey, thought I would chime in here since I came across a similar issue M1 mac.

Older versions of Electron are not going to work nicely in my case, so to build properly:

Explanation: it appears that there's some silent conflict with the latest versions of Node and Electron ^7, so you must force yourself to use an older version to execute successfully.

I would highly recommend running npm run build_osx (should build the application in your /Documents directory) and just using the app from there to save yourself from having to go back and forth between node versions to run

Hopefully this helps!

waldmannly commented 1 year ago

On windows, I am able to build with these version in my package.json. Newer version of electron do seem to cause the black screen on start.

  "devDependencies": {
    "electron": "^7.1.12",
    "electron-packager": "^14.2.1"
  },
Unproductivv commented 3 weeks ago

I'm running into the same issue, with a similar error:

[97228:0626/202650.850292:FATAL:gpu_data_manager_impl_private.cc(986)] The display compositor is frequently crashing. Goodbye. Trace/breakpoint trap (core dumped)

Has anyone found a fix for this yet?

(Additional Info: I'm running Linux Mint Cinnamon Edition)