Page 1 of 1

SERVOY CRASHES ON UBUNTU

PostPosted: Thu May 10, 2018 10:40 pm
by aurobindo.parida
I am using ubuntu 16.04 and servoy 7.4.10

No matter which java version I use, when I try to open a form, the developer crashes.

Till now I have tried using java 7 (which servoy 7.4.10 is incompatible with), java 8, java 10

And the hilarious thing is on servoy wiki page, it says to go back to java 5.
Please give some idea to fix this.

Re: SERVOY CRASHES ON UBUNTU

PostPosted: Fri May 11, 2018 12:08 am
by ROCLASI
Hi,

Just to see if I could reproduce this I did a clean install of Ubuntu 16.04 (in a VM).
Then I installed openjdk 8 via the terminal:
Code: Select all
sudo apt install openjdk-8-jdk

And then ran the Servoy 7.4.10 installer:
Code: Select all
java -jar servoy_installer.jar

After all this I launched Servoy Developer by double-clicking on the the icon and it runs fine for me.
Screen Shot 2018-05-11 at 00.02.19.png
Screen Shot 2018-05-11 at 00.02.19.png (304.16 KiB) Viewed 4279 times


Did you perhaps installed the headless version of Java?

Re: SERVOY CRASHES ON UBUNTU

PostPosted: Fri May 11, 2018 12:33 am
by ROCLASI
I see you mentioned it crashed when opening a form (which I didn't do yet).
And yes, after creating a form and dropping some elements on it Servoy Developer crashes. I gave it a little more memory (740MB) and it takes a little longer then but still crashes.
Screen Shot 2018-05-11 at 00.23.01.png
Screen Shot 2018-05-11 at 00.23.01.png (107.08 KiB) Viewed 4277 times

After giving it 1GB of RAM it allowed me to add a lot of elements on the form.
So it looks like Developer is a bit more RAM hungry on Ubuntu.

You can assign more RAM to Servoy by editing the servoy.ini file and change the following parameter:
Code: Select all
-Xmx512m

I set mine to -Xmx1024m to give it 1GB of RAM.

Hope this helps.

Re: SERVOY CRASHES ON UBUNTU

PostPosted: Fri May 11, 2018 7:36 am
by Gabi Boros
what if you add this
selectedlnf=javax.swing.plaf.metal.MetalLookAndFeel
in your servoy.properties file? (make sure you add this when the developer is closed, because the properties file is rewritten when the developer is closing)

Re: SERVOY CRASHES ON UBUNTU

PostPosted: Fri May 11, 2018 9:29 am
by aurobindo.parida
Thanks both of you.

ok, so I tried both methods one after the other
1st memory increase, but even after increasing to 4g, the problem didn't go away.
Than I tried Gabi Boros's suggestion of
selectedlnf=javax.swing.plaf.metal.MetalLookAndFeel


This seems to have done the trick.

:)

Re: SERVOY CRASHES ON UBUNTU

PostPosted: Fri May 11, 2018 9:53 am
by ROCLASI
So what is your memory setting now with this LnF change?

Re: SERVOY CRASHES ON UBUNTU

PostPosted: Fri May 11, 2018 10:03 am
by rgansevles
In the Servoy wiki there are some notes on installing Servoy 7 on linux:

https://wiki.servoy.com/display/Serv7/S ... quirements

It also lists the selectedlnf setting.

Rob

Re: SERVOY CRASHES ON UBUNTU

PostPosted: Fri May 11, 2018 10:05 am
by aurobindo.parida
ROCLASI wrote:So what is your memory setting now with this LnF change?



After fixing the main issue, I reduced the memory to 512mb, just to make sure. And it works fine.

Re: SERVOY CRASHES ON UBUNTU

PostPosted: Fri May 11, 2018 10:08 am
by aurobindo.parida
rgansevles wrote:In the Servoy wiki there are some notes on installing Servoy 7 on linux:

https://wiki.servoy.com/display/Serv7/S ... quirements

It also lists the selectedlnf setting.

Rob



Now I see this. My bad :(