Skip to content

[BottomNavigation][Android] - ANR issue with some dependencies in "ui-material-bottom-navigation" #481

Open
@PsHye

Description

@PsHye

Hi all,

I'm encountering a critical issue with the @nativescript-community/ui-material-bottom-navigation package in a production Android application. I’m observing frequent and repeated Application Not Responding (ANR) events traced back to native view layout processing.

ANR Trace as Appears in GoogleConsole:

[split_config.arm64_v8a.apk] v8::internal::FunctionCallbackArguments::Call

Some notable native stack trace highlights:

at android.view.ViewRootImpl.performLayout (ViewRootImpl.java:4005)
at androidx.viewpager2.widget.ViewPager2.onLayout (ViewPager2.java:527)

While the ANR is initially triggered in the layout pass (ViewRootImpl.performLayout), it appears the root cause is linked to ViewPager2, which is likely used internally by one of the dependencies of the bottom navigation component—not the bottom navigation library directly.

The only part that ViewPager2 is being used is in some of this dependencies

"dependencies": {
     "@nativescript-community/ui-material-core": "^7.2.71",
     "@nativescript-community/ui-material-core-tabs": "^7.2.71"
 }

Additional Notes:

  • The issue seems to happen on Android 12 (API 31) and above.
  • The package appears to be maintained by @farfromrefug , but I haven't found any open issues addressing this specific behavior.

I’d appreciate any insights from maintainers or others who might have encountered similar behavior—particularly regarding ViewPager2 interactions within NativeScript contexts.

I can provide more info or logs if you need

Thanks in advance for any assistance or guidance. 👐

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions