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

contexts.app.free_memory is not pretty printed - should be displayed as bytes instead of integer #87238

Closed
ndmanvar opened this issue Mar 17, 2025 · 5 comments · Fixed by #87329
Assignees

Comments

@ndmanvar
Copy link
Contributor

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  1. Go to an error produced by Sentry's electron SDK
  2. Look at free_memory in contexts.app

Example: https://sentry-sdks.sentry.io/issues/6320479760/|

Image

Expected Result

It should show free_memory in bytes, as it does in contexts.device.app_memory, context.app. app_memory, and context.app.free_memory

Actual Result

Shows free_memory as integer, rather than in bytes
https://sentry-sdks.sentry.io/issues/6320479760/
Image

Product Area

Issues

Link

https://sentry-sdks.sentry.io/issues/6320479760/?project=5650507

DSN

No response

Version

No response

@ndmanvar
Copy link
Contributor Author

Looks like similar behaviour was previously seen (and patched) in #69233

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Mar 17, 2025
@getsantry
Copy link
Contributor

getsantry bot commented Mar 17, 2025

Auto-routing to @getsentry/product-owners-issues for triage ⏲️

@ndmanvar ndmanvar changed the title free_memory is not pretty printed - should be displayed as bytes instead of integer contexts.app.free_memory is not pretty printed - should be displayed as bytes instead of integer Mar 17, 2025
@leeandher leeandher self-assigned this Mar 18, 2025
@leeandher
Copy link
Member

I'll fix this up, thanks for reporting!

JoshFerge pushed a commit that referenced this issue Mar 18, 2025
Adds a few context to `app` from
#87238.
While working on it I noticed a few missing from `device` as well, so
updated those.

Resolves #87238

<img width="537" alt="image"
src="https://github.com/user-attachments/assets/c2bc72d4-4505-4cf5-81e5-0be3c74c0178"
/>
<img width="551" alt="image"
src="https://github.com/user-attachments/assets/756e2f86-5429-4ac7-a429-e3940af78d57"
/>
@mrduncan
Copy link
Member

Fixed in #87329

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants