Page MenuHomePhabricator

[BUG] Navigating to the articles with certain page problems crashes the app
Closed, ResolvedPublicBUG REPORT

Description

Two reports in OTRS on two different articles.

Steps to Reproduce:

A. Open the Russian version of the Volkswagon Passat article (OTRS ticket 10822216)
B. Open the Chinese article for Recursion 递归 (OTRS ticket 10822216)

Actual Results:

On both pages, the app completely crashes

walleyePPR2.180905.005rho09242018185342.gif (960×540 px, 3 MB)

Expected Results:

The article is opened in the app.

Occurring in:
Wikipedia v2.7.239-alpha-2018-09-24

Event Timeline

RHo renamed this task from [BUG] Navigating to the Russian version of the article Volkswagon Passat crashes the app to [BUG] Navigating to the articles with certain page problems crashes the app.Sep 24 2018, 5:02 PM
RHo updated the task description. (Show Details)

Stack trace when open the article Recursion in Simplified Chinese :

2018-09-24 11:50:32.210 32713-32713/org.wikipedia.dev E/AndroidRuntime: FATAL EXCEPTION: main
    Process: org.wikipedia.dev, PID: 32713
2018-09-24 11:50:32.210 32713-32713/org.wikipedia.dev E/AndroidRuntime: java.lang.RuntimeException: org.json.JSONException: Unterminated string at character 4194 of {"type":"pageLoadComplete","payload":{"sequence":1,"issues":["<span class=\"mbox-text-span\">本條目<b>需要擴充。</b><small><i>(2013年2月14日)</i></small><span class=\"hide-when-compact\"> <br><small>請協助<a class=\"external text\" href=\"//zh.wikipedia.org/w/index.php?title=%E9%80%92%E5%BD%92&amp;action=edit\">改善這篇條目</a>,更進一步的訊息可能會在<a href=\"/wiki/Talk:%E9%80%92%E5%BD%92\" title=\"Talk:遞歸\">討論頁</a>或<a href=\"/wiki/Wikipedia:%E6%89%A9%E5%85%85%E8%AF%B7%E6%B1%82\" title=\"Wikipedia:擴充請求\">擴充請求</a>中找到。請在擴充條目後將此模板移除。</small></span><span class=\"hide-when-compact\"> </span></span>","<span class=\"mbox-text-span\">本條目<b>需要<a href=\"/wiki/Wikipedia:%E5%A6%82%E4%BD%95%E5%AF%A9%E6%A0%B8%E6%A0%A1%E5%B0%8D\" class=\"mw-redirect\" title=\"Wikipedia:如何審核校對\">編修</a>,以確保文法、<a href=\"/wiki/Wikipedia:%E9%81%BF%E5%85%8D%E4%BD%BF%E7%94%A8%E7%9A%84%E5%AD%97%E8%A9%9E\" class=\"mw-redirect\" title=\"Wikipedia:避免使用的字詞\">用詞、語氣</a>、<a href=\"/wiki/Wikipedia:%E6%A0%BC%E5%BC%8F%E6%89%8B%E5%86%8C\" title=\"Wikipedia:格式手冊\">格式</a>、<a href=\"/wiki/Wikipedia:%E6%A0%BC%E5%BC%8F%E6%89%8B%E5%86%8C/%E6%A0%87%E7%82%B9%E7%AC%A6%E5%8F%B7\" title=\"Wikipedia:格式手冊/標點符號\">標點</a>等使用恰當。</b><small><i>(2011年12月22日)</i></small><span class=\"hide-when-compact\"> <br><small>請按照<a href=\"/wiki/Wikipedia:%E5%A6%82%E4%BD%95%E5%AF%A9%E6%A0%B8%E6%A0%A1%E5%B0%8D\" class=\"mw-redirect\" title=\"Wikipedia:如何審核校對\">校對指引</a>,幫助<a class=\"external text\" href=\"//zh.wikipedia.org/w/index.php?title=%E9%80%92%E5%BD%92&amp;action=edit\">編輯</a>這個條目。(<a href=\"/wiki/Help:%E7%BC%96%E8%BE%91\" class=\"mw-redirect\" title=\"Help:編輯\">幫助</a>、<a href=\"/wiki/Talk:%E9%80%92%E5%BD%92\" title=\"Talk:遞歸\">討論</a>)</small></span><span class=\"hide-when-compact\"> </span></span>","<span class=\"mbox-text-span\"><div class=\"mw-collapsible\" style=\"width:95%; margin: 0.2em 0;\"><b>本條目存在以下問題</b>,請協助<b><a class=\"external text\" href=\"//zh.wikipedia.org/w/index.php?title=%E9%80%92%E5%BD%92&amp;action=edit\">改善本條目</a></b>或在<b><a href=\"/wiki/Talk:%E9%80%92%E5%BD%92\" title=\"Talk:遞歸\">討論頁</a></b>針對議題發表看法。\n<div class=\"mw-collapsible-content\" style=\"margin-top: 0.3em;\">\n<table class=\"metadata plainlinks ambox ambox-notice\" style=\"\"><tbody><tr><td class=\"mbox-text\" style=\"\"><span class=\"mbox-text-span\">本條目<b>可參照<a href=\"https://en.wikipedia.org/wiki/Recursion\" class=\"extiw\" title=\"en:Recursion\">英語維基百科</a>相應條目來擴充</b>。<span class=\"hide-when-compact\"> <br><small>若您熟悉來源語言和主題,請協助<a href=\"/wiki/Wikipedia:%E7%BF%BB%E8%AF%91%E5%AE%88%E5%88%99\" class=\"mw-redirect\" title=\"Wikipedia:翻譯守則\">參考外語維基擴充條目</a>。請勿直接提交機械翻譯,也不要翻譯不可靠、低品質內容。依<a href=\"/wiki/Wikipedia:%E5%9C%A8%E7%BB%B4%E5%9F%BA%E7%99%BE%E7%A7%91%E5%86%85%E5%A4%8D%E5%88%B6%E5%86%85%E5%AE%B9\" title=\"Wikipedia:在維基百科內複製內容\">版權協議</a>,譯文需<a href=\"/wiki/Wikipedia:%E7%B7%A8%E8%BC%AF%E6%91%98%E8%A6%81#%E7%BF%BB%E8%AD%AF%E6%96%87%E7%AB%A0\" title=\"Wikipedia:編輯摘要\">在編輯摘要註明來源</a>,或於討論頁頂部標記<code>{{<a href=\"/wiki/Template:Translated_page\" title=\"Template:Translated page\">Translated page</a>}}</code>標籤。</small></span><span class=\"hide-when-compact\"> </span></span></td></tr></tbody></table><span class=\"hide-when-compact\"> <br><small></small></span><span class=\"hide-when-compact\"> </span></div></div></span>","<span class=\"mbox-text-span\">本條目<b>可參照<a href=\"https://en.wikipe
2018-09-24 11:50:32.210 32713-32713/org.wikipedia.dev E/AndroidRuntime: <code>{{<a href=\"/wiki/Template:Translated_page\" title=\"Template:Translated page\">Translated page</a>}}</code>標籤。</small></span><span class=\"hide-when-compact\"> </span></span>"],"disambiguations":["/wiki/%E9%80%92%E5%BD%92_(%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%A7%91%
        at org.wikipedia.bridge.CommunicationBridge$CommunicatingChrome.onJsPrompt(CommunicationBridge.java:123)
        at xl.a(SourceFile:447)
        at agJ.run(Unknown Source:3)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6669)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
2018-09-24 11:50:32.210 32713-32713/org.wikipedia.dev E/AndroidRuntime: Caused by: org.json.JSONException: Unterminated string at character 4194 of {"type":"pageLoadComplete","payload":{"sequence":1,"issues":["<span class=\"mbox-text-span\">本條目<b>需要擴充。</b><small><i>(2013年2月14日)</i></small><span class=\"hide-when-compact\"> <br><small>請協助<a class=\"external text\" href=\"//zh.wikipedia.org/w/index.php?title=%E9%80%92%E5%BD%92&amp;action=edit\">改善這篇條目</a>,更進一步的訊息可能會在<a href=\"/wiki/Talk:%E9%80%92%E5%BD%92\" title=\"Talk:遞歸\">討論頁</a>或<a href=\"/wiki/Wikipedia:%E6%89%A9%E5%85%85%E8%AF%B7%E6%B1%82\" title=\"Wikipedia:擴充請求\">擴充請求</a>中找到。請在擴充條目後將此模板移除。</small></span><span class=\"hide-when-compact\"> </span></span>","<span class=\"mbox-text-span\">本條目<b>需要<a href=\"/wiki/Wikipedia:%E5%A6%82%E4%BD%95%E5%AF%A9%E6%A0%B8%E6%A0%A1%E5%B0%8D\" class=\"mw-redirect\" title=\"Wikipedia:如何審核校對\">編修</a>,以確保文法、<a href=\"/wiki/Wikipedia:%E9%81%BF%E5%85%8D%E4%BD%BF%E7%94%A8%E7%9A%84%E5%AD%97%E8%A9%9E\" class=\"mw-redirect\" title=\"Wikipedia:避免使用的字詞\">用詞、語氣</a>、<a href=\"/wiki/Wikipedia:%E6%A0%BC%E5%BC%8F%E6%89%8B%E5%86%8C\" title=\"Wikipedia:格式手冊\">格式</a>、<a href=\"/wiki/Wikipedia:%E6%A0%BC%E5%BC%8F%E6%89%8B%E5%86%8C/%E6%A0%87%E7%82%B9%E7%AC%A6%E5%8F%B7\" title=\"Wikipedia:格式手冊/標點符號\">標點</a>等使用恰當。</b><small><i>(2011年12月22日)</i></small><span class=\"hide-when-compact\"> <br><small>請按照<a href=\"/wiki/Wikipedia:%E5%A6%82%E4%BD%95%E5%AF%A9%E6%A0%B8%E6%A0%A1%E5%B0%8D\" class=\"mw-redirect\" title=\"Wikipedia:如何審核校對\">校對指引</a>,幫助<a class=\"external text\" href=\"//zh.wikipedia.org/w/index.php?title=%E9%80%92%E5%BD%92&amp;action=edit\">編輯</a>這個條目。(<a href=\"/wiki/Help:%E7%BC%96%E8%BE%91\" class=\"mw-redirect\" title=\"Help:編輯\">幫助</a>、<a href=\"/wiki/Talk:%E9%80%92%E5%BD%92\" title=\"Talk:遞歸\">討論</a>)</small></span><span class=\"hide-when-compact\"> </span></span>","<span class=\"mbox-text-span\"><div class=\"mw-collapsible\" style=\"width:95%; margin: 0.2em 0;\"><b>本條目存在以下問題</b>,請協助<b><a class=\"external text\" href=\"//zh.wikipedia.org/w/index.php?title=%E9%80%92%E5%BD%92&amp;action=edit\">改善本條目</a></b>或在<b><a href=\"/wiki/Talk:%E9%80%92%E5%BD%92\" title=\"Talk:遞歸\">討論頁</a></b>針對議題發表看法。\n<div class=\"mw-collapsible-content\" style=\"margin-top: 0.3em;\">\n<table class=\"metadata plainlinks ambox ambox-notice\" style=\"\"><tbody><tr><td class=\"mbox-text\" style=\"\"><span class=\"mbox-text-span\">本條目<b>可參照<a href=\"https://en.wikipedia.org/wiki/Recursion\" class=\"extiw\" title=\"en:Recursion\">英語維基百科</a>相應條目來擴充</b>。<span class=\"hide-when-compact\"> <br><small>若您熟悉來源語言和主題,請協助<a href=\"/wiki/Wikipedia:%E7%BF%BB%E8%AF%91%E5%AE%88%E5%88%99\" class=\"mw-redirect\" title=\"Wikipedia:翻譯守則\">參考外語維基擴充條目</a>。請勿直接提交機械翻譯,也不要翻譯不可靠、低品質內容。依<a href=\"/wiki/Wikipedia:%E5%9C%A8%E7%BB%B4%E5%9F%BA%E7%99%BE%E7%A7%91%E5%86%85%E5%A4%8D%E5%88%B6%E5%86%85%E5%AE%B9\" title=\"Wikipedia:在維基百科內複製內容\">版權協議</a>,譯文需<a href=\"/wiki/Wikipedia:%E7%B7%A8%E8%BC%AF%E6%91%98%E8%A6%81#%E7%BF%BB%E8%AD%AF%E6%96%87%E7%AB%A0\" title=\"Wikipedia:編輯摘要\">在編輯摘要註明來源</a>,或於討論頁頂部標記<code>{{<a href=\"/wiki/Template:Translated_page\" title=\"Template:Translated page\">Translated page</a>}}</code>標籤。</small></span><span class=\"hide-when-compact\"> </span></span></td></tr></tbody></table><span class=\"hide-when-compact\"> <br><small></small></span><span class=\"hide-when-compact\"> </span></div></div></span>","<span class=\"mbox-text-span\">本條目<b>可參照<a href=\"https://en.wikipedia.org/wiki/Recu
2018-09-24 11:50:32.211 32713-32713/org.wikipedia.dev E/AndroidRuntime: "/wiki/Template:Translated_page\" title=\"Template:Translated page\">Translated page</a>}}</code>標籤。</small></span><span class=\"hide-when-compact\"> </span></span>"],"disambiguations":["/wiki/%E9%80%92%E5%BD%92_(%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%A7%91%
        at org.json.JSONTokener.syntaxError(JSONTokener.java:449)
        at org.json.JSONTokener.nextString(JSONTokener.java:228)
        at org.json.JSONTokener.nextValue(JSONTokener.java:107)
        at org.json.JSONTokener.readArray(JSONTokener.java:429)
        at org.json.JSONTokener.nextValue(JSONTokener.java:103)
        at org.json.JSONTokener.readObject(JSONTokener.java:384)
        at org.json.JSONTokener.nextValue(JSONTokener.java:100)
        at org.json.JSONTokener.readObject(JSONTokener.java:384)
        at org.json.JSONTokener.nextValue(JSONTokener.java:100)
        at org.json.JSONObject.<init>(JSONObject.java:159)
        at org.json.JSONObject.<init>(JSONObject.java:176)
        at org.wikipedia.bridge.CommunicationBridge$CommunicatingChrome.onJsPrompt(CommunicationBridge.java:118)
        	... 9 more

Change 462589 had a related patch set uploaded (by Dbrant; owner: Dbrant):
[apps/android/wikipedia@master] Fix crash due to recent WebView shortcomings.

https://gerrit.wikimedia.org/r/462589

Change 462589 merged by jenkins-bot:
[apps/android/wikipedia@master] Fix crash due to recent internal WebView changes.

https://gerrit.wikimedia.org/r/462589