这是indexloc提供的服务,不要输入任何密码
Skip to content

Crash in datatransport com.google.android.datatransport.runtime.logging.Logging  #3716

@gevorg-kopalyan

Description

@gevorg-kopalyan

[READ] Step 1: Are you in the right place?

yes

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: Android Studio Bumblebee | 2021.1.1 Patch 3
  • Firebase Component: Analytics, Auth, Performance, Dynamic links, Crashlytics, Remote Config, Messaging
  • Component version: Bom 30.0.0

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

Getting crashes in google play console but not in Firebase Crashlytics

java.lang.IllegalArgumentException: Log tag "TransportRuntime.Executor" exceeds limit of 23 characters

  at android.util.Log.isLoggable (Native Method)
  at com.google.android.datatransport.runtime.logging.Logging.e (Logging.java:63)
  at com.google.android.datatransport.runtime.SafeLoggingExecutor$SafeLoggingRunnable.run (SafeLoggingExecutor.java:49)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1133)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:607)
  at java.lang.Thread.run (Thread.java:776)

In com.google.android.datatransport:transport-runtime Library which firebase datatrasport library is using has a new Log.isLoggable() check which doesn't check for a tag limit of 23 characters and can produce crash.
Here is the pull request that added new Log.isLoggable check

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions