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

Shared log can be too large #5561

Open
Helium314 opened this issue Mar 30, 2024 · 4 comments
Open

Shared log can be too large #5561

Helium314 opened this issue Mar 30, 2024 · 4 comments
Labels

Comments

@Helium314
Copy link
Collaborator

How to Reproduce
Manage to accumulate a large amount of log messages (e.g. by being very active), then go to logger, select an early start date and click share.
This may result in android.os.TransactionTooLargeException.

Expected Behavior
Working log share. Maybe truncate the log if necessary, or write to a file instead.

Versions affected
Probably all since addition of the logger.

@Helium314 Helium314 added the bug label Mar 30, 2024
@westnordost
Copy link
Member

Truncate to only the newest or only the oldest? What magnitude of numbers are we talking?

@westnordost westnordost added the feedback required more info is needed, issue will be likely closed if it is not provided label Mar 30, 2024
@Helium314
Copy link
Collaborator Author

I would say truncate to the newest, and maybe show a toast to clarify.
Or check the size beforehand, and ask the user to use filters to reduce the size.

What magnitude of numbers are we talking?

I got a crash report where the log couldn't be shared because the size was 3.6 MB.

@westnordost
Copy link
Member

According to a quick research, if the data passed in an Intent is below 500 kB it should be safe.

Assuming an average log size of 100 bytes, we have around 50,000 lines.

According to the documentation, it is also possible to not send the text directly but put it in some file and have the link to it in there. This would remove that restriction.
Something with EXTRA_STREAM...

@westnordost
Copy link
Member

Just adding @neonowy to the conversation

@westnordost westnordost removed the feedback required more info is needed, issue will be likely closed if it is not provided label Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants