08-27-2015 12:58 PM
We are using Packed Libraries to help with some in house distribution, and have run into a problem with one of our libraries. The library in question seems to work fine if it is compiled with "Enable Debugging", however once we remove that feature (changing nothing else about the build) we get the error I attached in the screenshot. We do not have any methods, nodes, or scripts that access information from the block diagram. This library calls a packed library, which calls a packed library, not ideal I know, we have looked at this so the calls are completely linear A calls B calls C, no circular calls.
All that said, I cannot figure out what breaks when we remove the block diagram. Anyone have insight as to what to look for?
This is the xml for the build (in case it helps)
<Item Name="Pack The Library" Type="Packed Library"> <Property Name="Bld_buildCacheID" Type="Str">{525750A6-7347-4F38-9603-D89A30B5500A}</Property> <Property Name="Bld_buildSpecName" Type="Str">Pack The Library</Property> <Property Name="Bld_excludeInlineSubVIs" Type="Bool">true</Property> <Property Name="Bld_excludeLibraryItems" Type="Bool">true</Property> <Property Name="Bld_excludePolymorphicVIs" Type="Bool">true</Property> <Property Name="Bld_localDestDir" Type="Path">../NI_AB_PROJECTNAME</Property> <Property Name="Bld_localDestDirType" Type="Str">relativeToProject</Property> <Property Name="Bld_previewCacheID" Type="Str">{E3A9545B-6037-4537-B7D5-B4F34029CEEA}</Property> <Property Name="Destination[0].destName" Type="Str">CAN_HW.lvlibp</Property> <Property Name="Destination[0].path" Type="Path">../NI_AB_PROJECTNAME/CAN_HW.lvlibp</Property> <Property Name="Destination[0].path.type" Type="Str">relativeToProject</Property> <Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property> <Property Name="Destination[0].type" Type="Str">App</Property> <Property Name="Destination[1].destName" Type="Str">Support Directory</Property> <Property Name="Destination[1].path" Type="Path">../CAN_Comm_Library_External</Property> <Property Name="Destination[1].path.type" Type="Str">relativeToProject</Property> <Property Name="Destination[2].destName" Type="Str">kvCanVI</Property> <Property Name="Destination[2].path" Type="Path">../kvCanVI</Property> <Property Name="Destination[2].path.type" Type="Str">relativeToProject</Property> <Property Name="Destination[3].destName" Type="Str">CAN_Comm_Library</Property> <Property Name="Destination[3].path" Type="Path">../CAN_Comm_Library</Property> <Property Name="Destination[3].path.type" Type="Str">relativeToProject</Property> <Property Name="DestinationCount" Type="Int">4</Property> <Property Name="PackedLib_callersAdapt" Type="Bool">true</Property> <Property Name="Source[0].itemID" Type="Str">{04F5A314-9F6C-418D-B100-9A7FED521B0A}</Property> <Property Name="Source[0].type" Type="Str">Container</Property> <Property Name="Source[1].destinationIndex" Type="Int">0</Property> <Property Name="Source[1].itemID" Type="Ref">/My Computer/CAN_HW.lvlib</Property> <Property Name="Source[1].Library.allowMissingMembers" Type="Bool">true</Property> <Property Name="Source[1].Library.atomicCopy" Type="Bool">true</Property> <Property Name="Source[1].Library.LVLIBPtopLevel" Type="Bool">true</Property> <Property Name="Source[1].preventRename" Type="Bool">true</Property> <Property Name="Source[1].sourceInclusion" Type="Str">TopLevel</Property> <Property Name="Source[1].type" Type="Str">Library</Property> <Property Name="Source[2].destinationIndex" Type="Int">2</Property> <Property Name="Source[2].itemID" Type="Ref">/My Computer/Externals/kvCanVI/kvCanVI.lvlibp</Property> <Property Name="Source[2].preventRename" Type="Bool">true</Property> <Property Name="Source[2].sourceInclusion" Type="Str">Include</Property> <Property Name="Source[3].destinationIndex" Type="Int">3</Property> <Property Name="Source[3].itemID" Type="Ref">/My Computer/Externals/CAN_Comm_Library/CAN_Comm_Library.lvlibp</Property> <Property Name="Source[3].preventRename" Type="Bool">true</Property> <Property Name="Source[3].sourceInclusion" Type="Str">Include</Property> <Property Name="Source[4].destinationIndex" Type="Int">2</Property> <Property Name="Source[4].itemID" Type="Ref"></Property> <Property Name="Source[4].sourceInclusion" Type="Str">Include</Property> <Property Name="Source[5].destinationIndex" Type="Int">2</Property> <Property Name="Source[5].itemID" Type="Ref"></Property> <Property Name="Source[5].sourceInclusion" Type="Str">Include</Property> <Property Name="SourceCount" Type="Int">6</Property> <Property Name="TgtF_autoIncrement" Type="Bool">true</Property> <Property Name="TgtF_companyName" Type="Str"></Property> <Property Name="TgtF_fileDescription" Type="Str">CAN_HW</Property> <Property Name="TgtF_fileVersion.build" Type="Int">12</Property> <Property Name="TgtF_fileVersion.major" Type="Int">1</Property> <Property Name="TgtF_internalName" Type="Str">CAN_HW</Property> <Property Name="TgtF_legalCopyright" Type="Str">Copyright © 2015</Property> <Property Name="TgtF_productName" Type="Str">CAN_HW</Property> <Property Name="TgtF_targetfileGUID" Type="Str">{4B0D878C-2428-4C39-98F0-2567B08A11C4}</Property> <Property Name="TgtF_targetfileName" Type="Str">CAN_HW.lvlibp</Property> </Item>
08-27-2015 04:46 PM - edited 08-27-2015 04:47 PM
Unfortunately, we're going to need quite a bit more information to be able to solve this.
The likely reason that this is working when debugging is enabled is due to the fact that when block diagrams are included there is *something* that is suddenly able to resolve when there wasn't previously. Essentially, it looks like this might be related to a name resolution/linking bug of some sort that occurred during the packed library build process.
Would it be possible to either 1) see the source that is generating this problem or 2) see a simplified example that reproduces the problem (I know this can be even tougher to manage)? Or barring either of those, could you provide some more information about the contents of the project, ie. 'I'm using LV15 with classes with property nodes, queues and shared variables', etc.
Thanks!