-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server configuration sensitivity #26
Comments
Nope, not really. Is this consistent in all browsers? |
I was working primarily in Chrome 42; I just tried Firefox 37, with similar (but not identical) errors to the first error. Firefox actually gave me this warning about my index.html, though:
So I'll try setting UTF-8 encoding either though headers or pre-processor tags and see if that will clear up the first error. The second |
I have a reliable reproduction case for at least the |
You guys at Google... I'd prefer an open discussion. Are these details really so confidential? |
Not particularly, but I have to have approval before releasing open source (technically, even patches/pull requests), yada yada... I'll be very happy once I am able to open source my project so I don't have to keep tiptoeing around red tape! You can find the prototype Clicking the red button a second time causes the Note this is still a prototype and has some rough edges, not to mention I'm a backend engineer by trade and it's been a while since I've done much JavaScript! EDIT: I've moved the prototype here; if you see an SSL warning page, you simply need to type 'danger' in the window to bypass. |
Did you compile the latex compiler to js yourself or did you use my version? |
I haven't tried compiling it myself yet. I used the github copies. |
This error is really weird. I'd say it's probably that your server is serving corrupted files (or files that are interpreted incorrectly). I'd check mime types and maybe try to use |
No luck yet. I've noted that App Engine is not sending a |
Another difference that could possibly explain it is gzip. I would think whatever's doing the XHR to load e.g. latex.fmt or article.cls would be smart enough to ungzip, or that the browser would do it before it's handed back, but if that wasn't the case it would explain why the files look corrupted. |
yeah, it should ungzip it automatically. But have you tried to enable gzip on your nodejs server just to be sure? |
Well, I finally started using |
Wups, sounds like a rather serious bug in the AppEngine. Maybe this helps debugging: https://cloud.google.com/appengine/kb/general
|
Alright, I can report some progress! I was able to find a way to get AppEngine to serve all of the TexLive resources, The second time I compile, I get back to the I suspect Emscripten is doing something non-standard to fetch files from the network and populate them in the virtual file system. If that were the case, it would explain why gzipped responses are truncated, and why cached responses end up as empty files in the file system. EDIT: Just saw your response, and yep, could be an AppEngine bug as well. At very least, they seem to have a non-standard default configuration and I'm having one heck of a time configuring around it. |
I posed the question to emscripten-discuss. |
Huh, I'm no longer seeing issues with |
I'm still not sure how I configured around this, but until further notice I think it's safe to assume that the following holds true when serving texlive.js and probably all Emscripten libraries:
|
really strange, did you try to setup gzip and/or caching on your nodejs setup? |
Unfortunately I haven't taken the time to confirm it properly that way. I should, and I'll see if I can make some time to do so, but that's my current feeling. |
I'm having luck running my app and compiling TeX on my localhost using the node.js http-server, but in other server configurations (python SimpleHTTPServer, Google App Engine), I tend to get errors like:
Or sometimes:
This second one is seemingly fixed if I clear my browser's cache. Based on that, I feel like maybe it's a header issue, maybe encoding, but I'm not sure.
Are you aware of any server configuration tricks that need to be addressed for texlive.js to work properly?
The text was updated successfully, but these errors were encountered: