UXP Starter Template Plugins Crash InDesign on Running "Show Alert" Command in v19.X

Creating a new UXP plugin via the “Create Plugin” interface and selecting any template plugin will crash inDesign when that plugin’s “Show Alert” command is ran.

I have been able to replicate the error on five different Windows 10 systems and one Windows 11 device (with a clean install of Win11, and only Adobe CC, Adobe UXP, and Adobe InDesign installed.)

To replicate:

  • Using the latest versions of UXP Developer Tools and Adobe InDesign:
  • Create a new plugin in Adobe UXP Developer Tools for Adobe InDesign, using any Template selection.
  • Launch InDesign and load the starter plugin UXP created.
  • Show the Plugin Panel and click the “Show Alert” command within UXP.
  • InDesign will freeze for awhile, then crash.

I’ve opened a support case with Adobe on this issue already, but wanted to post it here in case someone else has ran into this issue and has a solution, or to shed further light on this bug for Adobe, since our team can’t make progress on plugin development when the templates Adobe provides are not functional.

Edit/Update: Adobe support has been able to replicate the issue in versions 19.0, 19.1, 19.4, and 19.5 pre-release, assuming this is affecting all versions v19.X. This crash/error does not appear to occur in v18.5

2 Likes

Have you added the enableAlerts feature flag in your manifest?
https://developer.adobe.com/photoshop/uxp/2022/uxp-api/reference-js/Global%20Members/HTML%20DOM/alert/

1 Like

I have not attempted to modify the plugins while working with Adobe support as they are the out of the box starter templates directly from Adobe.

If they don’t work out of the box without modification, Adobe must modify their source code directly so that they work without modifications, or resolve whatever underlying bug is causing this.

1 Like

I tested this, and modifying the manifest.json to add that flag does not prevent the crash/bug from occurring in v19.x

2 Likes

The only solution that I’ve found to use dialog in InDesign 19.4 reliable both on windows and macos.

1 Like

If it’s non-functional, why is Adobe including it in their template plugins? This seems like a massive oversight on Adobe’s part.

The crash/bug also occurs in 19.2, to no surprise.

As far I know alert was put behind flag because it caused problems/crashes and it is not recomended to use it. You can make your own dialogs but it will be likely async.

1 Like

Engineering is looking into this.

2 Likes

An intermittent update: The alert that’s leading to the crash isn’t a UXP alert but rather an Indesign Alert, so the recent changes related to alert deprecation in UXP aren’t applicable here (which as the OP commented, doesn’t alleviate the situation). Also, this is specific to the Windows platform and appears to be a crash while closing InDesign dialogs (not UXP dialogs). We are working with the InDesign team on this.

2 Likes

Appreciate the update! Would this kind of fix be deployed in a hotfix or would it need to wait until the next major .X version?