SERVOY CRASHES ON UBUNTU

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

SERVOY CRASHES ON UBUNTU

Postby aurobindo.parida » Thu May 10, 2018 10:40 pm

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.
aurobindo.parida
 
Posts: 15
Joined: Tue Apr 25, 2017 2:42 pm

Re: SERVOY CRASHES ON UBUNTU

Postby ROCLASI » Fri May 11, 2018 12:08 am

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 446 times


Did you perhaps installed the headless version of Java?
Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5282
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: SERVOY CRASHES ON UBUNTU

Postby ROCLASI » Fri May 11, 2018 12:33 am

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 444 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.
Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5282
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: SERVOY CRASHES ON UBUNTU

Postby Gabi Boros » Fri May 11, 2018 7:36 am

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)
Gabi Boros
Servoy
Gabi Boros
 
Posts: 334
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania

Re: SERVOY CRASHES ON UBUNTU

Postby aurobindo.parida » Fri May 11, 2018 9:29 am

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.

:)
aurobindo.parida
 
Posts: 15
Joined: Tue Apr 25, 2017 2:42 pm

Re: SERVOY CRASHES ON UBUNTU

Postby ROCLASI » Fri May 11, 2018 9:53 am

So what is your memory setting now with this LnF change?
Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5282
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: SERVOY CRASHES ON UBUNTU

Postby rgansevles » Fri May 11, 2018 10:03 am

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
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1867
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: SERVOY CRASHES ON UBUNTU

Postby aurobindo.parida » Fri May 11, 2018 10:05 am

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.
aurobindo.parida
 
Posts: 15
Joined: Tue Apr 25, 2017 2:42 pm

Re: SERVOY CRASHES ON UBUNTU

Postby aurobindo.parida » Fri May 11, 2018 10:08 am

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 :(
aurobindo.parida
 
Posts: 15
Joined: Tue Apr 25, 2017 2:42 pm


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 7 guests

cron