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.

delayed app-ready event

See original GitHub issue

We see traces in which Electron takes a very long time to to receive the app-ready event. Because we cannot do anything useful before that happens it blocks startup badly. AV software is suspected to be causing this.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

7reactions
devils2ndselfcommented, Nov 28, 2020

so I’ve been having having this issue with delayed appready event (it has been taking around 16-17 seconds as the startup performance was saying) for quite some time and I’ve been struggling with finding a correct solution (it didn’t even go away after I uninstalled every bit of AV software on my laptop). but thank god, eventually I found what the problem was. apparently, if you have a somewhat recently released laptop, it will most probably have “nahimic” audio drivers. I actually haven’t found a way to uninstall it (maybe installing a different audio driver will do but I haven’t tried yet) but ending the “nahimicService” task in the task manager solves the problem for me.

3reactions
landonthcommented, Jul 13, 2021

I also have this issue. i was led here from https://github.com/microsoft/vscode/issues/127909. Nahimic Service is enabled by default on many Asus computers, and other makes. Disabling a service manually is not really an acceptable solution and in my case it gets reenabled regularly by system updates. And it can’t be uninstalled without also removing your onboard audio drivers. (manually extracting installing .inf drivers to work around this isn’t a real solution either as aside from being super hacky and disables many features, it’s impossible to unpack the inf files from many installers these days.) Very strange that it would cause this kind of interference though Nahimic Service is known to cause issues with other applications, e.g. it can cause SideFX Houdini to crash at random.

Even if there is nothing that can be done to eliminate this issue directly from the VScode developers or indirectly the Electron developers (I have no idea if where the onus lies), it should be clearly documented as a possible issue (as it is in SideFX Houdini troubleshooting docs) and perhaps even a warning issued in vscode if the Nahimic Service is detected since it is so detrimental, it makes vscode nearly unusable as there is a 10 second delay with EVERY file opened, it’s not just a delay of initial app startup which is bad enough.

Very likely that this often goes unreported as it doesn’t completely block VScode from working, it just gives the (very false) impression that VScode and/or the user’s computer is a stinking hot unoptimized piece of garbage. So it’s work looking into to try and remedy that false perception alone on every single Asus computer in existence and any others that have Nahimic bundle with their audio drivers. Again i’m not blaming VScode for this, it’s more likely something nasty that Nahimic is doing but it is also puzzling why certain applications like VScode are somehow severely affected and interfered with while most others are not.

Cheers

Read more comments on GitHub >

github_iconTop Results From Across the Web

ApplicationReadyEvent (Spring Boot 3.0.1 API)
Event published as late as conceivably possible to indicate that the application is ready to service requests. The source of the event is...
Read more >
App 'Ready for Sale' but not avail… | Apple Developer Forums
The new version of our app has been 'Ready for Sale' for 21 hours but is still not available in the app store....
Read more >
AppReadiness Service and Black Screen
In the event viewer the following error is associated with each black screen: "A timeout (30000 milliseconds) was reached while waiting for a ......
Read more >
Creating A Pre-Bootstrap Loading Screen With ... - GitHub Gist
I initialize the app ready event service. constructor( messageService: MessageService ) {. this.messageService = messageService;.
Read more >
How to Enable or Disable App Readiness Service in Windows ...
... and its path to executable is C:\WINDOWS\System32\svchost.exe -k AppReadiness -p. ... the pieces of information are being recorded into Event Log.
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