Issue with Defold [Linux/Manjaro] (SOLVED)

Could it be that the reinstallation triggered a driver update as part of the installation process?

Don’t think so, I installed 2 diferent distros, and same issue.

Hey,
I have the same issure on ubuntu 20, and sometimes this message appears too;
java.lang.ClassCastException: Unknown. I can build project, but I can’t see scene before.
My OpenGL version is 4.1 and Mesa version is 20.0.4, if it’s important. (export mesa didn’t work)
Also I tried working on Defold in Vbox (virtual machine) on Windows 7, Def. behave itself very strangely
I can see scene, but turned upside down specularly, and it reacting to cursor like if cursor is in the bottom while it is in the top and vice versa, and I can’t build runtime, there is error in console:ERROR.GRAPHICS: dmgraphics:: OpenGLSetTexture(2363) Assertion failed: 0, file ..\scr\opengl\graphics_opengl.cpp. line 2363
Thank you.

Hi @xxxKfkxxx!
Did you get any other output when the dmengine crashed?

As for the Ubuntu 20 + OpenGL support, can you provide your editor log?

In the end of first line there was some unreadable symbols like it was emoji (Defold in vbox)

Defold’s log for Linux or Defold’s log for virtual windows ?

P.S. Thank you for such fast answer.

For the dmengine error, I would have expected a line containing “gl error”. It should have printed the error number and the human readable repesentation of the error.

As for the log, I meant the Defold Editor log, for for being too vague :slight_smile:

I decided to attach both logs
Here is Linux’s log
Linux.txt (907.6 KB)
Here is virtual Windows’s log
Windows.txt (219.9 KB)
i hope there is what did you want

Indeed your editor log from Linux, has the same issue of not selecting the proper version of OpenGL.
Did you try this?

export MESA_GL_VERSION_OVERRIDE=3.1
$ ./Defold

Yes, I tried again 1 minute ago. Nothing changed.

I resently started using Linux and I don’t know if it should write smth back if this command was done correctly.

Also I have nVidia GeForce MX250 videocard inside my laptop. Maybe that couse issue?

For some reason, it seems it picks an OpenGL 1 context when starting Defold. I’d start looking there. Do you have any issues with other apps?

Hello together…I just wanted to report…i have the exact same issue with Ubuntu 20.04.

export MESA_GL_VERSION_OVERRIDE=3.1 diden’t help.

However, i have two Computers…both with Ubuntu 20.04. One has the propritary Nvidia-Driver with a GTX1650…there Defold works without problems…an the other one is a Notebook with Intel integrated graphics (i5-6200 CPU)…there I have the same Problem as xxxKfkxxx.

1 Like

Why 3.1 specifically? Could it be that the driver doesn’t support 3.1? What if you say 2.1 instead?

1 Like

Using 2.1 seems to have solved it for this user: https://github.com/defold/defold/issues/4985#issuecomment-652798556

4 Likes

Yeees, 2.1 works. U are genius. :smile:

Woho!

1 Like

Thanks a lot britzl…I can confirm…2.1 works with Ubuntu 20.04…just out of curiousity…I used Defold with Ubuntu 18.04 in the past on the same Notebook…and it worked with export override 3.1…with ubuntu 20.04 it only works with export override 2.1…does this mean that for some reason the newer operating system (ubuntu 20.04) doesnt has the necessary driver support for the never opengl-version anymore? strange…but anyway…your solution works…thanks a lot britzl and have a nice weekend :slight_smile:

2 Likes

No idea! I’m happy to hear that it worked though!

1 Like

Can confirm, 2.1 works for me as well.
Thanks a lot! Just in time for GMTK game jam :smiley:

2 Likes

Thanks britzl for testing and discovering that this version worked. Now this don’t have more errors :slight_smile:

Confirmed that using Mesa 2.1 works on Manjaro Linux GNOME 20.03 as well.

1 Like