JDP Science Tools

cancel
Showing results for 
Search instead for 
Did you mean: 

From JSON Text.vim not working on Linux

Hello,

I'm using the To JSON Text.vim to save the cluster which contains LabVIEW classes. Then save it to file, load, and convert it back with From JSON Text.vim to my cluster. This operation works perfectly on Windows LabVIEW 2020. However, it doesn't work on Linux (Ubuntu LabVIEW 2020).

 

I created POC vi to easily test the issue:

lukikwiatkowskigmailcom_1-1642153938602.png

When you lunch it on Ubuntu, the following error will appear:

Code: 1403

SubVI in JSONtext.lvlib:JSON text to Variant.vi:4410001->JSONtext.lvlib:JSON text to Variant.vi:4410002->load from JSON.vi

 

Have you any clue what's the reason for this error? 

 

The test project can be found in the attachment. 

 

0 Kudos
Message 1 of 10
(4,852 Views)

What JSON is produced?   On Windows it is:

 

{

"Square.lvclass":"§§AAAAARAOU3F1YXJlLmx2Y2xhc3MAAAAAAAAAAAAAAAA", "Triangle.lvclass":"§§AAAAARIQVHJpYW5nbGUubHZjbGFzcwAAAAAAAAAAAAA"

}

0 Kudos
Message 2 of 10
(4,834 Views)

For Ubuntu it is:

 

{"Square.lvclass":"§§AAAAARAOU3F1YXJlLmx2Y2xhc3MAAAAAAAAAAAAAAAA","Triangle.lvclass":"§§AAAAARIQVHJpYW5nbGUubHZjbGFzcwAAAAAAAAAAAAA"}

 

so there is a difference.

0 Kudos
Message 3 of 10
(4,797 Views)

I have a suspicion of the reason. Unfortunately don't have Linux to test, but I can rework things to prevent this bug (if it is what I think it is).

0 Kudos
Message 4 of 10
(4,773 Views)

This is the only modified subVI that I needed to modify.  If you could try substituting in (it's at vi.lib\JDP Science\JSONtext\support\JSON to LVObject.vi) and let me know if it works.

0 Kudos
Message 6 of 10
(4,767 Views)

Thank you for your answer. Unfortunately after replacing "JSON to LVObject.vi" the error still pops up. I have tried to dig into code to find the source and exactly in that VI which you send under UTF8 case, "Unflatten From String.vi" throws error 1403. Following snipped shows what is an input for that vi.

 

0 Kudos
Message 7 of 10
(4,749 Views)

 Sorry that didn't work.  Can you try this new version?

 

 

0 Kudos
Message 8 of 10
(4,691 Views)

It's working now. Thank you for fixing the bug.

0 Kudos
Message 9 of 10
(4,672 Views)

A 1.6.9 version of JSONtext (including this fix) has been submitted to the Tools Network

Message 10 of 10
(4,629 Views)