Can't launch Defold on Linux

Hi! I decided to try Defold but failed to launch it :frowning:

$ ./Defold
INFO:TOOLS: Launcher version eedf9a7f2aa650143bb7169bf7e209cba80ef527
DEBUG:TOOLS: arg 0: ./packages/jre/bin/java
DEBUG:TOOLS: arg 1: -cp
DEBUG:TOOLS: arg 2: ./packages/defold-d5be48ff07d1de1f85f3d6a71378f812e0232cb5.jar
DEBUG:TOOLS: arg 3: -Djna.nosys=true
DEBUG:TOOLS: arg 4: -Ddefold.launcherpath=./Defold
DEBUG:TOOLS: arg 5: -Ddefold.resourcespath=.
DEBUG:TOOLS: arg 6: -Ddefold.version=1.2.139
DEBUG:TOOLS: arg 7: -Ddefold.editor.sha1=d5be48ff07d1de1f85f3d6a71378f812e0232cb5
DEBUG:TOOLS: arg 8: -Ddefold.engine.sha1=eedf9a7f2aa650143bb7169bf7e209cba80ef527
DEBUG:TOOLS: arg 9: -Ddefold.buildtime=2018-10-23T12:10:59.402812
DEBUG:TOOLS: arg 10: -Ddefold.channel=editor-alpha
DEBUG:TOOLS: arg 11: -Djava.ext.dirs=./packages/jre/lib/ext
DEBUG:TOOLS: arg 12: -Djava.net.preferIPv4Stack=true
DEBUG:TOOLS: arg 13: -Dsun.net.client.defaultConnectTimeout=30000
DEBUG:TOOLS: arg 14: -Dsun.net.client.defaultReadTimeout=30000
DEBUG:TOOLS: arg 15: -Djogl.texture.notexrect=true
DEBUG:TOOLS: arg 16: -Dglass.accessible.force=false
DEBUG:TOOLS: arg 17: com.defold.editor.Start
DEBUG:TOOLS: arg 18: (null)
FATAL:TOOLS: Failed to launch application:

There is not a lot of information, can’t debug myself. Can anybody help with it?

Hmm, and no error message? Which Linux distribution are you using?

It’s on my personal laptop. I use OpenSuse Leap 15 there.

Have tried it now on my working station with Ubuntu 18.04. Tricks from FAQ linux issues section helped to run it and build example project. But on OpenSuse I still can’t see even first screen :frowning:

There should be logs somewhere. @Erik_Angelin and @mats.gisselson?

1 Like

Hi @krabolov!

The launcher does an execv on “arg 0” from the debug information, and passes arg0…18 as argv.
What happens if you do roughly the same thing from the command line? Something like:

$ ./packages/jre/bin/java -cp ./packages/defold-d5be48ff07d1de1f85f3d6a71378f812e0232cb5.jar -Djna.nosys=true -Ddefold.launcherpath=./Defold -Ddefold.resourcespath=. -Ddefold.version=1.2.139 -Ddefold.editor.sha1=d5be48ff07d1de1f85f3d6a71378f812e0232cb5 -Ddefold.engine.sha1=eedf9a7f2aa650143bb7169bf7e209cba80ef527 -Ddefold.buildtime=2018-10-23T12:10:59.402812 -Ddefold.channel=editor-alpha -Djava.ext.dirs=./packages/jre/lib/ext -Djava.net.preferIPv4Stack=true -Dsun.net.client.defaultConnectTimeout=30000 -Dsun.net.client.defaultReadTimeout=30000 -Djogl.texture.notexrect=true -Dglass.accessible.force=false com.defold.editor.Start
2 Likes

Hi @Erik_Angelin!
Thank you, with your help I have found the reason of my issue.
Originally I unpacked Defold and there was no any executable files available (with exec permissions). So I have mark it as executable file manually.

$ chmod +x Defold

But all files in packages/jre/bin also was not marked as executable. So your example won’t run from the start.

Everything become ok and launched without any issues after I have made all files in bin folder as executable.

$ chmod +x packages/jre/bin/*

And I can launch editor just via ./Defold command.

I don’t know exactly what was the reason, in Ubuntu archive was unpacked and all files has proper rights for execution. The case here can be linked somehow to the fact I have xfs filesystem at home laptop, where this issue reproduced, and ext4 at working station.

Thank you for help! Now I’m ready to learn how to work with Defold.

P.S. On ubuntu I has lot’s of issues with editor and have big issues with *.collection file, but in OpenSuse everything works great. Usually situation is reversed :smiley:

P.P.S. It would be great to add option for scaling editor UI for hidpi displays, but most probably its a problem of Linux distros and system UI scaling, not yours.

3 Likes

As another owner of Linux laptop with hidpi screen I’d like to chime in and say that there is an issue regarding hidpi support, and it may be possible to add it now since new LTS release of jdk is out there.

2 Likes