Code Monkey home page Code Monkey logo

Comments (9)

0xnm avatar 0xnm commented on July 17, 2024 1

Hello @ihermandev! Thanks for sharing stacktrace (I edited it and removed non-relevant threads).

It seems that it is a bug in the androidx.metrics:metrics-performance library we are using under the hood. Can you please check its version resolved for your application? You can run dependencies task for the module where you add our SDK to see the list of the dependencies.

from dd-sdk-android.

0xnm avatar 0xnm commented on July 17, 2024

Hello @ihermandev! Thanks for opening the issue. Can you please post the full stacktrace of the error happening?

from dd-sdk-android.

ihermandev avatar ihermandev commented on July 17, 2024

Sure, the full stacktrace is

Fatal Exception: java.lang.ClassCastException: androidx.metrics.performance.DelegatingFrameMetricsListener cannot be cast to androidx.metrics.performance.PerformanceMetricsState$Holder
       at androidx.metrics.performance.PerformanceMetricsState$Companion.getHolderForHierarchy(PerformanceMetricsState.kt:367)
       at androidx.metrics.performance.DelegatingFrameMetricsListener.onFrameMetricsAvailable(JankStatsApi24Impl.kt:225)
       at android.view.FrameMetricsObserver.onFrameMetricsAvailable(FrameMetricsObserver.java:59)
       at android.graphics.HardwareRendererObserver.lambda$notifyDataAvailable$0$android-graphics-HardwareRendererObserver(HardwareRendererObserver.java:94)
       at android.graphics.HardwareRendererObserver$$ExternalSyntheticLambda0.run(:2)
       at android.os.Handler.handleCallback(Handler.java:942)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loopOnce(Looper.java:226)
       at android.os.Looper.loop(Looper.java:313)
       at android.os.HandlerThread.run(HandlerThread.java:67)

from dd-sdk-android.

ihermandev avatar ihermandev commented on July 17, 2024

The version is 1.0.0-alpha04

from dd-sdk-android.

0xnm avatar 0xnm commented on July 17, 2024

I've opened a bug in the Google Issue Tracker, you can star it to see the updates.

from dd-sdk-android.

ihermandev avatar ihermandev commented on July 17, 2024

Great! Thank you for the assistance.

from dd-sdk-android.

ihermandev avatar ihermandev commented on July 17, 2024

Great! Thank you for the assistance.

from dd-sdk-android.

Aetherna avatar Aetherna commented on July 17, 2024

Guys I just saw this happen. Triggered by opening the app from a deeplink, if that changes anything.
.main.MainActivity cannot be cast to androidx.metrics.performance.PerformanceMetricsState$Holder

from dd-sdk-android.

0xnm avatar 0xnm commented on July 17, 2024

@Aetherna this is an issue in androidx.metrics:metrics-performance library and was reported here. Once fix is out we will update the library used.

from dd-sdk-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.