Jump to content

Internal Dependencies and error 1357


Mellroth

Recommended Posts

We recently hit a really big bug (at the moment it is a showstopper) when trying to build a new package with a number of internal dependencies.

* LV2014

* VIPM 2016

What happened was that VIPM complained about VI salready in memory, throwing error 1357, for several files in the dependency hierarchy. We were able to nail it down to that VIPM puts all dependencies in a flat structure. This means that if you link to a dependency with a class hierarchy and dynamic dispatch, all dispatched VIs will be placed in the same flat structure and thus getting the error 1357.

We even tried to workaround this by putting each class in a separate llb when building the vip file of the internal dependency.

This probably affects other types of packages, e.g where name-spacing via lvlib is used.

I haven't found anything about this being a known issue, so please update VIPM to preserve the hierarchy of the dependencies, or at least handle a scenario with internal deps with name duplicates

/J 

 

Link to comment
Share on other sites

Hi,

 

Attached is a simple example using the LabVIEW DynamicDispatch example as source. The internal package contains the three classes Shape, Triangle and Square. All these classes have a method named Identify.

The public code is supposed to use these three classes internally, but not expose them, hence we add them as an internal dependency.

If the wireflow_lib_wf_internalclasses-1.0.0.1.vip is added as a internal dependency, the build of the public package fails with the error shown in the attached image, if we remove the package from the list of dependencies the public package package builds just fine.

If we monitor the VIPM temp build folder during the build, and if we check other internal packages, we see that the folder where VIPM puts the internal dependencies and adds the name-spacing is a flat structure. Since several methods have the same name it means that they will still have the same name after the name-spacing, resulting in the failed builds

/J

 

Screen Shot 2018-08-21 at 07.57.25.png

JKI example.zip

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

Hi,

Sorry for the delay in getting back to you. I was struggling on why VIPM was opening LabVIEW 2016 when I had selected LabVIEW 2014 in VI Package Builder. I later figured that the VIs are compiled in LabVIEW 2016. No wonder, VIPM was trying to do its best to build the package.

Can you confirm the LabVIEW and VIPM version to test?

image.png

Link to comment
Share on other sites

  • 8 months later...

As another point of data, I even installed the internal VIPM into my LabVIEW installation and then changed all of the calls within the Public VI to use the files from the installed package and then rebuilt the Public package and got the same error.

We are actively trying to search for a solution here, so I'm happy to help try some things if it helps to come to a resolution.  

Thanks,

Erich

Link to comment
Share on other sites

Thank you Ashish,

I tried to build the package by clicking the "Do Not Compile on Build" and got the VIPM - Product Activation window.  I take that to mean that at the moment there is no way to do this without having a license for the Pro version of VIPM.  Is that a correct assessment?

Erich

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.