Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-27399

Android: Work around android log truncation limit for Ti.API logging

    Details

    • Type: Improvement
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: Release 8.2.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
      None

      Description

      Our test suite suddenly had a mysterious error. The root cause is that a stringified test failure result was longer than an inherent Android log limit. Internal android_log_write caps the messages at 4076 bytes. We do nothing to guard against this or deal with it, so if users call Ti.API.info() with a very long message it will get truncated.

      Android itself has a hack in place on the Java side to split messages naturally by any newlines inside of them and log each chunk.

      We could do the same via a JS shim in our common JS code internal to the SDK for Android. (Since the implementation of APIModule is in C++ and would be more difficult to hack this in).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                cwilliams Christopher Williams
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Source Code