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

P: Plugin Crashes when a Plug-in uses LrTasks.execute

Community Beginner ,
Sep 06, 2024 Sep 06, 2024

I am a developer of the Lightroom Classic plug-in Excire Seach (https://www.excire.com). The plug-in uses the function LrTasks.execute to start a background process. The plug-in has been used by many users for some years and this part always worked well.

 

Since version 13.5 of Lightroom Classic some Intel Mac users with the current macOS Sonoma experience the issue, that a subprocess of Lightroom Classic crashes (with a segmentation fault) when LrTasks.execute is called by the plug-in. It does not always crash but most of the times. LrTasks.execute returns the value 11.

The newest version 13.5.1 does not fix the issue.

 

I have attached the crash report generated by macOS (as txt because .ips is not supported to be uploaded).

 

The plug-in starts several LrTasks and interacts with the LrC catalog before it calls LrTasks.execute. I tried to write a very simple plug-in that does nothing but calling LrTasks.execute, but it does not reproduce the issue.

Bug Unresolved
TOPICS
macOS , SDK , Windows
3.0K
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
42 Comments
LEGEND ,
Dec 04, 2024 Dec 04, 2024
Translate
Report
LEGEND ,
Dec 04, 2024 Dec 04, 2024

Another example of the same crash during export on an Intel Mac:

https://www.lightroomqueen.com/community/threads/crashes-when-export-just-me.51208/

Translate
Report
LEGEND ,
Dec 04, 2024 Dec 04, 2024

"Lightroom Classic will stop in the middle of an export and give me an error.  The app doesn't close, but the export stops and the "Problem Report for Lightroom Classic" pops up."

 

From the crash report:

 

"Application Specific Information:
crashed on child side of fork pre-exec"

 

Most likely, your Export settings include a post-processing action supplied by a plugin, e.g. Metadata Wrangler or JPEG Mini.  A recent bug with the LR SDK for plugins sometimes causes this error when the plugin tries to run a child program.  The bug only seems to occur on Intel Macs.

Translate
Report
LEGEND ,
Dec 04, 2024 Dec 04, 2024
Translate
Report
New Here ,
Dec 05, 2024 Dec 05, 2024

Thanks - do you have a way to "reset" LR back to default without ANY plugins installed.  Or a way to remove every single thing that could be tied back to LrTasks.execute?

 

I am going to "remove" all of my plugins in the plugin manager and start fresh.  But is there anywhere else in the LR settings where I could make a change?

 

Any other part of the EXPORT process that I can disable to stop this Value 11 crash?

Translate
Report
LEGEND ,
Dec 05, 2024 Dec 05, 2024

[This post contains formatting and embedded images that don't appear in email. View the post in your Web browser.]

 

@Addison33594689kznf, you described the crashes as occurring during exports, and the crash report shows the crash occurring while LR is trying to execute a child program. So check the settings in the Export window for the presence of a post-processing plugin such as Metadata Wrangler or a post-processing After Export program.  In this screenshot, there are two export plugins enabled, LR/Transporter Keyword Export and Metadata Wrangler:

 

JohnREllis_0-1733413812948.pngexpand image

 

If you see such a plugin, remove it by clicking the "x".  Ensure Post-Processing > After Export is set to Do Nothing.

Translate
Report
New Here ,
Dec 05, 2024 Dec 05, 2024

Thank you - I'll give this a try.  We had already played around with export settings and really thinned it down.  I'll see if there is more we can remove.  One thing we didn't rry is AFTER EXPORT setting to DO NOTHING.  But that would be weird if that solved the problem because the crashing occurs randomly during the export, not at the end....but we'll see!

Translate
Report
Adobe Employee ,
Dec 06, 2024 Dec 06, 2024

Engineering has reviewed it and is asking if we can get the plugin/process that is crashing for us to review. Can anyone provide an example for examination?

Rikk Flohr: Adobe Photography Org
Translate
Report
LEGEND ,
Dec 06, 2024 Dec 06, 2024

One of the victims above uses the Commit Locations command (free) of my Any Tag plugin on an Intel Mac, LR 13.5 , Mac OS 14.6.1.  Commit Locations runs the Exiftool program.

To hopefully provoke the problem:

 

1. Enable Address Lookup.

 

2. In the Map module, select 100 or more photos.

 

3. Drag them to a new location on the amp.

 

4. With all the photos selected, do File > Plug-in Extras > Any Tag > Commit Locations.

Translate
Report
LEGEND ,
Dec 06, 2024 Dec 06, 2024

 Another report above encounters the problem with the Metadata Wrangler plugin  (Friedl) and the Capture Time To Exif plugin (@john beardsworth), both of which also invoke Exiftool. 

 

Since the problem occurs at the very beginning of forking the child process, it probably doesn't depend on the exact parameters for invoking the plugins. It smells like a race condition that's triggered infrequently (e.g. over tens or hundreds of invocations of the plugins, such as export 100 photos or changing the capture time of 100 photos).

Translate
Report
New Here ,
Dec 06, 2024 Dec 06, 2024

I disabled AND removed every Plugin in the LR Classic Plugin Manager, and I'm still having the same export issue...

Translate
Report
LEGEND ,
Dec 06, 2024 Dec 06, 2024

@Addison33594689kznf: "I disabled AND removed every Plugin in the LR Classic Plugin Manager, and I'm still having the same export issue..."

 

Can you please do these diagnostic steps:

 

1. In the Export settings window, select the settings that are causing the exports to crash.

 

2. Create a new Export preset by clicking Add in the panel in the left column of Export.

 

3. Close the Export window without starting the export.

 

4. Select the photos previously doing the crash, right click them, and do Export > <name of the preset from step 2>.

 

5. If it doesn't crash, then you've got a viable workaround. If it does crash, please send post the preset here following these steps:

a. In the Export window, right-click the preset and do Show In Finder. That will open Finder with the preset's .lrtemplate file selected.

b. In Finder, rename the file to end in ".txt" instead of ".lrtemplate".

c. Drag that file to the "Drag & drop here" box at the bottom of the forum reply window.

 

 

Translate
Report
New Here ,
Mar 20, 2025 Mar 20, 2025

I am using John Ellis' Any File plugin on two Intel iMacs running the latest version of Lightroom Classic.   One of the iMacs is running Sonoma and the other Sequoia.  

 

On both iMacs I am experiencing intermittent failures during the importing of eighteen MP3 files.  The problem occurs more frequently on my Intel iMac that is running Sequoia.  During the import the software will typically successfully import and create several thumbnails,  but then at some random point during the import the software will stop the import and display a pop-up window that says Can't create proxy / Volumes/.....".      When I hit the continue button in the pop-up window another pop-up window appears that says Can't import true into the catalog" -> LrCatalogaddPhoto: path parameter is missing or is not a string.    

 

These failures are not consistent  --- sometime the import works and other times it fails at some random point during the importing of the 18 files.   The types of pop-up windows I get during a failure are consistent ("Can't import proxy.." and "Can't import true")

 

As a sanity check I have been running the same plugin on my Macbook Air M1 (2020) with the latest version of LrC and Sonoma.   On this system I have not had any import failures when importing these same 18 MP3 files as well as many other types of files .

 

Below are the first two pages of a crash report that I was able to obtain during one of the import crashes on my Intel iMac running Sonoma:

 

-------------------------------------

Translated Report (Full Report Below)

-------------------------------------

Process: Adobe Lightroom Classic [1488]

Path: /Applications/Adobe Lightroom Classic/Adobe Lightroom Classic.app/Contents/MacOS/Adobe Lightroom Classic

Identifier: com.adobe.LightroomClassicCC7

Version: 14.2 (14.2)

Code Type: X86-64 (Native)

Parent Process: Adobe Lightroom Classic [1424]

Responsible: Adobe Lightroom Classic [1424]

User ID: 501

Date/Time: 2025-03-19 22:50:13.7885 -0500

OS Version: macOS 14.7.2 (23H311)

Report Version: 12

Bridge OS Version: 9.2 (22P2093)

Anonymous UUID: A1A97D21-E10F-1001-9391-376F9F0E534F

Time Awake Since Boot: 5900 seconds

System Integrity Protection: enabled

Crashed Thread: 0

Exception Type: EXC_BAD_ACCESS (SIGSEGV)

Exception Codes: KERN_INVALID_ADDRESS at 0x000069d3c809434e

Exception Codes: 0x0000000000000001, 0x000069d3c809434e

Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11

Terminating Process: exc handler [1488]

VM Region Info: 0x69d3c809434e is not in any region. Bytes after previous region: 10804125057871 Bytes before following region:

6786992204978

REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL

MALLOC_NANO 600020000000-600040000000 [512.0M] rw-/rwx SM=COW

---> GAP OF 0xfffc04bb000 BYTES

Stack Guard 7000004bb000-7000004bc000 [ 4K] ---/rwx SM=NUL

Application Specific Information:

crashed on child side of fork pre-exec

Thread 0 Crashed:

0 libobjc.A.dylib 0x7ff804887522 objc_destructInstance + 37

1 libobjc.A.dylib 0x7ff8048931f5 object_dispose + 19

2 Chromium Embedded Framework 0x11c74caf2 ChromeAppModeStart_v7 + 31083138

3 libxpc.dylib 0x7ff80495b04f -[OS_xpc_object dealloc] + 47

4 libsystem_asl.dylib 0x7ff80a2ffbde _asl_mt_shim_fork_child + 33

5 libSystem.B.dylib 0x7ff811efcc62 libSystem_atfork_child + 53

6 libsystem_c.dylib 0x7ff804b20ca4 fork + 84

7 AgSubstrate 0x109866876 AgWorkspace_executeWithoutFileDescriptors_L + 176

8 AgKernel 0x10970b8ed 0x109701000 + 43245

9 AgKernel 0x109719cc3 0x109701000 + 101571

10 AgKernel 0x10970bd4c 0x109701000 + 44364

11 AgKernel 0x10970b411 0x109701000 + 42001

12 AgKernel 0x10970bfad 0x109701000 + 44973

13 AgKernel 0x109703b42 lua_pcall + 98

14 AgKernel 0x10970593b 0x109701000 + 18747

15 AgKernel 0x10970b8ed 0x109701000 + 43245

16 AgKernel 0x109719f8d 0x109701000 + 102285

17 AgKernel

 

 

 

 

Translate
Report
LEGEND ,
Mar 20, 2025 Mar 20, 2025

Note the telltale in @Ken5E27's crash report:

Application Specific Information:
crashed on child side of fork pre-exec

that indicates this is the same bug with LrTasks.execute().

Translate
Report
Adobe Employee ,
Mar 24, 2025 Mar 24, 2025

Thanks, John.
We can repro the crash.
Will executing in smaller batches help in this case?


Thanks,
Sunil

Translate
Report
LEGEND ,
Mar 25, 2025 Mar 25, 2025

@SunilBhaskaran: "Will executing in smaller batches help in this case?"

 

It's not clear. I don't have an Intel Mac and can't reproduce the issues directly. But the plugins that are failing are all apply operations to batches of photos, and it appears fairly random when the problem strikes, and if it is random, then smaller batches may not help (but just a guess).

Translate
Report
New Here ,
Apr 02, 2025 Apr 02, 2025
LATEST

ME TOO

 

Hello,

I’m writing because I’m experiencing some troubles with Any Tag plug-in for light-room. I use it with Lightroom 14.2 Camera Raw 17.2 in order to commit locations. 

I tried the plug-in before to buy it and it worked fine. After a while without using it, I decided to use it again and decided to buy the licence.

I don’t understand why if I select more then 10 photos to commit their locations I have the following message: Commit Locations Couldn’t run ExifTool. When I tried the plugin, I never experienced such a problem. Maybe I was using one of the previous versions of LightRoom? I don’t know.

 

Many thanks for your kind help.

Best regards,

Renzo

Translate
Report