FIX: A JavaScript error occurred in the main process


Teodor Nechita
by Teodor Nechita
Author
Loading Comments
Affiliate Disclosure

If you’re an avid user of online chatting apps such as Skype or Discord, there’s a chance you may encounter an error that sounds something like this:

This error doesn’t happen for a specific reason, but thankfully all the solutions are fairly simple to follow.

What causes this JavaScript error?

  • Your program or its settings may have gone corrupt
  • The Quality Windows Audio Video Experience service is deactivated
  • Your app runs with administrator permissions

How to fix JavaScript error in main processes?

1. Re-install your program

In this first situation, your program‘s installation is faulty, so you either have to reset its settings or re-install the app.

To do this, just follow the steps below:

  1. Press Windows + I
  2. Type in Skype
  3. Select Right-click it
  4. Select Uninstall
  5. Once that is finished, download the latest version again form the publisher’s website.

2. Delete your program’s folders from %AppData folder

This is similar to the steps above, except you manually delete all of the program‘s data from your PC.

  1. Open the Windows Explorer
  2. You can do this by pressing Windows + E
  3. Select This PC
  4. Navigate to the this location on your PC
  5. C:UsersYOURUSERNAMEAppDataYOURPROGRAMNAME
  6. Right-click the program‘s folder
  7. Select Delete

If you get an error message stating that the program can’t be deleted because it is in use, enter the Task manager and end it first.

3. Start Quality Windows Audio Video Experience service automatically

  1. Press Windows + R
  2. Type in services.msc
  3. Scroll down the list until you see Quality Windows Audio Video Experience
  4. Right-click it and select Properties
  5. In the Startup Type drop-down menu, select Automatic

 

There is a slight chance you may get an error labeled:

Windows could not start the service on Local Computer. Error 1079: The account specified for this service differs from the account specified for other services running in the same process.

If this happens, proceed as folowing:

  1. Press Windows + R
  2. Type in services.msc
  3. Scroll down the list until you see Quality Windows Audio Video Experience
  4. Right-click it and select Properties
  5. Go to the Log On tab
  6. Click the Browse button
  7. You’ll see an entry box labeled Enter the object name to select
  8. Type your Microsoft Windows account’s name in it
  9. Press Check Names
  10. Wait for your name to pop up and press Ok
  11. Type in your Windows account’s password in the Password box

4. Run your program without administrative privileges

  1. Locate your program‘s executable
  2. Right-click it and press Properties
  3. Go to the Compatibility tab
  4. Uncheck the box next to Run this program as an administrator
  5. Press Ok

The issue should now be solved.