Plugin Development - Release Mode
PlannedHi I am struggling with building a working release version of the sample “stub_analytics_plugin” from the metadata SDK (v 6.0.3.40736)
Building on Windows 11 using Visual Studio 2022, (using cmake to first make a solution file), I can view and modify the example, and build in Debug mode. This output I can run as a plugin on my locally installed server, but is of course reliant on c++ redis Debug version, which would not normally be installed on production environments.
Building in Release mode (source code unmodified otherwise) if I add the output to a servers plugins folder and start the server, it enters a boot loop (starting and restarting) until I stop the server and remove the plugin. Logs get as far as the line “INFO PluginManager(0x2a96cf24840): Considering to load Server plugin” before restarting.
Dependancy walker is not seeing anything missing on the server for the plugin, and other plugins are loading fine. I have tried many variations of the Release build with no success.
Any pointers on what I might be doing wrong here? C++ builds would not be my forte so I appreciate any help in the matter!
-
Hello,
I add the output to a servers plugins folder and start the server, it enters a boot loop (starting and restarting)
This with a great probability indicates crashing of the Server. Since a plugin runs in the Server's process, it seems the crash is caused by the plugin code.
Could you please reproduce the issue with the sample analytics plugin of the Metadata SDK and once reproduced share the code with us using a cloud storage service you prefer?
0 -
Hi Andrey,
Sorry if I wasn't clear, I am encountering the issue when building the sample analytics plugin of the Metadata SDK. I have not modified the example in any way, just built a version in both Debug and Release mode.
The Debug build runs fine on my development server (NxWitness running on my laptop) but the release build does not run on the production systems (Various Windows 11 devices with the correct dependencies installed, c++ redis etc). These production systems load other plugins just fine, just causes a boot loop of the application if the Release build of the sample analytics plugin of the Metadata SDK is added to the plugins folder.
If it is of use to you I can upload a zip of the copy of the Metadata SDK project that I am using?
0 -
Hello Dlawlor,
I've just tested in my lab in a Windows machine building code samples with the build_samples.bat script supplied with the Metadata SDK. Neither sample nor stub plugin caused any issue similar to the one you describe.
Let's start with default settings.
Please, build the plugins using the build_samples.bat script and check with the sample analytics plugin if the issue persists.
0 -
> If it is of use to you I can upload a zip of the copy of the Metadata SDK project that I am using?
Yes, please.0 -
metavms-metadata_sdk-6.0.3.40736-universal.zip
Attached is the metadata SDK I am using. I have tried to build using build_samples.bat but I cannot get the script to complete, likely as my build tools is v 14.44.35207. Altering the bat files to point to the correct folders and tools still resulted in the following exit message: Suitable MSVC version is not found. Please, set up the environment manually.
I have previously built this sample project using CMake (cmake .. -G "Visual Studio 17 2022") and then building with visual studio the solution file output from the above.0
Please sign in to leave a comment.
Comments
5 comments