SDK Infinite "Invalid numeric entry" loop with numeric edit_fields

  • 2
  • Problem
  • Updated 8 months ago
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}}
Photo of John R. Ellis

John R. Ellis, Champion

  • 3372 Posts
  • 844 Reply Likes

Posted 7 years ago

  • 2
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 372 Reply Likes
Workaround: set a max value too.
Photo of John R. Ellis

John R. Ellis, Champion

  • 3372 Posts
  • 844 Reply Likes
This is fixed in LR 3.6 (or perhaps earlier).
Photo of brett gilmour

brett gilmour

  • 30 Posts
  • 5 Reply Likes
Getting same or similar error in Lightroom CC 2017
Photo of J. Casalino

J. Casalino

  • 7 Posts
  • 1 Reply Like
Looks like this isn't fixed yet.