googlearchive / drivetex

A cloud LaTeX editor

Home Page:https://drivetex.appspot.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could not undump bytes

xylo04 opened this issue · comments

The first document compile works; every compile after that fails with a mysterious Could not undump bytes error.

Luckily I know a little about this from manuels/texlive.js#26; unluckily, I can't seem to reliably configure App Engine to disallow caching texlive resources.

More details:

I've observed that the transpiling technology (Emscripten) behind my current TeX compiler seems to be sensitive to browser caching. If the TeX font and layout files are served out of the browser cache, the TeX compiler can't read them. It's a serious limitation that ought to be fixed in Emscripten, but one workaround is to configure the web server to disable caching and always serve over the network. Unfortunately, App Engine makes that hard to configure. :(

If folks still want to use DriveTeX in the short term, disabling browser caching should also work around the issue. In Chrome, this means going into the Developer pane, Network tab and checking Disable Cache.

It appears this was fixed somewhere in manuels/texlive.js#33! Thanks again to @fzimmermann89 and @manuels!