Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#3187 closed defect (can't reproduce)

Can't save settings file (in use by another process)

Reported by: hinz@… Owned by: pett
Priority: normal Milestone:
Component: Input/Output Version:
Keywords: Cc: Greg Couch
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Windows-10-10.0.18362
ChimeraX Version: 1.0 (2020-05-09)
Description
The error occured after starting the programm for the first time.

Log:
Startup Messages  
---  
note | available bundle cache has not been initialized yet  
  
Traceback (most recent call last):  
File "C:\Program Files\ChimeraX 1.0rc202005091901\bin\lib\site-
packages\chimerax\core\safesave.py", line 96, in __exit__  
os.replace(self._tmp_filename, self.name)  
PermissionError: [WinError 32] Der Prozess kann nicht auf die Datei zugreifen,
da sie von einem anderen Prozess verwendet wird:
'C:\\\Users\\\SC_Lap\\\AppData\\\Local\\\UCSF\\\ChimeraX\\\ModelPanel-1.tmp'
-> 'C:\\\Users\\\SC_Lap\\\AppData\\\Local\\\UCSF\\\ChimeraX\\\ModelPanel-1'  
  
During handling of the above exception, another exception occurred:  
  
Traceback (most recent call last):  
File "C:\Program Files\ChimeraX 1.0rc202005091901\bin\lib\site-
packages\chimerax\core\toolshed\info.py", line 621, in start_tool  
ti = api._api_caller.start_tool(api, session, self, tool_info)  
File "C:\Program Files\ChimeraX 1.0rc202005091901\bin\lib\site-
packages\chimerax\core\toolshed\\__init__.py", line 1640, in start_tool  
return cls._get_func(api, "start_tool")(session, ti.name)  
File "C:\Program Files\ChimeraX 1.0rc202005091901\bin\lib\site-
packages\chimerax\model_panel\\__init__.py", line 21, in start_tool  
return model_panel(session, tool_name)  
File "C:\Program Files\ChimeraX 1.0rc202005091901\bin\lib\site-
packages\chimerax\model_panel\tool.py", line 345, in model_panel  
_mp = ModelPanel(session, tool_name)  
File "C:\Program Files\ChimeraX 1.0rc202005091901\bin\lib\site-
packages\chimerax\model_panel\tool.py", line 29, in __init__  
now = self.settings.last_use = time()  
File "C:\Program Files\ChimeraX 1.0rc202005091901\bin\lib\site-
packages\chimerax\core\settings.py", line 190, in __setattr__  
ConfigFile.__setattr__(self, name, value)  
File "C:\Program Files\ChimeraX 1.0rc202005091901\bin\lib\site-
packages\chimerax\core\configfile.py", line 365, in __setattr__  
ConfigFile.save(self)  
File "C:\Program Files\ChimeraX 1.0rc202005091901\bin\lib\site-
packages\chimerax\core\configfile.py", line 315, in save  
self._config.write(f)  
File "C:\Program Files\ChimeraX 1.0rc202005091901\bin\lib\site-
packages\chimerax\core\safesave.py", line 98, in __exit__  
os.remove(self._tmp_filename)  
PermissionError: [WinError 32] Der Prozess kann nicht auf die Datei zugreifen,
da sie von einem anderen Prozess verwendet wird:
'C:\\\Users\\\SC_Lap\\\AppData\\\Local\\\UCSF\\\ChimeraX\\\ModelPanel-1.tmp'  
  
During handling of the above exception, another exception occurred:  
  
Traceback (most recent call last):  
File "C:\Program Files\ChimeraX 1.0rc202005091901\bin\lib\site-
packages\chimerax\core\tools.py", line 379, in start_tools  
bi.start_tool(session, tool_name)  
File "C:\Program Files\ChimeraX 1.0rc202005091901\bin\lib\site-
packages\chimerax\core\toolshed\info.py", line 627, in start_tool  
"start_tool() failed for tool %s in bundle %s:\n%s" % (tool_name, self.name,
str(e)))  
chimerax.core.toolshed.ToolshedError: start_tool() failed for tool Model Panel
in bundle ChimeraX-ModelPanel:  
[WinError 32] Der Prozess kann nicht auf die Datei zugreifen, da sie von einem
anderen Prozess verwendet wird:
'C:\\\Users\\\SC_Lap\\\AppData\\\Local\\\UCSF\\\ChimeraX\\\ModelPanel-1.tmp'  
  
Tool "Model Panel" failed to start:  
chimerax.core.toolshed.ToolshedError: start_tool() failed for tool Model Panel
in bundle ChimeraX-ModelPanel:  
[WinError 32] Der Prozess kann nicht auf die Datei zugreifen, da sie von einem
anderen Prozess verwendet wird:
'C:\\\Users\\\SC_Lap\\\AppData\\\Local\\\UCSF\\\ChimeraX\\\ModelPanel-1.tmp'  
  
File "C:\Program Files\ChimeraX 1.0rc202005091901\bin\lib\site-
packages\chimerax\core\toolshed\info.py", line 627, in start_tool  
"start_tool() failed for tool %s in bundle %s:\n%s" % (tool_name, self.name,
str(e)))  
  
See log for complete Python traceback.  
  
UCSF ChimeraX version: 1.0rc202005091901 (2020-05-09)  
© 2016-2020 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  




OpenGL version: 3.3.13559 Core Profile Forward-Compatible Context 26.20.12028.2
OpenGL renderer: AMD Radeon(TM) Vega 8 Graphics
OpenGL vendor: ATI Technologies Inc.
Manufacturer: LENOVO
Model: 20MX000GMX
OS: Microsoft Windows 10 Pro (Build 18363)
Memory: 7,413,559,296
MaxProcessMemory: 137,438,953,344
CPU: 8 AMD Ryzen 5 PRO 2500U w/ Radeon Vega Mobile Gfx"

Change History (7)

comment:1 by pett, 5 years ago

Cc: Greg Couch added
Component: UnassignedInput/Output
Owner: set to pett
Platform: all
Project: ChimeraX
Status: newaccepted
Summary: ChimeraX bug report submissionCan't save settings file (in use by another process)

comment:2 by pett, 5 years ago

Status: acceptedfeedback

Hi Steffen,

Was this the very first time you had ever used ChimeraX, or did you mean the error happened as you started ChimeraX without you doing anything else? Does this error happen every time you start ChimeraX, or was it only this one time?

--Eric

Eric Pettersen
UCSF Computer Graphics Lab

in reply to:  3 ; comment:3 by hinz@…, 5 years ago

Hi Eric,

It was the first time facing this problem. It happened on the first 
start of the programm after installing (I use the programm for some time 
now, but installed it on a new laptop). Maybe the programm did start in 
the background after the installation process and I was too impatient 
with starting the programm. I have started it several times since then 
without any issues.

Steffen

Am 12.05.2020 um 17:57 schrieb ChimeraX:

comment:4 by pett, 5 years ago

Resolution: can't reproduce
Status: feedbackclosed

Hi Steffen,

Thanks for getting back to me. This feels like a problem that I'm never going to be able to reproduce, and since it doesn't recur for you either, I am just going to close this ticket. Keep your fingers crossed. :-)

--Eric

comment:5 by pett, 5 years ago

Hi Steffen,

I did get another report of this, so I made my best guess as to what would fix it and changed the code. Thanks for reporting the problem so I could get a feel for whether it was common or not.

--Eric

in reply to:  6 ; comment:6 by hinz@…, 5 years ago

Hi Eric,

Thanks for letting me know. And thanks for your work, I really like the 
new chimeraX ;)

Best regards,

Steffen

Am 13.05.2020 um 22:20 schrieb ChimeraX:

comment:7 by pett, 5 years ago

Happy you like it!

--Eric

Note: See TracTickets for help on using tickets.