LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sporadic Error 1051, Method Name: Library:Open when building an App

Could you try a "Clean" action from the App-Builder pulldown and then rebuild? This would always reproduce the issue in my case.

0 Kudos
Message 11 of 16
(145 Views)

I looked through the app builder logs attached above, nothing out of the ordinary jumped out at me.

 

If anybody on this thread is able to share code that reliably reproduces the 1051 build error, please send me a direct message so I can get the code and try to reproduce the issue in-house at NI. Thanks.

0 Kudos
Message 12 of 16
(135 Views)

I made a stripped down version of a larger project that reproduces the error (LV24Q3 64bit, attached)

 

It turns out that this issue is related to MediaMongrels Ltd's Websockets (Version 2.0.2.41) package, which can be installed via VIPM.

 

I suspect that the issue has to do with the fact that the Wesockets package incorrectly claims a couple of VIs from vi.lib (as per menu Item "Find Item Incorrectly Claimed by a Library" form the project root).

 

The issue only appears if building the vi using websocktes as module into a path rather then compiling it into the main app.

 

To reproduce the issue you have to install the websockets packet, then build then "Clean" from build specs menu, then rebuild.

0 Kudos
Message 13 of 16
(123 Views)

Thanks, wikessen, I was able to reproduce the issue in LabVIEW 2024 Q3 Patch 2 64-bit.

I have filed Bug 2914772 to LabVIEW R&D to investigate the issue further.

0 Kudos
Message 14 of 16
(95 Views)

I found another work-arround for the issue:

"Clear Compiled Object Cache..." from the Tools/Advanced menu-bar.

If this is done before each rebuild then everything seems to work.

Message 15 of 16
(48 Views)

I too am having this exact same issue. I also am using the MediaMongrels WebSockets. Clearing the object cache as a work around is working for me as well. I was using LabVIEW 2021 and updated to 2024 Q3 release and this issue popped up.

Brad Remenak
Certified LabVIEW Architect
0 Kudos
Message 16 of 16
(25 Views)