googlearchive / drivetex

A cloud LaTeX editor
https://drivetex.appspot.com/
Apache License 2.0
36 stars 22 forks source link

Could not undump bytes #9

Closed xylo04 closed 8 years ago

xylo04 commented 9 years ago

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.

xylo04 commented 9 years ago

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.

xylo04 commented 8 years ago

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