Could not find Wine Gecko. HTML rendering will be disabled.…
- User
Could not find Wine Gecko. HTML rendering will be disabled. 0190:err:mshtml:create_document_object Failed to init Gecko, returning CLASS_E_CLASSNOTAVAILABLE
- Assistant
Could not find Wine Gecko. HTML rendering will be disabled. 0190:err:mshtml:create_document_object Failed to init Gecko, returning CLASS_E_CLASSNOTAVAILABLE
The error messages you're encountering indicate that Wine is unable to locate or initialize Wine Gecko, which is essential for rendering HTML content in certain Windows applications running through Wine. Without Wine Gecko, applications that rely on embedded HTML (like some installers, help dialogs, or browsers) won't display HTML content correctly.
Could not find Wine Gecko. HTML rendering will be disabled.0190:err:mshtml:create_document_object Failed to init Gecko, returning CLASS_E_CLASSNOTAVAILABLEWine often attempts to download and install Wine Gecko and Wine Mono automatically when needed. Ensure that Wine has internet access and the necessary permissions to download these components.
winecfg
This might trigger Wine to download the required Gecko package automatically.If automatic installation fails, you can manually download and install the Wine Gecko package.
First, identify which version of Wine you're using:
wine --version
This will output something like wine-7.0.
Visit the WineHQ Gecko download page to find the correct version compatible with your Wine version.
For example, for Wine 7.0, you might find a link like:
wine-gecko-2.47-x86.msi
wine-gecko-2.47-x86_64.msi
Wine looks for Gecko packages in specific directories within the Wine prefix. By default, the Wine prefix is located at ~/.wine. Create the gecko directory if it doesn't exist:
mkdir -p ~/.wine/drive_c/windows/ie7
Place the downloaded .msi files into the ~/.wine/drive_c/windows/ie7 directory.
Ensure that the Gecko files have the appropriate permissions:
chmod 644 ~/.wine/drive_c/windows/ie7/wine-gecko-*.msi
Sometimes, explicitly setting environment variables can help Wine locate the Gecko package.
Add the following to your shell configuration (e.g., .bashrc or .zshrc):
export WINEDLLOVERRIDES="mshtml=n,b"
export WINEDLLOVERRIDES="mshtml=n"
Then, reload the configuration:
source ~/.bashrc
If the above steps don't resolve the issue, consider updating Wine to the latest version or reinstalling it to ensure all components are correctly set up.
Follow the official Wine installation guide for your distribution to add the latest repository and update Wine.
For example, on Ubuntu:
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
sudo apt update
sudo apt install --install-recommends winehq-stable
(Replace focal with your Ubuntu version code name.)
If updating doesn't help, reinstall Wine:
sudo apt-get remove --purge winehq-stable wine-stable wine1.6 wine-mono wine-gecko
sudo apt-get install --install-recommends winehq-stable
Ensure that all necessary dependencies for Wine and Wine Gecko are installed. Missing libraries can prevent Wine Gecko from initializing correctly.
On Debian/Ubuntu-based systems:
sudo apt-get install winbind libfaudio0
(libfaudio0 might be required for some Wine versions.)
Run your Wine application from the terminal to observe real-time logs, which can provide more insights into the issue.
wine your_application.exe
Look for any additional error messages related to Gecko or other components.
Use Wine Staging: Sometimes, the staging version of Wine includes patches and fixes not present in the stable release. Consider trying Wine Staging if issues persist.
Reset Wine Prefix: As a last resort, you can reset your Wine prefix. Warning: This will remove all installed Windows applications within that prefix.
mv ~/.wine ~/.wine_backup
winecfg
The inability to locate Wine Gecko affects HTML rendering in Windows applications run through Wine. By ensuring Wine Gecko is correctly installed—either automatically or manually—you can restore full functionality to affected applications. If problems continue after following these steps, consider seeking assistance on the WineHQ Forums or checking the Wine AppDB for application-specific advice.