Что такое 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?

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. Появление фразы «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» и почему этот программный сбой появляется. В целях профилактики старайтесь своевременно обновлять операционную систему, а также весь софт. Это позволит избежать возникновения различных ошибок.

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

Загрузка…

Понравилась статья? Поделить с друзьями:
  • Что такое 9999 network error
  • Что такое 502 bad gateway как исправить на телефоне
  • Что такое 443 ошибка
  • Что такое 403 доступ запрещен как исправить
  • Что такое 403 forbidden nginx как исправить