Skip to content

SentryModifier.sentryTag reports zero bounds with Telephoto ZoomableImage on Sentry Android 8.47.0 #5786

Description

@devPalacio

Integration

sentry-compose

Build System

Gradle

AGP Version

9.2.1

Proguard

Disabled

Other Error Monitoring Solution

No

Version

8.47

Steps to Reproduce

Clone and open the attached minimal repro project.

Run:
./gradlew :app:testDebugUnitTest

The repro uses:
Sentry Android 8.47.0
Compose UI 1.11.3
Telephoto 0.19.0
Coil 2.7.0
Media3 1.10.1

The composition contains:
a Telephoto ZoomableImage
a sibling Android PlayerView wrapped with SentryModifier.sentryTag
assertIsDisplayed() on that tag.

sentry-compose-bounds-repro.zip

Expected Result

The tagged PlayerView is present with non-zero Compose semantics bounds, and assertIsDisplayed() passes.

Actual Result

The tag is present in the Compose semantics tree, but Compose reports zero-sized bounds for it. Therefore assertIsDisplayed() fails:
Assert failed: The component with TestTag = 'taggedPlayerView' is not displayed!

The same repro passes with Sentry 8.46.0.

A local build of Sentry 8.47.0 with only this change passes the same test:
fun isImportantForBounds(): Boolean = true

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions