Opened 6 years ago

Closed 6 years ago

#2959 closed defect (can't reproduce)

CrashReporter can't access ~/Library/Logs/DiagnosticReports

Reported by: chimerax-bug-report@… Owned by: Tom Goddard
Priority: normal Milestone:
Component: Core Version: 0.9
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Darwin-19.3.0-x86_64-i386-64bit
ChimeraX Version: 0.9 (2019-06-06)
Description
(Describe the actions that caused this problem to occur here)

Log:
UCSF ChimeraX version: 0.9 (2019-06-06)  
© 2016-2019 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open /Volumes/beegfs/home/guenther/2020_02_14_HsINSCA-
Motiocorr_rerun_krios1_superres_K2/Relion/Class3D/job028/run_it018_class004.mrc

Opened run_it018_class004.mrc, grid size 100,100,100, pixel 2.52, shown at
level 0.0206, step 1, values float32  

> open /Volumes/beegfs/home/guenther/2020_02_14_HsINSCA-
Motiocorr_rerun_krios1_superres_K2/Relion/Class3D/job028/run_it018_class005.mrc

Opened run_it018_class005.mrc, grid size 100,100,100, pixel 2.52, shown at
level 0.0215, step 1, values float32  

> open /Volumes/beegfs/home/guenther/2020_02_14_HsINSCA-
Motiocorr_rerun_krios1_superres_K2/Relion/Class3D/job028/run_it018_class006.mrc

Opened run_it018_class006.mrc, grid size 100,100,100, pixel 2.52, shown at
level 0.0212, step 1, values float32  
Traceback (most recent call last):  
File
"/Applications/ChimeraX-0.9.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/triggerset.py", line 130, in invoke  
return self._func(self._name, data)  
File
"/Applications/ChimeraX-0.9.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/bug_reporter/mac_crash_report.py", line 89, in crash_check  
check_for_crash_on_mac(session)  
File
"/Applications/ChimeraX-0.9.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/bug_reporter/mac_crash_report.py", line 21, in
check_for_crash_on_mac  
report = recent_chimera_crash(last)  
File
"/Applications/ChimeraX-0.9.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/bug_reporter/mac_crash_report.py", line 42, in
recent_chimera_crash  
log = recent_crash(time, dir, 'ChimeraX')  
File
"/Applications/ChimeraX-0.9.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/bug_reporter/mac_crash_report.py", line 61, in recent_crash  
filenames = listdir(dir)  
PermissionError: [Errno 13] Permission denied:
'/Users/guenther/Library/Logs/DiagnosticReports'  
  
Error processing trigger "new frame": [Errno 13] Permission denied:
'/Users/guenther/Library/Logs/DiagnosticReports':  
PermissionError: [Errno 13] Permission denied:
'/Users/guenther/Library/Logs/DiagnosticReports'  
  
File
"/Applications/ChimeraX-0.9.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/bug_reporter/mac_crash_report.py", line 61, in recent_crash  
filenames = listdir(dir)  
  
See log for complete Python traceback.  
  




OpenGL version: 4.1 ATI-3.5.5
OpenGL renderer: AMD Radeon Pro 570X OpenGL Engine
OpenGL vendor: ATI Technologies Inc.

Change History (2)

comment:1 by pett, 6 years ago

Component: UnassignedCore
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionCrashReporter can't access ~/Library/Logs/DiagnosticReports
Version: 0.9

comment:2 by Tom Goddard, 6 years ago

Resolution: can't reproduce
Status: assignedclosed

This is on macOS Catalina where you have to allow access to Downloads, Documents, Desktop folders. But it is not supposed to apply to ~/Library. And surely this works for almost all macOS Catalina users -- ChimeraX checks for crash logs when the first graphics frame is drawn. So it is also weird that the user has managed to open 3 maps before the check was done. Maybe they were opened by drag and drop.

The ~/Library/Logs/DiagnosticReports directory is only accessible by the user, not group or others. Maybe ChimeraX was started with sudo?

Don't have any good explanation for this error. Could protect against it, but instead will wait until someone reports it again and hopefully explains the unique circumstances that cause it.

Note: See TracTickets for help on using tickets.