Skip to content

Frequent android.os.DeadObjectException / java.lang.NullPointerException on low RAM Android Devices. #2614

@khantzawhein

Description

@khantzawhein

Application

Outline Client

Describe the bug

On Android OS, there is a frequent issue when connecting to a server on a low RAM device.

The process seems to have been partially killed by the OS, and the user cannot connect to any server without closing the app through the recent list or force-stopping.

This issue has already existed for a long time, but it seems more frequent since the 1.16.1 version.

Please use a ssconf:// key when you try to reproduce. It's hard to reproduce but it's worth looking for that bug.

Steps to reproduce

  1. Get a low RAM Android device (~2GB RAM)
  2. Install Outline and other apps like Facebook, Google Chrome, etc.
  3. Open Outline, then close it without connecting.
  4. Open any other apps, so the system kills the Outline.
  5. Go to Outline, try to connect, and get the " Failed to Connect error instantly.

What did you expect to happen?

No response

What actually happened?

Error Type 1:

ProxyConnectionFailure: Failed to connect to server MyServer#1. Cause: ERR_INTERNAL_ERROR: android.os.DeadObjectException

Error Type 2:

ProxyConnectionFailure: Failed to connect to server Server#1.
Cause: ERR_INTERNAL_ERROR: java.lang.NullPointerException: Attempt to invoke interface method 'org.outline.DetailedJsonError org.outline.IVpnTunnelService.startTunnel(org.outline.TunnelConfig)' on a null object reference

Outline Version

1.16.1

What operation system are you using?

Android (Xiaomi, Samsung, Vivo, Oppo)

Operating System Version

Varies

Screenshots and Videos

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions