Skip to main content
Adobe Photoshop Family

Champion

 • 

5.3K Messages

 • 

95.7K Points

Mon, Jul 25, 2011 11:25 PM

SDK Infinite "Invalid numeric entry" loop with numeric edit_fields

A numeric edit_field control can easily get into an infinite loop of popping up an "Invalid numeric entry" message, and the user is forced to kill LR using the task manager.

To reproduce:

1. Run the test plugin below.

2. Click in another (non-Lightroom) window. Depending on the arrangement of windows, the "Invalid numeric entry" message pops up below the main LR window, invisible to the user.

3. Click back in the edit_field of the plugin.

At this point, the "Invalid numeric entry" message is visible, and clicking OK just brings it up again. You've got to use the task manager to kill Lightroom.

The plugin code:

local LrDialogs = import 'LrDialogs'
local f = import 'LrView'.osFactory()
LrDialogs.presentModalDialog {
title = "Test",
contents = f:edit_field {min = 1}}

Responses

4.5K Messages

 • 

76.3K Points

9 years ago

Workaround: set a max value too.

Champion

 • 

5.3K Messages

 • 

95.7K Points

9 years ago

This is fixed in LR 3.6 (or perhaps earlier).

59 Messages

 • 

1K Points

4 years ago

Getting same or similar error in Lightroom CC 2017

www.brettgilmour.com

11 Messages

 • 

252 Points

3 years ago

Looks like this isn't fixed yet.