Qt platform plugin could be initialized ошибка как исправить

I got this exact error on linux.

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. 
Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Aborted (core dumped)

First, defining this environment variable before starting qtcreator causes more debug to be printed out:

export QT_DEBUG_PLUGINS=1

And then in the debug it said this when trying to start qtcreator from the commandline on ubuntu 18.04:

Cannot load library /home/myuser/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxkbcommon-x11.so.0: cannot open shared object file: No such file or directory)

Note that it cannot find libxkbcommon-x11, so the fix was this:

sudo apt-get install libxkbcommon-x11-dev
export PATH=$PATH:~/Qt/Tools/QtCreator/bin

Now qtcreator starts.

Please, pay attantion that now you are in public part of FAQ-Area. Register and find more FAQ-articles
in Personal Cabinet.

>

Technical Support FAQ

>

База знаний (FAQ)

>

Программное обеспечение

>

КОМПАС-3D

Keywords:

КОМПАС-3D
Created: 2022-11-21 14:38:52

Linked Articles:

Changed: 2022-11-21 15:20:46

Problem:

При запуске КОМПАС возникает сообщение об ошибке «This application tailed to start because no Qt platform plugin could be initialized….»
После чего происходит аварийное завершение работы КОМПАС-3D.

Solution:

Данная ошибка связана с использованием фреймворка QT для разработки некоторых библиотек  архитектурно-строительной конфигурации КОМПАС.

Для решения проблемы следует воспользоваться одним из следующих варинатов:

1. Обновить Windows до версии 10/11 и установить последние обновления для указанных ОС.

2. Разместить файлы из архива — 

https://files.ascon.ru/s/bZDKjz9RnQtyNEQ в каталог C:Program FilesASCONKOMPAS-3D vХХLibsFloorplan

3. В случае, если не требуется использование библиотек из данной конфигурации — удалить конфигурацию AEC средствами Windows. 

В случае, если проблема не решится, необходимо обратиться в службу поддержки пользователей ПО АСКОН.

When launching certain apps on Windows, many users receive the “This application failed to start because no Qt platform plugin could be initialized” error. Don’t worry. This post of MiniTool explores several effective troubleshooting methods.

This Application Failed To Start Because No Qt Platform Plugin Could Be Initialized

According to user reports, the “this application failed to start because no Qt platform plugin could be initialized” error can occur with many apps such as OneDrive, Designer, Python, etc. This error often appears after installing a series of Windows updates. Here’s a true example from the answersmicrosoft.com forum:

After a series of recent Windows updates my Surface displays the following error when we log in OneDrive — This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. I have searched the community and followed the responses given to others suffering the same fate but so far this has not resolved the issue. Looking to know what I should attempt next?https://answers.microsoft.com/en-us/windows/forum/all/application-failed-to-start-because-no-qt-platform/205e4259-dcbc-4d72-addb-8e7edb9663e9

no Qt platform plugin could be initialized

Qt is a cross-platform software that was designed to create graphical user interfaces and cross-platform applications on Windows, Linux, macOS, and Android. However, when something went wrong with the Qt platform, you may receive the “This application failed to start because it could not find or load the Qt platform plugin Windows” error.

It seems like reinstalling the application may fix the error. However, some users encounter new errors when reinstalling the app. Don’t worry. Here we explore several effective troubleshooting methods. Let’s try.

How to Fix the “No Qt Platform Plugin Could Be Initialized” Error

After analyzing extensive user reports, we summarize the 6 applicable ways to fix the Qt platform plugin Windows error. You can try them in order until the error gets solved or choose the ones that work best for you.

Fix 1. Replace the Qt Files in the Destination

The first and proven method is to replace the Qt files in the destination folder. Here we take Python for example. To do so, follow the steps below:

Step 1. Press the Win + E keys to open the File Explorer, select This PC, type pyqt5_tools in the search box, and hit Enter.

Step 2. Right-click the pyqt5_tools folder once the search is complete and select Open folder location.

Step 3. Then go to the folder path “PyQt5 > Qt > plugins”, and then open the Plugin folder, right-click the platforms folder, and select Copy.

Step 4. Go to the site-packages folder that you initially opened and go to pyqt5_tools > Qt > bin.

Step 5. Right-click any empty space inside the bin directory and select paste. Then confirm it when you see the “Replace the files in the destination” message.

open Qt5 tools folder

Now, you can relaunch the app and see if the “this application failed to start Qt platform Windows” message persists.

Fix 2. Perform a Clean Boot

One of the possible reasons for the “this application failed to start Qt platform Windows” error is third-party software conflicts. If you are not sure which app is causing the conflict, you can perform a clean boot (click on the Hyperlink to know the detailed steps). Once you find out the conflicting software, uninstall it and check if the error is fixed.

Fix 3. Check System File Corruption

Sometimes corrupted system files can trigger various errors and issues when running your apps such as the “no Qt platform plugin could be initialized” error. So, we recommend you run an SFC scan or DISM to check system files.

Step 1. Type cmd in the search box, and then right-click Command Prompt and select Run as administrator option.

Step 2. Type the sfc /scannow command in the elevated command prompt and hit Enter. After that, the SFC tool will scan and try to repair the corrupted system files automatically.

run an SFC scan

Step 3. If the SFC command was unable to repair corrupt system files, you can try running the following DISM commands:

  • DISM /Online /Cleanup-Image /CheckHealth
  • DISM /Online /Cleanup-Image /ScanHealth
  • DISM /Online /Cleanup-Image /RestoreHealth

Fix 4. Reinstall the App

As the error message hints, reinstalling the application may help fix the problem. However, many users cannot uninstall the app smoothly. Don’t worry. We summarize the following 3 applicable ways to reinstall the app. (Here we take reinstalling OneDrive for example)

Uninstall OneDrive via the Run box:

Step 1, Press Win + R keys to open the Run dialog box, and then type the following command in it and hit Enter. Here make sure you replace the OneDriveSetup.exe path with the actual location.

%userprofile%\AppData\Local\Microsoft\OneDrive\Update\OneDriveSetup.exe

reinstall OneDrive with the Run dialog box

Step 2. Once uninstalled, go through the installation steps and restart your computer and check if the error gets fixed. If it fails to uninstall the application, you can try the following 2 methods.

Uninstall OneDrive via CMD:

Step 1. Type cmd in the Run dialog box and press Ctrl + Shift + Enter keys to open the elevated Command Prompt window.

Step 2. Type the following command and hit Enter to uninstall the app. If you are running on a 32-bit system, replace SysWOW64 with System32. This will force uninstalling the app.

  • taskkill /f /im OneDrive.exe 
  • %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall

Uninstall OneDrive from Settings:

Step 1. Right-click the Start menu at the bottom left and select Apps and Features.

Step 2. Inside the Applications window, search for OneDrive by name and click the Uninstall button.

uinstall OneDrive

Step 3. Then follow the on-screen prompts to complete the uninstallation. After that, you can reinstall the app and check if the error disappears.

Fix 5. Download the Update.xml File of the App

Some users reported that the error can be fixed by downloading the update.xml file of the app. If you can’t reinstall OneDrive via the above method, try this solution. Click here to download the OneDriveSetup.exe file, and run it to install the latest version of OneDrive.

a user report from the Microsoft forum

Fix 6. Undo the Recent Changes

Many people reported that “This application failed to start because it could not find or load the Qt platform plugin Windows” error mainly occurs after installing a series of Windows updates. If this scenario applies to you, you can try performing a system restore or uninstalling these updates manually.

Step 1. Press the Win + I keys to open the Settings app, and then select Update & Security > View update history.

click View update history

Step 2. Click on Uninstall updates, and then right-click the most recent update and select Uninstall. Then follow the on-screen prompts to complete the uninstallation. Then repeat the same procedure to uninstall other Windows updates.

uninstall Windows updates

Question

Issue: How to fix «Application failed to start because no Qt platform plugin could be initialized» error in Windows?

Hello. Recently, after a Windows update, I was unable to get OneDrive to work. Whenever my PC boots, I receive an error “Application failed to start because no Qt platform plugin could be initialized.” Any advice on how to deal with this issue? Thanks in advance.

Solved Answer

Windows operating system consists of many components – some are already pre-installed while others need to be implemented manually. For example, Node.js is one of the third-party components you would see on almost any Windows computer.

Qt is a C++-based[1] framework that is designed to create applications on Windows, Android, Linux,[2] and other platforms. While it is not a programming language on its own, apps that are based on it need to have the framework installed on their machines to be able to run. Unfortunately, these dependencies can create certain issues due to one reason or another.

When something goes wrong with the Qt platform, users may receive the “Application failed to start because no Qt platform plugin could be initialized” error.

Several applications could be affected by this error, including games such as Apex Legends,[3] standalone components (Dllhost), or commonly-used apps as OneDrive. The latter resides in every Windows computer and is an extremely useful app commonly used for system/file backups or additional storage for user files.

Here’s the full message that users receive upon encountering the error (the error message text may vary in some instances):

This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: minimal, offscreen, windows.

While it may seem like enabling or installing the Qt platform would fix the “Application failed to start because no Qt platform plugin could be initialized” error, it is not the case. Reinstalling the app that is having difficulties detecting the plugin might help, however.

How to fix "Application failed to start because no Qt platform plugin could be initialized" error in Windows?

Unfortunately, that is not always possible, as users reported that they then received the “Can’t be found” error while trying to do so. The reason for this being is that a newer version of the app may be already present on the device, hence uninstallation is not possible. There is a way around it.

In some cases, the reasons for the error could be unrelated to the ones mentioned above. For example, system file corruption might also cause this error, so we recommend you try running a scan with FortectMac Washing Machine X9 repair software that could fix underlying Windows issues automatically. Otherwise, proceed with the below methods that should help you solve this error for good.

Method 1. Copy relevant folder to a different location



Fix it now!




Fix it now!

To repair damaged system, you have to purchase the licensed version of Fortect Mac Washing Machine X9.

Method 2. Check system files for damage



Fix it now!




Fix it now!

To repair damaged system, you have to purchase the licensed version of Fortect Mac Washing Machine X9.

  • Type in cmd in Windows search
  • Right-click on Command Prompt and select Run as administrator
  • Here, type sfc /scannow and press Enter

    Run SFC scan

  • Wait till the scan completes and restart your machine
  • If the SFC has returned an error saying it was unable to repair damaged files, run the following commands, pressing Enter each time:
    DISM /Online /Cleanup-Image /CheckHealth
    DISM /Online /Cleanup-Image /ScanHealth
    DISM /Online /Cleanup-Image /RestoreHealth

Method 3. Try Clean Boot



Fix it now!




Fix it now!

To repair damaged system, you have to purchase the licensed version of Fortect Mac Washing Machine X9.

  • Type msconfig in Windows search, hit Enter
  • Go to Services tab
  • Check the Hide all Microsoft services checkbox and select Disable all
  • Go to Startup tab and pick Open Task Manager
  • Here, right-click on every entry and select Disable and close the Task Manager
  • Go to Boot tab, tick Safe Boot and select Apply + OK.

    Use Clean Boot

Once booted back into Windows, try running the app you were having problems with. If that fixes your problem, it means that there is a third-party application that is at fault. In order to fix the “Application failed to start because no Qt platform plugin could be initialized” error, you should uninstall all recently installed applications and see if that solves your problem in normal mode.

Method 4. Reinstall the application in question



Fix it now!




Fix it now!

To repair damaged system, you have to purchase the licensed version of Fortect Mac Washing Machine X9.

You should try uninstalling the app you are having troubles with and then installing it anew. If you are dealing with OneDrive, you should do the following:

  • Press Win + R on your keyboard
  • In the Run dialog, copy and paste the following:
    %userprofile%AppDataLocalMicrosoftOneDriveUpdateOneDriveSetup.exe
  • Go through the installation steps and restart your PC

    Reinstall OneDrive

  • If Windows can’t find the file specified, you should download the setup file from the official website [direct link].

If this method does not work and you are presented with an error, proceed with the method below and then repeat this step.

Method 5. Uninstall the problematic app via Command Prompt



Fix it now!




Fix it now!

To repair damaged system, you have to purchase the licensed version of Fortect Mac Washing Machine X9.

Uninstalling a program that does not want to uninstall might be difficult, although it is possible via PowerShell, as you can launch it as an administrator. Keep in mind that the below example is for the OneDrive application, and the command would differ depending on the app name and its location.

  • Open Command Prompt as administrator as explained above
  • Copy and paste the following commands, pressing Enter after each:
    taskkill /f /im OneDrive.exe
    %SystemRoot%SysWOW64OneDriveSetup.exe /uninstall

    Force uninstall OneDrive

  • Note: if you are using 32-bit Windows system use the following command to uninstall OneDrive instead:
    %SystemRoot%System32OneDriveSetup.exe /uninstall
  • This should force-uninstall the app.

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 FortectMac Washing Machine X9, reach our support team for help. Please, let us know all details that you think we should know about your problem.

Fortect — 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.Mac Washing Machine X9 — 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 Fortect malware removal tool.To repair damaged system, you have to purchase the licensed version of Mac Washing Machine X9 malware removal tool.

A VPN is crucial when it comes to user privacy. Online trackers such as cookies can not only be used by social media platforms and other websites but also your Internet Service Provider and the government. Even if you apply the most secure settings via your web browser, you can still be tracked via apps that are connected to the internet. Besides, privacy-focused browsers like Tor is are not an optimal choice due to diminished connection speeds. The best solution for your ultimate privacy is Private Internet Access – be anonymous and secure online.

Data recovery software is one of the options that could help you recover your files. Once you delete a file, it does not vanish into thin air – it remains on your system as long as no new data is written on top of it. Data Recovery Pro is recovery software that searchers for working copies of deleted files within your hard drive. By using the tool, you can prevent loss of valuable documents, school work, personal pictures, and other crucial files.

Ошибка при запуске примеров, использующих PyQT5

Андрей Широков

Здравствуйте. У меня при запуске простейших примеров на Python (в PyCharm) возникает ошибка: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Хотя и PyQT5 и PyQT5-tools (с дизайнером) установлены. Переустанавливать пробовал, не помогает.
При запуске из командной строки: qt.qpa.plugin: Could not find the Qt platform plugin «windows» in «» This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

1 чел.

  • Qt designer ошибка при запуске
  • Quik ошибка не хватило памяти под объекты
  • Qt designer ошибка генерации кода
  • Quik ошибка 533 неверно указан код клиента
  • Qt creator ошибки кракозябры