Page 1 of 1

random loss of data in .pro file

PostPosted: Thu Dec 02, 2021 10:55 am
by girogiri
Hello,

sometimes we open the UCCNC program and discover that the .pro file has lost the whole [UserTextfields] section of data.
variables range from 20009 to 20030.

attached the .pro with correct data, sometimes all those variables are set to 0 (zero)

cheers
Giorgio

Default.pro
(54.52 KiB) Downloaded 369 times

Re: random loss of data in .pro file

PostPosted: Thu Dec 02, 2021 2:13 pm
by cncdrive
The data is simply written into the profile on software closing, so maybe you closing the software before the writting could finish?!

Re: random loss of data in .pro file

PostPosted: Thu Dec 02, 2021 2:51 pm
by girogiri
We close the UCCNC software using the X button on top rigth and answering yes to the next popup.
What is strange is that now it loses only that specific section of the profile while in the past it was loosing the configuration of slave motors Y/A and then coupling the A with the X axis.. you can immagine the result.
Can it be related to the M6 macro that saves profile during execution? To do this we stop the Gcode execution, change and save setup and restart execution of Gcode.
This issue only happens on this machine that has this kind of M6 macro.
Find attached the M6.

rgds Giorgio

M6.txt
(21.26 KiB) Downloaded 364 times

Re: random loss of data in .pro file

PostPosted: Sun Jan 30, 2022 3:49 pm
by mattsshop
Giorgio,

Did you ever find the issue? I am having the same issue and it is quite persistent, it has happened to me twice this morning at what seems like random times. I am new to UCCNC and am extremely frustrated with all the glitches I am seeing, I know that it is not perfect but I am yet to make a part after rebuilding my machine to run on UCCNC.

Thanks,
Matt

Re: random loss of data in .pro file

PostPosted: Mon Jan 31, 2022 2:26 pm
by mattsshop
Giorgio,

I am having the same issue, it seems to be at random times, it has even happened while using the program. Did you ever find what the problem was? I keep having to reload a copy of my profile.

Thanks,
Matt

Re: random loss of data in .pro file

PostPosted: Tue Feb 15, 2022 2:25 pm
by girogiri
Hi Matt,

sorry for the late reply,
I have a lot of macros and macroloops running in my system, I found that in some cases, one of the macros was saving the .pro file before the M9998 macro had run.
So I believe in my case it was just a programming issue.

cheers
Giorgio

Re: random loss of data in .pro file

PostPosted: Wed Feb 16, 2022 5:20 am
by cncdrive
The profile file could also get corrupted if the UCCNC is saving into the file and it gets interrupted. (computer gets unpowered) then the file is not fully written and gets corrupted.
So, make sure to do not switch off the computer while the UCCNC is still closing.
And you can use the autobackup profile plugin, it creates backup copies of the profile, so you can use it to restore the profile file if it gets corrupted.