Description: I've written some basic code to read, modify and write some binary data from my Garmin Forerunner 10. I didn't use this macro since a long time. Now I needed to made some change on a file and the macro stopped working on LibreOffice 6 (I got errors using LO 6.1.0.3, 6.2.5.2, 6.2.7.1, 6.3.1.2). It continues working perfectly on LibreOffice 5.3.4.2. The problem comes when the macro calls some Class method: before the call some internal variables has the expected value (current byte id and current sheet row). After the call variables are zeroed and so BASIC goes in error state. This happens with both reading and wrinting file (on different classes) In the zip attached there are, the ods file with the macros, a txt whit a short description of the macro usage, some screenshots of the problem as well as the correct end reading message box, the input and output .FIT files. Note that with LO 6 is not possible (with this macro) to use F8 to do the proper debugging, because when the cursor enter the class method, it is impossible to do anything else. The only way to show you the screeshots with the modified variable values has been that of using SHIFT+F8 Steps to Reproduce: Read the file ShortMacroDescription.txt, inside attached zip file Actual Results: BASIC error Expected Results: Calc sheet compiled with the whole read bynary data converted in human readable information and modified information written into binary data file Reproducible: Always User Profile Reset: No Additional Info: I've made test on 5 different computers: - Ubuntu Linux real PC with LO 6.3.1.2 (ko) - Suse Linux on VirtualBox with LO 6.2.5.2 (ko) - Windows 10 real PC with LO 6.1.0.3 (ko) - Windows 10 on VirtualBox with LO 6.2.7.1 (ko) - Windows XP on VirtuaBox with LO 5.3.4.2 (the only one working)
Created attachment 154755 [details] ZIP containing files to reproduce the problem and screeshots
(In reply to Paolo from comment #0) > It continues working perfectly on LibreOffice 5.3.4.2. I don't understand this: it does not work with 5.3.0.0 alpha. I get: Inadmissible value or data type. Data type mismatch. after the step "A dialogue asks you to select the .FIT file" The same error is present in the current version. Please explain.
The .ods file I have provided in the .zip file has been generated (or, better, the sheets to show you the correct behavior of the code have been generated) using LibreOffice 5.3.4.2 on a Windows XP PC. So, if I run again that BASIC macro now on that PC, using that version of LibreOffice, it does correctly read the .FIT file and, after having modified the data, to write the modified .FIT file. Note that version of LO was working fine even on my primary Ubuntu Linux PC, because I've used this macro a lot of time in the past, to correct the .FIT data. So this is all I can say.
[Automated Action] NeedInfo-To-Unconfirmed
I discussed this topic with a member of the macro team and he suggested you write a minimal macro example of the root problem, with English language comments & everything.
I have just updated LibreOffice to 6.4.3.2, tried to run the macros affected by the bug, and the problem has gone. My classes now works fine and my macros as well. So I think you can close the bug. Thank you for your kind support.
Excellent news. Closing.