# 2 BTC bounty for improving performance of Bitsquare on Raspberry Pi

**URL:** <https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295>\
**Category:** Uncategorized\
**Created:** [July 11, 2016, 9:54pm UTC](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295 "2016-07-11T21:54:07Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![TheKoziTwo](https://bisq.community/user_avatar/bisq.community/thekozitwo/32/25_2.png) [@TheKoziTwo](https://bisq.community/u/TheKoziTwo)\
**Post date:** [August 12, 2016, 8:43pm UTC](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295/21 "2016-08-12T20:43:48Z")

</div>

Left it running through the night and when I checked today it had a -4 error… Tried to report the error by e-mail, but it would not let me (not sure if @ManfredKarrer can make any sense out of this terminal output, the part with the -4 error is probably missing, I think this log only shows the errors from me clicking report error [http://pastebin.com/uEp0ekax](http://pastebin.com/uEp0ekax) )

Anyways, the program seemed to continue working, although some ArrayIndexOutOfBoundsException errors kept popping up, I quit it typing ctrl q. The bitsquare.log file had no log as I ran with logLevel=OFF.

I’m doing a clean install now from scratch and will test again.

---

<div class="post-metadata">

**Author:** ![marc](https://bisq.community/letter_avatar/marc/32/5_5575768a8748004e209b776fc1b2916d.png) [@marc](https://bisq.community/u/marc)\
**Post date:** [August 12, 2016, 8:51pm UTC](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295/22 "2016-08-12T20:51:24Z")

</div>

Can you make sure you installed the latest Bitsquare version (0.4.9.3)

These errors were common in earlier versions but should be fixed by now.

Edit: Just saw your screenshot from yesterday and it shows you’re indeed running v0.4.9.3.

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [August 12, 2016, 9:06pm UTC](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295/23 "2016-08-12T21:06:42Z")

</div>

The ArrayIndexOutOfBoundsException are from a JDK bug which we fixed by a hotfix jar to get added to the jre folder. I think that step is missing in the build script. In the [build.md](http://build.md) there is all described. That part was added more recentrly so I assume the older build scripts for RPi did not include that.

---

<div class="post-metadata">

**Author:** ![phosphor](https://bisq.community/letter_avatar/phosphor/32/5_5575768a8748004e209b776fc1b2916d.png) [@phosphor](https://bisq.community/u/phosphor)\
**Post date:** [August 13, 2016, 9:41am UTC](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295/24 "2016-08-13T09:41:26Z")

</div>

Added the jdkfix jar. I assume it is also appropriate for the Oracle JDK. Can I somehow test it? For me it always ran stable but I mostly clicked around a bit without any real trading (though I got to say I am quite impressed and plan on giving it a try).

The logLevel=OFF is ugly of course. But it seems with slow writing as in the Pi writing to the log file (flushing it?) causes noticable GUI (mouse cursor) lag. I tried it with logLevel=DEBUG and it was veery laggy. In normal environments I think it can be helpful to write to the log file with flushing so that in case of a hard crash you don’t loose any debug information so not sure what to do about that.

Also I noticed in the earlier thread that it was not metabit but pteron that came up with the trickier chriswhocodes openjfx overlay so I suggest to split the pass-through bounty I wrote about above 10% metabit / 15% pteron.

reedit: created an issue about the GUI animations reactivating: [https://github.com/bitsquare/bitsquare/issues/579](https://github.com/bitsquare/bitsquare/issues/579)

---

<div class="post-metadata">

**Author:** ![TheKoziTwo](https://bisq.community/user_avatar/bisq.community/thekozitwo/32/25_2.png) [@TheKoziTwo](https://bisq.community/u/TheKoziTwo)\
**Post date:** [August 13, 2016, 10:51am UTC](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295/25 "2016-08-13T10:51:44Z")

</div>

Ok seems to be working fine, had to disable animations. Good job! Let me know your BTC address. Thanks for sharing the bounty also.

---

<div class="post-metadata">

**Author:** ![sjon](https://bisq.community/user_avatar/bisq.community/sjon/32/106_2.png) [@sjon](https://bisq.community/u/sjon)\
**Post date:** [August 13, 2016, 11:04am UTC](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295/26 "2016-08-13T11:04:29Z")

</div>

Looks good, congratz on getting it running. I had been looking at this as well but \*jfx on RPI seems not the best choice for a well performing GUI . I guess it’s easy to build a GUI using jfx but I was afraid the only solution was a _normal_ java-gui; instead of one built with css & html. Good to see you proved me wrong 🙂

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [August 13, 2016, 9:23pm UTC](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295/27 "2016-08-13T21:23:16Z")

</div>

What do you understand as a normal Java GUI? JavaFX is the modern GUI for Java. It does not use html.

---

<div class="post-metadata">

**Author:** ![sjon](https://bisq.community/user_avatar/bisq.community/sjon/32/106_2.png) [@sjon](https://bisq.community/u/sjon)\
**Post date:** [August 14, 2016, 10:28am UTC](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295/28 "2016-08-14T10:28:32Z")

</div>

I wasn’t criticizing your choice for JavaFX. With _normal_ I meant swing/awt; which has better support and performance on ARM especially since [Oracle removed JavaFX support on arm](http://www.oracle.com/technetwork/java/javase/jdk-8u33-arm-relnotes-2406696.html). I’m afraid official support will not come back any time soon; meaning performance on ARM will be depending on an alternative jre like the overlay used in this topic

---

<div class="post-metadata">

**Author:** ![phosphor](https://bisq.community/letter_avatar/phosphor/32/5_5575768a8748004e209b776fc1b2916d.png) [@phosphor](https://bisq.community/u/phosphor)\
**Post date:** [August 14, 2016, 7:55pm UTC](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295/29 "2016-08-14T19:55:58Z")

</div>

my address: 17iqAcY4jCsns3WYF7Swu4MNTqQZRBJEsB (70%)

As I am new maybe send the shared bounties directly 15% to metabit and 15% to pteron.  
Their addresses can be found here: [https://github.com/pteron/bitsquare-on-raspberry-pi/blob/master/bitsquare.sh](https://github.com/pteron/bitsquare-on-raspberry-pi/blob/master/bitsquare.sh)

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [August 14, 2016, 8:04pm UTC](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295/30 "2016-08-14T20:04:30Z")

</div>

Yes JavaFX might be heavier than swing/awt. But Oracle also stopped support for swing/awt.

---

<div class="post-metadata">

**Author:** ![TheKoziTwo](https://bisq.community/user_avatar/bisq.community/thekozitwo/32/25_2.png) [@TheKoziTwo](https://bisq.community/u/TheKoziTwo)\
**Post date:** [August 15, 2016, 4:08pm UTC](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295/31 "2016-08-15T16:08:44Z")

</div>

Thanks! Bounties sent:

@phosphor  
[https://blockchain.info/tx/2eecf78aaf651890ee4c8a5702b5200246e96fae2f4a25eff7b2846d83b1c789](https://blockchain.info/tx/2eecf78aaf651890ee4c8a5702b5200246e96fae2f4a25eff7b2846d83b1c789)

@metabit  
[https://blockchain.info/tx/b91d5080a7e68643633d5d8149a000711a4ea425435779a876b1ec3c00b492fc](https://blockchain.info/tx/b91d5080a7e68643633d5d8149a000711a4ea425435779a876b1ec3c00b492fc)

@pteron  
[https://blockchain.info/tx/f608ec464f34bf88eea9483cb3e0daa4be67d7970bd7a573dbd50eecccbff3ca](https://blockchain.info/tx/f608ec464f34bf88eea9483cb3e0daa4be67d7970bd7a573dbd50eecccbff3ca)

---

<div class="post-metadata">

**Author:** ![phosphor](https://bisq.community/letter_avatar/phosphor/32/5_5575768a8748004e209b776fc1b2916d.png) [@phosphor](https://bisq.community/u/phosphor)\
**Post date:** [August 15, 2016, 6:55pm UTC](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295/32 "2016-08-15T18:55:13Z")

</div>

Received, thanks! Let me know if there is more to do for the Rasp or in Python. Cheers!

---

<div class="post-metadata">

**Author:** ![metabit](https://bisq.community/user_avatar/bisq.community/metabit/32/69_2.png) [@metabit](https://bisq.community/u/metabit)\
**Post date:** [August 17, 2016, 3:42pm UTC](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295/33 "2016-08-17T15:42:54Z")

</div>

Thanks! Cheers 🙂

---

<div class="post-metadata">

**Author:** ![ImStupid](https://bisq.community/letter_avatar/imstupid/32/5_5575768a8748004e209b776fc1b2916d.png) [@ImStupid](https://bisq.community/u/ImStupid)\
**Post date:** [October 9, 2016, 3:48pm UTC](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295/34 "2016-10-09T15:48:48Z")

</div>

Just wanted to pass along that it seems with the update to Raspbian Pixel (or something else recently) that the Bitsquare script is now failing to install.

using @phosphor August 12th steps

Looks like it failed at the same spot but with different messages leading up to it

1. 

jdk1.8.0\_92/release  
jdk1.8.0\_92/src.zip  
update-alternatives: using /opt/jdk1.8.0\_92/bin/javac to provide /usr/bin/javac (javac) in auto mode  
update-alternatives: using /opt/jdk1.8.0\_92/bin/java to provide /usr/bin/java (java) in auto mode  
copy jdkfix jar file  
cp: cannot stat ‘bitsquare/jdkfix/target/jdkfix-0.4.9.3.jar’: No such file or directory

1. 

jdk1.8.0\_92/release  
jdk1.8.0\_92/src.zip  
copy jdkfix jar file  
cp: cannot stat ‘bitsquare/jdkfix/target/jdkfix-0.4.9.3.jar’: No such file or directory

Any idea why we are missing that file?

---

<div class="post-metadata">

**Author:** ![phosphor](https://bisq.community/letter_avatar/phosphor/32/5_5575768a8748004e209b776fc1b2916d.png) [@phosphor](https://bisq.community/u/phosphor)\
**Post date:** [October 10, 2016, 12:20pm UTC](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295/35 "2016-10-10T12:20:45Z")

</div>

I’m very busy at the moment but will try and take a look at this issue in a week or two.

---

<div class="post-metadata">

**Author:** ![phosphor](https://bisq.community/letter_avatar/phosphor/32/5_5575768a8748004e209b776fc1b2916d.png) [@phosphor](https://bisq.community/u/phosphor)\
**Post date:** [October 26, 2016, 8:36am UTC](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295/36 "2016-10-26T08:36:33Z")

</div>

Turns out the jdkfix was removed in Bitsquare v0.4.9.7 as the fix has been included in the jdk. Unfortunately there is no ARM binary available for the fixed jdk version.  
For now I stuck the install script to v0.4.9.6 which should still work.

If you prefer the current master version with bug you can comment out the line ‘sudo cp bitsquare/jdkfix/target/jdkfix-0.4.9.6.jar /opt/jdk1.8.0\_92/jre/lib/ext/’ and replace the line ‘git checkout v0.4.9.6’ by ‘git checkout master’.  
To be frank I think the jdkfix was only applied on a second run of the script anyway until now (fixed).

I hope a fixed ARM binary will come up or maybe Manfred has mercy and will reinclude the fix.

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [October 26, 2016, 9:55am UTC](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295/37 "2016-10-26T09:55:01Z")

</div>

See: [https://github.com/bitsquare/bitsquare/issues/650#issuecomment-256276226](https://github.com/bitsquare/bitsquare/issues/650#issuecomment-256276226)

---

<div class="post-metadata">

**Author:** ![phosphor](https://bisq.community/letter_avatar/phosphor/32/5_5575768a8748004e209b776fc1b2916d.png) [@phosphor](https://bisq.community/u/phosphor)\
**Post date:** [October 26, 2016, 12:38pm UTC](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295/38 "2016-10-26T12:38:02Z")

</div>

Great, updated the repo. Things should work now again as expected. (Manfred created a branch that includes the fix).

---

<div class="post-metadata">

**Author:** ![qbisq](https://bisq.community/user_avatar/bisq.community/qbisq/32/757_2.png) [@qbisq](https://bisq.community/u/qbisq)\
**Post date:** [May 2, 2017, 5:39am UTC](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295/39 "2017-05-02T05:39:49Z")

</div>

a bit late to the party but… is the bounty still on? 😸

---

<div class="post-metadata">

**Author:** ![alexej996](https://bisq.community/user_avatar/bisq.community/alexej996/32/491_2.png) [@alexej996](https://bisq.community/u/alexej996)\
**Post date:** [May 2, 2017, 8:37am UTC](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295/40 "2017-05-02T08:37:02Z")

</div>

Well the bounty has been paid, so I would guess that it is over 🙂

[Previous page](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295.md?page=1)

[Next page](https://bisq.community/t/2-btc-bounty-for-improving-performance-of-bitsquare-on-raspberry-pi/295.md?page=3)
