KICad fails to save project preferences file

Bug #1491427 reported by Steve Burton
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Expired
Undecided
Unassigned

Bug Description

Application: kicad
Version: (2015-08-30 BZR 6134)-product release build
wxWidgets: Version 3.0.0 (debug,wchar_t,compiler with C++ ABI 1002,GCC 4.8.2,wx containers,compatible with 2.8)
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Boost version: 1.54.0
         USE_WX_GRAPHICS_CONTEXT=OFF
         USE_WX_OVERLAY=OFF
         KICAD_SCRIPTING=ON
         KICAD_SCRIPTING_MODULES=ON
         KICAD_SCRIPTING_WXPYTHON=ON
         USE_FP_LIB_TABLE=HARD_CODED_ON
         BUILD_GITHUB_PLUGIN=ON

This has been happening on this version and for some previous versions (I lost track)

Open an existing project or create a new one.
in eeschema pcbnew or the project manager, attempt to save preferences.

This error occurs:

15:09:49: Failed to copy the file 'D:\PCB Projects\SMD Passives Breakout\SMD2A09.tmp' to 'D:\PCB Projects\SMD Passives Breakout\SMD Passives Breakout.pro' (error 0: the operation completed successfully.)
15:09:49: File 'D:\PCB Projects\SMD Passives Breakout\SMD2A09.tmp' couldn't be renamed 'D:\PCB Projects\SMD Passives Breakout\SMD Passives Breakout.pro' (error 0: the operation completed successfully.)
15:09:49: can't commit changes to file 'D:\PCB Projects\SMD Passives Breakout\SMD Passives Breakout.pro' (error 0: the operation completed successfully.)
15:09:49: Failed to update user configuration file.

The .tmp file exists and if manually renamed works.

I have tried this with the 'PCB Projects' directory as a subdirectory of 'My Documents' and in the root of D: with the same results.

I have manually changed file and directory permissions to allow my user full permission, with the same result.

Revision history for this message
jean-pierre charras (jp-charras) wrote :

I am unable to reproduce that.

Revision history for this message
firewalker (firew4lker) wrote :

What the preferences file is? When trying to save it there a project save dialog. I tried to change the file name but couldn;t find any files crated.

http://i.imgur.com/GbAlIMx.png

Revision history for this message
Steve Burton (y9a7s7tjd2jxy-steve) wrote :

From the error message, the project preferences are saved in the .pro file, though when you save preferences there is no file-save dialog box nor is one needed. The action and the file name is implicit.

I'm not sure it is possible to change a project name, even though you can type one in the Project File Save dialog box. I'm pretty sure I found reference to this when reading FAQs and bug-reports.

As to repeatability, I will try to create a new project step by step that fails.

Revision history for this message
Steve Burton (y9a7s7tjd2jxy-steve) wrote :

Case 1:

Create an empty directory 'D:\PCB Projects\Test Project'
Open KiCad
Press the new, blank, project button
Browse to the Test Project directory
Enter 'Test Project.pro' in the file name field and click Save

The directory now contains three files:
Test Project.kicad_pcb
Test Project.pro
Test Project.sch

Click the Save Project button

An error is reported:

16:46:01: Failed to copy the file 'D:\PCB Projects\Test Project\Tes56.tmp' to 'D:\PCB Projects\Test Project\Test Project.pro' (error 0: the operation completed successfully.)
16:46:01: File 'D:\PCB Projects\Test Project\Tes56.tmp' couldn't be renamed 'D:\PCB Projects\Test Project\Test Project.pro' (error 0: the operation completed successfully.)
16:46:01: can't commit changes to file 'D:\PCB Projects\Test Project\Test Project.pro' (error 0: the operation completed successfully.)
16:46:01: Failed to update user configuration file.

The directory now contains three files:
Tes56.tmp
Test Project.kicad_pcb
Test Project.sch

Note that the project file has been deleted.

Case 2:

Create an empty directory 'D:\PCB Projects\Test Project'
Open KiCad
Press the new, blank, project button
Browse to the Test Project directory
Enter 'Test Project.pro' in the file name field and click Save
Open Eeschema and add a preexisting library

Sometimes an error is reported when clicking OK after adding a library, if not, saving preferences reports and error.

16:59:46: Failed to copy the file 'D:\PCB Projects\Test Project\Tes97D0.tmp' to 'D:\PCB Projects\Test Project\Test Project.pro' (error 0: the operation completed successfully.)
16:59:46: File 'D:\PCB Projects\Test Project\Tes97D0.tmp' couldn't be renamed 'D:\PCB Projects\Test Project\Test Project.pro' (error 0: the operation completed successfully.)
16:59:46: can't commit changes to file 'D:\PCB Projects\Test Project\Test Project.pro' (error 0: the operation completed successfully.)
16:59:46: Failed to update user configuration file.

description: updated
Revision history for this message
Novak Tamas (novak-7) wrote :

I can't reproduce any of the above sequences. No any error messages. My system is similar: Win7 x64 SP1, but 4.0.2 stable KiCad.

Application: kicad
Version: 4.0.2-stable release build
wxWidgets: Version 3.0.2 (debug,wchar_t,compiler with C++ ABI 1009,GCC 5.2.0,wx containers,compatible with 2.8)
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Boost version: 1.57.0
         USE_WX_GRAPHICS_CONTEXT=OFF
         USE_WX_OVERLAY=OFF
         KICAD_SCRIPTING=ON
         KICAD_SCRIPTING_MODULES=ON
         KICAD_SCRIPTING_WXPYTHON=ON
         USE_FP_LIB_TABLE=HARD_CODED_ON
         BUILD_GITHUB_PLUGIN=ON

Changed in kicad:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for KiCad because there has been no activity for 60 days.]

Changed in kicad:
status: Incomplete → Expired
Revision history for this message
Harri Pehkonen (harripehkonen) wrote :

FIX: You need to pause Dropbox syncing. I don't know if Google Drive and others have the same effect, but I can turn this error off/on at will by pausing syncing and re-enabling it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.