#7442 (Bug) ‘NoneType’ object has no attribute ‘DeviceKey’

+1 0

Closed as Works For Me
Component: DisplayCAL
Created by Bram Dispa

Last modified


Hi all,

I’m trying to install a profile which resulted from calibration, but I get the error message “‘NoneType’ object has no attribute ‘DeviceKey'” when I try to install it. I’ve seen the thread on https://hub.displaycal.net/issue/6099/ and thus reinstalled my display driver, including the necessary reboots, but no luck there. Also reinstalled DisplayCAL. How can I proceed?

Thank you,
Bram


2017-06-06 10_42_45- (image/png | 2017-06-06 10:43:05)
2017-06-06 10_58_07-Apparaatbeheer (image/png | 2017-06-06 10:59:32)
DisplayCAL-apply-profiles (text/plain | 2017-06-06 11:33:37)
DisplayCAL (text/plain | 2017-06-06 11:34:56)
logs (application/zip | 2017-06-06 12:03:51)
printDisplayDevicesInfo (application/zip | 2017-06-06 13:49:02)


13 comments on “‘NoneType’ object has no attribute ‘DeviceKey’”

  1. Hello Florian,

    I’m using a NVidia GTX 1060. It is indeed listed in the device manager. My monitors (EIZO 27″) connected via DisplayPort are listed quite generically.

    Thanks,
    Bram

  2. No …profiles.1.log. I’m unsure if you could use the DisplayCAL.log itself, so I’ll just attach it, just to be sure.

  3. There’s something wrong with your system. EnumDisplayDevices should not fail in that way. Please run DisplayCAL-apply-profiles.exe –debug and attach DisplayCAL-apply-profiles.log

    My recommendation would be to completely wipe the display driver and re-install it fresh.

  4. I wiped the display drivers this morning, but that didn’t help.

    Attached you’ll find the logs the debug flag generated.

  5. MONITORS

    Monitor
    |-Device \\.\DISPLAY12
    |-Work (2560, 0, 5120, 1400)
    |-Flags 0
    |-Monitor (2560, 0, 5120, 1440)
    Monitor
    |-Device \\.\DISPLAY13
    |-Work (0, 0, 2560, 1400)
    |-Flags 1
    PRIMARY
    |-Monitor (0, 0, 2560, 1440)

    DISPLAY ADAPTERS

    Adapter
    |-DeviceID PCI\VEN_10DE&DEV_1C03&SUBSYS_371D1458&REV_A1
    |-DeviceKey \Registry\Machine\System\CurrentControlSet\Control\Video\{C6FE360B-
    | 5E3B-497A-89BF-5327D4AA04AC}\0000
    |-DeviceName \\.\DISPLAY12
    |-DeviceString NVIDIA GeForce GTX 1060 6GB
    |-Size 424
    |-StateFlags 1
    | DISPLAY_DEVICE_ACTIVE

    Adapter
    |-DeviceID PCI\VEN_10DE&DEV_1C03&SUBSYS_371D1458&REV_A1
    |-DeviceKey \Registry\Machine\System\CurrentControlSet\Control\Video\{C6FE360B-
    | 5E3B-497A-89BF-5327D4AA04AC}\0001
    |-DeviceName \\.\DISPLAY13
    |-DeviceString NVIDIA GeForce GTX 1060 6GB
    |-Size 424
    |-StateFlags 5
    | DISPLAY_DEVICE_PRIMARY_DEVICE
    | DISPLAY_DEVICE_ACTIVE

    Adapter
    |-DeviceID PCI\VEN_10DE&DEV_1C03&SUBSYS_371D1458&REV_A1
    |-DeviceKey \Registry\Machine\System\CurrentControlSet\Control\Video\{C6FE360B-
    | 5E3B-497A-89BF-5327D4AA04AC}\0002
    |-DeviceName \\.\DISPLAY14
    |-DeviceString NVIDIA GeForce GTX 1060 6GB
    |-Size 424
    |-StateFlags 0

    Adapter
    |-DeviceID PCI\VEN_10DE&DEV_1C03&SUBSYS_371D1458&REV_A1
    |-DeviceKey \Registry\Machine\System\CurrentControlSet\Control\Video\{C6FE360B-
    | 5E3B-497A-89BF-5327D4AA04AC}\0003
    |-DeviceName \\.\DISPLAY15
    |-DeviceString NVIDIA GeForce GTX 1060 6GB
    |-Size 424
    |-StateFlags 0

    Press RETURN or ENTER to exit

  6. Nothing that I can do about it. The Windows API calls say that there are no monitors attached to your display adapters.

  7. But there are monitors mentioned at the top? And two adapters have the DISPLAY_DEVICE_ACTIVE flag. Is there anything I can do to make them be reported correctly?

  8. But there are monitors mentioned at the top? And two adapters have the DISPLAY_DEVICE_ACTIVE flag.

    There are no monitor sub-entries under any adapter, and that is a problem. See below how it should look, i.e. at least one adapter should have a monitor connected to it.

    MONITORS
    
    Monitor
    |-Device \\.\DISPLAY6
    |-Work (92, 0, 1920, 1080)
    |-Flags 1
      PRIMARY
    |-Monitor (0, 0, 1920, 1080)
    
    DISPLAY ADAPTERS
    
    Adapter
    |-DeviceID PCI\VEN_10DE&DEV_1B81&SUBSYS_33021462&REV_A1
    |-DeviceKey \Registry\Machine\System\CurrentControlSet\Control\Video\{10B28F6B-
    |           5DD9-4FBD-9BD8-40E90797EB33}\0000
    |-DeviceName \\.\DISPLAY6
    |-DeviceString NVIDIA GeForce GTX 1070
    |-Size 424
    |-StateFlags 524293
    |            DISPLAY_DEVICE_PRIMARY_DEVICE
    |            DISPLAY_DEVICE_ACTIVE
    |
    |-Monitor
    | |-DeviceID MONITOR\PHL0000\{4d36e96e-e325-11ce-bfc1-08002be10318}\0002
    | |-DeviceKey \Registry\Machine\System\CurrentControlSet\Control\Class\{4d36e96
    | |          e-e325-11ce-bfc1-08002be10318}\0002
    | |-DeviceName \\.\DISPLAY6\Monitor0
    | |-DeviceString Generic PnP Monitor
    | |-Size 424
    | |-StateFlags 3
    |              DISPLAY_DEVICE_ACTIVE
    |              DISPLAY_DEVICE_MULTI_DRIVER
    |
    |-Monitor
    | |-DeviceID MONITOR\NEC66CB\{4d36e96e-e325-11ce-bfc1-08002be10318}\0001
    | |-DeviceKey \Registry\Machine\System\CurrentControlSet\Control\Class\{4d36e96
    | |          e-e325-11ce-bfc1-08002be10318}\0001
    | |-DeviceName \\.\DISPLAY6\Monitor1
    | |-DeviceString NEC MultiSync LCD2690WUXi(Digital)
    | |-Size 424
    | |-StateFlags 2
    |              DISPLAY_DEVICE_MULTI_DRIVER
    
    Adapter
    |-DeviceID PCI\VEN_10DE&DEV_1B81&SUBSYS_33021462&REV_A1
    |-DeviceKey \Registry\Machine\System\CurrentControlSet\Control\Video\{10B28F6B-
    |           5DD9-4FBD-9BD8-40E90797EB33}\0001
    |-DeviceName \\.\DISPLAY7
    |-DeviceString NVIDIA GeForce GTX 1070
    |-Size 424
    |-StateFlags 524288
    |
    |-Monitor
    | |-DeviceID MONITOR\NEC66CB\{4d36e96e-e325-11ce-bfc1-08002be10318}\0001
    | |-DeviceKey \Registry\Machine\System\CurrentControlSet\Control\Class\{4d36e96
    | |          e-e325-11ce-bfc1-08002be10318}\0001
    | |-DeviceName \\.\DISPLAY7\Monitor0
    | |-DeviceString NEC MultiSync LCD2690WUXi(Digital)
    | |-Size 424
    | |-StateFlags 2
    |              DISPLAY_DEVICE_MULTI_DRIVER
    
    Adapter
    |-DeviceID PCI\VEN_10DE&DEV_1B81&SUBSYS_33021462&REV_A1
    |-DeviceKey \Registry\Machine\System\CurrentControlSet\Control\Video\{10B28F6B-
    |           5DD9-4FBD-9BD8-40E90797EB33}\0002
    |-DeviceName \\.\DISPLAY8
    |-DeviceString NVIDIA GeForce GTX 1070
    |-Size 424
    |-StateFlags 524288
    |
    |-Monitor
    | |-DeviceID MONITOR\NEC66CB\{4d36e96e-e325-11ce-bfc1-08002be10318}\0001
    | |-DeviceKey \Registry\Machine\System\CurrentControlSet\Control\Class\{4d36e96
    | |          e-e325-11ce-bfc1-08002be10318}\0001
    | |-DeviceName \\.\DISPLAY8\Monitor0
    | |-DeviceString NEC MultiSync LCD2690WUXi(Digital)
    | |-Size 424
    | |-StateFlags 2
    |              DISPLAY_DEVICE_MULTI_DRIVER
    
    Adapter
    |-DeviceID PCI\VEN_10DE&DEV_1B81&SUBSYS_33021462&REV_A1
    |-DeviceKey \Registry\Machine\System\CurrentControlSet\Control\Video\{10B28F6B-
    |           5DD9-4FBD-9BD8-40E90797EB33}\0003
    |-DeviceName \\.\DISPLAY9
    |-DeviceString NVIDIA GeForce GTX 1070
    |-Size 424
    |-StateFlags 524288
    |
    |-Monitor
    | |-DeviceID MONITOR\NEC66CB\{4d36e96e-e325-11ce-bfc1-08002be10318}\0001
    | |-DeviceKey \Registry\Machine\System\CurrentControlSet\Control\Class\{4d36e96
    | |          e-e325-11ce-bfc1-08002be10318}\0001
    | |-DeviceName \\.\DISPLAY9\Monitor0
    | |-DeviceString NEC MultiSync LCD2690WUXi(Digital)
    | |-Size 424
    | |-StateFlags 2
    |              DISPLAY_DEVICE_MULTI_DRIVER

    Is there anything I can do to make them be reported correctly?

    Other than trying to figure out what’s wrong with your setup, there’s not much you can do. Reporting the issue to nVidia and Microsoft could be an option. I’m pretty sure if you use Windows color management settings, it’ll also fail, for the same reasons.

Comments are closed.