Xowa: Raspberry Pi no swt-xulrunner-gtk in java.library.path

Created on 21 Sep 2016  Â·  23Comments  Â·  Source: gnosygnu/xowa

Hello. I am trying to install Xowa on an out of the box Raspberry Pi 3B running raspbian OS.

Using the Xowa arm_3.9.2.1 series.

Ran it and got the error window:
Error: Could not load SWT library. Reasons:
no swt-gtk-3833 in java.library.path
no swt-gtk in java.library.path
Can't load library: /usr/lib/jni/libswt-gtk-3833.so
Can't load library: /usr/lib/jni/libswt-gtk.so
Can't load library: /home/pi/.swt/lib/linux/arm/libswt-gtk-3833.so
Can't load library: /home/pi/.swt/lib/linux/arm/libswt-gtk.so

Installed and symbolically linked the swt-cairo, swt-gtk, libswt-gtk, swt-atk libraries.

Eventually I got:
Error: No more handles (java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-xulrunner-gtk-3833 in java.library.path
no swt-xulrunner-gtk in java.library.path
Can't load library: /usr/lib/jni/libswt-xulrunner-gtk-3833.so
Can't load library: /usr/lib/jni/libswt-xulrunner-gtk.so
Can't load library: /home/pi/.swt/lib/linux/arm/libswt-xulrunner-gtk-3833.so
Can't load library: /home/pi/.swt/lib/linux/arm/libswt-xulrunner-gtk.so

So I guessed and installed XUL+XPCOM, and Development files for the Gecko engine library, which gave me xulrunner-10 and xulrunner-10-dev.

This did not help, and I am still stuck with the above error.

As an aside I've also tried with the non-arm linux release, and get a different SQL error not unlike yonisolo's, but I haven't made progress on that front.

Any advice and suggestions are very much appreciated. Many, many thanks.

setup - general setup - os - raspberry pi setup - swt

All 23 comments

Hi! Thanks for the details!

Unfortunately, if you want to get XOWA to run as a GUI client, then that's not yet supported. You'll need SWT libraries compiled directly for ARM. I believe @yonisolo tried to do this already, but discovered that libswt-xulrunner-gtk was not yet ported to arm. See: https://github.com/gnosygnu/xowa/issues/27#issuecomment-148081243

Out of curiosity, is there any reason you want to use the GUI client as opposed to the HTTP Server? Some Wikipedia pages will be large, and I don't know how SWT / Raspberry Pi will handle displaying 1 MB HTML pages.

Hi. Thank you. I had looked through yonisolo's and your work and thought there was a solution.

I'm trying to put together an offline Wikipedia, and really have no experience with an HTTP server. Besides, everywhere I look for offline Wikipedia, Xowa comes up as the most straightforward solution.

You're suggesting I go that route, the server route, with the Raspberry Pi? I've gotten a bit familiar with the ease of Xowa on a PC...

Thank you.

Hey. So, given your interest, I put some work into this today and managed to get it running. I uploaded a new build to my Google Drive now: https://drive.google.com/open?id=0B9cb52zjL2rIbGxpQ2xtejhRSlU

Here are some details:

  • I don't think XULRunner will work on the Pi. Everything I turned up led to a dead-end. Keep in mind that XULRunner is no longer supported by Mozilla, so chances are this won't get any better
  • I managed to get it working by forcing SWT to use WebKit instead of Mozilla. See https://www.raspberrypi.org/forums/viewtopic.php?f=81&t=126774 . Note that XOWA also uses WebKit by default on Mac OS X, so the HTML rendering should work fine.
  • That said, it's fairly slow. I have a "Raspberry Pi 2 Model B 1GB" device and it takes about 20 seconds to boot and 10 seconds to load the XOWA home Main Page. I really think it will do worse with a larger wiki....

I'll add this to the next XOWA build for this weekend. Also, fwiw, I like to credit users for suggesting / requesting fixes. There'll be a line in the XOWA change log with something like "Add GUI support for Raspberry Pi {requested by anonymous}". Let me know if you want to remain anonymous, or would like to be cited by a nickname.

I replay to other parts below.

Thanks!


Hi. Thank you. I had looked through yonisolo's and your work and thought there was a solution.

Yup. Just wanted to make sure I cited the thread.

I'm trying to put together an offline Wikipedia, and really have no experience with an HTTP server. Besides, everywhere I look for offline Wikipedia, Xowa comes up as the most straightforward solution.

You're suggesting I go that route, the server route, with the Raspberry Pi? I've gotten a bit familiar with the ease of Xowa on a PC...

The HTTP Server is really the best solution if you want to use the PI as a server and connect from another machine.

It's also fairly simple:

  • Run java -jar xowa_arm.jar --app_mode http_server
  • Open a browser on the other machine and enter in http://your_pi_ip_address:8080

There's a little more information at http://xowa.org/home/wiki/App/Xtn/Browser/HTTP_Server

If you want to use only the Raspberry Pi (no other machine), then the GUI will be your best option. I just don't think the Raspberry Pi will perform well.

Thank you. I'm downloading the update.

So, I can't contribute meaningful code to you or your project. But I would
like to contribute. Can I get you a Pi 3B with a 32 gig micro sd? It
would probably help in some way with your efforts. I hope you say yes.

In the meantime I'll take a look into xowa as the server. Frankly I missed
that functionality when getting started.

Thanks again.

On Thu, Sep 22, 2016 at 10:02 PM, gnosygnu [email protected] wrote:

Hey. So, given your interest, I put some work into this today and managed
to get it running. I uploaded a new build to my Google Drive now:
https://drive.google.com/open?id=0B9cb52zjL2rIbGxpQ2xtejhRSlU

Here are some details:

  • I don't think XULRunner will work on the Pi. Everything I turned up
    led to a dead-end. Keep in mind that XULRunner is no longer supported by
    Mozilla, so chances are this won't get any better
  • I managed to get it working by forcing SWT to use WebKit instead of
    Mozilla. See https://www.raspberrypi.org/forums/viewtopic.php?f=81&t=
    126774 . Note that XOWA also uses WebKit by default on Mac OS X, so
    the HTML rendering should work fine.
  • That said, it's fairly slow. I have a "Raspberry Pi 2 Model B 1GB"
    device and it takes about 20 seconds to boot and 10 seconds to load the
    XOWA home Main Page. I really think it will do worse with a larger wiki....

I'll add this to the next XOWA build for this weekend. Also, fwiw, I like
to credit users for suggesting / requesting fixes. There'll be a line in
the XOWA change log with something like "Add GUI support for Raspberry Pi
{requested by anonymous}". Let me know if you want to remain anonymous, or
would like to be cited by a nickname.

I replay to other parts below.

Thanks!

Hi. Thank you. I had looked through yonisolo's and your work and thought
there was a solution.

Yup. Just wanted to make sure I cited the thread.

I'm trying to put together an offline Wikipedia, and really have no
experience with an HTTP server. Besides, everywhere I look for offline
Wikipedia, Xowa comes up as the most straightforward solution.

You're suggesting I go that route, the server route, with the Raspberry
Pi? I've gotten a bit familiar with the ease of Xowa on a PC...

The HTTP Server is really the best solution if you want to use the PI as a
server and connect from another machine.

It's also fairly simple:

  • Run java -jar xowa_arm.jar --app_mode http_server
  • Open a browser on the other machine and enter in
    http://your_pi_ip_address:8080

There's a little more information at http://xowa.org/home/wiki/App/
Xtn/Browser/HTTP_Server

If you want to use _only_ the Raspberry Pi (no other machine), then the
GUI will be your best option. I just don't think the Raspberry Pi will
perform well.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gnosygnu/xowa/issues/85#issuecomment-249090468, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AVUQzJm8RZvYOCytl8uGBKDybFVaNqIlks5qs0FUgaJpZM4KDFcc
.

Thank you. I'm downloading the update.

Cool! If you have a moment, can you also test a new version? I uploaded it here: https://drive.google.com/open?id=0B9cb52zjL2rIcUZrU21PNGVOWE0

I updated it to included the latest SQLite JDBC jar as per this ticket: https://github.com/xerial/sqlite-jdbc/issues/58#issuecomment-249329812 . I just want to give @xerial another confirmation point. It'd be nice to confirm that it also works for Raspberry Pi 3B with raspbian OS.

So, I can't contribute meaningful code to you or your project. But I would like to contribute. Can I get you a Pi 3B with a 32 gig micro sd? It would probably help in some way with your efforts. I hope you say yes.

Wow! Thanks for the offer. I really do appreciate it!

Honestly though, I'm fine with my Raspberry Pi 2B. I only use it for testing and a better box would sadly go to waste. If you want to contribute, I will put up a Donate link later this month at http://xowa.org. Otherwise, using XOWA is thanks enough for me. :)

In the meantime I'll take a look into xowa as the server.

Yup. This is what I thought most people would use for a Raspberry Pi. I'm pretty sure that's how yonisolo uses it. I didn't think that the device itself would be useful for the GUI

With that said, I found out I was wrong before regarding the performance of the XOWA GUI. I tried it now, and it actually is acceptable. It took about 3 seconds to pull up Earth on my device. See the screenshot below

So try the GUI and see if it's okay for your purposes. I summarize my steps below just for reference's sake

Thanks!


  • Download XOWA 3.9.2.3: https://drive.google.com/open?id=0B9cb52zjL2rIcUZrU21PNGVOWE0
  • Unzip it to your SD card. Assuming a windows box and the card is mounted at X:, unzip it to X:\xowa. You want a file like X:\xowa\xowa_arm.jar when done . Note that you can copy it to any folder (X:\some_folder\some_other_folder\xowa). I'm just using X:\xowa for simplicity's sake
  • Download the English Wikipedia HTML dump using Download Central: home/wiki/Special:XowaDownloadCentral . If you don't have English Wikipedia and want to try with something smaller, download the "Articles" and "Images" for Simple Wikipedia
  • Copy the dump to X:\xowa\wiki\en.wikipedia.org. You want a file like X:\xowa\wiki\en.wikipedia.org\en.wikipedia.org-core.xowa
  • Attach the SD card to your raspberry pi
  • Run the following: sudo java -jar /media/name_of_your_card/xowa/xowa_arm.jar . I'm using sudo b/c XOWA creates temp files and for some reason the PI defaults to read-only access for the mount
  • Enter en.wikipedia.org/wiki/Earth in the URL bar. You'll see an image like my screenshot

2016-09-23-222631_1552x1168_scrot

The speed increase sounds great! I haven't got there though. And yes,
I'll gladly try out the test SQL version.

When running the webkit version you linked to I first got this:

In the shell terminal:
process exec failed: sh "/home/pi/xowa01/bin/arm/xowa/script/setup_lua.sh"
"...

In the xowa popup error window:
Error: No more handles
Stack: org.eclipse.swt.SWT.error(SWT.java:4387)
org.eclipse.swt.SWT.error(SWT.java:4276)
org.eclipse.swt.SWT.error(SWT.java:4247)
org.eclipse.swt.browser.Browser.(Browser.java:103)

I installed eclipse 3.8.1-7, tried again, and got:
(this time no shell errors)

Error: No more handles
Stack: org.eclipse.swt.SWT.error(SWT.java:4387)
org.eclipse.swt.SWT.error(SWT.java:4276)
org.eclipse.swt.SWT.error(SWT.java:4247)
org.eclipse.swt.browser.Browser.(Browser.java:103)
gplx.gfui.kits.swts.Swt_html.(Unknown Source)
gplx.gfui.kits.core.Swt_kit.New_html(Unknown Source)
gplx.xowa.guis.views.Xog_tab_itm.Make_html_box(Unknown Source)
gplx.xowa.guis.views.Xog_tab_mgr.Tabs_new(Unknown Source)
gplx.xowa.guis.views.Xog_tab_mgr.Tabs_new_init(Unknown Source)
gplx.xowa.guis.views.Xog_launcher_tabs.Launch_tab(Unknown Source)
gplx.xowa.guis.views.Xog_launcher_tabs.Restore_tabs(Unknown Source)
gplx.xowa.guis.views.Xog_launcher_tabs.Launch(Unknown Source)
gplx.xowa.guis.views.Xog_tab_itm_read_mgr.Launch(Unknown Source)
gplx.xowa.guis.Xoa_gui_mgr.Run(Unknown Source)
gplx.xowa.apps.boots.Xoa_boot_mgr.Run_app(Unknown Source)
gplx.xowa.apps.boots.Xoa_boot_mgr.Run(Unknown Source)
gplx.xowa.Xoa_app_.Run(Unknown Source)
gplx.xowa.Xowa_main.main(Unknown Source)

I haven't figured out what I'm missing. I have
libwebkitgtk-3.0-0-1:2.4.1-1rpi53rpi1g already installed. Any suggestion?

Many thanks.

On Fri, Sep 23, 2016 at 7:31 PM, gnosygnu [email protected] wrote:

Thank you. I'm downloading the update.

Cool! If you have a moment, can you also test a new version? I uploaded it
here: https://drive.google.com/open?id=0B9cb52zjL2rIcUZrU21PNGVOWE0

I updated it to included the latest SQLite JDBC jar as per this ticket: xerial/sqlite-jdbc#58
(comment)
https://github.com/xerial/sqlite-jdbc/issues/58#issuecomment-249329812
. I just want to give @xerial https://github.com/xerial another
confirmation point. It'd be nice to confirm that it also works for
Raspberry Pi 3B with raspbian OS.

So, I can't contribute meaningful code to you or your project. But I would
like to contribute. Can I get you a Pi 3B with a 32 gig micro sd? It would
probably help in some way with your efforts. I hope you say yes.

Wow! Thanks for the offer. I really do appreciate it!

Honestly though, I'm fine with my Raspberry Pi 2B. I only use it for
testing and a better box would sadly go to waste. If you want to
contribute, I will put up a Donate link later this month at
http://xowa.org. Otherwise, using XOWA is thanks enough for me. :)

In the meantime I'll take a look into xowa as the server.

Yup. This is what I thought most people would use for a Raspberry Pi. I'm
pretty sure that's how yonisolo uses it. I didn't think that the device
itself would be useful for the GUI

With that said, I found out I was wrong before regarding the performance
of the XOWA GUI. I tried it now, and it actually is "ok". It took about 3
seconds to pull up Earth on my device. See the screenshot below

So try the GUI and see if it's okay for your purposes. I summarize my
steps below just for reference's sake

Thanks!

  • Download XOWA 3.9.2.3: https://drive.google.com/open?id=
    0B9cb52zjL2rIcUZrU21PNGVOWE0
  • Unzip it to your SD card. Assuming a windows box and the card is
    mounted at X:, unzip it to X:\xowa. You want a file like
    X:\xowa\xowa_arm.jar when done . Note that you can copy it to any folder
    (X:\some_folder\some_other_folder\xowa). I'm just using X:\xowa for
    simplicity's sake
  • Download the English Wikipedia HTML dump using Download Central:
    home/wiki/Special:XowaDownloadCentral . If you don't have English
    Wikipedia and want to try with something smaller, download the "Articles"
    and "Images" for Simple Wikipedia
  • Copy the dump to X:\xowa\wiki\en.wikipedia.org. You want a file like
    X:\xowa\wiki\en.wikipedia.org\en.wikipedia.org-core.xowa
  • Attach the SD card to your raspberry pi
  • Run the following: sudo java -jar /media/name_of_your_card/xowa/
    xowa_arm.jar . I'm using sudo b/c XOWA creates temp files and for some
    reason the PI defaults to read-only access for the mount
  • Enter in en.wikipedia.org/wiki/Earth in the URL bar. You'll see an
    image like my screenshot

[image: 2016-09-23-222631_1552x1168_scrot]
https://cloud.githubusercontent.com/assets/4994104/18804681/664f2ac6-81cc-11e6-99c2-9088a775ec53.png

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gnosygnu/xowa/issues/85#issuecomment-249332291, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AVUQzEIPDuWcezlTfm-pHZVmIoMe8jyGks5qtG92gaJpZM4KDFcc
.

Ugh. Well, was hoping it would work

When running the webkit version you linked to I first got this: In the shell terminal: process exec failed: sh "/home/pi/xowa01/bin/arm/xowa/script/setup_lua.sh" "...

Yeah, that's fine. This is an unimplemented feature that I haven't implemented because it's obsolete. (It sets up file permissions for lua, which is no longer needed b/c of LuaJ). Just ignore it for now. I'll remove it from a future version.

In the xowa popup error window: Error: No more handles Stack: org.eclipse.swt.SWT.error(SWT.java:4387) org.eclipse.swt.SWT.error(SWT.java:4276) org.eclipse.swt.SWT.error(SWT.java:4247) org.eclipse.swt.browser.Browser.(Browser.java:103)

Hmm... It looks like it's not handling the webkit browser.

I did run this on my raspberry pi at the start: sudo apt-get install libswt-gtk-3-jni libswt-gtk-3-java libswt-webkit-gtk-3-jni libwebkitgtk-1.0-0 I got this from https://www.raspberrypi.org/forums/viewtopic.php?f=81&t=126774

However, in the end, I didn't use the jar as the post described. I still bundle an old swt jar that yonisolo provided earlier. I'm guessing that maybe my system is picking up the webkit one?

Try the apt-get command and see if it makes any difference. I'm going to try to remove it or hunt down what version it's using

Thanks.

I did some more testing, and it looks a cairo package is missing. Try running this: sudo apt-get install libswt-gtk-3-jni libswt-gtk-3-java libswt-webkit-gtk-3-jni libwebkitgtk-1.0-0 libswt-cairo-gtk-3-jni

Hopefully this works. However, I tried removing the packages and I get an error, but not exactly "No more handles".

I've jumped on the XOWA IRC channel if you want to chat. http://webchat.freenode.net/?channels=#xowa

Thanks.

A fatal error has been detected by the Java Runtime Environment:

#

Internal Error (os_linux_zero.cpp:285), pid=4536, tid=1987839072

fatal error: caught unhandled signal 11

#

JRE version: OpenJDK Runtime Environment (7.0_101) (build 1.7.0_101-b00)

Java VM: OpenJDK Zero VM (24.95-b01 interpreted mode linux-arm )

Derivative: IcedTea 2.6.6

Distribution: Raspbian GNU/Linux 8.0 (jessie), package

7u101-2.6.6-2~deb8u1+rpi1

Core dump written. Default location: /home/pi/core or core.4536

#

An error report file with more information is saved as:

/home/pi/hs_err_pid4536.log

#

If you would like to submit a bug report, please include

instructions on how to reproduce the bug and visit:

http://icedtea.classpath.org/bugzilla

The crash happened outside the Java Virtual Machine in native code.

See problematic frame for where to report the bug.

#
Aborted (core dumped)

On Fri, Sep 23, 2016 at 9:25 PM, gnosygnu [email protected] wrote:

I did some more testing, and it looks a cairo package is missing. Try
running this: sudo apt-get install libswt-gtk-3-jni libswt-gtk-3-java
libswt-webkit-gtk-3-jni libwebkitgtk-1.0-0 libswt-cairo-gtk-3-jni

Hopefully this works. However, I tried removing the packages and I get an
error, but not exactly "No more handles".

I've jumped on the XOWA IRC channel if you want to chat.
http://webchat.freenode.net/?channels=#xowa

Thanks.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gnosygnu/xowa/issues/85#issuecomment-249339697, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AVUQzIZ_r8vLWkzeUmGuQ-zK1Gac9U-yks5qtIoAgaJpZM4KDFcc
.

Here are the first lines from the dump file:

--------------- T H R E A D ---------------

Current thread (0x76405a10): JavaThread "main" [_thread_in_native,
id=4499, stack(0x76540000,0x766df000)]

Stack: [0x76540000,0x766df000], sp=0x76611fe4, free space=839k
Java frames:
0x766dd470: parameter0 = 0x76612620
0x766dd474: parameter1 = 0x76612614
0x766dd478: parameter[2] = 0x766dd4d0
0x766dd47c: parameter[3] = 0x766dd4cc
0x766dd480: istate->_thread = 0x76405a10
0x766dd484: istate->_bcp = 0x00000000
0x766dd488: istate->_locals = 0x766dd4d0
0x766dd48c: istate->_constants = 0x70fded38
0x766dd490: istate->_method =
org.eclipse.swt.internal.webkit.WebKitGTK._soup_session_feature_detach(II)V
0x766dd494: istate->_mdx = 0x00000000
0x766dd498: istate->_stack = 0x766dd47c

On Fri, Sep 23, 2016 at 9:25 PM, gnosygnu [email protected] wrote:

I did some more testing, and it looks a cairo package is missing. Try
running this: sudo apt-get install libswt-gtk-3-jni libswt-gtk-3-java
libswt-webkit-gtk-3-jni libwebkitgtk-1.0-0 libswt-cairo-gtk-3-jni

Hopefully this works. However, I tried removing the packages and I get an
error, but not exactly "No more handles".

I've jumped on the XOWA IRC channel if you want to chat.
http://webchat.freenode.net/?channels=#xowa

Thanks.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gnosygnu/xowa/issues/85#issuecomment-249339697, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AVUQzIZ_r8vLWkzeUmGuQ-zK1Gac9U-yks5qtIoAgaJpZM4KDFcc
.

--------------- T H R E A D ---------------

Current thread (0x764059b8): JavaThread "main" [_thread_in_native,
id=1216, stack(0x76594000,0x76733000)]

Stack: [0x76594000,0x76733000], sp=0x76665fe4, free space=839k
Java frames:
0x76731470: parameter0 = 0x76666620
0x76731474: parameter1 = 0x76666614
0x76731478: parameter[2] = 0x767314d0
0x7673147c: parameter[3] = 0x767314cc
0x76731480: istate->_thread = 0x764059b8
0x76731484: istate->_bcp = 0x00000000
0x76731488: istate->_locals = 0x767314d0
0x7673148c: istate->_constants = 0x70fec4d8
0x76731490: istate->_method =
org.eclipse.swt.internal.webkit.WebKitGTK._soup_session_feature_detach(II)V

On Fri, Sep 23, 2016 at 9:25 PM, gnosygnu [email protected] wrote:

I did some more testing, and it looks a cairo package is missing. Try
running this: sudo apt-get install libswt-gtk-3-jni libswt-gtk-3-java
libswt-webkit-gtk-3-jni libwebkitgtk-1.0-0 libswt-cairo-gtk-3-jni

Hopefully this works. However, I tried removing the packages and I get an
error, but not exactly "No more handles".

I've jumped on the XOWA IRC channel if you want to chat.
http://webchat.freenode.net/?channels=#xowa

Thanks.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gnosygnu/xowa/issues/85#issuecomment-249339697, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AVUQzIZ_r8vLWkzeUmGuQ-zK1Gac9U-yks5qtIoAgaJpZM4KDFcc
.

I spent two hours with @nstents on IRC but wasn't able to find out the issue. It still fails on his raspi with a fatal java crash whereas it works on mine.

@yonisolo. If you get a chance, can you try out the new version? I just want a tie-breaker for now. Here's what you'd have to do:

Other thoughts below:

  • Based on the error logs above, the error is "Internal Error (os_linux_zero.cpp:285)".
  • This error seems somewhat common. However most resolutions seem to involve installing different jvms. For example:
  • For reference I have oracle-jdk-8 on my side and it works. nstents installed oracle-jdk-8 tonight (he had oracle-jre-7 before) and it still failed
  • HTTP Server also failed the first time with nstents. However it worked after installing to jdk-8. GUI still failed
  • The crash dump cites "org.eclipse.swt.internal.webkit.WebKitGTK._soup_session_feature_detach". It is related to webkit, but I only find "eclipse" related search results. I don't know why it's happening here.

no problem i'll try on monday, does this build include the new official jdbc drivers? Sorry i'm not able to test before

Yup. Monday or anytime next week would be great! The build does have the new official jdbc driver (which nstents confirmed works on raspi3). I'll also be releasing v3.9.4.1 Sunday or Monday which you can also use.

Thanks!

Just a quick note. Tonight's XOWA release is pretty much the same as the one on my Google drive. The only difference is that I bumped up the version number, and included some other minor changes regarding category / page sync.

@yonisolo: You should use this one if you can as it is the "official" version.
@nstents : There's no reason to try again with this version, as it's practically the same as the version you were using on Friday.

Thanks.

@yonisolo tested the 3.9.4.1 build and it looks like it worked. See: https://github.com/gnosygnu/xowa/issues/82 . More info regarding setup should be forthcoming.

Hi, i tested only the ttp_server mode, because i did not have GUI enabled on my board.
i didn't managedto make the GUI work with LXDE manager seems to be a bug with lightdm/openbox session init. i'm now trying with xfce with the same result.

I decided to do a fresh test so i downloaded and installed the arm 3.9.4.1
on a fresh R-Pi OS with 128 gig of space on the SD card.

I had to add the libraries with: sudo apt-get install libswt-gtk-3-jni
libswt-gtk-3-java libswt-webkit-gtk-3-jni libwebkitgtk-1.0-0
libswt-cairo-gtk-3-jni

Started the web server with: java -jar xowa_arm.jar --app_mode http_server

Xowa came up and running like a champ and Search works, but when I clicked
the interface to install the Simple Wikipedia i got an interesting result.
This page came up:

Oops! It was not possible to show this website

The website at
http://localhost:8080/exec/%0Aapp.setup.cmds%0A.dump_add_many('simple.wikipedia.org'%2C%20'latest'%2C%20'pages-articles'%2C%20'wiki.custom').owner%0A.run;%0A
seems to be unavailable. The precise error was:

Message Corrupt

It could be temporarily switched off or moved to a new address. Don't
forget to check that your internet connection is working correctly.

Still, there was a download showing in the terminal window which eventually
finished up with this large-ish output:

cmd bgn: util.cleanup

bldr.wiki:deleting tdb wiki
deleting sqlite3 files: 0 /home/pi/xowa002/wiki/simple.wikipedia.org/
cmd end: util.cleanup 250f
cmd bgn: text.init
cmd end: text.init 1s 447f

cmd bgn: dump_mgr
cmd end: dump_mgr 5m 35s 354f

cmd bgn: text.css
cmd end: text.css 12s 341f

cmd bgn: text.search.cmd
cmd end: text.search.cmd 37s 638f

cmd bgn: search.page__page_score
page_rank done; iteration=0
cmd end: search.page__page_score 2s 613f
cmd bgn: search.link__link_score
cmd end: search.link__link_score 44s 225f

cmd bgn: search.word__link_count
cmd end: search.word__link_count 21s 560f

cmd bgn: util.delete
cmd end: util.delete 240f
cmd bgn: text.term
cmd end: text.term 6s 63f

cmd bgn: util.download
downloading file: now=20160927_170250 src=
http://dumps.wikimedia.your.org/simplewiki/latest/simplewiki-latest-categorylinks.sql.gz
trg=/home/pi/xowa002/wiki/simple.wikipedia.org/
unzipping file: now=20160927_170317 trg=/home/pi/xowa002/wiki/
simple.wikipedia.org/simplewiki-latest-categorylinks.sql
cmd end: util.download 29s 115f
cmd bgn: util.download
downloading file: now=20160927_170319 src=
http://dumps.wikimedia.your.org/simplewiki/latest/simplewiki-latest-page_props.sql.gz
trg=/home/pi/xowa002/wiki/simple.wikipedia.org/
unzipping file: now=20160927_170329 trg=/home/pi/xowa002/wiki/
simple.wikipedia.org/simplewiki-latest-page_props.sql
cmd end: util.download 10s 923f
cmd bgn: wiki.page_props
cmd end: wiki.page_props 2s 110f
cmd bgn: wiki.categorylinks
cmd end: wiki.categorylinks 2m 50s 967f

bldr done: 11m 14s 873f

css.db not found; wiki=www.wikidata.org
css_dir=/home/pi/xowa002/user/anonymous/wiki/www.wikidata.org/html/
page_load fail: page=simple.wikipedia.org/wiki/Main Page err=[err 0]
null
gplx.xowa.guis.views.Xog_tab_itm_read_mgr.Show_page(Unknown Source)
gplx.xowa.guis.views.Xog_tab_itm_read_mgr.Show_page(Unknown Source)
gplx.xowa.guis.views.Xog_tab_itm.Show_url_loaded(Unknown Source)
gplx.xowa.guis.views.Xog_tab_itm.Invk(Unknown Source)
gplx.gfui.kits.core.Gfui_kit_cmd_sync.Invk(Unknown Source)
gplx.Gfo_invk_.Invk_by_msg(Unknown Source)
gplx.Gfo_invk_.Invk_by_val(Unknown Source)
gplx.xowa.guis.views.Load_page_wkr.Thread__exec(Unknown Source)
gplx.core.threads.Gfo_thread_pool.Run_wkr(Unknown Source)
gplx.core.threads.Gfo_thread_pool.Invk(Unknown Source)
gplx.Gfo_invk_.Invk_by_msg(Unknown Source)
gplx.core.threads.Thread_adp.run(Unknown Source)
java.lang.Thread.run(Thread.java:745)
uncaught exception while running thread; name=xowa.load_page_wkr err=[err
0] null
gplx.xowa.guis.views.Xog_tab_itm_read_mgr.Show_page(Unknown Source)
gplx.xowa.guis.views.Xog_tab_itm_read_mgr.Show_page_err(Unknown Source)
gplx.xowa.guis.views.Xog_tab_itm.Show_url_failed(Unknown Source)
gplx.xowa.guis.views.Xog_tab_itm.Invk(Unknown Source)
gplx.gfui.kits.core.Gfui_kit_cmd_sync.Invk(Unknown Source)
gplx.Gfo_invk_.Invk_by_msg(Unknown Source)
gplx.Gfo_invk_.Invk_by_val(Unknown Source)
gplx.xowa.guis.views.Load_page_wkr.Thread__exec(Unknown Source)
gplx.core.threads.Gfo_thread_pool.Run_wkr(Unknown Source)
gplx.core.threads.Gfo_thread_pool.Invk(Unknown Source)
gplx.Gfo_invk_.Invk_by_msg(Unknown Source)
gplx.core.threads.Thread_adp.run(Unknown Source)
java.lang.Thread.run(Thread.java:745)

localhost:8080|GET|/
localhost:8080|GET|/fsys/user/anonymous/wiki/home/html/xowa_common.css
localhost:8080|GET|/fsys/user/anonymous/wiki/home/html/xowa_wiki.css
localhost:8080|GET|/fsys/bin/any/xowa/html/res/src/xowa/core/core.css
localhost:8080|GET|/fsys/bin/any/xowa/html/res/src/gadgets/top-icon/top-icon.css
localhost:8080|GET|/fsys/bin/any/xowa/html/res/src/xowa/search-suggest/search-suggest.css
localhost:8080|GET|/fsys/bin/any/xowa/html/res/src/xowa/find/xowa_find_html.css
localhost:8080|GET|/fsys/bin/any/xowa/html/res/src/xowa/core/DOMContentLoaded.js
localhost:8080|GET|/fsys/bin/any/xowa/html/res/src/xowa/find/xowa_find_html.js
localhost:8080|GET|/fsys/bin/any/xowa/html/res/lib/jquery/jquery-1.11.3.min.js
localhost:8080|GET|/fsys/bin/any/xowa/html/res/src/gadgets/top-icon/top-icon.js
localhost:8080|GET|/fsys/bin/any/xowa/html/res/src/gadgets/navframe/mediawiki.gadget.navframe.js
localhost:8080|GET|/fsys/bin/any/xowa/file/app.general/xowa_exec.png
localhost:8080|GET|/fsys/bin/any/xowa/file/app.general/twisty_right.png
localhost:8080|GET|/fsys/user/anonymous/wiki/home/html/logo.png

And after all, Simple Wikipedia and search thereof loaded and worked
properly.

On Mon, Sep 26, 2016 at 12:59 PM, gnosygnu [email protected] wrote:

@yonisolo https://github.com/yonisolo tested the 3.9.4.1 build and it
looks like it worked. See: #82
https://github.com/gnosygnu/xowa/issues/82 . More info regarding setup
should be forthcoming.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/gnosygnu/xowa/issues/85#issuecomment-249562282, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AVUQzPSM1icytUN2E2YWdHagnrZSOFWAks5qt8GegaJpZM4KDFcc
.

but when I clicked the interface to install the Simple Wikipedia i got an interesting result. This page came up:

Thanks for the error message. Unfortunately this is a known issue. Some system commands (like downloading a wiki) won't work correctlyin HTTP server. They'll only work correctly in the GUI. I've been meaning to get them working, but haven't had a chance to do it yet.

In this case, the HTTP Server throws an error -- just like you saw. However, XOWA still gets the request and processes it. Hence all the messages in the terminal window. The other error messages are related to that.

Have you tried the GUI again on the fresh Raspberry Pi? I'm just curious if it's still failing.

Let me know if I missed anything above. Thanks.

I tried with a up-to-date install of raspbian on raspi2 with the v3.9.4.2 .
I encountered the sqlite drivers problem, copy the old one works. the bin dir has not been created.
the GUI didn't start because of a swt-gtk lib(3833) not found in java library path, i installed all of the following package:
sudo apt-get install libswt-gtk-3-jni libswt-gtk-3-java libswt-webkit-gtk-3-jni libwebkitgtk-1.0-0 libswt-cairo-gtk-3-jni
even the libswt-gtk-4* just in case of...
java is oracle java 8 u101
info: the installation of a GUI in a bananian (debian on banana pi board) is buggy...
Sorry i can't help more...

I encountered the sqlite drivers problem, copy the old one works

That stinks. So the new xerial sqlite jar didn't work? I don't know why it would not work on yours....

the GUI didn't start because of a swt-gtk lib(3833)

And it looks like I struck out on the GUI also.

Let me try to figure out how to get a fresh OS on my Pi. I'm actually in the middle of some other computer setup, so I'll probably not get to it until next week. Thanks.

Ok after a litter of coffee, i figured out that my xowa archive was corrupt, after downloaded and tested the new one the http_server ran as expected which means that the sqlite drivers is finally ok. however the swt problem is still here for gui mode.
`
OS: linux
Java: 1.8.0_101 (32 bit)
Java path: 1.8.0_101
XOWA: 3.9.4.2
XOWA path: /home/pi/xowa/xowa_arm.jar

Error: Could not load SWT library. Reasons:
no swt-gtk-3833 in java.library.path
no swt-gtk in java.library.path
Can't load library: /usr/lib/jni/libswt-gtk-3833.so
Can't load library: /usr/lib/jni/libswt-gtk.so
Can't load library: /home/pi/.swt/lib/linux/arm/libswt-gtk-3833.so
Can't load library: /home/pi/.swt/lib/linux/arm/libswt-gtk.so

Stack: org.eclipse.swt.internal.Library.loadLibrary(Library.java:335)
org.eclipse.swt.internal.Library.loadLibrary(Library.java:240)
org.eclipse.swt.internal.C.(C.java:21)
org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
org.eclipse.swt.widgets.Display.(Display.java:133)
gplx.gfui.kits.core.Swt_kit.Kit_init(Unknown Source)
gplx.xowa.guis.Xoa_gui_mgr.Kit_(Unknown Source)
gplx.xowa.guis.Xoa_gui_mgr.Run(Unknown Source)
gplx.xowa.apps.boots.Xoa_boot_mgr.Run_app(Unknown Source)
gplx.xowa.apps.boots.Xoa_boot_mgr.Run(Unknown Source)
gplx.xowa.Xoa_app_.Run(Unknown Source)
gplx.xowa.Xowa_main.main(Unknown Source)
`

here is the lib i installed:
`
i libswt-cairo-gtk-3-jni

i A libswt-glx-gtk-3-jni
i A libswt-gnome-gtk-3-jni
i libswt-gtk-3-java
i libswt-gtk-3-java-gcj
i libswt-gtk-3-jni
i libswt-gtk-4-java
i libswt-gtk-4-jni
i libswt-webkit-gtk-3-jni
`
if there is some other package to install, let me know!

Ok after a litter of coffee, i figured out that my xowa archive was corrupt, after downloaded and tested the new one the http_server ran as expected which means that the sqlite drivers is finally ok.

Cool. Thanks for figuring it out!

however the swt problem is still here for gui mode.

Yeah, I still don't know why mine works. Your lib list looks fine. Let me look at it further on my side and I'll post again next week. Thanks!

Was this page helpful?
0 / 5 - 0 ratings