GithubHelp home page GithubHelp logo

App crash on RUM about dd-sdk-android HOT 7 CLOSED

datadog avatar datadog commented on August 26, 2024
App crash on RUM

from dd-sdk-android.

Comments (7)

xgouchet avatar xgouchet commented on August 26, 2024

Hello @MohammadRezaei92 and thanks for submitting this issue. We'll investigate this crash ASAP. Do you have any additional details on when the problem is happening ? Apparently it's because of one of the menus in your application, could you share with us the XML file or code snippet you use to populate those menus ?

from dd-sdk-android.

MohammadRezaei92 avatar MohammadRezaei92 commented on August 26, 2024

Hello @MohammadRezaei92 and thanks for submitting this issue. We'll investigate this crash ASAP. Do you have any additional details on when the problem is happening ? Apparently it's because of one of the menus in your application, could you share with us the XML file or code snippet you use to populate those menus ?

It happens when an overflow menu going to open

<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools">
    <item
        android:id="@+id/action_help"
        android:icon="@drawable/ic_baseline_help_24"
        android:orderInCategory="98"
        android:title="@string/help"
        app:showAsAction="ifRoom" />
    <item
        android:id="@+id/action_later"
        android:orderInCategory="99"
        android:title="@string/later"
        app:showAsAction="never" />
    <item
        android:id="@+id/action_logout"
        android:orderInCategory="100"
        android:title="@string/logout_from_account"
        app:showAsAction="never" />
</menu>

from dd-sdk-android.

xgouchet avatar xgouchet commented on August 26, 2024

Hello @MohammadRezaei92
I can't seem to reproduce the issue with the menu you sent. Do you have a more complete sample code we could use to understand the issue ?

from dd-sdk-android.

xgouchet avatar xgouchet commented on August 26, 2024

Hello @MohammadRezaei92 , without any more info we can't work on this issue. I'm closing it now but feel free to repoen it with more information.

from dd-sdk-android.

hs-kdhillon avatar hs-kdhillon commented on August 26, 2024

@xgouchet suggestion to reopen the issue in light of the following crashes on an overflow-menu in the project:

java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter p1
at com.datadog.android.rum.internal.instrumentation.gestures.WindowCallbackWrapper.onMenuOpened(Unknown Source:2)
at androidx.appcompat.view.WindowCallbackWrapper.onMenuOpened(WindowCallbackWrapper.java:104)
at androidx.appcompat.app.AppCompatDelegateImpl$AppCompatWindowCallback.onMenuOpened(AppCompatDelegateImpl.java:2868)
at com.uxcam.a.d.onMenuOpened(Unknown Source:2)
at androidx.appcompat.app.AppCompatDelegateImpl$ActionMenuPresenterCallback.onOpenSubMenu(AppCompatDelegateImpl.java:2528)
at androidx.appcompat.view.menu.BaseMenuPresenter.onSubMenuSelected(BaseMenuPresenter.java:221)
at androidx.appcompat.widget.ActionMenuPresenter.showOverflowMenu(ActionMenuPresenter.java:345)
at androidx.appcompat.widget.ActionMenuPresenter$OverflowMenuButton.performClick(ActionMenuPresenter.java:681)
at android.view.View.performClickInternal(View.java:7831)
at android.view.View.access$3600(View.java:879)
at android.view.View$PerformClick.run(View.java:29359)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8167)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)

Another Crash log:

java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter p1
        at com.datadog.android.rum.internal.instrumentation.gestures.WindowCallbackWrapper.onMenuOpened(Unknown Source:2)
        at androidx.appcompat.view.WindowCallbackWrapper.onMenuOpened(WindowCallbackWrapper.java:104)
        at androidx.appcompat.app.AppCompatDelegateImpl$AppCompatWindowCallback.onMenuOpened(AppCompatDelegateImpl.java:2868)
        at com.uxcam.a.d.onMenuOpened(Unknown Source:2)
        at androidx.appcompat.app.AppCompatDelegateImpl$ActionMenuPresenterCallback.onOpenSubMenu(AppCompatDelegateImpl.java:2528)
        at androidx.appcompat.view.menu.BaseMenuPresenter.onSubMenuSelected(BaseMenuPresenter.java:221)
        at androidx.appcompat.widget.ActionMenuPresenter.showOverflowMenu(ActionMenuPresenter.java:345)
        at androidx.appcompat.widget.ActionMenuPresenter$OverflowMenuButton.performClick(ActionMenuPresenter.java:681)
        at android.view.View.performClickInternal(View.java:7831)
        at android.view.View.access$3600(View.java:879)
        at android.view.View$PerformClick.run(View.java:29359)
        at android.os.Handler.handleCallback(Handler.java:883)
        at android.os.Handler.dispatchMessage(Handler.java:100)
        at android.os.Looper.loop(Looper.java:237)
        at android.app.ActivityThread.main(ActivityThread.java:8167)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)

from dd-sdk-android.

Meenu1401 avatar Meenu1401 commented on August 26, 2024

@xgouchet Facing ANR due to DataDog. Please resolve this.

SDK version: 1.10.0
Android OS version : 11
Device : realme narzo 50A

Screenshot 2022-04-04 at 12 13 05 PM

from dd-sdk-android.

xgouchet avatar xgouchet commented on August 26, 2024

Hi @Meenu1401 , the issue you're reporting is different from the one on this thread, can you post a new issue. We're going to look into this, but although our SDK do appear to be in this stack, we're calling a method that shouldn't be blocking. The root cause of the ANR seems to be deeper, in the Android Framework, as something might be blocking the vertical sync of the display, hence causing an ANR.

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.