-
-
Notifications
You must be signed in to change notification settings - Fork 356
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
Comments
Truncate to only the newest or only the oldest? What magnitude of numbers are we talking? |
I would say truncate to the newest, and maybe show a toast to clarify.
I got a crash report where the log couldn't be shared because the size was 3.6 MB. |
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. |
Just adding @neonowy to the conversation |
I've tried to share a log with some 9k lines/entries from the StreetComplete, and it crashed:
|
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.
The text was updated successfully, but these errors were encountered: