Hello,
I am currently using a µvision V5.26.2.0 and sometimes I can't save source file ( h , cpp ).
When it happened the pop ups window showing this message:
"Encountered a sharing violation while accessing {Path to me source file}"
The only one way that can change this behavior is to restart the µvision IDE.
Can I do something else?
So is the file on a shared or networked drive?
Are you trying to access the file simultaneously from other application(s)?
Do you have backup and/or antivirus software running?
The project is located on local disk and only µvision IDE accessing the files.
Yes, There is a antivirus software running but it has been running with previous version of
µvision IDE, before I have updated it.
The previous version has worked without pop up windows.
I'm experiencing the same problem with uVision, v5.26.2.0. Also have the files on my local disk, not on my dropbox folder, am not running one drive - only thing that might be accessing it is antivirus (eset NOD32). Once the problem happens, it is impossible to save that file until the IDE is restarted.
I'm having the same issue, and again using Version 5.26.2.0
I have now activated the "File & Project Handling" setting to Auto save and create a backup files (.BAK). All this is in the Edit/Configuration/...
I'm hoping that the backup file will help..... I have yet to determine if this is the case.
Is this a recognised bug with uVersion / arm?
Regards, R.
I have the same problem with my header file using MDK 5.26.2.0. Unless SOMEBODY submit the service ticket with active maintenance service, Keil (Arm) will not consider these issues seriously. (I tried to talk with their chatbot but they do not take any action.)
Hello Alexey,
I am trying to get a feel for your environment.
I assume this is Windows10 OS, and that your Keil tools are installed in the c:\keil_v5\ folder
- Are you using the latest version of windows 10? - Are you sharing the computer with another user? Could they be logged into the same machine? - Are you using Microsoft System Center Endpoint Protection aka Windows Defender as your anti-virus tool?
It would be good to know what is locking the file. There are 3 methods I've tried, and sometimes one uncovers something the others don't/
* Use the built-in Resource Monitor: superuser.com/.../find-out-which-process-is-locking-a-file-or-folder-in- windows
* Use Powershell: gallery.technet.microsoft.com/How-to-find-out-which-c0d4e60e (to open powershell www.isunshare.com/.../5-ways-to-open-windows-powershell-in-windows-10.html)
* Use Process Explorer: blogs.technet.microsoft.com/.../
... Once you figure out who is locking the file (probably an antivirus program) you can take steps to stop it, like in support.microsoft.com/.../windows-10-add-an-exclusion-to-windows-security
=====
In the Keil µVision IDE, under "Edit-> Configuration", on the "Editor" tab, on the middle-right of the dialog, under "File and Project Handling" do you have any check boxes set? You can read about these settings here:
http://www.keil.com/support/man/docs/uv4/uv4_dg_editsettings.htm
Maybe a setting there is causing issues.
Hello Rowland,
I have seen some random reports of a similar issue coming in, but we still can't reproduce it. Every instance seems to be slightly different setup.
We assume that the PC is running some other processes in the background e.g. Virus Scanner, Windows Indexing Service, Software Version Control Systems, Onedrive. etc. - that may be causing a conflict.
If you could duplicate this issue in an acceptable time frame, we would be happy if you could make some tests with the Process Monitor from Sysinternals/Microsoft. You could add a filter to a folder where your header files are located (Filter: Path contains .... then Include). You could then start the recording, work with uVision and as soon as the problem shows up, you stop the recording and note the header file name which was reported in the error message. Then you could store the recording, create a support ticket and send it to us.
Hello Ron,
Thank you for your assistance.
1. The "File and Project Handling" section is unchecked. ( as a default ) 2. I am using a Windows 7 Enterprise version. 3. The Keil is installed in the C:\Keil_v5. 4. The source code is on drive D: ( Local drive , shrink partition ). 5. This is a Laptop and only I log in. 6. I am not using the "Microsoft System Center Endpoint Protection". 7. The anti-virus is Trend Micro.
This issue is an internal bug I guess so.
The reason why I am thinking so,
There is only one way to improve this behavior and is to restart an application ( Keil ).
I will try to understand the sequence of my usage that leads an issue.
Just more guessing, but:
* That the file gets locked may be nothing to do with Keil;
* That uVision does not recover after it's happened possibly (probably?) is to do with Keil.
And maybe one important thought, when it is locked in a Keil and I can't save the file.
I can do it in a standard editor, edit, save and the Keil allows to import changes event it has locked.
Observed this here today, the IDE is holding the share, closing the project is not sufficient to clear this. Closing the tool down and restarting, and loading the project then worked.
File is not shared on a network, file is not open for view/mapped in any other application.
Got a resource leak here guys...
Some additional info if it helps
uV 5.26 pre install Win7 64-bit, QC Xeon, 16 GB RAM
Occurred after enabling browse information and rebuilding, a couple of build cycles ago, bit slow otherwise.
File in question will cause very large change in dependency tree, perhaps background syntax checking of all files in project and library. stm32l4xx_hal_conf.h
Doing a quick edit, and rebuild.
Same sharing problem with me. Only observed it since about 1 month. In one environment at work, local folder is observed by GitHub, on other environment it's on a dropbox folder. (I used to work on dropbox folders for about 2 years, never happened) Only *.h files seem to be affected. The IDE shows the latest edited version but trying to save it, pops this message. I can copy the content, create a new file, save it,then restart IDE. Otherwise all editing is lost.
Kevin,
I have managed to capture the Sharing Violation error and had Sysinterals running.
So, I have a couple of files that may be of interest....
I've managed to compress one of the files to 12Mb, which I may be able to email...
Regards,
Rowland
have you tried opening uvision as admin ?
click on uvision exe file and ---> properties -->compatibility----> run this program as administrator