Skip to content

Crashes on Motorola devices for Sentry.traceHeaders() IllegalArgumentException:String representation of SentryId has either 32 (UUID no dashes) or 36 characters long (completed UUID). Received: 00000000 #2325

Description

@kibotu

Gradle Version

7.5.1

AGP Version

7.3.0

Code Minifier/Optimizer

R8

Version

3.2.0

Sentry SDK Version

6.5.0

Steps to Reproduce

app crashes on Motorola devices with

String representation of SentryId has either 32 (UUID no dashes) or 36 characters long (completed UUID). Received: 00000000

looks like Sentry.traceHeaders() will not have valid uuids on Motorola devices.

   TransactionContext.fromSentryTrace(
                "HTTP ${request.method} ${request.url.host}${request.url.encodedPath}",
                "request",
                Sentry.traceHeaders() ?: SentryTraceHeader(SentryId.EMPTY_ID, SpanId.EMPTY_ID, true)
            ),
            false
        )

Expected Result

well ... not to crash (voting for github template for crash reporting)

Actual Result

crashes

affected devices

Screenshot 2022-11-02 at 12 02 19

Metadata

Metadata

Assignees

Labels

BugIssue type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions