Page MenuHomePhabricator

2.7.50309-alpha-2020-01-15 crashes when Openning some pages
Closed, ResolvedPublicBUG REPORT

Description

Steps to reproduce

  1. Search for the Hebrew wiki page of דומיניק סטראוס-קאהן
  2. Click the search result of this wiki page
  3. Crash

Expected results

Don't crash

Actual results

Crash

Stack trace

01-15 22:25:58.997 29402 29402 E org.wikipedia.bridge.CommunicationBridge$1: handleMessage():118: No such message type registered: setup
01-15 22:25:59.045 29402 29402 D org.wikipedia.bridge.CommunicationBridge$CommunicatingChrome: onConsoleMessage():132: https://he.wikipedia.org/api/rest_v1/page/mobile-html/%D7%93%D7%95%D7%9E%D7%99%D7%A0%D7%99%D7%A7_%D7%A1%D7%98%D7%A8%D7%90%D7%95%D7%A1-%D7%A7%D7%90%D7%94%D7%9F:1 - Uncaught ReferenceError: pcs is not defined
01-15 22:25:59.046 29402 29402 I chatty  : uid=10166(org.wikipedia.alpha) identical 1 line
01-15 22:25:59.046 29402 29402 D org.wikipedia.bridge.CommunicationBridge$CommunicatingChrome: onConsoleMessage():132: https://he.wikipedia.org/api/rest_v1/page/mobile-html/%D7%93%D7%95%D7%9E%D7%99%D7%A0%D7%99%D7%A7_%D7%A1%D7%98%D7%A8%D7%90%D7%95%D7%A1-%D7%A7%D7%90%D7%94%D7%9F:1 - Uncaught ReferenceError: pcs is not defined
01-15 22:25:59.050 29402 29402 E org.wikipedia.bridge.CommunicationBridge$1: handleMessage():118: No such message type registered: final_setup
01-15 22:25:59.082 29402 29402 D org.wikipedia.bridge.CommunicationBridge$CommunicatingChrome: onConsoleMessage():132: https://he.wikipedia.org/api/rest_v1/page/mobile-html/%D7%93%D7%95%D7%9E%D7%99%D7%A0%D7%99%D7%A7_%D7%A1%D7%98%D7%A8%D7%90%D7%95%D7%A1-%D7%A7%D7%90%D7%94%D7%9F:1 - Uncaught ReferenceError: pcs is not defined
01-15 22:25:59.082 29402 29402 D org.wikipedia.bridge.CommunicationBridge$CommunicatingChrome: onConsoleMessage():132: https://he.wikipedia.org/api/rest_v1/page/mobile-html/%D7%93%D7%95%D7%9E%D7%99%D7%A0%D7%99%D7%A7_%D7%A1%D7%98%D7%A8%D7%90%D7%95%D7%A1-%D7%A7%D7%90%D7%94%D7%9F:1 - Uncaught ReferenceError: pcs is not defined
01-15 22:25:59.083 29402 29402 W System.err: java.lang.NumberFormatException: For input string: "null"
01-15 22:25:59.083 29402 29402 W System.err: 	at java.lang.Long.parseLong(Long.java:594)
01-15 22:25:59.083 29402 29402 W System.err: 	at java.lang.Long.parseLong(Long.java:636)
01-15 22:25:59.083 29402 29402 W System.err: 	at org.wikipedia.page.PageFragment.lambda$onPageLoadComplete$11$PageFragment(PageFragment.java:872)
01-15 22:25:59.083 29402 29402 W System.err: 	at org.wikipedia.page.-$$Lambda$PageFragment$j7xwoYK7-w6daRPMiWXFDW2QpOU.onReceiveValue(Unknown Source:4)
01-15 22:25:59.083 29402 29402 W System.err: 	at t2.a(PG:1)
01-15 22:25:59.083 29402 29402 W System.err: 	at org.chromium.android_webview.AwContents.a(PG:209)
01-15 22:25:59.083 29402 29402 W System.err: 	at jm.run(Unknown Source:4)
01-15 22:25:59.083 29402 29402 W System.err: 	at android.os.MessageQueue.nativePollOnce(Native Method)
01-15 22:25:59.083 29402 29402 W System.err: 	at android.os.MessageQueue.next(MessageQueue.java:336)
01-15 22:25:59.083 29402 29402 W System.err: 	at android.os.Looper.loop(Looper.java:174)
01-15 22:25:59.083 29402 29402 W System.err: 	at android.app.ActivityThread.main(ActivityThread.java:7356)
01-15 22:25:59.083 29402 29402 W System.err: 	at java.lang.reflect.Method.invoke(Native Method)
01-15 22:25:59.083 29402 29402 W System.err: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
01-15 22:25:59.083 29402 29402 W System.err: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
01-15 22:25:59.086 29402 29402 F chromium: [FATAL:jni_android.cc(249)] Please include Java exception stack in crash report
01-15 22:25:59.087 29402 29402 F libc    : Fatal signal 5 (SIGTRAP), code 1 (TRAP_BRKPT), fault addr 0x6facdd26c8 in tid 29402 (wikipedia.alpha), pid 29402 (wikipedia.alpha)

Environments observed

App version: 2.7.50309-alpha-2020-01-15
Android OS versions: 10
Device model: Pixel 2
Device language: Hebrew

Event Timeline

Dbrant claimed this task.

Should be fixed in latest alpha.

still happening on latest alpha 2.7.50309-alpha-2020-01-23:

01-23 21:07:52.466 11852 11852 D org.wikipedia.bridge.CommunicationBridge$CommunicatingChrome: onConsoleMessage():146: https://he.wikipedia.org/api/rest_v1/page/mobile-html/%D7%93%D7%95%D7%9E%D7%99%D7%A0%D7%99%D7%A7_%D7%A1%D7%98%D7%A8%D7%90%D7%95%D7%A1-%D7%A7%D7%90%D7%94%D7%9F:1 - Uncaught ReferenceError: pcs is not defined
01-23 21:07:52.466 11852 11852 W System.err: java.lang.NumberFormatException: For input string: "null"
01-23 21:07:52.467 11852 11852 W System.err: 	at java.lang.Long.parseLong(Long.java:594)
01-23 21:07:52.467 11852 11852 W System.err: 	at java.lang.Long.parseLong(Long.java:636)
01-23 21:07:52.467 11852 11852 W System.err: 	at org.wikipedia.page.PageFragment.lambda$onPageMetadataLoaded$5$PageFragment(PageFragment.java:485)
01-23 21:07:52.467 11852 11852 W System.err: 	at org.wikipedia.page.-$$Lambda$PageFragment$Dj65tKe3pnfpFJfW5KYYBObLuDQ.onReceiveValue(Unknown Source:4)
01-23 21:07:52.467 11852 11852 W System.err: 	at t2.a(PG:1)
01-23 21:07:52.467 11852 11852 W System.err: 	at org.chromium.android_webview.AwContents.a(PG:209)
01-23 21:07:52.467 11852 11852 W System.err: 	at jm.run(Unknown Source:4)
01-23 21:07:52.467 11852 11852 W System.err: 	at android.os.MessageQueue.nativePollOnce(Native Method)
01-23 21:07:52.467 11852 11852 W System.err: 	at android.os.MessageQueue.next(MessageQueue.java:336)
01-23 21:07:52.467 11852 11852 W System.err: 	at android.os.Looper.loop(Looper.java:174)
01-23 21:07:52.467 11852 11852 W System.err: 	at android.app.ActivityThread.main(ActivityThread.java:7356)
01-23 21:07:52.467 11852 11852 W System.err: 	at java.lang.reflect.Method.invoke(Native Method)
01-23 21:07:52.467 11852 11852 W System.err: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
01-23 21:07:52.467 11852 11852 W System.err: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

Ah, in that case this will be fixed when we purge the cache on the API that returns article content. We are using a new API that is not yet finalized, which is why only the Alpha app is using it, so you can expect some instability until we're finished.

@Matanya Please check again with the latest Alpha.

Should be fixed for real.