Failed to fetch device status for device id 0 error code 3

When I'am trying to run Yolo detection examples, I got that error: 2020-02-02 21:39:00.821721: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic librar...

@Dominux After a brief test , I think my problem does relate to VSCode .
I can run my .py file in the command prompt without any problem , but in VSCode , it is just as my description .

My code :

import keras
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Conv2D, MaxPool2D, Flatten, Dropout, Dense
from keras.optimizers import Adadelta

(x_train, y_train), (x_test, y_test) = mnist.load_data()

im = plt.imshow(x_train[5], cmap='gray')
plt.show()

x_train = x_train.reshape(-1, 28, 28, 1)
x_test = x_test.reshape(-1, 28, 28, 1)

x_train = x_train / 255
x_test = x_test / 255

y_train = keras.utils.to_categorical(y_train, 10)
y_test = keras.utils.to_categorical(y_test, 10)

model = Sequential()
model.add(Conv2D(32, (5, 5), activation='relu', input_shape=[28, 28, 1]))
model.add(Conv2D(64, (5, 5), activation='relu'))
model.add(MaxPool2D(pool_size=(2, 2)))
model.add(Flatten())
model.add(Dropout(0.5))
model.add(Dense(128, activation='relu'))
model.add(Dropout(0.5))
model.add(Dense(10, activation='softmax'))

model.summary()

str = input()

model.compile(loss='categorical_crossentropy',
              optimizer=Adadelta(),
              metrics=['accuracy'])

model.fit(
    x_train,
    y_train,
    batch_size=64,
    epochs=15,
    # validation_data=(x_test, y_test)
)

score = model.evaluate(x_test, y_test)
print("loss:", score[0])
print("accu:", score[1])

My console message is also a little different from yours :

2020-02-22 20:17:28.222385: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll
2020-02-22 20:17:34.482040: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library nvcuda.dll
2020-02-22 20:17:35.087860: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1555] Found device 0 with properties: 
pciBusID: 0000:01:00.0 name: GeForce GTX 1050 computeCapability: 6.1
coreClock: 1.493GHz coreCount: 5 deviceMemorySize: 2.00GiB deviceMemoryBandwidth: 104.43GiB/s
2020-02-22 20:17:35.096790: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll
2020-02-22 20:17:35.111742: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cublas64_10.dll
2020-02-22 20:17:35.131634: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cufft64_10.dll
2020-02-22 20:17:35.139913: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library curand64_10.dll
2020-02-22 20:17:35.162752: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cusolver64_10.dll
2020-02-22 20:17:35.179229: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cusparse64_10.dll
2020-02-22 20:17:35.210591: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudnn64_7.dll
2020-02-22 20:17:35.225324: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1697] Adding visible gpu devices: 0
2020-02-22 20:17:35.230182: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
2020-02-22 20:17:35.233624: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1555] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: GeForce GTX 1050 computeCapability: 6.1
coreClock: 1.493GHz coreCount: 5 deviceMemorySize: 2.00GiB deviceMemoryBandwidth: 104.43GiB/s
2020-02-22 20:17:35.239249: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll
2020-02-22 20:17:35.254127: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cublas64_10.dll
2020-02-22 20:17:35.270027: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cufft64_10.dll
2020-02-22 20:17:35.287544: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library curand64_10.dll
2020-02-22 20:17:35.292623: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cusolver64_10.dll
2020-02-22 20:17:35.308316: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cusparse64_10.dll
2020-02-22 20:17:35.322489: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudnn64_7.dll
2020-02-22 20:17:35.367374: F tensorflow/stream_executor/lib/statusor.cc:34] Attempting to fetch value instead of handling error Internal: failed to get device attribute 13 for device 0: CUDA_ERROR_UNKNOWN: unknown error

index.js code:

// debug

function d(s) {
    console.log(s);
    $("#status").text(s);
}

// geo

function geoWin(pos) {
    d("geoWin(): "+pos.coords.latitude+", "+pos.coords.longitude+","+pos.coords.speed);
}

function geoFail(error) {
    d("geoFail(): "+error.code+": "+error.message);
}

function startGeoWatch() {
    d("startGeoWatch()");
    opt = {maximumAge: 0,timeout: 2000, enableHighAccuracy: true};
    watchGeo = navigator.geolocation.watchPosition(geoWin, geoFail, opt);
}

function stopGeoWatch() {
    d("stopGeoWatch()");
    navigator.geolocation.clearWatch(watchGeo);
}

// life cycle

function onPause() {
    d("onPause()");
    stopGeoWatch();
}

function onResume() {
    d("onResume()");
    startGeoWatch();
}

// init

function onDeviceReady() {
    d("onDeviceReady()");
    document.addEventListener("pause", onPause, false);
    document.addEventListener("resume", onResume, false);
    startGeoWatch();
}

function main() {
    document.addEventListener('deviceready', onDeviceReady, false);
}

// main & globals
var watchGeo=null;
main();

my config.xml Code :

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.terokarvinen.geo" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>HelloCordova</name>
    <description>
        A sample Apache Cordova application that responds to the deviceready event.
    </description>
    <author email="dev@cordova.apache.org" href="http://cordova.io">
        Apache Cordova Team
    </author>
    <content src="index.html" />
    <plugin name="cordova-plugin-whitelist" version="1" />
    <access origin="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <platform name="android">
        <allow-intent href="market:*" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
    </platform>
    <plugin name="cordova-plugin-geolocation" spec="~2.2.0" />
</widget>

AndroidManifest code :

<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" package="com.terokarvinen.geo" xmlns:android="http://schemas.android.com/apk/res/android">
    <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
    <uses-permission android:name="android.permission.INTERNET" />
    <application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name" android:supportsRtl="true">
        <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize">
            <intent-filter android:label="@string/launcher_name">
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
    <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23" />
    <uses-permission android:name="android.permission.ACCESS_GPS" />
    <uses-permission android:name="android.permission.ACCESS_ASSISTED_GPS" />
    <uses-permission android:name="android.permission.ACCESS_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
</manifest>

while i try to run this application in firefox it gives my the exact geolocation.But when i try to run this same application in android device .It always give timeout expired.i dnt have any error in console.

I had tested the my application is requested the GPS service of
android .I had checked that in location menu which have my application
in GPS request.

Windows 10 Pro released in July 2015 Windows 8 Windows 8 Enterprise Windows 8 Pro Windows 8.1 Windows 8.1 Enterprise Windows 8.1 Pro Windows 7 Enterprise Windows 7 Home Basic Windows 7 Home Premium Windows 7 Professional Windows 7 Starter Windows 7 Ultimate Windows Server 2008 Datacenter Windows Server 2008 Datacenter without Hyper-V Windows Server 2008 Enterprise Windows Server 2008 Enterprise without Hyper-V Windows Server 2008 for Itanium-Based Systems Windows Server 2008 Foundation Windows Server 2008 Standard Windows Server 2008 Standard without Hyper-V Windows Server 2008 R2 Datacenter Windows Server 2008 R2 Enterprise Windows Server 2008 R2 for Itanium-Based Systems Windows Server 2008 R2 Foundation Windows Server 2008 R2 Standard More…Less

Summary

This article covers error codes that are generated by Device Manager in Windows. You probably reached this article because Device Manager or another tool like DXDiag reported an error code, and you are not sure how to resolve it. In this article, we will help you find your error code and suggest what you might try to correct the error.

For general issues within Device Manager, see the following articles:

  • Device Manager does not display devices that are not connected

  • Update drivers in Windows 10

For issues with specific device types, also see the following articles:

  • Fix sound problems in Windows 10

  • Fix printer connection and printing problems in Windows 10

  • Camera does not work in Windows 10

Try these steps first

First, try any of the following common resolutions to correct the error:

Update the device driver from Windows Update

Update the hardware’s device driver through Windows Update.


Updated the device driver from the vendor’s website

Update the device driver from the vendor’s website. Follow their installation or update instructions.

  • If the device was preinstalled on the computer, visit the computer manufacturer’s website.

  • If the device was installed after the purchase of the computer, visit the device manufacturer’s website.

  • If the device was preinstalled on the computer, and the computer manufacturer does not have an updated driver for the device, visit the device manufacturer’s website.

Note Make sure that the device drivers that are being installed are compatible with your current Windows version and platform.

Error codes in Device Manager

If the above steps didn’t help you resolve your problem or were not available, locate your error code in the following table, and follow the recommended resolutions for that error code. You may also click the specific error code to get more detail information.

Note This article doesn’t contain all error codes generated by Device Manager. If you are getting an error code that isn’t listed here, you can contact the hardware device vendor’s technical support or Microsoft Support for help.

How to find your error code in Device Manager

  1. In Device Manager, double-click the device type that has the problem.

  2. Right-click the device that has the problem, and then click Properties. This opens the device’s Properties dialog box. You can see the error code in the Device status area of this dialog box.

Error Codes and their resolutions

Cause

The device has no drivers installed on your computer, or the drivers are configured incorrectly.

Recommended Resolution

Update the Driver

In the device’s Properties dialog box, click the Driver tab, and then click Update Driver to start the Hardware Update Wizard. Follow the instructions to update the driver. If updating the driver does not work, see your hardware documentation for more information.

Note You may be prompted to provide the path of the driver. Windows may have the driver built-in, or may still have the driver files installed from the last time that you set up the device. If you are asked for the driver and you do not have it, you can try to download the latest driver from the hardware vendor’s website.

Full error message

“The driver for this device might be corrupted, or your system may be running low on memory or other resources. (Code 3)”

Cause

The device driver may be corrupted, or you are runningout of memory; the system is running low on system memory and may need to free up or add more memory.

Recommended Resolutions

Close some open applications

If the computer has insufficient memory to run the device, you can close some applications to make memory available. You can also check memory and system resources, and the virtual memory settings.

  • To check memory and system resources, open Task Manager. To do this, press CTRL+ALT+DELETE, and then click Task Manager.

  • To check virtual memory settings, open the System Properties dialog box, click the Advanced tab, and then click Settings in the Performance area.

Uninstall and reinstall the driver

The device driver may have become corrupted. Uninstall the driver from Device Manager and scan for new hardware to install the driver again.

  1. In the device’s Properties dialog box, click the Driver tab, and then click Uninstall. Follow the instructions.

  2. Restart your computer.

  3. Open Device Manager, click Action, and then click Scan for hardware changes. Follow the instructions.

Note You may be prompted to provide the path of the driver. Windows may have the driver built-in, or may still have the driver files installed from the last time that you set up the device. However, sometimes, it will open the New Hardware Wizard which may ask for the driver. If you are asked for the driver and you do not have it, you can try to download the latest driver from the hardware vendor’s website.

Install additional RAM

You may have to install additional random access memory (RAM).

Full error message

«Windows cannot identifythis hardware because it does not have a valid hardware identification number. For assistance, contact the hardware manufacturer. (Code 9)»

Cause

Invalid device IDs for your hardware have been detectedby your PC.

Recommended Resolutions

Contact the hardware vendor. The hardware or the driver is defective.

Full Error Message

«This device cannot start. Try upgrading the device drivers for this device. (Code 10)»

Cause

Typically, the device’s hardware key contains a «FailReasonString» value, and the value string is displays an error message defined by the hardware manufacturer. If the hardware key does not contain a “FailReasonString” value the message above is displayed.

Recommended resolutions

Update the driver

In the device’s Properties dialog box, click the Driver tab, and then click Update Driver to start the Hardware Update Wizard. Follow the instructions to update the driver.

Note You may be prompted to provide the path of the driver.  If you are asked for the driver and you do not have it, you can try to download the latest driver from the hardware vendor’s website.

Full Error Message

This device cannot find enough free resources that it can use. If you want to use this device, you will need to disable one of the other devices on this system. (Code 12)

Cause

This error can occur if two devices that are installed on your computer have been assigned the same I/O ports, the same interrupt, or the same Direct Memory Access channel (either by the BIOS, the operating system, or both). This error message can also appear if the BIOS did not allocate enough resources to the device.

Recommended Resolution

Windows Vista and later versions of Windows

Use Device Manager to determine the source of and to resolve the conflict. For more information about how to resolve device conflicts, see the Help information about how to use Device Manager. This error message can also appear if the BIOS did not allocate sufficient resources to a device. For example, this message will display if the BIOS does not allocate an interrupt to a USB controller because of an invalid multiprocessor specification (MPS) table.

Windows Server 2003, Windows XP, and Windows 2000

  1. Open Device Manager.

  2. Double-click the icon that represents the device in the Device Manager window.

  3. On the device property sheet that appears, click Troubleshoot to start the hardware troubleshooter for the device.

This error message can also appear if the BIOS did notallocate sufficient resources to a device. For example, this message will be displayed if the BIOS does not allocate an interrupt to a USB controller because of an invalid multiprocessor specification (MPS) table.

Full Error Message

“This device cannot work properly until you restart your computer. To restart your computer now, click Restart Computer. (Code 14)”

Recommended Resolution

Restart your computer. From Start, click Shut Down, and then select Restart.

Full Error Message

“Windows cannot identify all the resources this device uses. To specify additional resources for this device, click the Resources tab and fill in the missing settings. Check your hardware documentation to find out what settings to use. (Code 16)”

Cause

The device is only partly configured and might need additional manual configuration of the resources the device requires.

Recommended Resolution

The following steps might only work if the device is a Plug and Play device. If the device is not Plug and Play, you can refer to the device documentation or contact the device manufacturer for more information.

  1. From Start, search for device manager and select Device Manager from the results.

  2. Double-click the device in the list, and choose the Resources tab.

  3. In the Resource Settings list, check to see if there is a question mark next to a resource. If so, select that resource, and assign it to the device.

  4. If a resource cannot be changed, click Change Settings. If Change Settings is unavailable, try to clear the Use automatic settings check box to make it available.

Recommended Resolution

Reinstall the device driver using the Hardware Update wizard

  1. From Start, search for device manager and select Device Manager from the results.

  2. Right-click the device in the list.

  3. On the menu that appears, choose Update Driver to start the Hardware Update wizard.

Reinstall the device driver manually

  1. From Start, search for device manager and select Device Manager from the results.

  2. Right-click the device in the list.

  3. Select Uninstall from the menu that appears.

  4. After the device is uninstalled, choose Action on the menu bar.

  5. Select Scan for hardware changes to reinstall the driver.

Note You may be prompted to provide the path of the driver.  If you are asked for the driver and you do not have it, you can try to download the latest driver from the hardware vendor’s website.

Full Error Message

Windows cannot start this hardware device because its configuration information (in the registry) is incomplete or damaged.  (Code 19)

Cause

This error can result if more than one service is defined for a device, there is a failure opening the service key, or the driver name cannot be obtained from the service key.

Recommended Resolution

Uninstall and reinstall the driver

  1. From Start, search for device manager and select Device Manager from the results.

  2. Right-click the device in the list.

  3. Select Uninstall from the menu that appears.

  4. After the device is uninstalled, choose Action on the menu bar.

  5. Select Scan for hardware changes to reinstall the driver.

Note You may be prompted to provide the path of the driver.  If you are asked for the driver and you do not have it, you can try to download the latest driver from the hardware vendor’s website.

Revert to the most recent successful registry configuration

To roll a system back to the most recent successful configuration of the registry, you can restart the computer in Safe Mode and select the Last Known Good Configuration option, or if you’ve created a system restore point, you can try restoring to it.

Recovery options in Windows 10

Back up and restore your PC (Windows 8.1)

What are the system recovery options in Windows? (Windows 7)

Full Error Message

Windows is removing this device. (Code 21)

Cause

This error means that Windows is in the process of removing the device. However, the device has not yet been completely removed.  This error code is temporary, and exists only during the attempts to query and then remove a device.

Recommended Resolutions

You can either wait for Windows to finish removing the device or restart the computer.

  1. Wait several seconds, and then press the F5 key to update the Device Manager view.

  2. If that does not resolve the problem, restart your computer. Click Start, click Shut Down, and then select Restart in the Shut Down Windows dialog box to restart the computer.

Cause 

The device was disabled by the user in Device Manager.

Recommended Resolution

In Device Manager, click Action, and then click Enable Device. This starts the Enable Device wizard. Follow the instructions.

Full Error Message

This device is not present, is not working properly, or does not have all its drivers installed. (Code 24)

Cause

The device is installed incorrectly. The problem could be a hardware failure, or a new driver might be needed. Devices stay in this state if they have been prepared for removal. After you remove the device, this error disappears.

Recommended Resolution

Remove the device, and this error should be resolved.

Recommended Resolution

Reinstall the device driver manually

  1. From Start, search for device manager and select Device Manager from the results.

  2. Right-click the device in the list.

  3. Select Uninstall from the menu that appears.

  4. After the device is uninstalled, choose Action on the menu bar.

  5. Select Scan for hardware changes to reinstall the driver.

Note You may be prompted to provide the path of the driver.  If you are asked for the driver and you do not have it, you can try to download the latest driver from the hardware vendor’s website.

Full Error Message

This device is disabled because the firmware of the device did not give it the required resources. (Code 29)

Recommended Resolution

Enable the device in the BIOS of the device. For information about how to make this change, see the hardware documentation or contact the manufacturer of your computer. 

Full Error Message

This device is not working properly because Windows cannot load the drivers required for this device. (Code 31)

Recommended Resolution

Reinstall the device driver using the Hardware Update wizard

  1. From Start, search for device manager and select Device Manager from the results.

  2. Right-click the device in the list.

  3. On the menu that appears, choose Update Driver to start the Hardware Update wizard.

Note You may be prompted to provide the path of the driver.  If you are asked for the driver and you do not have it, you can try to download the latest driver from the hardware vendor’s website.

Full Error Message

A driver (service) for this device has been disabled. An alternate driver may be providing this functionality. (Code 32)

Cause

The start type for this driver is set to disabled in the registry.

Recommended Resolution

Reinstall the device driver manually

  1. From Start, search for device manager and select Device Manager from the results.

  2. Right-click the device in the list.

  3. Select Uninstall from the menu that appears.

  4. After the device is uninstalled, choose Action on the menu bar.

  5. Select Scan for hardware changes to reinstall the driver.

Note You may be prompted to provide the path of the driver.  If you are asked for the driver and you do not have it, you can try to download the latest driver from the hardware vendor’s website.

Cause

The translator that determines the kinds of resources that are required by the device has failed.

Recommended Resolutions

  1. Try using the BIOS setuputility, or update the BIOS.

  2. Configure, repair, or replace hardware.

Contact the device hardware vendor for more information about updating your BIOS and how to configure or replace the device.

Full Error Message

Windows cannot determine the settings for this device. Consult the documentation that came with this device and use the Resource tab to set the configuration. (Code 34)

Recommended Resolution

The device requires manual configuration. See the hardware documentation or contact the hardware vendor for instructions on manually configuring the device. After you configure the device itself, you can use the Resources tab in Device Manager to configure the resource settings in Windows.

Full Error Message

Your computer’s system firmware does not include enough information to properly configure and use this device. To use this device, contact your computer manufacturer to obtain a firmware or BIOS update. (Code 35)

Cause

The Multiprocessor System (MPS) table, which stores the resource assignments for the BIOS, is missing an entry for your device and must be updated.

Recommended Resolution

Contact the manufacturer of your computer to update the BIOS. 

Full Error Message

This device is requesting a PCI interrupt but is configured for an ISA interrupt (or vice versa). Please use the computer’s system setup program to reconfigure the interrupt for this device. (Code 36)

Cause

The interrupt request (IRQ) translation failed.

Recommended Resolution

Change the settings for IRQ reservations in the BIOS.

For more information about how to change BIOS settings, see the hardware documentation or contact the manufacturer of your computer. You can also try to use the BIOS setup tool to change the settings for IRQ reservations (if such options exist). The BIOS might have options to reserve certain IRQs for peripheral component interconnect (PCI) or ISA devices. 

Cause

The driver returned a failure when it executed the DriverEntry routine.

Recommended Resolution

Reinstall the device driver manually

  1. From Start, search for device manager and select Device Manager from the results.

  2. Right-click the device in the list.

  3. Select Uninstall from the menu that appears.

  4. After the device is uninstalled, choose Action on the menu bar.

  5. Select Scan for hardware changes to reinstall the driver.

Note You may be prompted to provide the path of the driver.  If you are asked for the driver and you do not have it, you can try to download the latest driver from the hardware vendor’s website.

Full Error Message

Windows cannot load the device driver for this hardware because a previous instance of the device driver is still in memory. (Code 38)

Cause

The driver could not be loaded because a previous instance is still loaded.

Recommended Resolution

Restart your computer. From Start, click Shut Down, and then select Restart.

Full Error Message

Windows cannot load the device driver for this hardware. The driver may be corrupted or missing. (Code 39)

Recommended Resolution

Reinstall the device driver manually

  1. From Start, search for device manager and select Device Manager from the results.

  2. Right-click the device in the list.

  3. Select Uninstall from the menu that appears.

  4. After the device is uninstalled, choose Action on the menu bar.

  5. Select Scan for hardware changes to reinstall the driver.

Note You may be prompted to provide the path of the driver.  If you are asked for the driver and you do not have it, you can try to download the latest driver from the hardware vendor’s website.

Full Error Message

Windows cannot access this hardware because its service key information in the registry is missing or recorded incorrectly. (Code 40)

Cause

Information in the registry’s service subkey for the driver is invalid.

Recommended Resolution

Reinstall the device driver manually

  1. From Start, search for device manager and select Device Manager from the results.

  2. Right-click the device in the list.

  3. Select Uninstall from the menu that appears.

  4. After the device is uninstalled, choose Action on the menu bar.

  5. Select Scan for hardware changes to reinstall the driver.

Note You may be prompted to provide the path of the driver.  If you are asked for the driver and you do not have it, you can try to download the latest driver from the hardware vendor’s website.

Full Error Message

Windows successfully loaded the device driver for this hardware but cannot find the hardware device. (Code 41)

Cause

This problem occurs if you install a driver for a non-Plug and Play device, but Windows cannot find the device.

Recommended Resolution

Reinstall the device driver manually

  1. From Start, search for device manager and select Device Manager from the results.

  2. Right-click the device in the list.

  3. Select Uninstall from the menu that appears.

  4. After the device is uninstalled, choose Action on the menu bar.

  5. Select Scan for hardware changes to reinstall the driver.

Note You may be prompted to provide the path of the driver.  If you are asked for the driver and you do not have it, you can try to download the latest driver from the hardware vendor’s website.

Full Error Message

Windows cannot load the device driver for this hardware because there is a duplicate device already running in the system. (Code 42)

Cause

A duplicate device was detected. This error occurs when a bus driver incorrectly creates two identically named sub-processes (known as a bus driver error), or when a device with a serial number is discovered in a new location before it is removed from the old location.

Recommended Resolution

Restart your computer. From Start, click Shut Down, and then select Restart.

Cause

One of the drivers controlling the device notified the operating system that the device failed in some manner.

Recommended Resolution

If you have already tried the «Try these steps first» section, check the hardware documentation or contact the manufacturer for more information about diagnosing the problem.

Reinstall the device driver manually

  1. From Start, search for device manager and select Device Manager from the results.

  2. Right-click the device in the list.

  3. Select Uninstall from the menu that appears.

  4. After the device is uninstalled, choose Action on the menu bar.

  5. Select Scan for hardware changes to reinstall the driver.

Note You may be prompted to provide the path of the driver.  If you are asked for the driver and you do not have it, you can try to download the latest driver from the hardware vendor’s website.

Recommended Resolution

Restart your computer. From Start, click Shut Down, and then select Restart. 

Full Error Message

Currently, this hardware deviceis not connected to the computer. To fix this problem, reconnect this hardware device to the computer. (Code 45)

Cause

This error occurs if a device that was previously connected to the computer is no longer connected. To resolve this problem, reconnect this hardware device to the computer.

Recommended Resolution

No resolution is necessary. This error code is only used to indicate the disconnected status of the device and does not require you to resolve it. The error code resolves automatically when you connect the associated device to the computer.

Full Error Message

Windows cannot gain access to this hardware device because the operating system is in the processof shutting down. The hardware device should work correctly next time you start your computer. (Code 46)

Cause

The device is not available because the system is shutting down.

Recommended Resolution

No resolution is necessary. The hardware device should work correctly next time that you start the computer. This error code is only set when Driver Verifier is enabled and all applications have already been shut down.

Full Error Message

Windows cannot use this hardware device because it has been prepared for safe removal, but it has not been removed from the computer. To fix this problem, unplug this device from your computer and then plug it in again. (Code 47)

Cause

This error code occurs only if you used the Safe Removal application to prepare the device for removal, or pressed a physical eject button.

Recommended Resolution

Unplug the device from the computer, and then plug it back in. Restart your computer if that doesn’t resolve the error. From Start, click Shut Down, and then select Restart

Full Error Message

The software for this device has been blocked from starting because it is known to have problems with Windows. Contact the hardware vendor for a new driver. (Code 48)

Recommended Resolution

Contact the manufacturer of your hardware device to obtain the latest version or the updated driver. Then, install it on your computer.

Full Error Message

Windows cannot start new hardware devices because the system hive is too large (exceeds the Registry Size Limit). (Code 49)

Cause

The system hive has exceeded its maximum size and new devices cannot work until the size is reduced. The system hive is a permanent part of the registry associated with a set of files that contains information related to the configuration of the computer on which the operating system is installed. Configured items include applications, user preferences, devices, and so on. The problem might be specific devices that are no longer attached to the computer but are still listed in the system hive.

Recommended Resolution

Uninstall any hardware devices that you are no longer using.

  1. Set Device Manager to show devices that are no longer connected to the computer.

    • From Start, click Run.

    • In the Open box, type cmd. The Command Prompt window opens.

    • At the prompt, type the following command, and then press Enter: set devmgr_show_nonpresent_devices=1

  2. In Device Manager, click View, and then click Show hidden devices. You will now be able to see devices that are not connected to the computer.

  3. Select a non-present device. On the Driver tab, choose Uninstall.

  4. Repeat step 3 for any non-present devices that you are no longer using. Then restart your computer.

  5. Check the device Properties dialog box in Device Manager to see whether the error is resolved.

Full Error Message

Windows cannot apply all of the properties for this device. Device properties may include information that describes the device’s capabilities and settings (such as security settings for example). To fix this problem, you can try reinstalling this device. However,we recommend that you contact the hardware manufacturer for a new driver. (Code50)

Recommended Resolution

Reinstall the device driver manually

  1. From Start, search for device manager and select Device Manager from the results.

  2. Right-click the device in the list.

  3. Select Uninstall from the menu that appears.

  4. After the device is uninstalled, choose Action on the menu bar.

  5. Select Scan for hardware changes to reinstall the driver.

Note You may be prompted to provide the path of the driver.  If you are asked for the driver and you do not have it, you can try to download the latest driver from the hardware vendor’s website.

Full Error Message

This device is currently waiting on another device or set of devices to start. (Code 51).

Recommended Resolution

There is currently no resolution to this problem. To help diagnose the problem, examine other failed devices in the device tree that this device might depend on. If you can determine why another related device did not start, you might be able to resolve this issue.

Full Error Message

Windows cannot verify the digital signature for the drivers required for this device. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source. (Code 52)

Cause

The driver may be unsigned or corrupted.

Recommended Resolution

Download the latest driver from the hardware manufacturer’s website, or contact the manufacturer for help.

Full Error Message

This device has been reserved for use by the Windows kernel debugger for the duration of this boot session. (Code 53)

Recommended Resolution

Disable Windows kernel debugging to allow the device to start normally.

Cause

This is an intermittent problem code assigned while an ACPI reset method is being executed. If the device never restarts due to a failure, it will be stuck in this state and the system should be rebooted.

Recommended Resolution

Restart your computer.  From Start, click Shut Down, and then select Restart

Need more help?

Post


Essentials Only

Full Version

Tatala

New Member

  • Total Posts : 4
  • Reward points : 0
  • Joined: 2015/10/26 05:31:49
  • Location: 0
  • Status: offline



2015/10/27 00:02:53

(permalink)

0

I installed some program to pic(32mx795f512l) with Mplab IPE. it was worked but not stable. Than i want install another program, programers can not find device id, and started giving this error. 
Mplab IPE’s error;
Connecting to MPLAB PICkit 3…

Currently loaded firmware on PICkit 3
Firmware Suite Version…..01.38.10
Firmware type…………..PIC32MX

Target voltage detected
Unable to connect to the target device.
Failed to get Device ID

 Mplab 8.92’s error;
PICkit 3 detected
Connecting to PICkit 3…
Firmware Suite Version…… 01.28.90  // i try and 01.38.90; not worked too.
Firmware type………………….PIC32MX
PICkit 3 Connected.
Target Detected
PK3Err0035: Failed to get Device ID

 What can i do now? please help me :(

#1

Sudheer Herle

Super Member

  • Total Posts : 480
  • Reward points : 0
  • Joined: 2012/03/30 05:41:29
  • Location: Bangalore ,India
  • Status: offline

Re: Failed to get Device ID errors


2015/10/27 08:58:09

(permalink)

4 (2)

This definitely will be an issue with the hardware circuitry and connections.
Can you check the voltage at the VDD?
Also the PGC and PGD lines?

 Thanks,
Sudheer

#2

NKurzman

A Guy on the Net

  • Total Posts : 20056
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: online

Re: Failed to get Device ID errors


2015/10/27 13:58:01

(permalink)

3 (1)

Check Power
Proper Capacitors.
Nothing on PGC, PGD and MCLR (capacitors?)
Programming cable too long.
Voltage wrong, or unstable.

#3

Tatala

New Member

  • Total Posts : 4
  • Reward points : 0
  • Joined: 2015/10/26 05:31:49
  • Location: 0
  • Status: offline

Re: Failed to get Device ID errors


2015/10/28 07:29:46

(permalink)

0

Hi, thanks for answers. My connection is true, i checked again again and again. Circuit voltage is stable. 12 V dc battery used. cable is only pickit3, so not long. I install program only 1 time, with mplab IPE. Then i try 2. install, this error started. my code written with MikroC Pro For PIC32. this can be problem? I used Mplab for only install this hex.

#4

NKurzman

A Guy on the Net

  • Total Posts : 20056
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: online

Re: Failed to get Device ID errors


2015/10/28 14:24:39

(permalink)

3 (1)

Is the 3.3 Volts stable.  Measure it AC and DC.
Are all the Caps the Chip requires installed and are of the correct type.
Does «so not long» have a units of measure?
You have not gotten to the Hex file so no.

#5

Sudheer Herle

Super Member

  • Total Posts : 480
  • Reward points : 0
  • Joined: 2012/03/30 05:41:29
  • Location: Bangalore ,India
  • Status: offline

Re: Failed to get Device ID errors


2015/10/30 01:28:33

(permalink)

4 (2)

Hi Tatala,

 Kurzman is referring to the PK3’s ICSP cable, not the USB cable that connects to PK3!

 Thanks,
Sudheer

#6

Tatala

New Member

  • Total Posts : 4
  • Reward points : 0
  • Joined: 2015/10/26 05:31:49
  • Location: 0
  • Status: offline

Re: Failed to get Device ID errors


2015/11/03 23:47:55

(permalink)

1 (1)

I solved this problem. Pickit3 must only used Mplab 8.xx(For pic32). You must not use Mplab X ide or ipe. If you use, PIC will break and never work again!!!! Thank you your answers.. :)

post edited by Tatala — 2015/11/03 23:50:03

#7

DhanN

New Member

  • Total Posts : 6
  • Reward points : 0
  • Joined: 2018/09/23 10:57:27
  • Location: 0
  • Status: offline

Re: Failed to get Device ID errors


2020/04/25 10:06:42

(permalink)

0

Hi, a question, is your pickit3 still operational?

#8

ric

Super Member

  • Total Posts : 35931
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: offline

Re: Failed to get Device ID errors


2020/04/25 16:22:54

(permalink)

0

DhanN
Hi, a question, is your pickit3 still operational?

Why ask in a five year old topic?
That user «Tatala» has not logged in to this board for four years, so is unlikely to answer.
If you have a quesiton, it’s better to start your own new topic, not hijack an old one.

I also post at: PicForum
To get a useful answer, always state which PIC you are using!

#9

tech24x7

Senior Member

  • Total Posts : 150
  • Reward points : 0
  • Joined: 2013/10/14 21:38:52
  • Location: 0
  • Status: offline

Re: Failed to get Device ID errors


2020/04/26 22:05:53

(permalink)

0

Please create new issue instead of reopening old issue.  

#10

Понравилась статья? Поделить с друзьями:
  • Failed to initialize battleye service driver load error 577 фортнайт
  • Failed to initialize battleye service driver load error 577 пабг
  • Failed to initialize battleye service driver load error 577 ошибка
  • Failed to extract cab как исправить
  • Failed to initialize battleye service driver load error 577 как исправить