twsaari / FeatureSequence

JBrowse plugin to view the sequence of features
GNU General Public License v3.0
7 stars 3 forks source link

Hangs when use apache deflate encode #8

Closed billzt closed 7 years ago

billzt commented 7 years ago

I found a strangd problem, if I turn on apache deflate encode:

<IfModule mod_deflate.c>
        SetOutputFilter DEFLATE
        AddOutputFilterByType DEFLATE text/plain
        AddOutputFilterByType DEFLATE text/html
        AddOutputFilterByType DEFLATE text/xml
        AddOutputFilterByType DEFLATE text/css
        AddOutputFilterByType DEFLATE text/javascript
        AddOutputFilterByType DEFLATE application/xhtml+xml
        AddOutputFilterByType DEFLATE application/xml
        AddOutputFilterByType DEFLATE application/rss+xml
        AddOutputFilterByType DEFLATE application/atom_xml
        AddOutputFilterByType DEFLATE application/x-javascript
        AddOutputFilterByType DEFLATE application/x-httpd-php
        AddOutputFilterByType DEFLATE image/svg+xml
</IfModule>
<IfModule setenvif.c>
        SetEnvIf Request_URI "(\.jsonz|\.txtz)" no-gzip dont-vary
</IfModule>
<IfModule mod_headers.c>
        <FilesMatch "(\.jsonz|\.txtz)">
                Header onsuccess set Content-Encoding gzip
        </FilesMatch>
</IfModule>

When open the diaglog, for a long time no popbox out. However a httpd process is running heavily on the background. The console says:

TypeError: b is undefined
e()
dojo.js:844
.cache["JBrowse/View/Track/BlockBased"]/</<._openDialog()
dojo.js:845
.cache["JBrowse/View/Track/BlockBased"]/</<._makeClickHandler/d()
dojo.js:839
.cache["dijit/_MenuBase"]/</<.onItemClick()
dojo.js:625
.cache["dijit/_MenuBase"]/</<.postCreate/<()
dojo.js:621
.cache["dojo/on"]/</c.selector/</<()
dojo.js:149
.cache["dijit/a11yclick"]/</</e<()
dojo.js:320

After several minutes later, the httpd process finished, and the console prints:

cannot fit "http://192.168.7.11:8080/jbrowse/data/Garb/seq/genome_Garb_JBrowse.fa (bytes 467337216..467369983)" (655,717,867 > 100,000,000)dojo.js:1016:18

Then the popup window appeared.

If I remove away the deflate encode config, it works well, although the TypeError: b is undefined error still exists

billzt commented 7 years ago

Well, it seems as if the bug also exists in JBrowse main instance. I'll report the bug there