01-14-2022 04:03 AM
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:
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.
01-14-2022 05:41 AM
What JSON is produced? On Windows it is:
{
"Square.lvclass":"§§AAAAARAOU3F1YXJlLmx2Y2xhc3MAAAAAAAAAAAAAAAA", "Triangle.lvclass":"§§AAAAARIQVHJpYW5nbGUubHZjbGFzcwAAAAAAAAAAAAA"
}
01-16-2022 10:28 AM
For Ubuntu it is:
{"Square.lvclass":"§§AAAAARAOU3F1YXJlLmx2Y2xhc3MAAAAAAAAAAAAAAAA","Triangle.lvclass":"§§AAAAARIQVHJpYW5nbGUubHZjbGFzcwAAAAAAAAAAAAA"}
so there is a difference.
01-20-2022 09:57 AM
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).
01-20-2022 10:14 AM
01-20-2022 10:26 AM
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.
01-22-2022 03:27 AM
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.
02-18-2022 01:12 PM
Sorry that didn't work. Can you try this new version?
02-22-2022 10:40 AM
It's working now. Thank you for fixing the bug.
03-01-2022 04:24 AM
A 1.6.9 version of JSONtext (including this fix) has been submitted to the Tools Network