Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not open collection/game objects with visual components in Editor on Ubuntu 20.04.3 LTS #6358

Closed
paweljarosz opened this issue Jan 29, 2022 · 4 comments
Labels
bug Something is not working as expected linux Issue related to the Linux platform

Comments

@paweljarosz
Copy link
Sponsor Contributor

Expected behaviour

Openning collections correctly.

Actual behaviour

When opening collection (with GUI components) the error occurs and nothing is opened/visible in the Editor

Steps to reproduce

On Ubuntu 20.04.3 LTS open Defold, and open collection with some kind of visual representation (GUI, sprites, tilemaps).
Restarting Defold does not resolve the issues. It happens in any project. Scripts are opening normally. Only objects with visual components.


Build time2021-10-18T08:40:15.071173
Defold channeleditor-alpha
Defold editor sha6bfeea3
Defold engine sha6bfeea3
Defold version1.2.188
Error19665a8ff3ca4baca47b97ec5cda9c09
GPUMesa Intel(R) UHD Graphics (CML GT2)
GPU DriverOpenGL ES-CM 1.1 Mesa 21.0.3
Java version11.0.1+13
OS archamd64
OS nameLinux
OS version5.11.0-46-generic
@JCash
Copy link
Contributor

JCash commented Jan 29, 2022

We should really print the actual error in the error message...

@paweljarosz
Copy link
Sponsor Contributor Author

paweljarosz commented Jan 29, 2022

This is displayed in the editor:

java.lang.ClassCastException: class jogamp.opengl.es1.GLES1Impl cannot be cast to class com.jogamp.opengl.GL2ES2 (jogamp.opengl.es1.GLES1Impl and com.jogamp.opengl.GL2ES2 are in unnamed module of loader 'app')

Some other notices:

When I open any coll/go with or visual component itself the error appears, and then when I open another one, nothing pops up. Unless I open something textual - like script, and then I open any visual editor again, the error pops up again, once.

Sometimes other error appears, I noticed it happens only for GUI, reported in the ticket: #6359
This is displayed then:

java.lang.ClassCastException: Unknown

@AGulev
Copy link
Contributor

AGulev commented Jan 29, 2022

@paweljarosz please take a look this topic #5780

@britzl
Copy link
Contributor

britzl commented Jan 29, 2022

Solved by setting MESA_GL_VERSION_OVERRIDE=2.1

https://forum.defold.com/t/problem-with-displaying-visual-components-on-ubuntu-20-04/70234/2

@britzl britzl closed this as completed Jan 29, 2022
@britzl britzl added bug Something is not working as expected linux Issue related to the Linux platform labels Jan 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working as expected linux Issue related to the Linux platform
Projects
None yet
Development

No branches or pull requests

4 participants