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

Bug: catalog.getCurrentViewFilter () raises assertion error

LEGEND ,
Jun 16, 2010 Jun 16, 2010

Copy link to clipboard

Copied

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

Views

774

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Rob.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Made that mistake once myself .

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

Rob

Votes

Translate

Translate

Report

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