question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Application hangs on `app.start` with version 7+

See original GitHub issue

Currently in the process of evaluating bumping our Spectron version to match the Electron version of an app and am finding that when moving to version 7 app.start never completes. The current version we’re on is Spectron v5 and it’s worked with Electron 3, 4 and 5 without issues; spectron v6 works fine with Electron v5 as well. As soon as the version is bumped to v7 is when this issue manifests.

I’ve even used the bare bones example in the repo to target our distributed binary and the issue is still present. V5 and V6 successfully complete start.app, but v7 and v8 both hang.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:9
  • Comments:9

github_iconTop GitHub Comments

4reactions
spChiefcommented, Oct 11, 2019

add option to you application params: chromeDriverArgs: ['remote-debugging-port=' + Math.floor(Math.random() * (9999 - 9000) + 9000)], It might look like this:

app = new Spectron.Application({
        args: [path.join(__dirname, '..', '..')],
        webdriverOptions: {
            deprecationWarnings: false,
        },
        chromeDriverArgs: ['remote-debugging-port=' + Math.floor(Math.random() * (9999 - 9000) + 9000)],
    });
1reaction
HaNdTriXcommented, Oct 20, 2019

I’ve downgraded to spectron@5.0.0. That version works fine with electron@7.x.x. 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

Preventing Hangs in Windows Applications - Win32 apps
Learn how to prevent hangs in Windows applications for Windows 7 and Windows Server 2008 R2 platforms.
Read more >
Why do my apps keep crashing on Android, How to fix it
1. Force stop the app · 2. Restart the device · 3 . Clear app data · 4. Reinstall the app · 5....
Read more >
Fix an installed Android app that isn't working - Google Support
Try the following steps if an app installed on your phone has any of these problems: Crashing. Won't open. Won't respond. Isn't working...
Read more >
If an app freezes or quits unexpectedly on Mac - Apple Support
If the app quit, reopen it by clicking Reopen in the dialog that appears. Restart your Mac by choosing Apple menu > Restart....
Read more >
Why Do My Apps Keep Crashing on Android? - Avast
Open Settings and select General management. Factory reset settings on a Samsun device are located in General management. · Select Reset.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found