jena: Fuseki UI sometimes doesn't load
Version
4.8.0-SNAPSHOT
What happened?
I apologise for this very vague bug report. I also don’t expect any action, I just want to write it down in case someone can add more details.
The issue is as follows: sometimes the fuseki Query UI does not load. To reproduce it (fairly frequently) on our installation, I used a link like this:
https://XXXXXXXXXXXX/#/dataset/YYYYYYYYYYYY/query?query=PREFIX%20units%3A%20%3Chttp%3A%2F%2Fwww.opengis.net%2Fdef%2Fuom%2FOGC%2F1.0%2F%3E%0APREFIX%20geo%3A%20%3Chttp%3A%2F%2Fwww.opengis.net%2Font%2Fgeosparql%23%3E%0APREFIX%20rdfs%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX%20spatial%3A%20%3Chttp%3A%2F%2Fjena.apache.org%2Fspatial%23%3E%0A%0Aselect%20distinct%20%3Ffeature%20%3Ftype%20%3FxgeoL%20%7B%0A%20%20values%20%3FmyPoint%20%7B%0A%20%20%20%20%22Point%2822.83736%2033.38213%29%22%5E%5Egeo%3AwktLiteral%0A%20%20%7D%0A%20%20%3Ffeature%20spatial%3AnearbyGeom%28%3FmyPoint%20100%20units%3Akilometre%29%20.%0A%20%20%3Ffeature%20rdfs%3Alabel%20%3FxgeoL%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20a%20%3Ftype%20.%0A%7D
put it on a website and opened it in private window mode
Then, the browser would only render the fuseki header (datasets/manage/help/server status green) and the rest of the page would not load (show as blank page). the browser would continue to show the loading indicator
In the Developer Tools, I could observe an unhandled/unconsumed request for Query-abcdef.js that was hanging there
I found a bug report which sounds similar https://github.com/storybookjs/builder-vite/issues/439
I reverted back to webpack on our custom installation for the time being
Relevant output and stacktrace
No response
Are you interested in making a pull request?
None
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 16 (16 by maintainers)
Commits related to this issue
- GH-1749: Replacing webpack chunks by Vite rollup — committed to kinow/jena by kinow a year ago
- GH-1749: Replacing webpack chunks by Vite rollup — committed to AKSW/jena by kinow a year ago
- GH-1749: Replacing webpack chunks by Vite rollup — committed to kinow/jena by kinow a year ago
- GH-1749: Replacing webpack chunks by Vite rollup — committed to kinow/jena by kinow a year ago
- GH-1749: Replacing webpack chunks by Vite rollup — committed to kinow/jena by kinow a year ago
- GH-1749: Replacing webpack chunks by Vite rollup — committed to kinow/jena by kinow a year ago
- Merge pull request #1845 from kinow/vue-vite-dynamic-imports GH-1749: Replacing webpack chunks by Vite rollup — committed to apache/jena by afs a year ago
*hem *hem
due to some caching when rebuilding the project (while doing mvn clean install package) (it does not seem to remove the old JS files, maybe we should look into that in another issue) old webpack/vite files were still left in place . so I had a jena-fuseki-ui.jar which was still loading the old code.
long story short => I did not test #1845 even though I thought I were testing it
the vite chunks are named something like
queryDataset-e5093511.jswhereas the webpack chunks were named something likeQuery-94d5ecfb.jsand lo and behold, the issue seems to be gone! fingers crossed
It would have been helpful if you had expanded the actual error that was shown in the JS console (appears at 0:35 in your screen capture) as that might have provided some clues as to why the JS failed to load. (Although that could have been caused by you hitting Stop on the page)
our setup is done with maven package of fuseki-main and https://github.com/AKSW/fuseki-mods/tree/adaptions/jena-fmod-ui
I will check tomorrow if this issue is easily reproduced on our site with yarn run serve