Code Monkey home page Code Monkey logo

Comments (7)

shiftkey avatar shiftkey commented on July 17, 2024

Some quick notes:

  • yarn test depends on yarn build:prod because that generates an executable app - the CI platforms all do this, but maybe we should make that clearer when working locally?
  • I'm not clear on why yarn start might be unresponsive after a while - any interesting output in the dev tools or console?
    yarn build package is not the right command to run - it should be yarn run package

from desktop.

joaomlneto avatar joaomlneto commented on July 17, 2024
  • yarn test depends on yarn build:prod because that generates an executable app - the CI platforms all do this, but maybe we should make that clearer when working locally?

yarn build:prod && yarn test runs fine.

This is not clear from documentation/scripts.

I'm new to yarn; just followed half-blindly whatever was in the documentation. :)

yarn build package is not the right command to run - it should be yarn run package

Correct! My bad.

  • I'm not clear on why yarn start might be unresponsive after a while - any interesting output in the dev tools or console?

Nope (the dev console is also unresponsive
screenshot 2018-09-18 at 15 45 54

$ yarn build:dev && yarn start:

$ yarn start
yarn run v1.9.4
$ cross-env NODE_ENV=development ts-node -P script/tsconfig.json script/start.ts
Server running at http://localhost:3000
ℹ 「atl」: Using [email protected] from typescript
ℹ 「atl」: Using tsconfig.json from /home/joaomlneto/Documents/GitHub/desktop/tsconfig.json
ℹ 「atl」: Checking started in a separate process...
ℹ 「atl」: Time: 7261ms
webpack built 8baef21181dbaed8f9f9 in 19744ms
info: [ui] [AppStore] loading 0 repositories from store
debug: [ui] Executing installGlobalLFSFilter: git lfs install --skip-repo
info: [ui] launching: 1.4.1-beta0 (Linux 4.15.0-34-generic)
info: [ui] execPath: '/home/joaomlneto/Documents/GitHub/desktop/dist/desktop-linux-x64/desktop'

<hangs>

from desktop.

shiftkey avatar shiftkey commented on July 17, 2024

Are you able to reproduce the hang with the electron-quick-start sample? If so, I'm happy to help submit an issue upstream and see if the core team has an idea about diagnosing it...

from desktop.

joaomlneto avatar joaomlneto commented on July 17, 2024

Can't reproduce it. Works fine:

$ git clone https://github.com/electron/electron-quick-start \
&& cd electron-quick-start && npm install && npm start
  • First time it worked fine (i let the app be for a few minutes before i touched it). ✅
  • Second time i messed a bit with it and opened dev tools and shortly after it hanged. ❌
  • Third time I just messed with the menus (without selecting any option) and ❌
  • Fourth time i just opened the dev console (ctrl-shift-i) -- ❌
  • Fifth time just played around selecting text and switching back and forth from terminal and ❌

I've been issuing pkill electron between runs.

from desktop.

shiftkey avatar shiftkey commented on July 17, 2024

Which version of electron is it choosing (should be visible if you can run process.versions in the dev tools console)? Can you set this version to "2.0.9" (the latest stable version, and one we'll hopefully upgrade Desktop to soon) and see if it's still repeatable?

from desktop.

joaomlneto avatar joaomlneto commented on July 17, 2024

Set version to "2.0.9". App still freezes some time after being launched. Can't select text, click menus, nor open/close/use the devtools.

Some Improvements:

  • Ctrl-C in terminal is now able to end the process.
  • Can resize/move window after it hangs (though renders window incorrectly). Cannot use app -- menus/text/devtools aren't clickable.

from desktop.

joaomlneto avatar joaomlneto commented on July 17, 2024

Found a workaround/fix. $ electron --disable-gpu fixes it for me.

electron/electron#12850
electron/electron#13624

Also, I'm running in a VM. Apparently this is an issue:
electron/electron#12380


Instead of running my Linux partition as a VM, I booted it natively -- it works just fine.

Running ELECTRON_ENABLE_LOGGING=1 npm start -- --v=1:

  • fails if in running in VM (VMWare Fusion)
  • succeeds if running natively

Adding --disable-gpu makes it work in VM.

from desktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.