leo / electron-next

Build Electron apps using Next.js
https://github.com/leo/site/blob/beef3a7dc1dfd435a9d8377e3b1b59761ccb7fc7/pages/2017/electron-next.js
MIT License
548 stars 41 forks source link

Electron app freezes quickly after launching on Ubuntu 18.04 #18

Closed Klooven closed 6 years ago

Klooven commented 6 years ago

I recently upgraded from Ubuntu 16.04 to Ubuntu 18.04 (fresh install), and after this my app freezes shortly after launching it for some reason when running through npm start.

I noticed that if I run the program with the VS Code debugger, that seemed to run the app without electron-next (pages didn't get built), everything worked correctly and the app didn't freeze. That's why I believe the problem is on electron-next's side.

Please tell me if you need more information.

Here for reference the important parts of my package.json:

{
  "name": "app",
  "version": "2.0.0",
  "description": "app",
  "main": "main/index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "electron .",
    "build": "next build renderer && next export renderer",
    "dist": "npm run build && echo \"Generate setup\""
  },
  "devDependencies": {
    "axios": "~0.18.0",
    "electron": "^2.0.0",
    "next": "^6.0.2",
    "react": "^16.3.2",
    "react-dom": "^16.3.2",
    "react-form": "^3.5.5"
  },
  "dependencies": {
    "app-root-path": "^2.0.1",
    "electron-is-dev": "^0.3.0",
    "electron-next": "^3.1.4"
  }
}
Klooven commented 6 years ago

After more investigation, I think the problem is in Electron.

jfrux commented 5 years ago

I'm also experiencing this... It only happens for me when I'm running my dev renderer though...

Any tips?

Klooven commented 5 years ago

@jfrux You may find good tips in electron/electron#12850