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.
Copy link to clipboard
Copied
I didn't have any problem - but you need to use a colon, not a dot.
Rob.
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 😞
Copy link to clipboard
Copied
Made that mistake once myself .
I agree, a tad of info in the assertions would really help.
Rob