Adjust crop causes very long delay while preview is rebuilt

Hello @KeithRJ ,

Thank you for the logs. Let me ask @gpailler to analyze them.

Regards,
Svetlana G.

Many thanks @sgospodarenko.

1 Like

Hello @KeithRJ

To help us to understand exactly the issue you are facing, could you follow the following steps:

  • Delete all your logs files from C:\Users\%USERNAME%\Documents\DxO PhotoLab 4 logs
  • Copy the file DebugLog.nlog in \DxO PhotoLab 4 logs folder
  • Start PhotoLab, select your first image and reproduce the issue then select the second image and reproduce the issue
  • Close PhotoLab, delete the file DebugLog.nlog and send us the new logs files
  • Please also attach the name of the images you used in your message.

Thanks a lot

Hi @gpailler,

I have performed the steps you asked and have attached the log file (only one was created and it has been zipped).

The two files I used were: IMG_0515.CR2 (first file) and IMG_4606.CR3 (second file)

The steps I performed are as follows:

  1. Select file IMG_0515.CR2 and go to Develop module.
  2. Create a crop that is quite small (1/4 width and 1/4 height of the original) then close crop tool to create the crop.
  3. Open crop tool again and there is a wait of 7 seconds before the preview shows.
  4. Once image is displayed, change the location of the crop and close to accept.
  5. Open crop tool again and the image appears in under a second.
  6. Close the crop tool.
  7. Select file IMG_4606.CR3 from the film strip.
  8. Create a crop that is quite small (1/4 width and 1/4 height of the original) then close crop tool to create the crop.
  9. Open crop tool again and there is a wait of 15 seconds before the preview shows.
  10. Once image is displayed, change the location of the crop and close to accept.
  11. Open crop tool again and the image appears in under a second.
  12. Close the crop tool.
  13. Close PL4.

DxO.PhotoLab.txt.zip (496.0 KB)

This long delay when readjusting a crop size or position often happens on my Windows laptop too.

I can check at some point, but I think as soon as I go to crop mode, I often get just a black screen with only the crop outlines showing. Takes more seconds than I like to wait and sometimes I move the crop location as just a guess (without seeing the image) so I don’t have to wait those many seconds. After I exit the crop mode, the new cropped portion shows right away.

@BBT That is exactly my experience and moving the crop blindly is what I do sometimes too.

Thanks @KeithRJ for the logs.
I can confirm the timings you mentioned in your message from the logs but I cannot reproduce locally (yet).
I have noticed that you have two monitors (3840x2160 and 4320x2700). Do you reproduce the issue when PL is displayed on your 3840x2160 monitor?

Best regards

Hi @gpailler ,

I am using a laptop with an internal 4k screen and an external HD screen which is 1920 x 1200 so nowhere near the size you mentioned!

I use the internal 4k screen for my work and that is where I get the issue. I can try the other screen if you think that would help.

I really think the issue is the preview is being recalculated after the first crop, even if the preview already exists. The time taken to generate the initial preview and the preview after the first crop seem to be very similar.

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?