Page MenuHomePhabricator

Visual Editor on Indonesian Wikipedia doesnt work: Uncaught SyntaxError: Unexpected token ')' (client-side cache corruption)
Closed, InvalidPublic

Assigned To
None
Authored By
Rtnf
Mar 31 2021, 1:36 PM
Referenced Files
F35157831: image.png
May 20 2022, 1:04 PM
F34206497: Screenshot from 2021-04-01 16-56-21.png
Apr 1 2021, 9:58 AM
F34199353: Screenshot from 2021-03-31 21-33-57.png
Mar 31 2021, 2:34 PM
F34199262: Screenshot from 2021-03-31 20-23-16.png
Mar 31 2021, 1:36 PM
F34199260: Screenshot from 2021-03-31 20-22-36.png
Mar 31 2021, 1:36 PM

Description

Root cause : probably mistyped javascript

Screenshot from 2021-03-31 20-23-16.png (409×54 px, 11 KB)

Screenshot from 2021-03-31 20-22-36.png (376×120 px, 40 KB)

Screenshot from 2021-03-31 21-33-57.png (1,081×487 px, 198 KB)

How to reproduce bug :

  1. Open https://id.wikipedia.org/wiki/Pandan
  2. Open developer tools (inspect), click "console" tab
  3. Click "sunting" (to open visual editor)
  4. Uncaught SyntaxError: Unexpected token ')'
  5. Never ending progress bar

Event Timeline

Per IRC, seems this started in the last week. Only related change seems to be the Minify work from reading changelogs.

The source code doesn't have the syntax error: https://phabricator.wikimedia.org/diffusion/ESHG/browse/master/modules/ve-syntaxhighlight/ve.ui.MWSyntaxHighlightDialogTool.js$17

Visual editor loads fine for me on the linked page.

Did more than one person report this problem? @Rtnf If you're the only affected person, the code might have been randomly corrupted after being cached on your computer – try clearing "local storage" in your browser.

If more folks are affected, then it might have been corrupted at some other stage, and we should investigate.

By the way, there's just a 1 bit difference between i and ) (01101001 vs 00101001), so it sure looks like a random bit flip. But it could be good to see at which point it happened.

I've cleared local storage, but the error keep persisting..
I opened an incognito tab, but i found a new kind of error (even though it's basically the same : random bit flip)

Screenshot from 2021-04-01 16-56-21.png (1,348×65 px, 29 KB)

I changed my browser from Brave 1.20.110 to Firefox 85.0, now it's working properly on Firefox

I upgraded my Brave browser to 1.21.76 , deleted everything (not just "Empty Cache and Hard Reload" on devtools, but "brave://settings/clearBrowserData" , check everything and choose "all time".)

Now, it's finally working.

Aklapper renamed this task from Visual Editor on Indonesian Wikipedia doesnt work to Visual Editor on Indonesian Wikipedia doesnt work: Uncaught SyntaxError: Unexpected token ')' (client-side cache corruption).Apr 1 2021, 10:34 AM
Aklapper closed this task as Invalid.
Aklapper removed a project: Regression.

@Rtnf If this keeps happening, it could be a problem with your hardware (RAM or perhaps disk). I'm not really knowledgeable about this, but consider making a backup of everything to another device before it gets worse.

image.png (743×366 px, 188 KB)

It's not me. But a moment ago, someone else also reported the same exact problem like this.
Is it really client-side corruption, or maybe, something else?