JDP Science Tools

annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

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 Compliments
Message 1 sur 10
6 377 Visites

What JSON is produced?   On Windows it is:

 

{

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

}

0 Compliments
Message 2 sur 10
6 359 Visites

For Ubuntu it is:

 

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

 

so there is a difference.

0 Compliments
Message 3 sur 10
6 322 Visites

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 Compliments
Message 4 sur 10
6 298 Visites
0 Compliments
Message 5 sur 10
6 294 Visites

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 Compliments
Message 6 sur 10
6 292 Visites

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 Compliments
Message 7 sur 10
6 274 Visites

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

 

 

0 Compliments
Message 8 sur 10
6 216 Visites

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

0 Compliments
Message 9 sur 10
6 197 Visites

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

Message 10 sur 10
6 154 Visites