LabVIEW 2022 Public Beta

cancel
Showing results for 
Search instead for 
Did you mean: 

Fault on opening Examples....

Installed LV 2022 beta on Mac OS 12.4.1

Opened LV just fine.  Then asked to open the examples.  Got the following error.

sth_0-1655266879042.png

Then when ask to continue, the examples open just fine.  Not sure what is going on.

Just to note, this is on an Apple Silicon laptop under Rosetta 2, so there is ample reason for NI to dismiss this, but that is the hardware I have to test this at the moment.

 

LabVIEW ChampionLabVIEW Channel Wires

0 Kudos
Message 1 of 14
(2,318 Views)

The Beta reports more things than a shipping version of LabVIEW would, and this "internal warning" is a notification that LabVIEW wasn't able to add a file to the cache. There are a number of reasons why this could happen, and I don't think we need to dig in for more details since LabVIEW doesn't yet officially support your Mac. The failure to cache shouldn't cause any functional errors.

 

Thank you for testing! 


Christina Rogers
Principal Product Owner, LabVIEW R&D
0 Kudos
Message 2 of 14
(2,277 Views)

@Christina_R wrote:

this "internal warning" is a notification that LabVIEW wasn't able to add a file to the cache. There are a number of reasons why this could happen, and I don't think we need to dig in for more details since LabVIEW doesn't yet officially support your Mac.


Christina, thanks for the clarification.  And though LV is not officially on an M1 Mac, file access is not and should not be CPU dependent.

 

However, your pointer to cache read/writes may be pointing to an error that should be fixed.  My preferences have a different "default data" folder than default and I have a new one for each version.  So in this case my LabVIEW default data folder is called "LabVIEW Data 22".  Is the example finder trying to use that setting in LV or does it have its own setting that is the default?

 

I am on vacation and traveling and only have my (fantastic) M1 MacBook Air.  But I will test this on my Intel Desktop sometime after I get home.   With the same preferences file.

 

On a related issue (minor bug), the "example finder" application has a menu item for preferences that does not do anything and if there are no preferences for "example finder" then that menu item should be removed.

LabVIEW ChampionLabVIEW Channel Wires

0 Kudos
Message 3 of 14
(2,271 Views)

@sth wrote:
file access is not and should not be CPU dependent.

There's an issue with Rosetta 2 causing intermittent file I/O errors for LabVIEW.

 


@sth wrote:
Is the example finder trying to use that setting in LV or does it have its own setting that is the default?

I don't believe Example Finder would affect the directory that LabVIEW uses when it opens a file.

 


@sth wrote:
On a related issue (minor bug), the "example finder" application has a menu item for preferences that does not do anything 

The menu item could open the same dialog as the Setup button, but we're unlikely to fix this since it's a minor issue.


Christina Rogers
Principal Product Owner, LabVIEW R&D
0 Kudos
Message 4 of 14
(2,249 Views)

I haven't had problems with file operations in many other programs.  I wonder what LV does that is so different.  But that may be the issue.

 

My comment on the cache directory, was the opposite, was IF the objcache location that Example Finder uses is NOT the one that LV uses there could be an issue.  If the Example Finder does not look at the LV preferences it will be looking for a non existent directory on my system.  The way Example Finder is built as a separate launchable application should mean that it has its own preferences rather than using LV.  Can that be a problem if it is looking for the object cache which is in a non-default location?

 

Thinking further on this, since "example finder" is multi-version (ie all versions of LV use the same example finder application then are they putting their ObjFileDB in the same location or do they inherit that individual setting from the calling version of LV?

 

It does not appear that example finder uses the system objFileDB as the date doesn't change as it is called/updated.  Would this also apply to the merge, compare applications?  Do they use the ObjFileDB in the Users preferences or some global one?

LabVIEW ChampionLabVIEW Channel Wires

0 Kudos
Message 5 of 14
(2,242 Views)

@sth wrote:

I haven't had problems with file operations in many other programs.  

 

My comment on the cache directory, was the opposite, was IF the objcache location that Example Finder uses is NOT the one that LV uses there could be an issue.  

 

I have no doubt that LabVIEW does unusual patterns with its file I/O. We intend to port instead of relying on Rosetta 2, but I can't promise a timeline.

 

I don't understand what you're saying about Example Finder... Example Finder doesn't, itself, open VIs. It instructs the LabVIEW IDE to open the examples.


Christina Rogers
Principal Product Owner, LabVIEW R&D
0 Kudos
Message 6 of 14
(2,223 Views)

@Christina_R wrote:

@sth wrote:

My comment on the cache directory, was the opposite, was IF the objcache location that Example Finder uses is NOT the one that LV uses there could be an issue.  

I don't understand what you're saying about Example Finder... Example Finder doesn't, itself, open VIs. It instructs the LabVIEW IDE to open the examples.


Maybe I am completely off base here.  I was thinking that Example Finder was executing VIs to find and display the examples (ie Example Finder is written in LV) and those needed to to find their code that is not in the VIs themselves but in the Object Cache.

 

The error occurs before Example Finder opens and there is no problem having the LV IDE open the Object Cache.  So I assumed it was the VIs internal to Example Finder that needed the object cache and thus triggered the error.

 

If Example Finder is looking for the object cache and that file is NOT in the default location for the user, is that a problem?  That path can be set in the LV IDE so that the LV IDE uses that default location.  BUT Example Finder does not know about the settings in the LV IDE?

 

Maybe this is taken care of and I am back from vacation and will check all this on an Intel iMac to eliminate the M1/Rosetta 2 issues. And thus be in step with official release information.

LabVIEW ChampionLabVIEW Channel Wires

0 Kudos
Message 7 of 14
(2,216 Views)

@Christina_R wrote:

I have no doubt that LabVIEW does unusual patterns with its file I/O. We intend to port instead of relying on Rosetta 2, but I can't promise a timeline.

That is great and of course I look forward to it and timelines are always aspirational!  Why would LabVIEW do unusual patterns for file I/O?  Just to be weird?  🙂  Anyway, I installed the beta on an Intel machine (though it is also an "unsupported" OS (Mojave)) and the examples open just fine.  Still not sure exactly why the VIObjCache is accessed by either the LV IDE or the Example Finder when it launches.  You were right, it is a Rosetta 2 issue.

LabVIEW ChampionLabVIEW Channel Wires

0 Kudos
Message 8 of 14
(2,210 Views)

@sth wrote:
Still not sure exactly why the VIObjCache is accessed by either the LV IDE or the Example Finder when it launches.

I assume a VI is loaded...

 

That would (try to) access the VIObjCache, assuming the VIObjCache is the compile cache database.

0 Kudos
Message 9 of 14
(2,195 Views)

wiebe@CARYA wrote:

I assume a VI is loaded...

That would (try to) access the VIObjCache, assuming the VIObjCache is the compile cache database.


Obviously, but is that VI being loaded dynamically by the LabVIEW IDE or by the "Example Finder"?  They may have different pointers to individual VIObjCaches depending on preference settings.

LabVIEW ChampionLabVIEW Channel Wires

0 Kudos
Message 10 of 14
(2,186 Views)