* Sharing Violation

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
Post Reply
avatar
peterjvc
Gold
Posts: 11
Joined: 16 Jun 2008 20:20
Family Historian: V5
Location: Northumberland

Sharing Violation

Post by peterjvc » 23 Nov 2014 12:24

Dear Friends,

I get the following message from time to time

"Unable to save. A sharing violation has occurred."

Advice most welcome thank you.

Peter

avatar
peterjvc
Gold
Posts: 11
Joined: 16 Jun 2008 20:20
Family Historian: V5
Location: Northumberland

Sharing Violation

Post by peterjvc » 23 Nov 2014 12:25

Dear Friends,

I get the following message from time to time

"Unable to save. A sharing violation has occurred."

Advice most welcome thank you.

Peter

User avatar
tatewise
Megastar
Posts: 27088
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Sharing Violation

Post by tatewise » 23 Nov 2014 15:09

Is this happening when you use the Save command, or does it happen when the Autosave happens every 5 minutes (default)?

If you disable Tools > Preferences > File Load/Save > Enable Autosave does that prevent the message?

Could it be caused by some other program activitivity? Perhaps an automatic Backup service, or Cloud storage service, or an Anti-Virus scan that just happens to lock the GEDCOM file as FH tries to save? Is the GEDCOM file open in another program?

If so, then try to adjust Backup settings or Anti-Virus settings to avoid such collisions.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
peterjvc
Gold
Posts: 11
Joined: 16 Jun 2008 20:20
Family Historian: V5
Location: Northumberland

Re: Sharing Violation

Post by peterjvc » 23 Nov 2014 15:33

Thank you Mike I will check that out.
Peter

avatar
peterjvc
Gold
Posts: 11
Joined: 16 Jun 2008 20:20
Family Historian: V5
Location: Northumberland

Re: Sharing Violation

Post by peterjvc » 23 Nov 2014 17:11

I have 'enable auto save' save set at 1 minute perhaps this is too frequent?

Peter

User avatar
tatewise
Megastar
Posts: 27088
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Sharing Violation

Post by tatewise » 23 Nov 2014 17:50

It depends on how often another program may be accessing the GEDCOM file. The more often FH applies Autosave then the more likely a collision.

As I said, try disabling Autosave altogether for a while to see if the messages stop. If then with Autosave re-enabled they resume, you need to discover what that other program might be. Have you any suspects from the suggestions I made?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
peterjvc
Gold
Posts: 11
Joined: 16 Jun 2008 20:20
Family Historian: V5
Location: Northumberland

Re: Sharing Violation

Post by peterjvc » 23 Nov 2014 18:33

Mike many thanks I will test that out

I have Kaspersky as my anti virus etc but have no idea how to determine whether or not it accesses FH and how often or when.

I also have drop box.
Peter

User avatar
tatewise
Megastar
Posts: 27088
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Sharing Violation

Post by tatewise » 23 Nov 2014 21:27

I doubt if Dropbox is the problem as so many FHUG users use it without problems.

Kaspersky Anti-Virus can be set to exclude any chosen folder, or temporarily paused, but the details depend upon which version you have.

This video http://www.youtube.com/watch?v=W9KEKVT9n3A shows how to Pause the 2014 version. While paused try setting the Autosave interval to 1 minute and if there are no messages then you have found the culprit. BUT do not use the Internet or E-mail while Kaspersky Anti-Virus is paused.

We can then try setting an exclusion zone for the Family Historian Projects folder.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
peterjvc
Gold
Posts: 11
Joined: 16 Jun 2008 20:20
Family Historian: V5
Location: Northumberland

Re: Sharing Violation

Post by peterjvc » 24 Nov 2014 19:53

Mike,

Many thanks for this advice. I will play with Kaspersky and the file save timing and hope it solves the problem.
If not I will come back to you.

Best wishes,
Peter

avatar
allan1
Gold
Posts: 12
Joined: 17 Dec 2012 19:00
Family Historian: V6.2

Re: Sharing Violation

Post by allan1 » 30 Jul 2018 12:04

Sorry for resurrecting this post but I have been having this problem recently, just every now and again, and sometimes with Ancestral Sources also. However on trying again the save done it's job.

Today this problem is occurring and I am now unable to make any changes to my tree as they will not save.
The automatic save on close didn't work but there was no message about this.
As advised above I have turned off the Automatic save which was set for every five minutes.
I then closed the programme, on reopening I clicked save and didn't get the message, but when adding media I was unable save the next time.

I don't have any drop box to interfere, there is no other programme currently accessing the data/database.

I am using Version 6.2.7

Any other suggestions please?

Update to this, if I have my cursor on an individual in a diagram - which is how I use the programme most often to enter details - this is when the sharing violation occurs. If I click on the background and save then it seems to work. At least this is a work around so that I can continue to use the programme, but whether this will last I can't tell.
Last edited by allan1 on 30 Jul 2018 15:02, edited 1 time in total.

User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: Sharing Violation

Post by Jane » 30 Jul 2018 12:11

It's probably a problem with your Anti-Virus or some other monitoring program. One thing to try is working on your Project when in Safe Mode for Windows, or turning off the real time scanning for the Project data folders.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
tatewise
Megastar
Posts: 27088
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Sharing Violation

Post by tatewise » 30 Jul 2018 12:47

Just to clarify a few points...

If you have just opened FH and made no changes, then clicking Save does nothing as there is nothing to save.
That explains why you get no error message in that scenario.

What anti-virus security product are you running?
That will vet every file being saved everywhere, including your FH Project folder.

Which version of Windows are you using and are you running OneDrive against your FH Projects folder?

Did you see Error on saving or backing up small gedcom (16090)?
That describes similar symptoms caused by setting Windows Defender Security Centre option for Controlled folder access.

For advice on running in Safe Mode see how_to:family_historian_installation_problems#windows_safe_mode|> Windows Safe Mode.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
allan1
Gold
Posts: 12
Joined: 17 Dec 2012 19:00
Family Historian: V6.2

Re: Sharing Violation

Post by allan1 » 30 Jul 2018 15:06

Thank you for your advice both.

I would obviously prefer not to run the computer in Safe Mode except as a trial.
I am on Windows 10, and no I am not running One Drive.
I have used Bit Defender for a number of years however this problem has only arisen over the last few months.

Thank you for the link Tatewise, I will read that and see if there is anything to help.

Update to this, if I have my cursor on an individual in a diagram - which is how I use the programme most often to enter details - this is when the sharing violation occurs. If I click on the background and save then it seems to work. At least this is a work around so that I can continue to use the programme, but whether this will last I can't tell.

User avatar
tatewise
Megastar
Posts: 27088
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Sharing Violation

Post by tatewise » 30 Jul 2018 15:24

Just because you have run an anti-virus tool such as Bit Defender for years does not exclude it from consideration.
Such tools are regularly updated to keep abreast of new malware, and those updates are often the culprits.

We are not suggesting you run in Safe Mode all the time, but simply to check if the problem does not arise in Safe Mode, which helps to isolate what may be the cause, because for example Bit Defender won't be running in Safe Mode.

Please give a bit more detail about having your "cursor on an individual in a diagram" and what exactly causes the sharing violation error message, or does the error occur spontaneously without you doing anything?
I don't understand how just having your cursor on an individual causes the sharing violation.

Please post a screenshot attachment of the error message.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
allan1
Gold
Posts: 12
Joined: 17 Dec 2012 19:00
Family Historian: V6.2

Re: Sharing Violation

Post by allan1 » 30 Jul 2018 15:38

Cursor is on Sarah Ward, I click the Save icon and this is the error message.
I click the cursor onto the grey background and click Save and it goes ahead without the error.
Attachments
screenshot.jpg
screenshot.jpg (129.78 KiB) Viewed 7946 times

avatar
allan1
Gold
Posts: 12
Joined: 17 Dec 2012 19:00
Family Historian: V6.2

Re: Sharing Violation

Post by allan1 » 30 Jul 2018 15:45

OK testing again this does not follow as a rule. I need to test out your other suggestions. Thank you.

Post Reply