02-02-2023 04:27 AM
Hello,
It looks like LabVIEW 2022 Q3 does not clear compiled object cache (or maybe not fully).
The displayed amount of data in the cache always remains the same, regardless from the method of cleaning (through the menu or from the invoke method).
At the same time, if I measure project opening times, they will be substantially different:
LabVIEW 2018 on the same machine functions as expected. The same test as above, for the same project (it was just 2.9% smaller on LV2018) gives 53 and 23 seconds, respectively.
So, hard to say what's broken. And why compiler is so slow for the LV2022.
Best regards,
Dmytro
Solved! Go to Solution.
02-02-2023 11:02 AM - edited 02-02-2023 11:06 AM
It is difficult to tell what exactly you are doing. Of course each LabVIEW version has it's own object cache.
Are these otherwise identical projects? Are all VIs set to separate compiled code? Have you tried clearing the object cache when the project is closed (e.g. if you would run the toplevel VI after clearing, things get recompiled of course)? Are the compilation optimization settings the same in both versions?
What are the sizes if you clear once more right after clearing? Does to show zero?
I only have 2022Q3 on a VM, will try a few things later...
02-02-2023 11:20 AM
Thank you for your comment. Please find more details below.
C1: Of course each LabVIEW version has it's own object cache.
A1: Sure, I've tested both versions of LabVIEW independently. They was not even open at the same time.
C2: Are these otherwise identical projects?
A2: Same project, just a bit different points in the Git, LV2022 project is 2.9% bigger. (We've switched from LV2018 to LV2022 recently).
C3: Are all VIs set to separate compiled code?
A3: Yes.
C4: Have you tried clearing the object cache when the project is closed (e.g. if you would run the toplevel VI after clearing, things get recompiled of course)?
A4: Yes, I've tried to do so, can't see any difference.
C5: Are the compilation optimization settings the same in both versions?
A5: Yes, they are. Also the set of installed plugins and extensions is the same.
C6: What are the sizes if you clear once more right after clearing? Does to show zero?
A6: No, that's the case. Size is always similar and does not change at all, regardless from my actions, including Mass Compile.
It's not very big deal in general, but it is annoying. Like the same LV2022 randomly wiping VI icons texts and glyphs during the Mass Compile.
Also the influence on the performance is not clear.
02-02-2023 11:31 AM
@D_mitriy wrote:
. Like the same LV2022 randomly wiping VI icons texts and glyphs during the Mass Compile.
Wait... WHAT?!
02-02-2023 11:36 AM - edited 02-02-2023 11:39 AM
Well, I thought that everyone noticed already... Every time you do mass compile some texts and glyphs on random icons are missing. In another small project it was quite easy to spot this. Not sure, but it looks like "Apply icon to VI" may cause this as well. Unfortunately, I have no time for detailed investigation of this issue.
Edit: just to make it more clear. I have two projects currently. One has VI icons template set once and forever, never changed and "Apply icon to VI" never called. Only Mass Compiles. Bug present. Another project has gazillions of different VI's with different icons and sometimes I need to call "Apply icon to VI". Bug present, feels that it happens more often, but no statistics on that.
02-02-2023 01:19 PM
@Frozen wrote:
@D_mitriy wrote:
. Like the same LV2022 randomly wiping VI icons texts and glyphs during the Mass Compile.
Wait... WHAT?!
I don't use 2022 daily, but I've heard of others complain about this too.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
02-02-2023 01:36 PM
The latest LabVIEW 2022 Q3 patch fixes the majority of the cases where icons were getting wiped out. The LabVIEW 2023 Q1 release should fix all the cases.
02-03-2023 06:02 AM
All the tests made with LabVIEW 2022 Q3. Sorry if I missed this somewhere.
02-03-2023 07:40 AM - edited 02-03-2023 07:45 AM
@Darren wrote:
The latest LabVIEW 2022 Q3 patch fixes the majority of the cases where icons were getting wiped out. The LabVIEW 2023 Q1 release should fix all the cases.
What 2022 Q3 Patch? I went to NI.com, and clicked the search button, but it doesn't do anything in Chrome at least. I went to ni.com/software and the search actually does do something so I searched "labview 2022 q3 patch 1". The first result is NI-VISA, then Academic VLA, then results get more wrong.
I googled it and the only thing I found was 2022 Q3 bug fixes but nothing about a patch.
In NIPM under Details under LabVIEW 2022 Q3 there is a mention of the Patch 1 and a link that goes here which doesn't mention any patch or give any download. Now that I look at it closer that link is for 2023 Q1, despite the link being labeled 2022 Q3 Patch 1 in NIPM. If I change the release to 2022 Q3 there is still nothing about a patch.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
02-03-2023 08:00 AM
Yeah, it's not straightforward. One of my colleagues at NI also couldn't find it. It's in the 'Updates' section of NIPM: