Что делать если пишет a javascript error occurred in the main process

Причины появления ошибки JavaScript error occurred in the main process в программах Skype, Faceit и Discord. Как исправить ошибку JavaScript error occurred in the main process на Windows 7 и выше

09.03.2020

Просмотров: 46230

На компьютере с Windows 7, 8 и 10 при запуске программы Skype, Faceit и Discord может появиться ошибка JavaScript error occurred in the main process, которая свидетельствует о повреждении системных файлов, отключении нужной службы или о необходимости применения прав Администратора. Решение данной ошибки достаточно простое. Однако для каждой программы будут отличаться некоторые рекомендации.

Читайте также: Как исправить ошибку 0xc0000906 на Windows 7 при запуске игр и приложений?

Методы решения ошибки JavaScript error occurred in the main process

Если при запуске программы Skype, Faceit и Discord на вашем ПК возникла ошибка JavaScript error occurred in the main process, то в первую очередь нужно снять задачу в Диспетчере задач. Для этого нужно нажать на Панели задач провой кнопкой мыши и выбрать «Запустить Диспетчер задач».

Далее переходим во вкладку «Процессы» и завершаем процессы, которые связаны с программой, при запуске которой вылетает ошибка.

После того, как задачи к приложениям были сняты, нужно очистить папки программ с кэшем. Для этого нужно нажать «Win+R», чтобы вызвать окно «Выполнить» и ввести %appdata%.

Находим папку программы, при запуске которой возникает ошибка JavaScript error occurred in the main process и удаляем её.

 

Теперь в окне «Выполнить» необходимо ввести %localappdata% и также найти и удалить директорию, принадлежащую сбойной программе. После этого перезагружаем систему. Программа сама создаст нужные папки.

В случае, если после удаления данных папок ошибка не исчезла, рекомендуем полностью удалить программу и установить её заново, только с применением прав Администратора. Для этого нужно нажать на ярлыке софта правой кнопкой мыши и вызвать «Свойства». Далее переходим во вкладку «Совместимость» и ставим галочку «Выполнить запуск от имени Администратора».

В случае, если такая ошибка возникала в программе Skype, то проблема может крыться в отсутствии браузера Internet Explorer, который нужен для нормальной работы некоторых функций Windows. В данном случае рекомендуем выполнить следующие действия:

  • Открываем «Проводник», нажимаем на кнопке «Удалить или изменить программу».

  • Появиться окно с установленными программами. В меню слева выбираем «Включение или отключение компонентов Windows».

  • Появиться небольшое окно. Нужно найти браузер Internet Explorer. Возле него должна стоять отметка. Смотрим также версию программы. Для нормальной работы Скайпа нужен Internet Explorer 11.

  • Если у вас версия браузера ниже, то нужно обновить операционную систему, включив ту версию браузера, которая есть. Если же вы обновили Windows, но версия браузера не изменилась, то можно перейти на официальный сайт Майкрософт и скачать Internet Explorer 11. Обращаем внимание на разрядность программы. Нужно скачать софт в соответствии с разрядностью своей Windows.
  • Устанавливаем программу, обязательно обновляем сам Скайп.

Если ошибка и после данных манипуляций не была исправлена, то пробуем перерегистрировать файл dll. Для этого советуем открыть командную строку с правами Администратора и ввести regsvr32 jscript.dll.

Перезагружаем систему, чтобы изменения вступили в силу и проверяем, исправлена ли ошибка.

Также на зарубежных форумах пользователи указывали, что ошибка A JavaScript error occurred in the main process появлялась по причине неверной работы службы Quality Windows Audio Video Experience. Исправить неполадку удалось путем изменения типа запуска службы с ручного на автоматический. Для этого нужно нажать «Win+R» и ввести «services.msc». Находим службу.

Двойным кликом открываем окно службы и меняем тип запуска.

Перезагружаем систему и проверяем, появляется ли ошибка или нет.

Если исправить ошибку A JavaScript error occurred in the main process вышеуказанными способами не удалось, рекомендуем проверить систему на вирусы и выполнить восстановление системы с помощью контрольной точки или установочного диска.

При запуске программ как Discord, Skype или Faceit может появится сообщение об ошибке «A JavaScript error occurred in the main process» в Windows 10/8.1/7. В большинстве случаях ошибка может возникать из-за повреждение самой программы, отключена служба Audio Video Experience или когда программа запускается с правами администратора.

A JavaScript error occurred in the main process

Удаление параметров для Discord, Skype или Faceit

Discord или Faceit

Шаг 1. Откройте диспетчер задач нажав сочетание кнопок Ctrl+Shift+Esc. Найдите в писке программу, которая выдает ошибку «A JavaScript error occurred in the main process«, выделите её и ниже нажмите на «Снять задачу«, чтобы завершить процесс данной программы.

диспетчер задач diskort

Шаг 2. Нажмите сочетание кнопок Win+R и введите %appdata%, чтобы быстро открыть расположение временных файлов программ. Найдите папку с именем программы, в данном случае diskort, и удалите её.

удалить папку в Roaming

Шаг 3. Нажмите снова Win+R и введите %localappdata%, найдите папку с именем программы, которая выдает ошибку JavaScript и удалите её. Обратите внимание, что папка Diskort называется в точности, в отличие от Faceit, где есть на конце app.

папки в Local

Skype

В программе скайп тоже может возникнуть ошибка «A JavaScript error occurred in the main process«. Это связано с тем, что нужен Internet Explorer 11, а в Windows 7 его нет, там последняя версия 8. Некоторые пользователи пытаются удалить этот браузер даже в Windows 10 не понимая того, что это не совсем браузер, и он отвечает за работу некоторых системных функций. Вы должны выполнить следующие действия:

channel

  1. Скачать последнюю версию Skype с официального сайта.
  2. Установить Internet Explorer 11 с официального сайта.
  3. Если вы обновили Internet Explorer с 8 до последней версии, то его нужно сбросить. Нажмите сочетание кнопок Win+R и введите inetcpl.cpl, чтобы быстро открыть свойства интернета. Перейдите во вкладку «Дополнительно» и «Сброс…«. (рис. 1).
  4. Перейдите во вкладку «Безопасность» и нажмите «Другой…«. В списке найдите «Активные сценарии» и Включить. (рис. 2).

Сброс параметров интернета

включить сценарии

Служба Quality Windows Audio Video Experience

Изменение типа запуска службы качества Quality Windows Audio Video Experience с «Вручную» на «Автоматически» позволяет устранить ошибку JavaScript для многих пользователей.

Нажмите Win+R и введите services.msc, чтобы быстро открыть службы. В списке служб найдите Quality Windows Audio Video Experience и щелкните по ней два раза, чтобы открыть свойства. Нажмите «Остановить«, если она работает, далее выберите тип запуска «Автоматически» и «Запустить«.

Quality Windows Audio Video Experience тип запуска авто

Запустите программу без прав администратора

Найдите исполняемый файл программы, которая выдает ошибку «A JavaScript error occurred in the main process» и нажмите по ней правой кнопкой мыши и выберите «Свойства». Перейдите во вкладку «Совместимость» и уберите галочку «Запускать эту программу рот имени админа«.

запустить Diskort без прав админа

Перерегистрируйте DLL файл JavaScript

Регистрация DLL файла JavaScript с помощью встроенного Regsvr.exe может помочь. Откройте командную строку от имени администратора и введите:

  • regsvr32 jscript.dll

регистрация DLL JavaScript


Смотрите еще:

  • Ошибка 0xc0000135 при запуске игры или программы 
  • Исправить ошибку 0xc0000906 при запуске приложения 
  • Ошибка 0xc0000022 при запуске Игр и Программ
  • Ошибка Windows Script Host при запуске Windows 10
  • Ошибка при запуске приложения 0xc0000142 в Windows 10

[ Telegram | Поддержать ]


Download Article


Download Article

If you’re seeing an error that says «a JavaScript error occurred in the main process» or «a fatal JavaScript error occurred» when trying to open or install Discord, there are several potential fixes. While these fixes are designed to resolve this error on Discord, they should work to resolve similar errors in other apps, including Microsoft Teams. We’ll show you how to troubleshoot JavaScript errors for Discord, Microsoft Teams, and other Windows 10 apps.

  1. Image titled Fix a Javascript Error in Windows 10 Step 1

    1

    Open your antivirus or antimalware software. If you’re unable to install Discord or another app on your PC because of a JavaScript error, such as «a JavaScript error occurred in the main process,» your antivirus software may be blocking the installer. You can fix this by adding an exclusion for the installer.

    • If you’re using Windows Security, which comes for free with Windows, type security into the search bar and then click Windows Security.
    • The remaining steps will cover unblocking an installer with Windows Security, but your antivirus suite may have different menu options.
  2. Image titled Fix a Javascript Error in Windows 10 Step 2

    2

    Go to the Virus and threat protection area. This gives you a general overview of your antivirus settings.

    Advertisement

  3. Image titled Fix a Javascript Error in Windows 10 Step 3

    3

    Click Manage settings. This opens the settings for your antivirus protection.

  4. Image titled Fix a Javascript Error in Windows 10 Step 4

    4

    Add an exclusion for the Discord installer. If you’re using Windows Security, click Add an exclusion, select File, and then open your download folder and select DiscordSetup.exe (or the name of the installer you’re trying to run).

  5. Image titled Fix a Javascript Error in Windows 10 Step 5

    5

    Run the installer again. Once you’ve allowed the installer to run, you should resolve JavaScript errors that occur during installation.

  6. Advertisement

  1. Image titled Fix a Javascript Error in Windows 10 Step 6

    1

    Close Discord (or the app you’re trying to fix). If you get a JavaScript error when trying to launch or install Discord or another app, the application data may be corrupt. If the app is running right now, you’ll want to close it so you can properly delete and reinstall it. Make sure it’s not minimized to your taskbar.

    • To be sure it’s closed, press Control + Alt + Delete and click Task Manager. If you see a that the app is running, click to select it, and then click End Task.[1]
    • Even if you’ve only tried installing the app and were not successful, you should still use this method before you try to install again.
  2. Image titled Fix a Javascript Error in Windows 10 Step 7

    2

    Press Win+S. This activates the Windows search bar.

  3. Image titled Fix a Javascript Error in Windows 10 Step 8

    3

    Type %appdata% and press Enter. This opens a File Explorer window to your application data.

  4. Image titled Fix a Javascript Error in Windows 10 Step 9

    4

    Permanently delete the folder for the app you’re trying to fix. For example, if you’re trying to fix Discord, you’ll want to delete the «Discord» folder. Here’s how:

    • Click the folder once to select it. Don’t open the folder—just select it for now.
    • Hold down the Shift key as you press Delete.
    • Click Yes.
  5. Image titled Fix a Javascript Error in Windows 10 Step 10

    5

    Press Win+S. This activates the Windows search bar again.

  6. Image titled Fix a Javascript Error in Windows 10 Step 11

    6

    Type %LocalAppData% and press Enter. This opens a File Explorer window to your local app data.

  7. Image titled Fix a Javascript Error in Windows 10 Step 12

    7

    Permanently delete the app’s folder here as well. Just hold down the Shift key as you press Delete, and then confirm deletion.

    • If you don’t see this folder, just skip this step.
  8. Image titled Fix a Javascript Error in Windows 10 Step 13

    8

    Uninstall Discord (or the app in question) from your PC. Here’s how:

    • Open the Windows menu and click the Settings gear.
    • Go to Apps > Apps & features.
    • Select the app and click Uninstall. If you don’t see the app here, just move to the next step.
    • Click Uninstall to confirm.
  9. Image titled Fix a Javascript Error in Windows 10 Step 14

    9

    Reinstall the app. If you’re reinstalling Discord, you can download the installer from https://discord.com/download. Once downloaded, double-click the installer and follow the on-screen instructions—this should fix just about all installation errors.

  10. Advertisement

  1. Image titled Fix a Javascript Error in Windows 10 Step 15

    1

    Open your Windows Settings

    Image titled Windowssettings.png

    . If you’re getting an error that says «a JavaScript error occurred in the main process» when trying to install Microsoft Teams, this may indicate a problem with the C++ libraries installed on your PC.[2]

    • While this method is known to work for Teams, it may also resolve the same issue in other apps.
  2. Image titled Fix a Javascript Error in Windows 10 Step 16

    2

    Click Apps. This opens the Settings panel to the Apps list.

  3. Image titled Fix a Javascript Error in Windows 10 Step 17

    3

    Click Apps & Features. This option is in the left panel.[3]

  4. Image titled Fix a Javascript Error in Windows 10 Step 18

    4

    Click the latest version of Microsoft Visual C++. You’ll probably see several instances of Visual ++ here—you’ll want to click the one that has the most recent date.

  5. Image titled Fix a Javascript Error in Windows 10 Step 19

    5

    Click Change or Advanced options. You should see one of these two options here.

  6. Image titled Fix a Javascript Error in Windows 10 Step 20

    6

    Click Repair. This performs a few repair steps to the C++ libraries.

    • If prompted, enter your administrator password to confirm.
  7. Image titled Fix a Javascript Error in Windows 10 Step 21

    7

    Try running the installer again. This should resolve most JavaScript installation errors with Microsoft Teams on Windows 10.

  8. Advertisement

  1. Image titled Fix a Javascript Error in Windows 10 Step 22

    1

    Close Discord (or the app you’re trying to fix). If you get a JavaScript error when trying to start Discord or another app, certain processes may be failing because they need more permissions. If the app is running right now, you’ll want to close it. Make sure it’s not minimized to your taskbar.

    • To be sure it’s closed, press Control + Alt + Delete and click Task Manager. If you see a process for the app running, click to select it, and then click End Task.
  2. Image titled Fix a Javascript Error in Windows 10 Step 23

    2

    Right-click the Discord icon on your desktop or in the Windows menu. A menu will expand.

  3. Image titled Fix a Javascript Error in Windows 10 Step 24

    3

    Click Open file location. If you don’t see this option, you may have to click More first. This takes you to the app’s install location.

  4. Image titled Fix a Javascript Error in Windows 10 Step 25

    4

    Double-click the latest version of Discord. If you’ve run a few Discord updates, you may have several folders beginning with app- and ending with a number. Double-click the one with the most recent version number.

    • If you’re trying to fix a different app, you’ll usually see that app right here in the folder you’ve opened. If not, look around for a file with the app’s name—it may end with «.exe.»
  5. Image titled Fix a Javascript Error in Windows 10 Step 26

    5

    Right-click the app and select Properties. Properties for the selected app will appear.

  6. Image titled Fix a Javascript Error in Windows 10 Step 27

    6

    Click the Compatibility tab. It’s at the top of the window.

  7. Image titled Fix a Javascript Error in Windows 10 Step 28

    7

    Check the box next to «Run this program as an administrator.» This gives the app permission to everything on your PC, which may clear up issues caused by access rights.

  8. Image titled Fix a Javascript Error in Windows 10 Step 29

    8

    Click OK. This saves your changes.

  9. Image titled Fix a Javascript Error in Windows 10 Step 30

    9

    Start Discord or your preferred app normally. Now that you’ve set the app to run as an administrator, starting it by double-clicking its icon on your desktop or in the Windows menu will run it with elevated privileges.

  10. Advertisement

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

Thanks for submitting a tip for review!

About This Article

Article SummaryX

1. Unblock the installer in your antivirus software.
2. Try deleting the app’s folders in AppData and LocalAppData and then reinstalling.
3. Repair the latest version of Microsoft Visual C++ in Apps & Features.
4. Run the app as an administrator.

Did this summary help you?

Thanks to all authors for creating a page that has been read 16,618 times.

Is this article up to date?

Ошибка JavaScript error occurred in the main process появляется по причине некорректной работы Discord – программы для голосового общения. Появляется ошибка JavaScript error occurred in the main process на экране пользователя в случае того, если поврежден или отсутствует файл программы Discord.

Содержание

  • Причины ошибки JavaScript error occurred in the main process
  • Способы решения JavaScript error occurred in the main process
    • Способ №1 Обновление Discord
    • Способ №2 Полная переустановка Discord
    • Способ №3 Проверка антивирусом

Причины ошибки JavaScript error occurred in the main process

  • Конфликт Discord с другим программным обеспечением на ПК;
  • старая версия Discord удалена не полностью;
  • устаревшие компоненты Windows;
  • наличие вируса.

Способы решения JavaScript error occurred in the main process

Способ №1 Обновление Discord

Одной из причин появления ошибки является отсутствие необходимого обновления в программе Discord. В случае отключенного автоматического обновления, вам необходимо обновить Discord вручную, а для этого нужно сделать следующее:

  • откройте Диспетчер задач и отключите все процессы с именем Discord;
  • нажмите Windows+R и введите %AppData%;
  • откройте папку «AppData», а затем откройте папку «Local»;
  • откройте папку с именем Discord;
  • запустите файл исполнительный файл Update.exe.

После обновления Discord убедитесь в отсутствии возникновения проблемы.

Способ №2 Полная переустановка Discord

  • Откройте Диспетчер задач и отключите все процессы с именем Discord;
  • откройте Панель управления, перейдите в раздел Программы и компоненты и удалите ПО Discord;
  • откройте папку «AppData», далее откройте папку «Local» и полностью удалите папку «Discord»;
  • откройте папку «AppData», далее откройте папку «Roaming» и полностью удалите папку «Discord;
  • повторно установите программу Discord.

Полная переустановка Discord устраняет ошибку JavaScript error occurred in the main process.

Способ №3 Проверка антивирусом

Для того чтобы проверить программу Discord на наличие вредоносного ПО, откройте Диспетчер задач, отключите все процессы с именем Discord и запустите Антивирус. Во избежание появления подобной ошибки открывайте программу от имени администратора. Надеемся, что данная статья была вам полезна в устранении ошибки JavaScript error occurred in the main process.

A JavaScript Error Occurred in the Main Process

Updated February 2023: Stop these error messages and fix common problems with this tool. Get it now at this link

  1. Download and install the software.
  2. It will scan your computer for problems.
  3. The tool will then fix the issues that were found.

A special error “A JavaScript Error Occurred in the Main Process“, occurs when users try to run one of the above programs. The window contains more information about the error, but ordinary users can not interpret the message correctly, so the details are useless.

The “A JavaScript Error Occurred in the Main Process” error appears, as mentioned, on both devices, and the problem is particularly related to the program. Users call the Slack app, the Discord program, and Microsoft commands causing problems and triggering an error in window message.

Windows users get the error message “Exception not caught” – a JavaScript error has occurred in the underlying process. It is triggered when trying to run certain apps in Windows 10, including the messaging apps Discord and Skype.

The main reason for this error is not entirely clear, but the main reason could be that the application, its database, or settings are corrupt.

Error “A JavaScript Error Occurred in the Main Process” in Discord or in Microsoft Teams, other programs that can be fixed with workarounds. Sometimes downloading an application from another source also solves the problem with repeated pop-ups.

It doesn’t matter if the popup occurred with “A JavaScript Error Occurred in the Main Process” since the error occurred in Slack or at another launch of the application, the reason may be the same. Special reasons, which are most often reported, are damaged settings in the program itself, required or disabled administrator rights, old settings.

Cause 1: Damaged application or parameters

  • This is one of the main reasons for the Javascript error that occurred in the main process. Often, these errors occur when an application is misconfigured or when the application is damaged.

Cause 2: Windows AV is not active

  • Many users do not know about this problem. You can find it in the device settings or drivers to check if Windows Audio Video Experience is active. If it isn’t, make sure it’s enabled to solve the problem.

Cause 3: Administrator Privileges

  • Applications often require that you work with administrator rights. This is also one of the reasons why applications such as Skype to Discord display Javascript errors that occur in the main process.

How do I overcome this or fix this Javascript error, which appeared in the main error process? Read this article for possible solutions. We will reveal not one, not two, but four methods of work to fix this Javascript bug. Let’s start discussing the methods without wasting time.

What causes this JavaScript error in Discord?

There are not many identified causes of this problem, and most of the diagnostic methods that you can perform are based on resetting the differences or setting them up in some form or other. However, we have prepared a shortlist which you can read:

The discord or its settings may have been corrupted:

  • In this scenario, the installation of the disk is wrong, so either you reset the settings or you reinstall the application.

Qualitative Windows Audio Video Experience service does not work:

  • This service is necessary for the application as it is closely related to the basic functionality of the program. Make sure that it runs automatically.

Conflicts work with administrator privileges:

  • Conflicts with administrator privileges are known to cause this problem.

When accessing the Conversation app from a computer running Windows 10, you may receive an error message “A javascript error has occurred in the main process”. Damaged Disord files or missing certain audio services may cause this problem on your computer. To solve this problem on your computer, please follow the steps below carefully.

How to fix “A JavaScript Error Occurred in the Main Process”?



Updated: February 2023

This tool is highly recommended to help you fix your error. Plus, this tool offers protection against file loss, malware, and hardware failures, and optimizes your device for maximum performance. If you already have a problem with your computer, this software can help you fix it and prevent other problems from recurring:

  • Step 1 : Install the PC Repair and Optimizer Tool. (Windows 10, 8, 7, XP, Vista).
  • Step 2 : Click Start Scan to determine what problems you are experiencing with your computer.
  • Step 3 : Click Repair Allto resolve all problems.

download

How to fix A JavaScript Error Occurred in the Main Process

Reinstall your program

Reinstall your program

In this first situation, the installation of your program is faulty, so you must either reset or reinstall the application.

Simply follow these steps :

  • Press Windows + I
  • Get into Skype
  • Right-click on the mouse
  • Select Uninstall
  • Once this operation is complete, download the latest version again from the publishers website.

Delete your program folders in the %AppData folder

Delete your program folders in the AppData folder

This procedure is similar to the one described above, except that you manually delete all program data from your PC.

  • Open an explorer window
  • You can do this by pressing Windows + E.
  • Select this PC.
  • Access this location on your PC
  • C:UsersYOURUSERNAMEAppDataYOURPROGRAMNAME
  • Right click on the program folder
  • Select Uninstall.

If you get an error message indicating that the program cannot be uninstalled because it is in use, first log in and out of the Task Manager.

Automatically start the Windows Audio Video Experience service

  • Press windows + R
  • Type services.msc
  • Scroll down the list until you see the Quality of the Windows Audio Video Experience
  • Right-click and select Properties
  • From the “Startup Type” drop-down menu, select “Automatic”.

Automatically start the Windows Audio Video Experience service1

The likelihood of you getting an error flagged as such is slim:

Windows was unable to start the service on the local computer. Error 1079: The account listed for this service is different from the account listed for the other services in the same process.

If this happens, do the following:

Press Windows + R
Type services.msc
Scroll down the list until you see the Quality of the Windows Audio Video Experience
Right-click and select Properties.
Click on the “Login” tab
Click on the “Browse” button.
You will see an input box with the name Enter the name of the object you want to select
Enter the name of your Microsoft Windows account
Click Verify Names.
Wait until your name is displayed, and then click OK.
Enter your Windows account password in the Password field.

Automatically start the Windows Audio Video Experience service

Run the program without administrator rights

  • Find the executable file of your program
  • Right-click and click Properties
  • Click the Compatibility tab
  • Uncheck the box next to “Run this program as administrator“.
  • Press OK

Run the program without administrator rights

The problem should now be resolved.

How to Solve the “A JavaScript Error Occurred In The Main Process” in Discord

Remove Discord temporary files

A diskette is constantly storing temporary files that can interfere with an application; deleting them can solve the problem. Learn how to delete temporary disk files ;

  1. Open Windows Explorer and paste this path into the address bar of Windows Explorer: “C:UserYour User NameAppDataDiscord”. Remember to replace “YOUR USER NAME” in the path with your PC name.
  2. There should be an “appdata” folder, and if it is not available, you will need to view the hidden files. You can do this by clicking on the “View” tab in the File Explorer menu, and then clicking on “Hidden Objects” to check the box. All hidden files will be displayed and you will be able to view “AppData”.
  3. The “Discord” folder is in the “AppData” folder, you must delete this folder, you may get a message that some files cannot be deleted because they are in use. In this case, you should make sure that the Discord app is closed, restart your computer before performing this step, and close the Spotify app if it is running.
  4. Another effective way to remove data from the app is to open the “Run” dialog and type “% localappdata%”, then click OK.
  5. Inconsistencies are listed in the folder that opens, delete that folder by right-clicking.
  6. Reboot the computer now to see if the problem is resolved.

Remove Discord temporary files

Whitelisting inconsistencies in your antivirus software

Some antivirus software or even the Windows firewall may block certain mismatch files that cause problems with the application. Regardless of your antivirus software, you should check your settings for granting Discord permissions.

Change windows Audio Video Experience services settings

This service if not running, Discord can’t work properly. So you need to check the startup type for ‘windows audio-video experience services’ settings to see if the problem is solved. The configuration on startup should be changed from Manual to Automatic, and here are the steps to change that;

  1. Press Windows + R to open run Dialogue.
  2. Type ‘msc’ in the dialogue box.
  3. There would be a list of windows services, you need to find ‘Quality Windows Audio Video Experience Service’, right-click on it, and select properties.
  4. You’ll be able to see whether it’s running or not, if it’s running you should click ‘Stop’ and click ‘Start’ to run it again.
  5. Check whether the startup type is set as Automatic, if not you need to change it to automatic. Click ok for any dialogue box that will appear.

In some cases, you might receive an error message that reads:

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.’

You need to follow these steps in order to bypass this error;

  1. Open run as usual by typing Windows + R keys.
  2. Type or paste “msc” and click OK.
  3. Locate “Quality Windows Audio Video Experience”, right-click on it, and select properties.
  4. Click the ‘Log On’ tab.
  5. Click on the “Browse” button.
  6. In the entry box enter your Windows account name.
  7. Click check names.
  8. Your computer name will show up; you should click OK.
  9. You then type your Windows password in the box provided.

Configuring the Discord to work without administrator rights

As mentioned earlier, setting admin rights can result in a “JavaScript error occurred in the main process” error, you need to change the settings of your application to make it work properly.

You can find out how to solve this problem here;

  1. Locate the disk executable either from the Start menu or by typing its name into a Windows search.
  2. Right-click the disk executable and select Properties.
  3. There is a compatibility tab in the properties window, you need to uncheck the “Run this program as an administrator” box.
  4. Click the “Apply changes” button.
  5. Confirm each dialog box that appears.
  6. Now restart your computer and run the hard drive to make sure the problem is resolved.

Reinstall your Discord program

If the error hasn’t gone away at this time, you need to reinstall the application, and before reinstalling Discord, you need to uninstall the application from your PC and delete any files associated with Discord.

The best way to uninstall the application is to use the Control Panel, select Programs and Features, find Discord, and uninstall the application.

Then download the new installation files from the Discord website, as it is free. Do the disk configuration and run the installation. When you’re done, the new Discord app will be completely installed on your computer and there should be no problems.

If the problem persists, the error is probably related to system settings. And we have already outlined all possible solutions to this problem.

So far, these are the solutions to fix the “A JavaScript Error Occurred in the Main Process” in Discord, and we hope that they will help you to fix this error.

APPROVED: To fix Windows errors, click here.

Frequently Asked Questions

  1. Reinstall your program.
  2. Delete your program folders in the %AppData folder.
  3. Automatically start the Quality Windows Audio Video Experience service.
  4. Run your program without administrative rights.

The «JavaScript error occurred in the main process» error usually appears when you start Discord on your computer.

The error message box usually contains a variety of information about the error, but casual users may have difficulty interpreting it.

Script errors are most likely caused by a bug in a script hosted on another domain (e.g., CDN scripts). As a result, the user’s browser stops the execution of the script to prevent an attack called «cross-site request spoofing».

There are two types of JavaScript errors:

Syntax error: Occurs when there is an error in the way the code is written, such as a typo or a missing character.

Execution error: Occurs when the script cannot execute its instructions; for example, when the specified object cannot be found.

Post Views: 1,305

Question

Issue: How to fix “JavaScript error occurred in the main process” error?

Hey. I need some tips on how to fix “A javaScript error occurred in the main process” error on Mac and on WIndows device. I receive them on my Windows laptop, by my girlfriend gets the same pop-up on her mac. I do not know what to do. I’ve tried to reinstall the program that triggers this on her device since it was Teams for Mac, I think, but that did not work. Any ideas?

Solved Answer

” A JavaScript error occurred in the main process” error appears on both devices, as you mentioned, and the issue is related to programs in particular. Users[1] talk about the Slack app, Discord program, and Microsoft Teams[2] as the ones that create issues and are creating problems triggering the message with an error pop-up.

The particular “JavaScript error occurred in the main process” error that appears when users try to launch one of the upper mentioned programs. The window contains further information regarding the error, but everyday users cannot interpret the message properly, so details are not useful.

The “JavaScript error occurred in the main process” error in Discord or in Microsoft Teams, other programs that can be fixed with workarounds. Sometimes downloading the application from another source also fixes the issue with a constantly reoccurring pop-up window.

It pretty much doesn’t matter if the pop-up with “JavaScript error occurred in the main process” occurred as and error in Slack or during any other launch of the application, the reason might be the same. Particular causes that get reported more often are corrupted settings of the program itself, administrator rights required or disabled, old installations.

Fix for "JavaScript error occurred in the main process"



Fix it now!




Fix it now!

To repair damaged system, you have to purchase the licensed version of Reimage Reimage.

The best way to fix “JavaScript error occurred in the main process” error would be to determine the particular program that is causing all the pop-ups first. Of course, we should mention right away that malware[3] is not responsible for any of these issues. Such errors are not caused by Windows or Catalina operating system updates. Even though some of the bugs in these upgrades can trigger unknown problems with the performance. You can check for data corruption-related issues with repair tools or optimizers like ReimageMac Washing Machine X9 to ensure that you can investigate further and fix the issue once and for all.

Fix “JavaScript error occurred in the main process” error on Mac



Fix it now!




Fix it now!

To repair damaged system, you have to purchase the licensed version of Reimage Reimage.

  • You can delete the program that triggered this error for you and reinstall it from another source, so the installations proper and secure. App Store is the source that should provide a secure application without issue-causing bugs.

"JavaScript error occurred in the main process" universal issue

Check the compatibility to fix “JavaScript error occurred in the main process” error on Mac



Fix it now!




Fix it now!

To repair damaged system, you have to purchase the licensed version of Reimage Reimage.

Delete folders to fix “JavaScript error occurred in the main process” error



Fix it now!




Fix it now!

To repair damaged system, you have to purchase the licensed version of Reimage Reimage.

  • Deleting some folders that are related to applications like Discord can reset settings and help resolve the issue.
  • Locate to C:\Users\YOURUSERNAME\AppData\Discord via Windows Explorer.
  • If you can’t see AppData folder, click on View and check the box near Hidden items.

    Startup preferences

  • Delete Discord folder.

Change the Startup type to fix “JavaScript error occurred in the main process”



Fix it now!




Fix it now!

To repair damaged system, you have to purchase the licensed version of Reimage Reimage.

  • Open the Run window and type services.msc in. Press OK.
  • Find Quality Windows Audio Video Experience service and right-click on it to find Properties from the menu.
  • Go to the General tab.
  • Make sure that the Startup type is set to Automatic.

Repair your Errors automatically

ugetfix.com team is trying to do its best to help users find the best solutions for eliminating their errors. If you don’t want to struggle with manual repair techniques, please use the automatic software. All recommended products have been tested and approved by our professionals. Tools that you can use to fix your error are listed bellow:

do it now!

Download Fix
 

Happiness
Guarantee

do it now!

Download Fix
 

Happiness
Guarantee

Compatible with Microsoft Windows
Compatible with OS X

Still having problems?
If you failed to fix your error using Reimage, reach our support team for help. Please, let us know all details that you think we should know about your problem.

Reimage — a patented specialized Windows repair program. It will diagnose your damaged PC. It will scan all System Files, DLLs and Registry Keys that have been damaged by security threats.Reimage — a patented specialized Mac OS X repair program. It will diagnose your damaged computer. It will scan all System Files and Registry Keys that have been damaged by security threats.
This patented repair process uses a database of 25 million components that can replace any damaged or missing file on user’s computer.
To repair damaged system, you have to purchase the licensed version of Reimage malware removal tool.

Press mentions on Reimage

Private Internet Access is a VPN that can prevent your Internet Service Provider, the government, and third-parties from tracking your online and allow you to stay completely anonymous. The software provides dedicated servers for torrenting and streaming, ensuring optimal performance and not slowing you down. You can also bypass geo-restrictions and view such services as Netflix, BBC, Disney+, and other popular streaming services without limitations, regardless of where you are.

Malware attacks, particularly ransomware, are by far the biggest danger to your pictures, videos, work, or school files. Since cybercriminals use a robust encryption algorithm to lock data, it can no longer be used until a ransom in bitcoin is paid. Instead of paying hackers, you should first try to use alternative recovery methods that could help you to retrieve at least some portion of the lost data. Otherwise, you could also lose your money, along with the files. One of the best tools that could restore at least some of the encrypted files –  Data Recovery Pro.

Появление кода этого программного сбоя свидетельствует о завершении рабочего сеанса голосового мессенджера. Это довольно распространенная ошибка, с которой часто сталкиваются пользователи операционной системы Windows. Появление фразы «JavaScript error occurred in the main process» можно расценивать в качестве оповещения о некорректной работе программного обеспечения или конкретных системных служб. Этот сбой можно устранить самостоятельно. Придерживайтесь экспертных рекомендаций и инструкций, чтобы сделать все правильно.

Скриншот ошибки JavaScript

Скриншот ошибки JavaScript

Причины появления ошибки

В коде программного сбоя всегда зашифрована причина возникновения ошибки. В данном случае оповещение свидетельствует о некорректной работе определенных сценариев JavaScript. Почему ошибка появляется именно при работе с Discord? Это обусловлено тем, что мессенджер создан на основе языка программирования Java.

Появление сбоя может также стать следствием повреждения системных файлов софта. Возможно, важные файлы были случайно удалены пользователем или заблокированы антивирусом, поэтому мессенджер Discord не работает. Практика показывает, что зачастую появление ошибки связано с отсутствием файла под названием «discord_voice». Впрочем, есть и другие причины:

  • мессенджер конфликтует с программным обеспечением, которое было установлено на ноутбук или ПК;
  • деинсталляция прежней версии Discord была выполнена некорректно. Остатки некоторых файлов создают проблемы в работе;
  • не установлены компоненты операционной системы Windows последней версии, нужно включить автоматическую инсталляцию обновлений;
  • некорректная работа мессенджера спровоцирована вирусами или шпионским ПО.

Ошибка работы приложения Дискорд

Ошибка работы приложения Дискорд

Чтобы точно определить причину, нужно провести тщательную диагностику.

Решение проблемы

Для устранения ошибки, откройте корневую директорию мессенджера. Найдите директории с названием «AppData» и «AppDataLocal». Из-за стандартных настроек ОС они могут быть недоступны для просмотра. Чтобы получить доступ к данным папкам, сделайте следующее:

  1. Зайдите в меню «Пуск» или воспользуйтесь комбинацией горячих клавиш «Win+R».
  2. Нажмите на «Выполнить».

    Окно «Выполнить»

    Окно «Выполнить»

  3. В появившемся окошке следует вписать команды «%localappdata%» и «%appdata%», которые откроют доступ к скрытым директориям.
  4. Удалите абсолютно все файлы в этих папках, в названии которых встречается «Discord».
  5. Из мессенджера также необходимо выйти. Самый действенный способ – принудительно отключить все процессы через «Диспетчер задач».
  6. Удалите мессенджер, а потом установите программу заново.

Этих действий достаточно для решения проблемы и восстановления корректной работы программного обеспечения.

Альтернативные варианты устранения ошибки

Ранее было отмечено, что стать катализатором появления программного сбоя способны также стать вирусы. Для исключения этой вероятности, проверьте корневую директорию мессенджера Discord. Сначала закройте данную программу через «Диспетчер задач», а уже потом запускайте антивирус. Если зараженные файлы были обнаружены, удалите их, а потом повторно запустите голосовой чат. Во избежание появления дополнительных сбоев, всегда запускайте мессенджер от имени администратора.

Установите на PC или лэптоп актуальную версию ОС Windows, на которую регулярно выходят официальные обновления Microsoft. Сегодня разработчики американской компании исправно обновляют только восьмерку и десятку. Поэтому выберите одну из этих операционок. Голосовой чат Discord – это относительно новое программное обеспечение, использующее современные службы и компоненты. Старые версии операционной системы не поддерживают их, поэтому возникают всевозможные сбои и ошибки.

Проблемы с запуском Skype

У некоторых пользователей ошибка «Javascript error occurred in the main process» возникает при запуске программы Skype. Появление сбоя обусловлено тем, что операционная система пытается выполнить автозагрузку приложения, то есть открыть программу сразу после включения ноутбука или компьютера.

Автоматический запуск Skype предусматривает дополнительное взаимодействие с Javascript, что неудивительно, ведь рассматриваемая программа написана именно на этом языке программирования. В коде сбоя указан проблемный сценарий, который следует устранить для восстановления корректной работы системы.

Довольно часто советы по устранению ошибки сводятся к обновлению Java и сбросу пользовательских настроек браузера Internet Explorer. Однако все эти действия не помогут избавиться от сбоя. Решение проблемы лежит на поверхности. Запустите Skype и перейдите в раздел настроек. На вкладке общие вы найдете команду «Запускать Скайп автоматически». Отключите эту функцию.

Отключение автозагрузки в Скайпе

Отключение автозагрузки в Скайпе

Ошибка исчезнет, но программа не будет включаться при запуске компьютера. Если автозагрузку Скайпа нужно сохранить, тогда зайдите в меню «Пуск». Перенесите иконку Skype в директорию Автозагрузка. Сделать это можно просто перетянув ярлык в нужную папку.

Папка "Автозагрузка"

Папка «Автозагрузка»

Заключение

Теперь вы знаете, как исправить ошибку «JavaScript error occurred in the main process» и почему этот программный сбой появляется. В целях профилактики старайтесь своевременно обновлять операционную систему, а также весь софт. Это позволит избежать возникновения различных ошибок.

Оценка статьи:

Загрузка…

Download PC Repair Tool to quickly find & fix Windows errors automatically

Some users are reporting a generic error message – A JavaScript error occurred in the main process, Uncaught Exception that is triggered when they try to launch some apps on Windows 11/10. In this post, we will show you how to resolve this issue. There aren’t many determined causes for this problem, however, the main reason can be that the app, its database or its settings have most likely gone corrupt.

A JavaScript error occurred in the main process

If you receive A JavaScript error occurred in the main process, Uncaught Exception message when you try to open apps like Skype, Discord, etc, in Windows 11/10, then you can carry out the following suggestions:

  1. Delete the app data folders in %AppData% and %LocalAppData%.
  2. Re-register the JavaScript dll file.
  3. Reinstall Skype, Discord, etc, app that is having problems.

Now let’s see how you can apply this solution(s) in practice.

1) Delete the app data folders in %AppData% and %LocalAppData%.

Deleting the %AppData% and %LocalAppData% folders should reset the app settings and possibly resolve the JavaScript error which is preventing you from opening the app.

Here’s how you can delete these folders:

Launch Windows Explorer and click on This PC and then navigate to the following location:

C:Users%username%AppData<app>

The <app> place-holder should be the name of the app throwing up the JavaScript error.

If you are unable to see the AppData folder, you may need to turn on the option that enables you to view hidden files and folders.

Delete the app folder in the AppData folder.

Next, press the Windows Key + R key combination in order to bring up the Run dialog box. Type in the environment variable below and hit Enter.

%localappdata%

Locate the problematic app folder in the folder which opens, right-click on it, and click Delete.

Make sure that the folders are completely deleted and that there are no more remaining files in it. Check to see if the  ‘A JavaScript Error Occurred in the Main Process’ still appears after restarting your computer and you launch the app.

2) Re-register the JavaScript dll file

Registering the JavaScript DLL file using the built-in Regsvr.exe could help. To do this, open a Command Prompt as an administrator, type the following and hit Enter:

regsvr32 jscript.dll

3) Reinstall the app in question

Although from one of our case scenarios presented above, the user stated that reinstalling the app didn’t fix the issue. Nevertheless, we still recommend you try to uninstall then reinstall the app.

I hope this helps you resolve this JavaScript error!

Ezoic

Obinna Onwusobalu has studied Information & Communication Technology and is a keen follower of the Windows ecosystem. He has been a Windows Insider MVP (2020). He runs a computer software clinic.

Sometimes when you try to open an application in windows it may pop an error “A javascript error occurred in the main process” most of the time it happens with chatting apps like Discord, Skype, or Microsoft Team but maybe it happens with VSCode or Forticlient VPN.

It doesn’t matter which application cause this error for you, matter how you can fix it with minimum effort. In this article, I share the exact way to fix this error.

All the articles on this topic have the almost same content but all of them still missing one thing that may the reason for you.

What causes the ‘A JavaScript Error Occurred in the Main Process’ error?

  • Your program or its settings may have gone corrupt
  • The Quality Windows Audio Video Experience service is not running
  • Your app runs with administrator permissions
  • You don’t have the right version of Microsoft Visual C++ Redistributable

How to fix the “A javascript error occurred in the main process” error?

  1. Ensure that you have the Microsoft Visual C++ Redistributable

Very Important Note: If you are not sure about it don’t worry just leave it for now, follow the rest steps but after that, if you still have the same error then download Microsoft Visual C++ Redistributable.

  1. Open Run program by searching it.
Open Run program by searching it
  1. Type “%appdata%” in the Run window
Type %appdata% in the Run window
Type %appdata% in the Run window
  1. Press Enter, it will open a folder
  2. Search for the application folder (In our case it’s the folder name is “Discord” because in our case Discord cause this error).
  3. Delete it by right-clicking on it and then choose the delete option.

Delete it by right-clicking on it and then choose the delete option.

Delete it by right-clicking on it and then choose the delete option.
  1. Close that window
  2. Open Run program again.

Open Run program by searching it

  1. Type “%localappdata%” in the Run window
Type %localappdata% in the Run window
Type %localappdata% in the Run window
  1. Press Enter, it will open a folder.
  2. Search for the application folder (In our case it’s the folder name is “Discord” because in our case Discord cause this error).
  3. Delete it by right-clicking on it and then choose the delete option.

Delete it by right-clicking on it and then choose the delete option

Delete it by right-clicking on it and then choose the delete option
  1. Close that window
  2. Now, Open Services by searching it

Open Services by searching it

Open Services by searching it
  1. Scroll and find a service called “Quality Windows Audio Video Experience”
Scroll and find a service called Quality Windows Audio Video Experience
Scroll and find a service called Quality Windows Audio Video Experience
  1. Right-click on it and select Properties

Right-click on it and select Properties

Right-click on it and select Properties
  1. Select Automatic option under Startup type

Select Automatic option under Startup type

Select Automatic option under Startup type
  1. If the service is started (you can check that just next to the Service status message), you should stop it by clicking the Stop button in the middle of the window. Anyway, run it again by clicking the Start

Stop it by clicking the Stop button. Run it again by clicking the Start

Stop it by clicking the Stop button. Run it again by clicking the Start
  1. (Optional) If you see an error when clicking on Start follow this step. Navigate to the Log On tab and click on the Browse buttonUnder the “Enter the object name to select” entry box, type in your account’s name, click on Check Names Click OK when you are finished, and type in the password in the Password box
  2. Now, Uninstall the application and install it again (if the error is not resolved)

The below steps are only for Discord

  1. After reinstalling the Discord, search for Discord
Search for Discord
Search for Discord
  1. Then right-click on it
  2. Click on “Open file location” from the menu

Then right-click on it

Then right-click on it
  1. It will open a folder with Discord selected.
  2. Right-click on the Discord.exe (automatically selected file).
Right-click on the Discord.exe
Right-click on the Discord.exe
  1. Click on Properties
Click on Properties
Click on Properties
  1. Go to the Compatibility tab
Go to the Compatibility tab
Go to the Compatibility tab
  1. Uncheck the “Run this program as an administrator” option
Uncheck the Run this program as an administrator option
Uncheck the Run this program as an administrator option
  1. Click on OK

If you still have the error go to step 1 you may forget about it.

Let me know if this article does not help you to solve the problem.

Windows users are getting an Uncaught Exception error message – A JavaScript error occurred in the main process. It is triggered when they try to launch some apps on Windows 10 including messaging apps Discord and Skype.

The main cause of this error is not really clear, however, the main reason could be that the app, its database or its settings are corrupted.

Here Are Some Possible Causes for this JavaScript Error?

  • App settings or the app itself is corrupted
  • The Quality Windows Audio Video Experience service is not active
  • The app runs with administrator priviledges

How to Fix A JavaScript error occurred in the main process Error?

Method 1 – Run the App without Administrator Privileges

run-windows-app-without-administrator-privileges

For some weird reason, the app actually works when a user is not logged in using an administrator account. It gives away that the cause of this error might be the administrator permissions.

Running Discord for instance, without admin permissions resolved the problem for some users. So, here are some to steps to do it:

  1. Find the Discord executable file and change its properties by right-clicking on it and selecting Properties. Click the Compatibility tab in the Properties window and clear the Run this program as administrator checkbox before applying the changes.
  2. Make sure that you confirm all dialog boxes that appear to confirm your changes, and Discord should now run without administrator permission. Open it by double-clicking on the icon and try to check if the error persists.

Method 2 – Delete the app data folders in %AppData% and %LocalAppData%.

You can try to reset the app settings by deleting the %AppData% and %LocalAppData% folders. By doind this, it is possible to resolve the JavaScript error which is giving you an error when launching the app.

How to delete these two folders? Here’s how to do it:

Run-AppData

  • Launch Windows Explorer and click on This PC and then navigate to the following location:
    • C:Users%username%AppData
  • Replace the placeholder with the name of the app giving the JavaScript error.
  • Sometimes, you may need to enable the option that allows you to view hidden files and folders in order to see the AppData folder.
  • Delete the app folder in the AppData folder.
  • Next, press the Windows Key + R key combination to launch the Run dialog box. Enter the variable below.
    • %localappdata%
  • Locate the erring app folder in the folder that opens, click Delete.

Run-LocalAppData

Verify if the ‘A JavaScript Error Occurred in the Main Process’ is still there after restarting your computer. One thing to note, it is important to be thorough in this process by making sure that the every file, subfolders in the app folders are totally deleted. There should be no files that should remain in it.

Method 3 – Enable Quality Windows Audio Video Experience Service Automatically

Start-Quality-Windows-Audio-Video-Experience-service-automatically

  1. Press Windows + R
  2. Type in services.msc
  3. Right-click on the Quality Windows Audio Video Experience and select Properties
  4. In the Startup Type drop-down menu, select Automatic

If ever you get an error like this one:

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.

Then you can follow these steps:

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

Method 4 – Reinstall the App

uninstall-discord-app-windows-10

If a JavaScript error is still persistent and nothing works from the methods above, the last recourse is to try to uninstall the app (Discord or Skype).

Here’s how to do it:

  1. Log in to your PC as an administrator
  2. Open Control Panel
  3. Set the View by to Category and then click Uninstall a program.
  4. Find Discord or Skype and then right-click it to choose Uninstall.

After uninstalling the app successfully, visit the Discord or Skype website or go to the Microsoft Store on Windows 10 to download and reinstall the latest version.

Conclusion

By following these methods we have listed above, we hope that the “A JavaScript error occurred in the main process” problem will be completely gone and fixed.

Понравилась статья? Поделить с друзьями:
  • Что делать если пишет a disk read error occurred press ctrl alt del to restart
  • Что делать если питон выдает ошибку invalid syntax
  • Что делать если печенье не пропеклось внутри как исправить
  • Что делать если пересолила пюре картофельное как исправить
  • Что делать если пересолила жареную рыбу как исправить