Defold crashes on Ubuntu

I have been using legacy version of Defold on Ubuntu 17.10 which works fine but version 1.2.141 crashes on opening any project.

I have tested opening locally created projects on Ubuntu 64-bit version.

Any links to solve this?

Here is the terminal output after crash.

@anon82505667 Can you try this? https://www.defold.com/faq/#_linux_issues

Weird thing…

When I tried the solution as stated on https://www.defold.com/faq/#_linux_issues it didn’t work so I asked on forum but now it seems to work. :grinning: :relieved:

It still does not launch properly on double-clicking the Defold launcher.
I have to use

$ export MESA_GL_VERSION_OVERRIDE=3.1
$ ./Defold

every single time. I am not an expert in Linux. Is there a shortcut so that Defold launcher simply works, like it does in Windows?
Thanks

1 Like

Solved the problem by adding

export MESA_GL_VERSION_OVERRIDE=3.1

in bash config file. Now it works fine. :slight_smile:

Thanks @Erik_Angelin

4 Likes

@britzl Though the bash config addition allowed me to launch Defold, the problem is not completely solved. Take a look at Crash while using run with debugger on Ubuntu

According to @Erik_Angelin “the MESA workaround didn’t actually work properly”

Furthermore I discovered that this workaround blocks the Android Studio Emulator from running correctly(another workaround to make emulator work again is needed)