Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Bug: catalog.getCurrentViewFilter () raises assertion error

LEGEND ,
Jun 16, 2010 Jun 16, 2010

Using the Lightroom 3 SDK, the following code fragment:

LrApplication.activeCatalog().getCurrentViewFilter ()

results in the following error message:

“An internal error has occurred: assertion failed!”

The error still occurs if you call it from within a task and function context:

LrFunctionContext.postAsyncTaskWithContext ("test", function (context)
    LrDialogs.attachErrorDialogToFunctionContext (context)
    LrApplication.activeCatalog().getCurrentViewFilter ()
    end)

I tried invoking it with the view filters on and off and still got the error.

Any thoughts?  I've reported it as a possible bug via the support form.

TOPICS
SDK
901
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 16, 2010 Jun 16, 2010

I didn't have any problem - but you need to use a colon, not a dot.

Rob.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 16, 2010 Jun 16, 2010

Argh, thanks.  I had run into that before (and seen other postings about it).  The "assertion failed" is notably unhelpful 😞

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 16, 2010 Jun 16, 2010
LATEST

Made that mistake once myself .

I agree, a tad of info in the assertions would really help.

Rob

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines