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

Change: Don't strip symbols from bundles #10071

Merged
merged 1 commit into from Oct 7, 2022

Conversation

Bouke
Copy link
Contributor

@Bouke Bouke commented Oct 5, 2022

Motivation / Problem

Improve the readability of stacktraces by not stripping symbols from bundles.

Description

A recent conversation on #openttd regarding crash #10069 let to the discovery that unknowingly symbols got stripped from the published binaries. This results in difficult to read crash logs (stack traces). The overall consensus was that having better stacktraces is worth the little increase in binary size.

Limitations

The macOS bundle size of x64 increased from 24,2 MB to 25,8 MB. CI should be able to give us the changes for the builds we actually publish.

Checklist for review

Some things are not automated, and forgotten often. This list is a reminder for the reviewers.

  • The bug fix is important enough to be backported? (label: 'backport requested')
    * This PR touches english.txt or translations? Check the guidelines
  • This PR affects the save game format? (label 'savegame upgrade')
  • This PR affects the GS/AI API? (label 'needs review: Script API')
    • ai_changelog.hpp, gs_changelog.hpp need updating.
    • The compatibility wrappers (compat_*.nut) need updating.
  • This PR affects the NewGRF API? (label 'needs review: NewGRF')

@glx22 glx22 merged commit d0dcb65 into OpenTTD:master Oct 7, 2022
@Bouke
Copy link
Contributor Author

Bouke commented Oct 8, 2022

As expected the download size for macOS has increased a little (1.55MB, 12%), whereas the bundle size increased somewhat more than expected (8.67MB, 24%). I think this is still acceptable from a cost/benefit perspective.

The biggest outlier here is the linux build, which increased significantly both in download size (38.09MB / 270%) and on-disk size (196.35MB / 365%). Is this still acceptable, or should we still strip the binaries for linux bundles?

File 20221005 20221007 Increase %
docs-ai.tar.xz 0.32MB 0.32MB 0MB 0%
docs-gs.tar.xz 0.42MB 0.42MB 0MB 0%
docs.tar.xz 12.74MB 12.74MB -0MB -0%
linux-generic-amd64.tar.xz 14.12MB 52.21MB 38.09MB 270%
macos-universal.dmg 11.82MB 13.29MB 1.47MB 12%
macos-universal.zip 12.75MB 14.3MB 1.55MB 12%
source.tar.xz 7.21MB 7.21MB -0MB -0%
source.zip 11.88MB 11.88MB -0MB -0%
windows-arm64.pdb.xz 15.57MB 15.56MB -0.01MB -0%
windows-arm64.zip 8.56MB 8.56MB 0MB 0%
windows-win32.pdb.xz 15.63MB 15.62MB -0.01MB -0%
windows-win32.zip 8.27MB 8.27MB -0MB -0%
windows-win64.pdb.xz 16.23MB 16.24MB 0.01MB 0%
windows-win64.zip 8.96MB 8.96MB -0MB -0%
OpenTTD.app (unzipped) 35.74MB 44.41MB 8.67MB 24%
windows-win64 (unzipped) 25.92MB 25.92MB 0MB 0%
linux-generic-amd64 (unzipped) 53.86MB 250.21MB 196.35MB 365%

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 this pull request may close these issues.

None yet

2 participants