Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2011 opened this issue Nov 1, 2024 · 3 comments
Open

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

2011 opened this issue Nov 1, 2024 · 3 comments

Comments

@2011
Copy link

2011 commented Nov 1, 2024

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
Copy link

itsivag commented Nov 14, 2024

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

@2011
Copy link
Author

2011 commented Dec 18, 2024

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

I tried that. I saw the initial setup, but after I completed it, the app died. When I attempt to start it now, I do see a blankpage for a fraction of a second before the app dies (it died immediately before). I do have new logs:

[12-18 18:35:13.351 909:6828 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

[12-18 18:35:13.404 909:1259 I/ActivityManager]
Start proc 7725:com.duckduckgo.mobile.android/u0a288 for pre-top-activity {com.duckduckgo.mobile.android/com.duckduckgo.app.launch.Launcher}

[12-18 18:35:13.586 7725:7725 W/ROOM]
Overriding migration com.duckduckgo.app.anrs.store.CrashDatabase$Companion$MIGRATION_1_TO_2$1@21c3665 with com.duckduckgo.app.anrs.store.CrashDatabase$Companion$MIGRATION_2_TO_3$1@5b41f3a

[12-18 18:35:13.597 7725:7725 I/TetheringManager]
registerTetheringEventCallback:com.duckduckgo.mobile.android

[12-18 18:35:13.764 909:2705 D/ConnectivityService]
requestNetwork for uid/pid:10288/7725 NetworkRequest [ TRACK_DEFAULT id=44, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10288 AdministratorUids: [] RequestorUid: 10288 RequestorPackageName: com.duckduckgo.mobile.android] ]

[12-18 18:35:13.765 909:2101 D/Ethernet]
got request NetworkRequest [ TRACK_DEFAULT id=44, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10288 AdministratorUids: [] RequestorUid: 10288 RequestorPackageName: com.duckduckgo.mobile.android] ] with score 20 and providerId 5

[12-18 18:35:13.765 909:2027 D/UntrustedWifiNetworkFactory]
got request NetworkRequest [ TRACK_DEFAULT id=44, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10288 AdministratorUids: [] RequestorUid: 10288 RequestorPackageName: com.duckduckgo.mobile.android] ] with score 20 and providerId 5

[12-18 18:35:13.766 909:2027 D/WifiNetworkFactory]
got request NetworkRequest [ TRACK_DEFAULT id=44, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10288 AdministratorUids: [] RequestorUid: 10288 RequestorPackageName: com.duckduckgo.mobile.android] ] with score 20 and providerId 5

[12-18 18:35:13.766 2472:2472 D/PhoneSwitcherNetworkRequstListener]
got request NetworkRequest [ TRACK_DEFAULT id=44, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10288 AdministratorUids: [] RequestorUid: 10288 RequestorPackageName: com.duckduckgo.mobile.android] ] with score 20 and providerId 5

[12-18 18:35:14.050 7725:7725 W/ROOM]
Overriding migration com.duckduckgo.app.anrs.store.AnrsDatabase$Companion$MIGRATION_1_TO_2$1@4a1847c with com.duckduckgo.app.anrs.store.AnrsDatabase$Companion$MIGRATION_2_TO_3$1@30b6105

[12-18 18:35:14.370 909:6828 I/ActivityTaskManager]
START u0 {cmp=com.duckduckgo.mobile.android/com.duckduckgo.app.browser.BrowserActivity (has extras)} from uid 10288

[12-18 18:35:14.675 909:1259 I/ActivityManager]
Start proc 12247:com.google.android.webview:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:0/u0i7 for  {com.duckduckgo.mobile.android/org.chromium.content.app.SandboxedProcessService0:0}

[12-18 18:35:14.802 7725:12250 E/chromium]
[ERROR:directory_reader_posix.cc(42)] opendir /data/user/0/com.duckduckgo.mobile.android/cache/WebView/Crashpad/attachments/69d4cf28-58da-4cec-bb5d-09dccfd89049: No such file or directory (2)

[12-18 18:35:14.898 909:1257 I/ActivityTaskManager]
Displayed com.duckduckgo.mobile.android/com.duckduckgo.app.browser.BrowserActivity: +1s526ms

[12-18 18:35:14.926 7725:12134 I/WM-WorkerWrapper]
Worker result SUCCESS for Work [ id=1e15a7ba-d9fc-4dee-9c09-86fe7cef029c, tags={ com.duckduckgo.adclick.impl.DataRemovalAdClickWorker, DATA_REMOVAL_AD_CLICK_WORKER_TAG } ]

[12-18 18:35:15.641 7725:7725 W/FinalizerDaemon]
type=1400 audit(0.0:139642): avc: denied { getopt } for path="/dev/socket/usap_pool_primary" scontext=u:r:untrusted_app:s0:c32,c257,c512,c768 tcontext=u:r:zygote:s0 tclass=unix_stream_socket permissive=0 app=com.duckduckgo.mobile.android

[12-18 18:35:16.161 909:2003 W/InputDispatcher]
channel '37ca039 com.duckduckgo.mobile.android/com.duckduckgo.app.browser.BrowserActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9

[12-18 18:35:16.161 909:2003 E/InputDispatcher]
channel '37ca039 com.duckduckgo.mobile.android/com.duckduckgo.app.browser.BrowserActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

[12-18 18:35:16.170 909:6828 D/ConnectivityService]
ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ TRACK_DEFAULT id=44, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10288 AdministratorUids: [] RequestorUid: 10288 RequestorPackageName: com.duckduckgo.mobile.android] ], android.os.BinderProxy@b65185c)

[12-18 18:35:16.170 909:11324 I/WindowManager]
WIN DEATH: Window{5fda12b u0 com.duckduckgo.mobile.android/com.duckduckgo.app.launch.Launcher}

[12-18 18:35:16.170 909:11324 W/InputDispatcher]
Attempted to unregister already unregistered input channel '5fda12b com.duckduckgo.mobile.android/com.duckduckgo.app.launch.Launcher (server)'

[12-18 18:35:16.171 909:2066 D/ConnectivityService]
releasing NetworkRequest [ TRACK_DEFAULT id=44, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10288 AdministratorUids: [] RequestorUid: 10288 RequestorPackageName: com.duckduckgo.mobile.android] ] (release request)

[12-18 18:35:16.171 909:2705 I/ActivityManager]
Process com.duckduckgo.mobile.android (pid 7725) has died: fg  TOP 

[12-18 18:35:16.178 909:3121 I/WindowManager]
WIN DEATH: Window{37ca039 u0 com.duckduckgo.mobile.android/com.duckduckgo.app.browser.BrowserActivity}

[12-18 18:35:16.178 909:3121 W/InputDispatcher]
Attempted to unregister already unregistered input channel '37ca039 com.duckduckgo.mobile.android/com.duckduckgo.app.browser.BrowserActivity (server)'

[12-18 18:35:16.189 909:2705 W/ActivityTaskManager]
Force removing ActivityRecord{9530aa3 u0 com.duckduckgo.mobile.android/com.duckduckgo.app.browser.BrowserActivity t2698}: app died, no saved state

@anikiki
Copy link
Contributor

anikiki commented Dec 24, 2024

@2011 Can you check the version of the system webview on your device and let us know? It should be the same as Chrome's version.
Open Chrome browser, go to "Settings", scroll down and select "About Chrome". You should see there the "Application version".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants