kiwix / kiwix-tools

Command line Kiwix tools: kiwix-serve, kiwix-manage, ...
https://download.kiwix.org/release/kiwix-tools/
GNU General Public License v3.0
435 stars 85 forks source link

Kiwix-serve aborting on certain pages #388

Closed nicholasmorrissey closed 4 years ago

nicholasmorrissey commented 4 years ago

Hey guys,

I am working on an offline system and have to manually copy over the information, so forgive me that I can't give the entire stack trace, but I'm hoping you have some insight into this problem as I can't find it anywhere else.

I've recently downloaded the kiwix-tools_linux-x86-3.1.1-3 set of binaries and have been trying to run kiwix-serve with a wikipedia_en_100_nopic_2020-05.zim file to test it. It does work fine for most wiki pages, but when I open certain pages (often country pages if that helps) it makes 2-3 supposedly successful requests for css modules that look like: /css_modules/mw.MediaWikiPlayer.loader.css /css_modules/mw.PopUpMediaTransform.css /css_modules/mw.TMHGalleryHook.js.css

and then gives this failed assertion:

kiwix-serve: ../..SOURCE/kiwix-lib_release/src/server/byte_range.cpp:68: kiwix:: ByteRange::ByteRange(kiwix::ByteRange::Kind, int64_t, int64_t): Assertion 'last >= first' failed. Aborted.

I'm going to try with a different zim file soon but it's gonna take a bit to get it across.

Do you have any idea what's causing this? Also I am solely running it off the pre-compiled kiwix-serve binary in kiwix-tools, am I right in assuming I don't need to set up the extra dependencies/environment tools such as Meson, Ninja, and pkg-config for this case since it's pre-compiled?

veloman-yunkan commented 4 years ago

This should be fixed with kiwix/kiwix-lib#364

veloman-yunkan commented 4 years ago

Duplicate of kiwix/kiwix-lib#363

nicholasmorrissey commented 4 years ago

Sorry that I didn't see that, but thanks for the timely response. Was the fix brought in with the kiwix-tools_linux-3.1.1-4 version? Or is it yet to come?

kelson42 commented 4 years ago

Yes, this is already released.