Skip to content

This is a typical stack overflow error that occurs in the accessibility service of DroidRun Portal. #87

Description

@prince121212

This is a typical stack overflow error that occurs in the accessibility service of DroidRun Portal. It can be seen from the error stack that the findAllVisibleElements method has fallen into an infinite recursive call, resulting in the exhaustion of stack space.

Problem Analysis

Causes of the error:

  1. Infinite recursion: The findAllVisibleElements method continuously calls itself at line 355.
  2. Circular reference of UI elements: Some UI elements may have circular references in parent-child relationships.
  3. The ElementNode.createId method also has a recursion problem when processing Rect.toShortString.

Impact:

  • Inability to obtain UI status: The Portal service crashes and cannot normally obtain UI element information.
  • Slow device response: The crash of the accessibility service may affect device performance.
  • Invalid DroidRun functions: All functions that depend on the UI status will fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bounty-officialThere is a bounty prize on this issue. If you solve it you can claim a cash prize.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions