Adjust crop causes very long delay while preview is rebuilt

Hello @KeithRJ ,

It’s quite strange as I don’t see this 1920x1200 display in the logs. What is the exact resolution of your internal 4k display?

Could you open a Windows PowerShell prompt, enter the following commands and send me back the result:

Get-WmiObject win32_videocontroller
Get-WmiObject win32_desktopmonitor

Could you also move PhotoLab to your 1920x1200 display and try to reproduce the crop issue?

This resolution of 4320x2700 that I found in the logs could be an explanation for the long crop operation and I would like to understand where it is coming from.

Thanks

Hi @gpailler,

here are the results of the commands:

PS C:\WINDOWS\system32> get-wmiobject win32_videocontroller

__GENUS : 2
__CLASS : Win32_VideoController
__SUPERCLASS : CIM_PCVideoController
__DYNASTY : CIM_ManagedSystemElement
__RELPATH : Win32_VideoController.DeviceID=“VideoController1”
__PROPERTY_COUNT : 59
__DERIVATION : {CIM_PCVideoController, CIM_VideoController, CIM_Controller, CIM_LogicalDevice…}
__SERVER : KEITH-LENOVO
__NAMESPACE : root\cimv2
__PATH : \KEITH-LENOVO\root\cimv2:Win32_VideoController.DeviceID=“VideoController1”
AcceleratorCapabilities :
AdapterCompatibility : Intel Corporation
AdapterDACType : Internal
AdapterRAM : 1073741824
Availability : 3
CapabilityDescriptions :
Caption : Intel(R) UHD Graphics 620
ColorTableEntries :
ConfigManagerErrorCode : 0
ConfigManagerUserConfig : False
CreationClassName : Win32_VideoController
CurrentBitsPerPixel : 32
CurrentHorizontalResolution : 3840
CurrentNumberOfColors : 4294967296
CurrentNumberOfColumns : 0
CurrentNumberOfRows : 0
CurrentRefreshRate : 60
CurrentScanMode : 4
CurrentVerticalResolution : 2160
Description : Intel(R) UHD Graphics 620
DeviceID : VideoController1
DeviceSpecificPens :
DitherType : 0
DriverDate : 20200905000000.000000-000
DriverVersion : 27.20.100.8681
ErrorCleared :
ErrorDescription :
ICMIntent :
ICMMethod :
InfFilename : oem47.inf
InfSection : iKBLD_w10_DS
InstallDate :
InstalledDisplayDrivers : C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_a086f01cc7be643a\igdum
dim64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_a086f01cc7be
643a\igd10iumd64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_a
086f01cc7be643a\igd10iumd64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.
inf_amd64_a086f01cc7be643a\igd12umd64.dll
LastErrorCode :
MaxMemorySupported :
MaxNumberControlled :
MaxRefreshRate : 60
MinRefreshRate : 60
Monochrome : False
Name : Intel(R) UHD Graphics 620
NumberOfColorPlanes :
NumberOfVideoPages :
PNPDeviceID : PCI\VEN_8086&DEV_5917&SUBSYS_380217AA&REV_07\3&11583659&1&10
PowerManagementCapabilities :
PowerManagementSupported :
ProtocolSupported :
ReservedSystemPaletteEntries :
SpecificationVersion :
Status : OK
StatusInfo :
SystemCreationClassName : Win32_ComputerSystem
SystemName : KEITH-LENOVO
SystemPaletteEntries :
TimeOfLastReset :
VideoArchitecture : 5
VideoMemoryType : 2
VideoMode :
VideoModeDescription : 3840 x 2160 x 4294967296 colors
VideoProcessor : Intel(R) UHD Graphics Family
PSComputerName : KEITH-LENOVO

PS C:\WINDOWS\system32> get-wmiobject win32_desktopmonitor

DeviceID : DesktopMonitor1
DisplayType :
MonitorManufacturer : (Standard monitor types)
Name : Generic PnP Monitor
ScreenHeight : 2160
ScreenWidth : 3840

PS C:\WINDOWS\system32>

Here is a screenshot of the Display settings showing my external monitor:

Here is the Display settings for the internal monitor:

Thanks for the details. Could you run one more test with the following commands in a new PowerShell prompt and paste the result?

Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.Screen]::AllScreens

Regards

Hi @gpailler,

here are the results of those commands:

PS C:\WINDOWS\system32> Add-Type -AssemblyName System.Windows.Forms
PS C:\WINDOWS\system32> [System.Windows.Forms.Screen]::AllScreens

BitsPerPixel : 32
Bounds : {X=0,Y=0,Width=1707,Height=960}
DeviceName : \.\DISPLAY1
Primary : True
WorkingArea : {X=0,Y=0,Width=1707,Height=930}

BitsPerPixel : 32
Bounds : {X=3840,Y=497,Width=1920,Height=1200}
DeviceName : \.\DISPLAY2
Primary : False
WorkingArea : {X=3840,Y=497,Width=1920,Height=1170}

Sorry about the delay but time zones get in the way! My time zone is +8.

Cheers
Keith

Hi @KeithRJ

Thanks for the latest message. I finally found from where the 4320x2700 resolution was coming from. It’s 1920x1200 x 225% (the scale factor of your first screen). I’m investigating now how I can reproduce the crop issue with this exact configuration.

Thanks

1 Like

Hi @gpailler

Please note that the scaling factor is applied to the internal 4k screen to make the text bigger so that it is more readable and NOT to the external 1920 x 1200 screen. Hope this helps to clear up any possible confusion as to where the scaling occurs.

@gpailler: let me know if there’s something I can provide to you that might help. Same thing happens on my laptop which has never had an external monitor connected to it – annoyingly long delays way over 5 seconds that I haven’t timed cuz I get too impatient to wait. So I make & move crops blindly and click OK so I can see the results immediately after that, and retry [blindly again – black viewing area with only the crop outlines] if not where I wanted the crop.

image

PS C:\WINDOWS\system32> Get-WmiObject win32_videocontroller

__GENUS : 2
__CLASS : Win32_VideoController
__SUPERCLASS : CIM_PCVideoController
__DYNASTY : CIM_ManagedSystemElement
__RELPATH : Win32_VideoController.DeviceID=“VideoController1”
__PROPERTY_COUNT : 59
__DERIVATION : {CIM_PCVideoController, CIM_VideoController, CIM_Controller, CIM_LogicalDevice…}
__SERVER : [******* redacted]
__NAMESPACE : root\cimv2
__PATH : [******* redacted]
\cimv2:Win32_VideoController.DeviceID=“VideoController1”
AcceleratorCapabilities :
AdapterCompatibility : Advanced Micro Devices, Inc.
AdapterDACType : Internal DAC(400MHz)
AdapterRAM : 2147483648
Availability : 8
CapabilityDescriptions :
Caption : Radeon™ 540 Graphics
ColorTableEntries :
ConfigManagerErrorCode : 0
ConfigManagerUserConfig : False
CreationClassName : Win32_VideoController
CurrentBitsPerPixel :
CurrentHorizontalResolution :
CurrentNumberOfColors :
CurrentNumberOfColumns :
CurrentNumberOfRows :
CurrentRefreshRate :
CurrentScanMode :
CurrentVerticalResolution :
Description : Radeon™ 540 Graphics
DeviceID : VideoController1
DeviceSpecificPens :
DitherType :
DriverDate : 20180504000000.000000-000
DriverVersion : 23.20.15036.0
ErrorCleared :
ErrorDescription :
ICMIntent :
ICMMethod :
InfFilename : oem101.inf
InfSection : ati2mtag_Polaris12
InstallDate :
InstalledDisplayDrivers : C:\WINDOWS\System32\DriverStore\FileRepository\u0328933.inf_amd64_5542df152d4a721c\B3285
63\aticfx64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\u0328933.inf_amd64_5542df
152d4a721c\B328563\aticfx64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\u0328933.
inf_amd64_5542df152d4a721c\B328563\aticfx64.dll,C:\WINDOWS\System32\DriverStore\FileRepo
sitory\u0328933.inf_amd64_5542df152d4a721c\B328563\amdxc64.dll
LastErrorCode :
MaxMemorySupported :
MaxNumberControlled :
MaxRefreshRate :
MinRefreshRate :
Monochrome : False
Name : Radeon™ 540 Graphics
NumberOfColorPlanes :
NumberOfVideoPages :
PNPDeviceID : PCI\VEN_1002&DEV_699F&SUBSYS_C157144D&REV_C3\4&39B5BECD&0&00E0
PowerManagementCapabilities :
PowerManagementSupported :
ProtocolSupported :
ReservedSystemPaletteEntries :
SpecificationVersion :
Status : OK
StatusInfo :
SystemCreationClassName : Win32_ComputerSystem
SystemName : [******* redacted]
SystemPaletteEntries :
TimeOfLastReset :
VideoArchitecture : 5
VideoMemoryType : 2
VideoMode :
VideoModeDescription :
VideoProcessor : AMD Radeon Graphics Processor (0x699F)
PSComputerName : [******* redacted]

__GENUS : 2
__CLASS : Win32_VideoController
__SUPERCLASS : CIM_PCVideoController
__DYNASTY : CIM_ManagedSystemElement
__RELPATH : Win32_VideoController.DeviceID=“VideoController2”
__PROPERTY_COUNT : 59
__DERIVATION : {CIM_PCVideoController, CIM_VideoController, CIM_Controller, CIM_LogicalDevice…}
__SERVER : [******* redacted]
__NAMESPACE : root\cimv2
_PATH : [******* redacted]
\cimv2:Win32_VideoController.DeviceID=“VideoController2”
AcceleratorCapabilities :
AdapterCompatibility : Intel Corporation
AdapterDACType : Internal
AdapterRAM : 1073741824
Availability : 3
CapabilityDescriptions :
Caption : Intel(R) HD Graphics 620
ColorTableEntries :
ConfigManagerErrorCode : 0
ConfigManagerUserConfig : False
CreationClassName : Win32_VideoController
CurrentBitsPerPixel : 32
CurrentHorizontalResolution : 1920
CurrentNumberOfColors : 4294967296
CurrentNumberOfColumns : 0
CurrentNumberOfRows : 0
CurrentRefreshRate : 59
CurrentScanMode : 4
CurrentVerticalResolution : 1080
Description : Intel(R) HD Graphics 620
DeviceID : VideoController2
DeviceSpecificPens :
DitherType : 0
DriverDate : 20200911000000.000000-000
DriverVersion : 27.20.100.8730
ErrorCleared :
ErrorDescription :
ICMIntent :
ICMMethod :
InfFilename : oem59.inf
InfSection : iKBLD_w10_DS
InstallDate :
InstalledDisplayDrivers : C:\WINDOWS\System32\DriverStore\FileRepository\igdlh64.inf_amd64_e9a9c145a7b0ccc0\igdumd
im64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\igdlh64.inf_amd64_e9a9c145a7b0cc
c0\igd10iumd64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\igdlh64.inf_amd64_e9a9
c145a7b0ccc0\igd10iumd64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\igdlh64.inf

amd64_e9a9c145a7b0ccc0\igd12umd64.dll
LastErrorCode :
MaxMemorySupported :
MaxNumberControlled :
MaxRefreshRate : 59
MinRefreshRate : 48
Monochrome : False
Name : Intel(R) HD Graphics 620
NumberOfColorPlanes :
NumberOfVideoPages :
PNPDeviceID : PCI\VEN_8086&DEV_5916&SUBSYS_C157144D&REV_02\3&11583659&0&10
PowerManagementCapabilities :
PowerManagementSupported :
ProtocolSupported :
ReservedSystemPaletteEntries :
SpecificationVersion :
Status : OK
StatusInfo :
SystemCreationClassName : Win32_ComputerSystem
SystemName : [******* redacted]
SystemPaletteEntries :
TimeOfLastReset :
VideoArchitecture : 5
VideoMemoryType : 2
VideoMode :
VideoModeDescription : 1920 x 1080 x 4294967296 colors
VideoProcessor : Intel(R) HD Graphics Family
PSComputerName : [******* redacted]

Thanks @KeithRJ . With all the details and logs, we will investigate to reproduce and fix this issue

Hi @BBT

Could you run the same procedure? => Adjust crop causes very long delay while preview is rebuilt - #23 by gpailler and share your logs?

Thanks

@gpailler: I think I posted what you’re looking for already a few moments ago. Is that adequate?

I would like the debug PhotoLab logs to identify the exact timings with a single image. It will ease the troubleshooting. The procedure was described in the message #23.

Thanks

@gpailler: I won’t be able to get to it right away, but perhaps in an hour and half or so.

Don’t worry, it will take more than an hour and half to properly identify and fix this issue so you can take your time :wink:

@gpailler:
I uploaded the log file with your name in the ‘ticket #’ field to “http://upload.dxo.com/” using the DxO upload form.

I added a crop to a previously unadjusted photo (“P1340140.RW2”).
The first time I opened the Crop function, the image displayed right away.
Upon exit from the crop function, the image displayed the new crop immediately.
Initiating the Crop function the 2nd time took many seconds to go from all black with crop outline to finally seeing the image – perhaps more than 10 seconds.
The 3rd time getting into Crop the image showed not instantly but within about 1 or 2 seconds.
I went in and out of Crop function maybe 5 times from begin to the end of the logging.
Many ERRORS of the same kind show up in log file that I hope you can comfort me about by the time we’re finished with this.

(Added note1: I’ve found that this might even start to happen on the 3rd try, too, perhaps dependent on crop size and or position, and maybe happens for other tries than 2nd or 3rd crop-tries as well.

Added note2: I believe that once I get the black view with the crop outlines, if the image is not rendered by the time I exit crop, the wait time for rendering is reduced the next time by the amount of time I’ve been previously viewing the non-rendered black image in crop mode – so, the delay period does not seem to be reset each time I enter the crop function – altho if I change the crop position or size a particular way, that might reset the delay – I haven’t tested that but seems it probably would work that way since the black screen apparently can happen on any new crop shape and position)

Thanks for the details and the log file. We have created an internal issue and will investigate deeper.

@gpailler Great to hear and many thanks :grinning: :+1:

@gpailler: By the way, is it possible that this other issue I have might be related?

Hello @BBT I don’t think the issues are related but we need to investigate this alignment issue too.