kiwix / kiwix-tools

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

kiwix-serve : segmentation fault when searching on wikipedia or vikidia on raspberry PI 4 #612

Closed ED4free closed 1 year ago

ED4free commented 1 year ago

Hello,

With kiwix-serve, from kiwix-tools_linux-armhf-3.3.0-1.tar.gz On Raspberry PI 4 4GB RAM Uname -a : Linux raspberrypi 5.10.60-v7l+ #1449 SMP Wed Aug 25 15:00:44 BST 2021 armv7l GNU/Linux In /etc/init.d/kiwix : /edphone/html/kiwix/kiwix-serve --port 81 -mb /edphone/data/zim/*.zim -d

When typing 2 chars, for example "ti", in search box of wikipedia or vikidia, kiwix-serve crash in segmentation fault. It happens nearly one time each 3 times if we type "i" 0,5 second after "t" . Perhaps it depends on how many suggestions there are for letter "t". The good news is that there is a work-around : not type too quickly (or very quickly).

Logs obtained when I put -v option :

====================== Requesting : full_url : /suggest method : GET (0) version : HTTP/1.1 request# : 32 headers :

kelson42 commented 1 year ago

@Ed4Free Hi and thank you for your bug report. Can younplease try with latest release 3.4.0 of kiwix-tools? 3.3.0 is almost a year old already.

ED4free commented 1 year ago

Hello, Tkanks for your quick answer. I don't see any search box with release 3.4.0, like if I put "-n" option although I did not put this option.

kelson42 commented 1 year ago

Human friendly HTTP API has slightly changes: We use now an iframe to split the chrome from the content. More details in our new online documentation https://kiwix-tools.readthedocs.io/en/latest/kiwix-serve.html#viewer.

ED4free commented 1 year ago

Hello Kelson42, 1/ I found how to display the search box by changing the url, http://192.168.1.39:81/viewer#wikipedia_fr_all_maxi_2021-09/A/Wikip%C3%A9dia:Hors-ligne (adding /viewer# in the beginning) 2/ I confirm that there is no more segmentation fault with the release 3.4.0 3/ As 140 Raspberry PI has already been deployed in Madagascar with 3.3.0, and as we have a workaround (not to type too fast), will upgrade the release at the next general upgrade. 4/ Thanks and congrat for you quick support ! You can close the ticket. Thierry