duckduckgo / duckduckgo/Android

[Bug] DuckDuckGo won't start (crashes every time)

Open
#5,230 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs triage
Dominant language
Kotlin
Stars
4.8k
Forks
1.4k
Avg merge
2d 17h
Merged PRs (30d)
170

Description

Describe the bug

When I attempt to start DuckDuckGo, I see a black screen for a few seconds, and then the display goes back to the launcher.

How to Reproduce

Just press the DuckDuckGo icon and always get the behavior described above.

I do have logs, which I hope will indicate the problem:

<<< log_count = 18 >>>
[11-01 10:24:53.056 961:7009 I/ActivityTaskManager]
START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.duckduckgo.mobile.android/com.duckduckgo.app.launch.Launcher bnds=[159,316][293,550]} from uid 1000

[11-01 10:24:53.085 961:1290 I/ActivityManager]
Start proc 2121:com.duckduckgo.mobile.android/u0a288 for pre-top-activity {com.duckduckgo.mobile.android/com.duckduckgo.app.launch.Launcher}

[11-01 10:24:53.277 2121:2121 W/ROOM]
Overriding migration com.duckduckgo.app.anrs.store.CrashDatabase$Companion$MIGRATION_1_TO_2$1@23d415f with com.duckduckgo.app.anrs.store.CrashDatabase$Companion$MIGRATION_2_TO_3$1@c79f7ac

[11-01 10:24:53.288 2121:2121 I/TetheringManager]
registerTetheringEventCallback:com.duckduckgo.mobile.android

[11-01 10:24:53.544 2121:2121 W/ROOM]
Overriding migration com.duckduckgo.app.anrs.store.AnrsDatabase$Companion$MIGRATION_1_TO_2$1@191073a with com.duckduckgo.app.anrs.store.AnrsDatabase$Companion$MIGRATION_2_TO_3$1@bcfefeb

[11-01 10:24:53.892 961:7009 I/ActivityTaskManager]
START u0 {cmp=com.duckduckgo.mobile.android/com.duckduckgo.app.browser.BrowserActivity (has extras)} from uid 10288

[11-01 10:24:54.180 961:1290 I/ActivityManager]
Start proc 7587:com.google.android.webview:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:0/u0i6 for  {com.duckduckgo.mobile.android/org.chromium.content.app.SandboxedProcessService0:0}

[11-01 10:24:54.273 2121:7597 E/chromium]
[ERROR:directory_reader_posix.cc(42)] opendir /data/user/0/com.duckduckgo.mobile.android/cache/WebView/Crashpad/attachments/0253b452-cbaa-4783-aad9-a8a24e5f5dfe: No such file or directory (2)

[11-01 10:24:54.403 961:1274 I/ActivityTaskManager]
Displayed com.duckduckgo.mobile.android/com.duckduckgo.app.browser.BrowserActivity: +1s327ms

[11-01 10:24:55.028 961:2009 W/InputDispatcher]
channel '281989c com.duckduckgo.mobile.android/com.duckduckgo.app.browser.BrowserActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0xd

[11-01 10:24:55.028 961:2009 E/InputDispatcher]
channel '281989c com.duckduckgo.mobile.android/com.duckduckgo.app.browser.BrowserActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

[11-01 10:24:55.048 961:7009 I/ActivityManager]
Process com.duckduckgo.mobile.android (pid 2121) has died: fg  TOP 

[11-01 10:24:55.048 961:5734 I/WindowManager]
WIN DEATH: Window{5bb1e74 u0 com.duckduckgo.mobile.android/com.duckduckgo.app.launch.Launcher}

[11-01 10:24:55.048 961:5734 W/InputDispatcher]
Attempted to unregister already unregistered input channel '5bb1e74 com.duckduckgo.mobile.android/com.duckduckgo.app.launch.Launcher (server)'

[11-01 10:24:55.055 961:2516 I/WindowManager]
WIN DEATH: Window{281989c u0 com.duckduckgo.mobile.android/com.duckduckgo.app.browser.BrowserActivity}

[11-01 10:24:55.055 961:2516 W/InputDispatcher]
Attempted to unregister already unregistered input channel '281989c com.duckduckgo.mobile.android/com.duckduckgo.app.browser.BrowserActivity (server)'

[11-01 10:24:55.069 961:7009 W/ActivityManager]
Scheduling restart of crashed service com.duckduckgo.mobile.android/androidx.work.impl.background.systemjob.SystemJobService in 1000ms for connection

[11-01 10:24:55.071 961:7009 W/ActivityTaskManager]
Force removing ActivityRecord{fe7c80c u0 com.duckduckgo.mobile.android/com.duckduckgo.app.browser.BrowserActivity t2472}: app died, no saved state
Expected behavior

I expect DuckDuckGo to start.

Environment
- DDG App Version: 5.217.9
- Device: Xiaomi phone (A3)
- OS: Android 11

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the crash on the listed Xiaomi A3 running Android 11 with DDG App Version 5.217.9, then inspect the startup flow through Launcher and BrowserActivity using the supplied logs. Done means DuckDuckGo reaches a usable start screen without the app process dying.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.