Omnis.cfg – Corrupted
I have been doing some experimenting…
It seems that if you set the Omnis.cfg to Read Only that Omnis will open just fine. However, when you quite Omnis you get two error messages about a file being locked.
I then opened Omnis with the file in read only. Before I quite Omnis I manually set the file to read write. It closes with no error. So, I am wondering about a way to set the file to read only before starting Omnis, then during the Close Omnis process set it to read write so that Omnis can do its thing.
This way it could not be corrupted if Omnis Crashed or the OS was updated / restarted / Sleep Mode or whatever while Omnis is running.
Could run the “attrib” command in Windows for this. Not sure about the Mac.
I have also tried setting the file to read only after Omnis has started and this seems to work as well. But I wonder about unforeseen implications if Omnis already has the file open.
*********************************************************************
Michael Mantkowski
ClienTrax Software
1-614-875-2245
*********************************************************************
—–Original Message—–
From: omnisdev-en [mailto:omnisdev-en-bounces@lists.omnis-dev.com] On Behalf Of Andreas Pfeiffer
Sent: Wednesday, November 8, 2017 4:04 AM
To: OmnisDev List – English <omnisdev-en@lists.omnis-dev.com>
Subject: Re: Omnis.cfg – Corrupted
Maybe as a workaround you could create an update.bat (update.sh on the Mac) file that contains the copy command. If you create this file on the fly in the $destruct of your application than the next start that file will be executed before Omnis really starts. This is for Studio 8.x onwards.
Best regards,
Andreas
> Am 08.11.2017 um 02:33 schrieb Bastiaan Olij <bastiaan@basenlily.me>:
>
> Hi Michael,
>
> This has plagued us for years as well. The best understanding I have
> of the problem is that the omnis.cfg file is opened when Omnis starts
> for reading and writing. Certain actions such as changing preferences
> or changing data file end up writing settings into this file.
>
> There are (rare) situations where Omnis does not properly close this
> file and when restarting Omnis the file is kept in some sort of locked
> state. Often we find that a user will do a particular thing habitually
> that contributes like leaving Omnis running overnight and returning in
> the morning finding that the computer going to sleep and not coming
> back up properly. But we’ve never been able to pin down what exactly
> causes it to go wrong.
>
> Tech support is evaluating a suggestion I made to them for changing
> the logic, I don’t know where that stands right now and whether it
> will make the problem go away but it may end up in a Studio 8 version
> at some point in time.
>
> Cheers,
>
> Bas
>
>
> On 8/11/17 2:18 am, Michael Mantkowski wrote:
>> I have a client who is having frequent issues with the Omnis.cfg file being corrupted. This is happening every few days.
>>
>> I have had him send me a copy and it is a 6k file filled with Hex 0 and nothing else.
>>
>> So, when they try to start Omnis they get the Error message that it cannot initialize the Omnis.cfg file and Omnis quits.
>>
>> All they customer has to do at this point is delete the current Omnis.cfg and restart Omnis and it will create a new one and be fine. But obviously this is not a great solution for them.
>>
>> Has anyone seen this before where someone gets this over and over? We see it every so often with various clients but not where it keeps happening. I wish that Omnis would just replace the file on its own if it cannot read the current one. It does not save anything that we care about in the Runtime anyway.
>>
>> I would like to come up with a method to automatically deal with this.
>>
>> *********************************************************************
>> Michael Mantkowski
>> ClienTrax Software
>> 1-614-875-2245
>> *********************************************************************
>>
>>
>> _____________________________________________________________
>> Manage your list subscriptions at lists.omnis-dev.com
>>
>>
>
> —
> Kindest Regards,
>
> Bastiaan Olij
> e-mail: bastiaan@basenlily.me
> web: www.basenlily.me
> Skype: Mux213
> www.linkedin.com/in/bastiaanolij
>
> _____________________________________________________________
> Manage your list subscriptions at lists.omnis-dev.com
Grüße,
Andreas
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com