Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS crash and diagnotics reports extension change #5

Open
OCopping opened this issue Aug 5, 2024 · 2 comments · May be fixed by #6
Open

MacOS crash and diagnotics reports extension change #5

OCopping opened this issue Aug 5, 2024 · 2 comments · May be fixed by #6

Comments

@OCopping
Copy link

OCopping commented Aug 5, 2024

In MacOS, as of MacOS 12 the file extension for crash reports has been changed from .crash to .ips.
See: https://support.apple.com/en-gb/guide/console/cnsl664be99a/1.1/mac/12.0

As well as this, at some point from as late as MacOS 10.15, diagnostics reports have had their extensions changed to .diag/.dpsub.
See: https://support.apple.com/en-gb/guide/console/cnsl664be99a/1.1/mac/10.15

@mdavidsaver
Copy link
Owner

Do the extension changes reflect file format changes? Are .ips files plain text?

for path in ('~/Library/Logs/DiagnosticReports/*.crash', '~/Library/Logs/CrashReporter/*.crash'):
for report in glob(os.path.expanduser(path)):
self.error(report)
self.catfile(report)

@OCopping
Copy link
Author

OCopping commented Aug 6, 2024

According to this Stack Overflow post, the .ips files are now in JSON format.
However, as mentioned in an answer (if it is preferred to have them in the traditional format) there are tools such as this one which can convert them to the traditional crash report format.

EDIT: There is also a python package that does this https://pypi.org/project/pycrashreport/

@OCopping OCopping linked a pull request Aug 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants