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

InDesign SDK Plugin won't load when I include openssl

Explorer ,
Nov 21, 2023 Nov 21, 2023

Copy link to clipboard

Copied

Hello there, I've been developing a plugin for InDesign using SDK. I'm facing the issue of plugin not loading when I try to use OpenSSL library (version 3.14). The build is succeeding without any errors, but the plugin failing to load. Assertion window popping up and saying:

Cannot load plugin CHLINGUISTIC.SDK.PLN
D:\RESS\ID\19.0\Release\source\omlib\plugins\WPlugInListUtils.cpp (168)

 

I've installed openssl with vcpkg package manager, and enabled automatic linking to Visual Studio:

jasuryusupov_0-1700592067183.png

During building phase, there is this vcpkg related log:

1>Target VcpkgTripletSelection:
1>  Using triplet "x64-windows" from "C:\dev\vcpkg\installed\x64-windows\"
1>  Using normalized configuration "Debug"

There is 'libcrypto-3-x64.dll' file being created in the build directory alongside with plugin files:

jasuryusupov_2-1700593387117.png

 

Plugin building and loading successfully without any errors when I only include openssl headers:

#include <openssl/conf.h>
#include <openssl/evp.h>
#include <openssl/err.h>

But InDesign stops loading the plugin when I start using openssl components in my methods, for example:

EVP_CIPHER_CTX* ctx;
ctx = EVP_CIPHER_CTX_new();

 

So, I was wondering what could be the issue, since assertion window doesn't tell any usefull info, output window in Visual Studio stops after printing:

'InDesign.exe' (Win32): Loaded 'D:\Program Files\Adobe\SDK\InDesign\2024\build\win\debugx64\SDK\CHLinguistic.sdk.pln'. Symbols loaded.
'InDesign.exe' (Win32): Unloaded 'D:\Program Files\Adobe\SDK\InDesign\2024\build\win\debugx64\SDK\CHLinguistic.sdk.pln'
The thread 'com.adobe.ngl-null' (0x438c) has exited with code 0 (0x0).
The thread 'com.adobe.ngl-null' (0x730c) has exited with code 0 (0x0).

 

 

I hope you guys can help me out with the issue I'm facing. I'm looking forward to your responses. Thanks in advance!

TOPICS
How to , SDK

Views

121

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
Engaged ,
Nov 21, 2023 Nov 21, 2023

Copy link to clipboard

Copied

@jasuryusupov 

At the risk of asking a dumb question; are you using a DEBUG version of InDesign ? The "normal" version of InDesign will not load plugins built with a debug configuration. Olivier

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
Explorer ,
Nov 21, 2023 Nov 21, 2023

Copy link to clipboard

Copied

Yes I'm using the Debug version of InDesign

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
Engaged ,
Nov 21, 2023 Nov 21, 2023

Copy link to clipboard

Copied

Another common gotcha is your plugin relying on a version of the ICU set of DLLs that is no longer shipped with InDesign. InDesign 2023 shipped with the ICU71 DLLs, but InDesign 2024 ships with the ICU73 DLLs.

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
Explorer ,
Nov 22, 2023 Nov 22, 2023

Copy link to clipboard

Copied

I don't think software internationalization libraries - ICU71 and ICU73 DLLs are the reason for my plugin not loading, since the plugin is loading and working without any errors when I don't use openssl library.

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
Guide ,
Nov 22, 2023 Nov 22, 2023

Copy link to clipboard

Copied

LATEST

Sounds like the dll is not found in that build location. I'd start reading about dll search order .

 

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