Logo

Fix Bad Image Error Status 0xc000012f

When you run a program in Windows 10, error 0xc000012f may pop up, mentioning that the files and binaries you’re trying to run are corrupted. Error 0xc000012f means Bad Image, denoting that the program’s executable or one of the supporting modules is corrupt. Or there is probably a DLL mismatch.

This error usually manifests itself after a windows update or after installation of some application, in order to fix it follow the steps below:

  1. Perform SFC scan

    Press ⊞ WINDOWS + X to open the Windows menu
    keyboard with windows and x markedFrom the menu choose command prompt (admin)
    Windows menu command prompt adminIn command prompt type sfc /scannow and press ENTER
    Leave the computer for the operation to be completed and Reboot your computer

  2. Run DISM

    Press ⊞ WINDOWS + X to open the Windows menu
    keyboard with windows and x markedFrom the menu choose command prompt (admin)
    Windows menu command prompt adminin command prompt type: DISM.exe /Online /Cleanup-image /Restorehealth and press ENTER
    wait for the process to be finished and Reboot your computer

  3. Reinstall application

    If this error has been popping up after the application install remove the installed application and install it again. There is the possibility that the application installer has by accident corrupted some files, reinstalling it might fix the issue.

  4. Uninstall Windows update

    In some cases, Windows update can introduce this issue, go to Windows updates, into advanced options, and uninstall the latest update to see if this will fix the error.

  5. Install Visual C++ Redistributable

    Go to the official Microsoft website and download C++ redistributable package and install it

  6. Install new windows update

    If there is a new Windows update install, there is a chance that in the last update something went wrong and it is very likely that it was fixed in the last one.

Do You Need Help with Your Device?

Our Team of Experts May Help
Troubleshoot.Tech Experts are There for You!
Replace damaged files
Restore performance
Free disk space
Remove Malware
Protects WEB browser
Remove Viruses
Stop PC freezing
GET HELP
Troubleshoot.Tech experts work with all versions of Microsoft Windows including Windows 11, with Android, Mac, and more.

Share this article:

You might also like

INET_E_RESOURCE_NOT_FOUND
The previous Windows versions all came with Microsoft's browser Internet Explorer. A lot of users love it because not only that it is easy to use. It is also very fast. Users didn’t have to worry about compatibility because it is almost always compatible with its Windows Version. When they introduced Windows 10, they changed the name of the browser from Internet Explorer to Microsoft Edge. It is faster and more user-friendly compared to its predecessors. But after the Creator Update, some experienced receiving the inet_e_resource_not_found error code. In contrary to what everyone expects, you actually don’t have to uninstall and reinstall the Microsoft Edge App. What you can do is reset the browser in your Apps & Features Settings in your Microsoft Settings.

To reset the browser you can follow the steps below:

  1. Click on the Windows icon and go to settings.
  2. Click on Apps and this will bring you to the Apps & Features page. Look for Microsoft Edge from the list of Apps and click on it.
  3. Choose Advance Option
  4. Scroll down then Under Reset, click on repair or reset. When you repair it will fix the existing problem but the data that caused the problem may still be present and can still cause problems. If you click on reset, it will delete all the cache and cookies that are installed in your browser but it will save your Favorites as well as your bookmarks.

Another way to resolve this is by disabling the feature TCP Fast Open on Microsoft Edge. To disable this, go ahead and follow the steps below:

  1. Open the Microsoft Edge browser.
  2. Type in about: flags on the Address (URL) bar.
  3. Under Networking, uncheck the Enable TCP Fast Open.
  4. Close your Microsoft Edge browser and open a new one.
Flushing the DNS also worked for other Users. Sometimes, the error code the inet_e_resource_not_found is caused by a corrupted DNS cache. There are 2 ways to flush your DNS. The first option is to use the command prompt to run the command.
  1. To access the Command prompt or CMD, you can search for it on Cortana or you can click on the Windows icon to access the Programs, scroll down to the Windows System folder and click on it.
  2. A dropdown menu will show up, click on Command Prompt which is the first on the list.
  3. Type in the code ipconfig /flushdns and press enter.
  4. There will be a message that will show that says Windows IP configuration successfully flushed the DNS Resolver Cache
  5. Exit the CMD by typing exit and press enter.
The easiest way to do this is to Press the keys Window + R on your keyboard. Type in ipconfig /flushdns in the search box and hit enter or click on OK. These are only some of the ways to resolve the inet_e_resource_not_found. There are other ways to further troubleshoot this issue such as reinstalling your Wifi Adapter Driver or adjusting the DNS Server Address. But most of the time, users are able to resolve the issue with the steps provided above.
Read More
The boot configuration data store can not open
The Boot Configuration Data or BCD files have the instructions required by the Windows operating system in order to properly boot the computer. So if you experience any trouble when you boot your computer, then it is possible that it is due to some misconfiguration or even corrupted Boot Configuration Data files. And if you also encounter an error saying,
“The boot configuration data store could not be opened”
while you try to carry out any command on the bcedit.exe, then you’ve come to the right place as this post will guide you on how you can fix this error in Windows 10. This kind of error could pop up if the system is not able to locate the specified file. It is also possible that the requested system device can’t be found or that the boot configuration data store could not be opened. In addition, when you open the System Configuration or MSConfig, you might notice that there is no Boot data, and according to the reports, is that when you try to dual boot the computer, the installer will replace the default bootloader.

Explanation

In case you don’t know, Windows’ earlier versions were stored in the “Boot.ini” file. You can find the entry in the EFI firmware boot manager of the EFI-based operating system which is located at EFIMicrosoftBootBootmgfw.efi. Whatever the cause of the error is, there are several suggestions you can check out to resolve the problem. You can try to set an entry option value in BCD or enable the Advanced options menu, as well as rebuild the BCD. Before you proceed with the troubleshooting options provided below, make sure that you boot your computer into the Advanced Recovery Mode first since that’s where you can find Command Prompt under the Advanced Options. In addition, you also have to suspend or disable BitLocker and Secure Boot on your PC.

Option 1 – Try to set an entry option value in BCD

  • Once you’re in the Advanced Options, select Command Prompt.
  • Next, execute this command to set an entry point: bcdedit /set {current} Description "TheNameYouWant"
  • After the command has been executed, it will enable the system to trust a version of Windows that is not trusted by default. This should fix the problem, if not, follow the next given options below.

Option 2 – Try to specify the BCD file

  • In the elevated Command Prompt, execute this command: bcdedit /store c:BootBCD
  • Once done, the command will give you a list of options and then execute this next command: bcdedit /store c:BootBCD /set bootmenupolicy legacy
  • After that, restart your computer and select your Windows and then tap the F8 key right away.
Note: When you select the legacy option, the Advanced Options menu will be available during the computer boot up and then you can select into which operating system you can boot your computer into.

Option 3 – Try to rebuild the BCD files

The first thing you can do to resolve the issue is to Rebuild Boot Configuration Data or BCD files.
  • You can start by booting into the installation environment for Windows 10 from an installation media.
  • After that, click on Repair your computer and on the blue screen, select Troubleshoot and then select the Advanced options menu.
  • From there, select Command Prompt and once you open it, enter each one of the commands given below by sequence.
    • bootrec /FixMbr
    • bootrec /FixBoot
    • bootrec /ScanOS
    • bootrec /RebuildBcd
  • Once you’re done executing the commands given above, type “exit” to close the Command Prompt window and then restart your computer and see if it fixed error code 0xc000014c.
Read More
Copy & Paste text between devices
If you have multiple products with Windows on them, Copy & Paste text between them is easy as 1,2,3 and we will be happy to tell you how can you do it. Hello and welcome everyone, today we will see how can we share text information between 2 devices using Windows 10 in instant. In order for you to be able to share text information between devices, there are two prerequisites that you must meet. The first is that all devices must be connected to the internet, the second is that you must have a Microsoft account. If you have both of these things continue with the tutorial, if you do not have a Microsoft account go to Microsoft website and create one for free. Also, know that this option needs to be turned ON on all devices in order to work. So steps we will explain will have to be done on each device, if you already have some device logged in and connected to Microsoft account, you can skip setting it up. Click on ⊞ WINDOWS and click on settings. Windows 10 Star menu with marked settings iconThen click on System. Windows settings system markedOnce you are in the system, on the left tabs find and click on Clipboard. windows settings clipboardIf you are not logged in to your Microsoft account do so on the right panel by locating Sync across devices and click on sign in. clipboard sign inWhen you are signed in click on the option to turn it on. sync across devicesOne option is turned ON, you will be greeted with two choices, to copy everything from the clipboard automatically or to choose text which you want to sync and paste it with ⊞ WINDOWS + V. Choose whatever better suits your needs, and you are done. Repeat these steps for other devices and you are done.
Read More
Network License NotAvailable15.570.0 Autodesk
If when trying to start Autodesk applications you receive a Network license not available error then please keep on reading, this guide is for you:

Causes of the error:

  • The license on the License Server is invalid.
  • The port for Autodesk Network License Manager is blocked.
  • The client computer is configured with incorrect license server information.
  • The license request is timing out on the client's computer before the license is obtained.

Solutions for the error:


Verify that the Autodesk License Server is setup with the correct license file.

To set up a license server for Windows, perform the following:

  1. Download and install the Network License Manager for Windows:
  2. Open LMTools and access the System Settings tab. Make a note of the "hostname" and "ethernet address" of the license server.
  3. Generate a Network License File in Autodesk Account.
  4. On the Service/License tab, select Configuration Using Services and LMTOOLS ignores license file path environment variables.
  5. On the Config Services tab, enter a name for the new service in the Service Name field.
  6. Fill the following fields, using the Browse buttons:
    • Path to the lmgrd.exe - Navigate to this file: C:\Autodesk\Network License Manager.
    • Path to the License file - Navigate to the new Autodesk.lic file, typically placed in: C:\Autodesk\Network License Manager\Licenses.
    • Path to the Debug Log file: C:\Autodesk\Network License Manager.
    • If no file is present, create a TXT file in Notepad and rename it “Debug.log.”
  7. Make sure the "Start Server at Power Up" and the "Use Services" boxes are checked. Then click Save Services.
  8. On the Start/Stop/Reread tab, click Start Server.
  9. On the Server Status tab, click Perform Status Enquiry.
  10. Licenses should display as active.

How to set up the Autodesk Network License Manager on a Mac.

Note: The Autodesk License Server Manager (version 11.16.2.0) is supported only on the following Mac operating systems:
  • Apple macOS High Sierra 10.13
  • Apple macOS Sierra 10.12
  • Apple Mac OS X El Capitan 10.11
  1. Download Autodesk Network License Manager version 11.16.2.0 for Mac
    • ​​Download the nlm11.16.2.0_ipv4_ipv6_mac_universal.tar.gz file to the Desktop.
  2. To install the Autodesk Network License Manager:
    • Double click on nlm11.16.2.0_ipv4_ipv6_mac_universal.tar.gz to unpack the installer package.
    • After unpacking nlm11.16.2.0_ipv4_ipv6_mac_universal.pkg, will be /Downloads/adlm/FLEXnet folder.
    • Double click on nlm11.16.2.0_ipv4_ipv6_mac_universal.pkg to start installation and follow the installation wizard.
    • The license server will be installed in /usr/local/flexnetserver/ directory.
  3. Change permissions for /usr/local/flexnetserver/ directory to 777
  • Open Terminal (located in /Applications/Utilities/Terminal) and enter the following command:
sudo chmod -R 777 /usr/local/flexnetserver
  • Note: Administrator password may be asked. While typing no characters are shown, just type out the password and hit return key.
  • Note: To start the license server only with elevated permissions (using sudo command), change permissions to 755 instead of 777.
  1. Create /usr/local/flexnetserver/licenses directory for network license file location
sudo mkdir /usr/local/flexnetserver/licenses
  1. Find the license server Host Name and Host ID.
  2. Generate the Network License File in the Autodesk Account
    • Once the license file is generated, make sure it has a .lic extension (e.g. adsk_license.lic) and is in a plain text format and place it in /usr/local/flexnetserver/licenses directory
Note: In this article we will refer to  adsk_license.lic as network license file name. Feel free to change the actual name of the license file, but make sure to reflect the new name when using the commands below.
  1. Create a debug.log file in the /usr/local/flexnetserver/ directory using the following command:
touch debug.log
  1. To start the Network License Server use the following command:
/usr/local/flexnetserver/lmgrd -c /usr/local/flexnetserver/licenses/adsk_license.lic -l /usr/local/flexnetserver/debug.log
Note: If folder permissions for  /usr/local/flexnetserver/ are set to  775, then use sudo command to start the server. For example:
sudo /usr/local/flexnetserver/lmgrd -c /usr/local/flexnetserver/licenses/adsk_license.lic -l /usr/local/flexnetserver/debug.log
  1. To obtain license server status enquiry:
/usr/local/flexnetserver/lmutil lmstat -a -c /usr/local/flexnetserver/licenses/adsk_license.lic
  1. To stop the license server:
/usr/local/flexnetserver/lmutil lmdown -q -force
  • A​​lternatively, run ps command to obtain process ids for lmgrd and adskflex and then kill those processes:
ps -ax | grep lmgrd
ps -ax | grep adskflex
kill -9
  • (provide process ids obtained by previous commands individually)

How to set up the Autodesk Network License Manager on Linux.

Note: The Autodesk License Manager (11.16.2.0) is supported only on the following Linux distros:
  • Red Hat® Enterprise Linux® 7
  • Red Hat Enterprise Linux 6
  • SUSE Linux Enterprise 12
  • SUSE Linux Enterprise 11
To configure the license manager use the following steps:
  1. Download Autodesk Network License Manager v. 11.16.2 for Linux from this link
    • ​​Download the nlm11.16.2.0_ipv4_ipv6_linux64.tar.gz file to your desktop.
  2. To install the Autodesk Network License Manager run following command as root.
    • tar –zxvf nlm11.16.2.0_ipv4_ipv6_linux64.tar.gz
    • rpm -vhi nlm11.16.2.0_ipv4_ipv6_linux64.rpm
    • The license server will be installed in /opt/flexnetserver/ directory.
  3. Find the license server Host Name and Host ID
  • To obtain the license server system hostid run the following command
/opt/flexnetserver/lmutil lmhostid From the command output note the hostid in quotes, if the system has two active NIC cards, select the first MAC address. lmutil - Copyright (c) 1989-2018 Flexera. All Rights Reserved. The FlexNet host ID of this machine is "000c297949e0"
  • To obtain the license server system hostname run the following command
/opt/flexnetserver/lmutil lmhostid hostname From the command output note the hostname of the license server. mutil - Copyright (c) 1989-2018 Flexera. All Rights Reserved. The FlexNet host ID of this machine is "HOSTNAME=Centos7.localdomain"
  1. Generate your Network License File in Autodesk Account
    • Once the license file is generated, make sure it has .lic extension (e.g. adsk_license.lic) and place it in /opt/flexnetserver/licenses directory.  If the directory doesn't exits, create it with this command: sudo mkdir /opt/flexnetserver/licenses
Note: in this article we will refer by adsk_license.lic your network license file name.
  1. To start the Network License Server
    • /opt/flexnetserver/lmgrd -c /opt/flexnetserver/licenses/adsk_license.lic -l /opt/flexnetserver/server_log.log
  2. To obtain license server status enquiry
    • /opt/flexnetserver/lmutil lmstat -a -c /opt/flexnetserver/licenses/adsk_license.lic
  3. To stop your license server service
    • /opt/flexnetserver/lmutil lmdown -q -force
    • alternatively you can also run ps command to obtain process ids for lmgrd and adskflex and then kill those processes
      • ps -aw | grep lmgrd
      • ps -aw | grep adskflex
      • kill -9 (provide process ids obtained by previous commands individually)
  4. To start the license server automatically after the system reboot
    • Open /etc/rc.d/rc.local script as root and enter license server start up command in it.
touch /var/lock/subsys/local /opt/flexnetserver/lmgrd -c /opt/flexnetserver/licenses/adsk_license.lic -l /opt/flexnetserver/server_log.logNote: To ensure that the script will be executed during boot, run following command as root. chmod +x /etc/rc.d/rc.local
  1. Make sure that all necessary ports are open:
  • lmgrd.exe needs ports 27000 to 27009.
  • adskflex.exe needs port 2080.
Note: Errors may occur if the network license file is corrupt or in the case of a combined network license it has incorrectly combined licenses. To learn more about combining licenses, see Combining License Files for Multiple Autodesk Products. Use the License File Parser to verify that the license contains the appropriate products and FLEXnet feature codes and does not display an error

Verify that TCP ports (2080, 27000-27009) used by Autodesk Network License Manager are not blocked by Firewall.

The FLEXlm® based version uses the following incoming ports:
  • TCP ports 2080 (for the adskflex vendor daemon)
  • TCP ports 27000 to 27009 (for the lmgrd master daemon, which uses the first open port in the range)
Note: If these port addresses are restricted by a router or firewall software, users on the remote side of the router will not have access to licenses controlled by the Network License Manager.

Verify that the client computer is configured with the correct license server name or IP.

Windows:

Clear license server information from the system registry.

  1. Type regedit in the Windows Search box and hit Enter key.
  2. Select the following registry key
  • [HKEY_CURRENT_USER\SOFTWARE\FLEXlm License Manager]
  1. As the key is selected, in right panel ADSKFLEX_LICENSE_FILE will be visible.
  2. Right click on the key and delete it.

Specify the license server in ADSKFLEX_LICENSE_FILE system variable 

  1. Go to Start > Control Panel > System and Security > System.
  2. Select Advanced system settings.
  3. On the System Properties dialog, click Environment Variables.
  4. Under System Variables, click New.
  5. Enter ADSKFLEX_LICENSE_FILE for the variable name and 2080@SERVER_NAME _OR _IP for the variable value.
Note: the license server information most often is recorded in LICPATH.lic file and can be verified there too.  ADSKFLEX_LICENSE_FILE system variable supersedes LICPATH.lic.  Thus, setting the system variable is preferable when this error is seen.

If the license server is on a VPN or a remote network set the FLEXLM_TIMEOUT environment variable:

  1. Go to Start > Control Panel > System and Security > System.
  2. Select Advanced system settings.
  3. On the System Properties dialog, click Environment Variables.
  4. Under System Variables, click New.
  5. Enter FLEXLM_TIMEOUT for the variable name and 5000000 for the variable value.
  6. Click OK to save the setting.
Note: if needed the variable value can be increased to 10000000.

Mac/Linux:

Specify the Autodesk Network License server information in $HOME/.flexlmrc file.

Use a text editor to create a flexlmrc.txt file and save it in Plain text format (In TextEdit on Mac: Format - Make Plain Text) on desktop. The file content should look like this, except with the name or IP address of the license server.
  • ADSKFLEX_LICENSE_FILE=@SERVER_NAME _OR _IP
If the license server is on the same machine as the Autodesk software, use localhost as the license server name.  Thus, the content of flexlmrc file could look like this:
  • ADSKFLEX_LICENSE_FILE=@localhost
Note: On firewall restricted network or when accessing the license server via VPN, need to include TCP port/s (usually 27000 or 2080) into Autodesk License Server service as follows: ADSKFLEX_LICENSE_FILE=2080@SERVER_NAME _OR _IP

Once flexlmrc file is created move it to user's $HOME folder as follows:

  1. Open a Terminal window
  2. Type open ~ (Mac) or nautilus ~ (Linux) to open $HOME folder
  3. Drag and drop flexlmrc.txt file from Desktop to the home folder.
  4. To make the file a configuration file, rename it to .flexlmrc (please note . [DOT] in front of the file name) by running the following command:
  • mv flexlmrc.txt .flexlmrc (Mac)
  • mv flexlmrc .flexlmrc (Linux)

Verify that the license server information registered with the product is correct (versions 2020 and later only)

In versions 2020 and later, the license server information is registered with the AdskLicensing service running locally on the workstation. When changing to a new license server, the old server information may still be registered with AdskLicensing and result in the error above, if this is not appropriately updated. See the below steps to solve this:
  1. Click the Start menu and type cmd.
  2. Right-click on the Command prompt and choose "Run As Administrator."
  3. In the Command prompt, run the following command, followed by ENTER:

"C:\Program Files (x86)\Common Files\Autodesk Shared\AdskLicensing\Current\helper\AdskLicensingInstHelper.exe" change -pk PRODKEY -pv VER.0.0.F -lm "" -ls "" -lt""

Note:

  • Replace PRODKEY with the product key correspondent to your product(s). See Look Up Product Keys for the full list.
  • Replace VER with the version you are using. E.g. 2020 for AutoCAD 2020.
  • Repeat this step for each software you need to reset.
  1. Open Registry Editor (Start > type regedit > ENTER).
  2. Navigate to HKEY_CURRENT_USER\Software\FLEXlm License Manager.
  3. On the right-side, verify of the ADSKFLEX_LICENSE_FILE key exists. If yes, remove it (right-click > Delete).
  4. Run the software again.
  5. Select Multi-user in the Let's Get Started screen.
  6. Follow the steps to connect to your license server.
Read More
How to start Windows 10 in safe mode
Booting Windows 10 in safe mode can solve many issues with your computer since Windows will boot just in its basic core and you can safely maintain it, find a solution for issues, etc. Before, entering safe mode was easy and pretty straightforward, during Windows evolution, entering safe mode was somewhat complicated and not being made so directly like once it was but do not worry. Starting Windows in safe mode today is even maybe easier than it was before, it is just not so obvious as it once was. In this article, we will go through several ways how you can boot up Windows in safe mode in order to solve whatever issue is troubling you.
  1. Start safe mode from settings

    Open Settings by pressing the ⊞ WINDOWS + I or by just clicking on the Start button and clicking Settings. Go to Update & Security, then Recovery. In Advanced startup, click Restart now. Once your PC reboots, click Troubleshoot, then Advanced options. Select Startup Settings then Restart.
  2. Go to safe screen from Sign-in screen

    Click the Shift on your keyboard while clicking on the Power button on the bottom right corner of the screen. Once your PC restarts, click on Troubleshoot, then Advanced options. Select Startup Settings then Restart. After the reboot, select or the F4 on your keyboard to run in Safe Mode. If you choose to use Safe Mode with Networking, select or F5.
  3. Start Windows recovery Environment

    Go to the Windows Recovery Environment by doing the following steps: Press on the power button to turn off your device. Press on the button again to turn it on. Once Windows starts, press the power button again for 10 seconds to turn it off. Then press it on again. Upon the reboot, hold on to the power button for 10 seconds to turn it off, then turn it on again. Because you've repeatedly turned on and off your PC, you will be redirected to Windows Recovery Environment. On the pop-up window, click on Troubleshoot, then Advanced options. Select Startup Settings, then Restart. After the reboot, select or the F4 on your keyboard to run in Safe Mode. If you choose to use Safe Mode with Networking, select or F5.
  4. Hold SHIFT while pressing RESTART on the start menu

    On the Windows 10 sign-in screen, hold on the SHIFT on your keyboard. While pressing on the key, click on the Power button, then choose Restart on the pop-up menu. Once your PC restarts, click on Troubleshoot, then Advanced options. Select Startup Settings then Restart. After the reboot, select or the F4 on your keyboard to run in Safe Mode. If you choose to use Safe Mode with Networking, select or F5
  5. Boot from installation media and choose it in the command prompt

    Create a Windows 10 bootable installation media on any external storage media. Once you do this step, wait for the installation to load. Select your preferred language and click on Next. Click on Repair your computer at the bottom left of the menu. Click on Troubleshoot, then Advanced options. Select Command Prompt - Use the Command Prompt for advanced troubleshooting options. Type in the following command on the prompt: bcdedit /set {default} safeboot minimal Hit Enter and wait for it to tell you that "The operation completed successfully". Exit Command Prompt and click on Continue.
  6. Use system configuration tool

    In the Search bar, type in msconfig. Select the Boot tab and under the Boot options, put a check beside Safe boot. Click OK. Reboot PC
  7. Press SHIFT + F8

    Press SHIFT + F8 when turning on Windows. This redirects you to Advanced Boot Options Window, then choose to run Windows on Safe Mode
There you have it, 7 different ways to enter safe mode in Windows 10, we hope that any of these tips proved helpful and that you managed to enter the safe mode and fix your Windows issues.
Read More
Make AI images on your local PC

Stable Diffusion is a machine learning model developed by Stability AI to generate digital images from natural language descriptions. The model can be used for different tasks like generating image-to-image translations guided by text prompts and upscaling images.

Unlike competing models like DALL-E, Stable Diffusion is open source and does not artificially limit the images it produces. Stable diffusion was trained on a subset of the LAION-Aesthetics V2 data set. It can run on most consumer hardware equipped with a modest GPU and was hailed by PC World as "the next killer app for your PC".

stable diffusion

Since Stable Diffusion is run locally and not in the cloud, as mentioned there is no limit to the number of images that you can produce but in order to use it you will have to get down a little dirty with setting your PC environment for it since it is not really an application, it is a command line text based descriptor that will use python to generate your images, so there is no install nor GUI.

In this guide, we will show you how to both install and run Stable Diffusion on your local PC so you can start producing some cool images all by yourself.

Hardware and software requirements

Make no mistake, Stable Diffusion will not run on a potato PC, in order to harvest the power of AI-generated imagery this is what you will need:

  • A GPU with at least 4GB of VRAM
  • 10GB of hard disk space
  • Python and libraries (Miniconda3 installer will install everything you need)
  • The Stable Diffusion files
  • Git
  • Any OS (Windows, Linux, macOS)

Installing components

For this tutorial, we are covering the installation and running of Stable Diffusion on Windows PC. The steps presented here are presented in a way that installation can be performed on any operating system but precise instructions will be for Windows OS.

GIT

The first thing to do is to install GIT. It is a tool that will let you easily maintain and install repos from the internet. to install it go to: https://git-scm.com/ and click on download. Follow the instructions for your version of the operating system. If you are a developer you are familiar with GIT and if you already have it installed you can skip this step.

One thing that is important when installing GIT locally is to select to use it via the command line (the second option that says "Git from the command line and also from 3rd-party software").

Miniconda3

Now when we have GIT installed, next thing is to use Miniconda3 to install python and all required libraries that are needed. Get the installer at: https://docs.conda.io/en/latest/miniconda.html

Miniconda3 is basically an easy installer so you do not have to install tons of stuff manually from different websites and sources, it is nicely packaged in the installer that will take care of everything.

Stable Diffusion

After the previous two steps, we are ready now to actually install Stable Diffusion. Go to https://huggingface.co/CompVis/stable-diffusion#model-access and install the latest library (as of the writing of this article currently it is stable-diffusion-v1-4-original, the last one on the right), the library is almost 5GB in size so be prepared for big download.

After installing stable diffusion's latest library it is time to update it to the newest version. You can download ZIP from GIT HUB https://github.com/CompVis/stable-diffusion

Once downloaded click on the Windows start button and type in Miniconda3 and click on open. Create a folder and name it how you want on a drive of your choice. For this example, we will install it all in disk C under folder AI_art, follow the instructions below but use your own names and destination instead. Do not close Minicoda3 after typing commands!!!

cd c:/
mkdir AI_art
cd AI_art 

Extract GitHub files that you have downloaded into your new folder and get back to Minicoda3 and type the next commands:

cd C:\AI_art\stable-diffusion-main
conda env create -f environment.yaml
conda activate ldm
mkdir models\ldm\stable-diffusion-v1

Let the whole process finish, some files are large and it might take a while. After the whole process is finished and completed, copy the checkpoint file that you have downloaded into: C:\AI_art\stable-diffusion-main\models\ldm\stable-diffusion-v1

After the file is copied rename it to model.ckpt and you are finished.

Running Stable Diffusion

The created environment is needed in order to actually use Stable Diffusion to create images. Each time you want to use it you will have to run it, so go into Miniconda3, and inside it type:

conda activate ldm
cd C:\AI_art\stable-diffusion-main

after we are inside the folder call the script with the parameters:

python scripts/txt2img.py --prompt "TXT DESCRIPTION OF IMAGE THAT YOU WANT TO CREATE" --plms --n_iter 5 --n_samples 1

and that's it, your image is created and it is located in C:\AI_art\stable-diffusion-main\outputs\txt2img-samples\samples

Read More
Fix Mfplat.dll missing on Windows 10
Recently, a number of users reported that they were not able to run PLEX and other similar streaming services ever since a Windows Update was automatically installed in the system. The error in these streaming services has something to do with a missing Mfplat.dll DLL file from the Windows Media Feature Pack. On the other hand, some users also reported that the mfplat.dll error occurred on several games as well which used the Media Feature Pack. Usually, the mfplat.dll error is caused by the missing Media Feature Pack in Windows 10. Although most of the time the Media Feature Pack is installed by the application that needs it or through Windows Update automatically, there are just certain installers that do not have it. It could be that the Media Playback service was disabled by a particular Windows Update. Aside from that, the error might be because your computer is using Windows 10 N – a Windows 10 version that does not include the Media Feature Pack by default. Whatever the cause may be, you can troubleshoot the problem with the help of the options given below. But before you go on, keep in mind that downloading the missing DLL file and copying it to the folder of the program where you encounter the error won’t really help and will only make things even more complicated.

Option 1 – Install the Media Feature Pack for Windows 10 N version

As mentioned, the Windows 10 N version does not come with Windows Media Player. Meaning to say, the Media Feature Pack is also not installed by default or won’t be updated by the Windows Update component. So if you are not quite sure what Windows 10 version you currently have installed, refer to these steps:
  • Tap the Windows key + S and then type “about” in the search box.
  • From the search results, click on the “About your PC” to open the About tab of the Settings app.
  • Afterward, scroll down to the Windows specifications and check your Windows version under Edition.
Note: If you’ve determined that your computer is using the Windows 10 N version, you need to install the appropriate Media Feature Pack for your computer. How? Refer to the steps below:
  • Click this link to download and install the Media Feature Pack from Microsoft’s official website.
  • Upon installation, select the edition you want to install using the drop-down menu and then click on Confirm. Take note that there are few reasons why you’d want to install the older version since most streaming services like PLEX and most games usually require version 1803.
  • After that, wait until the request is validated. The download should begin in a few minutes automatically.
  • Once the download is completed, open the installation executable file and follow the next on-screen instructions to install the Media Feature Pack on your computer.
  • Restart your computer. After your computer has rebooted, open the application where you’re getting the mfplat.dll missing error and then check if the problem is now fixed.

Option 2 – Enable Media Playback via Command Prompt

If you encounter the mfplat.dll missing error when you attempt to run PLEX or other similar streaming service and you’ve already verified that the Media Feature Pack is indeed installed, you might want to try enabling it using an elevated Command Prompt. There are cases when a particular Windows Update ends up disabling the feature and creates the grounds which results in the mfplat.dll missing error. Thus, you can have to enable the feature via Command Prompt.
  • Tap the Win + R keys to open the Run dialog box.
  • Then type “cmd” in the field and hit Enter to open an elevated Command Prompt.
  • Next, click on Yes if a User Account Control prompt pops up.
  • After opening Command Prompt, copy and paste the following command and hit Enter to execute it:
dism /online /enable-feature /featurename:MediaPlayback
  • Close Command Prompt and then open the app once again to check if the problem is now fixed.

Option 3 – Try extracting a copy of the mfplat.dll file from the windows.old directory

If you encounter the error shortly after you just upgraded to Windows 10 from an older version, the best thing you can do to resolve the problem is to use windows.old directory to fetch an old copy of the mfplat.dll file. To do so, follow the steps below.
  • Go to the Windows drive and then look for the windows.old directory where it preserves a copy of your old operating system as well as associated files in case something goes out of hand during the upgrade process.
  • After that, open the windows.old folder and then go to the syswow64 folder.
  • Next, from the syswow64 folder, copy the mfplat.dll file and paste it to C: windows syswow64.
  • Restart your computer and check if the error is now resolved or not.
Read More
Fix Libmysql.dll is Missing Error in Windows
Libmysql.dll is missing or not found error appears in Windows when the user is trying to open and run the application. In this guide, we will offer you solutions on how to fix and remove this annoying error.
  1. Check recycle bin

    Some applications or purely by accident itself libmysql.dll gets deleted. If you have not turned recycle bin off go to it and check to see if the file is by any chance there. If you find it, right-click on it, choose restore, the error will be gone.
  2. Update drivers

    Press ⊞ WINDOWS + X to open the Windows menu and click on Device manager In device manager locate device which has alert mark next to it Right-click on it and choose update driver Reboot your computer
  3. Run SFC scan

    Press ⊞ WINDOWS + X and choose command prompt (admin) In command prompt type in sfc /scannow and press ENTER wait for the operation to complete and Reboot your system
  4. Reinstall application

    if you are getting an error only on one application or an error has started to appear after the installation of a particular application go to Windows applications, uninstall it and then install it again. There is a chance that the file has been corrupted during the installation process.
Read More
Repairing or rebuilding the WMI Repository
There are times when the WMI Repository gets corrupted which results in the Provider Load Failure. To resolve this issue, you need to repair or rebuild the WMI Repository in your Windows 10 computer. In this post, you will be guided on how exactly you can do that. In case you don’t know, the WMI which stands for Windows Management Instrumentation is a set of specifications from Microsoft to consolidate the management of devices and applications in a network. The WMI is a database that stores meta-information and definitions for WMI classes. Using only these, the conditions of the systems can be known. You can find the WMI Repository in %windir%System32WbemRepository. It provides end-users with the status of the local or remote computer system. Keep in mind that you must not use this on the Server 2012 Cluster machine. Although there are command-line tools that can fix or restore the Windows Management Instrumentation repository. However, Microsoft suggests that it’s better if you verify if there is corruption. Here are a list of errors as well as permission issues you might encounter:
  • Unable to connect to root default or rootcimv2 namespaces. It fails with the error code “0x80041002” pointing to “WBEM_E_NOT_FOUND.”
  • 0x80041010 WBEM_E_INVALID_CLASS
  • When you open Computer Management and Right Click on Computer Management (Local) and select Properties, you get the following error: “ WMI: Not Found” or it hangs trying to connect
  • Trying to use wbemtest , and it hangs
  • Schemas/Objects missing
  • Strange connection/operation errors (0x8007054e)
To verify if there is corruption, you can try running the following command in an elevated Command Prompt:
winmgmt /verifyrepository
 After you enter the command, if there is a response saying, “repository is not consistent”, then the repository has an issue. If not, then something else is causing the problem. Since you are certain that corruption exists in the WMI repository, then here are some suggestions you need to check out to repair or rebuild the WMI repository.

Option 1 – Try to reset WMI Repository

  • Type “command prompt” in the Start Search and right-click on Command Prompt from the search results and then select “Run as administrator”.
  • After opening Command Prompt with admin privileges, type and enter this command: winmmgmt /salvagerepository
The command you entered is used when the winmmgmt command performs a consistency check. So if an inconsistency is detected, it will rebuild the repository.
  • Next, execute this command to see if the WMI repository now comes back as consistent: winmgmt /verifyrepository
This command will perform a consistency check on the WMI repository.
  • If it states that the WMI repository is not consistent, then you need to type and enter this command: winmgmt /resetrepository
This command is used to reset the repository to its initial state when the operating system was first installed.

Option 2 – Try to force recover the WMI Repository

The WMI Repository comes with a built-in self-recovery process so when the WMI service restarts or detects any corruption, it will automatically trigger the self-recovery procedure. This can happen in two ways:
  • AutoRestore: This will use the backup images if the Volume Shadow copy or VSS backup is turned on.
  • AutoRecovery: The rebuilding process will generate fresh images of the WMI repository based on the registered MOFs. The MOFs are available in the registry located at HKLMSoftwareMicrosoftWBEMCIMOM: Autorecover MOFs
Note: Autorecover MOFs is a key so double click on it to check its value. On the other hand, if the self-recovery procedure does not work, you can try to use the force-recovery process instead. How? Refer to these steps:
  • First, you need to check the reg key value is empty or not under this registry path: HKLMSoftwareMicrosoftWBEMCIMOMAutorecover MOFs
  • If the reg key value is empty, you have to copy-paste the reg key value from another computer. Just make sure that it’s from the System which is equivalent to the computer in question.
  • Next, type and enter this command: Winmgmt /resetrepository
  • After you enter the command, if you get an error that says, “WMI repository reset failed. Error code:0x8007041B. Facility: Win32”, then you have to stop all the Dependency Services on the WMI service by running the following commands:
    • net stop winmgmt /y
    • Winmgmt /resetrepository
This should fix the problem.
Read More
Backup all drivers in Windows 10
When Windows is installed on a clean hard drive it usually finds most of the needed drivers for our computer to run, but if we by any chance have any old unsupported hardware or some exotic one chance are very high that Windows will not be able to locate and install drivers for it. And sometimes we do not even have drivers from where to download them, let's say for example you have purchased a second-hand laptop with Windows on it, you wish to create a clean and fresh copy of new Windows installation but you do not have drivers, and let us say the model is not supported so you can not download them. In this case, this shown method will help you a ton and save you a lot of time and frustration. So, in order to back all of your drivers from your Windows follow this simple guide step by step. Note please that this method will backup drivers themselves, you will not backup installation packages of drivers or similar stuff, only drivers installed in Windows itself.

Backing up the drivers

First thing first, create a folder where you want your drivers to be backed up somewhere in your HD and give it any name. Second, press ⊞ WINDOWS + X to open the secret Windows menu. keyboard with windows and x markedFrom the menu choose Command Prompt (administrator) Windows menu command prompt adminWhen the command prompt is active type the next command in it: DISM /online /export-driver /destination:C:\DriverBackup where: C:\DriverBackup is the folder and the hard drive where you want to store your backed-up drivers. Press ENTER That's it, you have now successfully backed-up all of your installed Windows drivers. Now, save all of your drivers on USB and reinstall Windows.

In order to now return backed drivers do the following:

Press again ⊞ WINDOWS + X to open the secret Windows menu. keyboard with windows and x markedbut this time choose Device manager Windows menu device managerFrom decide, manager right-click on any device Windows has not been able to install appropriate driver and choose update driver
  • Click on the Browse my computer for driver software option.
  • Click the Browse button.
  • Select the folder with the driver backup.
  • Check the Include subfolders option.
  • Click the Next button.
  • Click the Close button.
Read More
1 2 3 171
Logo
Copyright © 2023, ErrorTools. All Rights Reserved
Trademark: Microsoft Windows logos are registered trademarks of Microsoft. Disclaimer: ErrorTools.com is not affiliated with Microsoft, nor claims direct affiliation.
The information on this page is provided for information purposes only.
DMCA.com Protection Status