duckduckgo / Android

DuckDuckGo Android App
https://play.google.com/store/apps/details?id=com.duckduckgo.mobile.android
Apache License 2.0
3.85k stars 909 forks source link

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

Open 2011 opened 1 week ago

2011 commented 1 week ago

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
itsivag commented 10 hours ago

Based on the logs I think the issue is with the local database versioning, Try clearing the app's storage and relaunching it.