Open etam opened 3 years ago
Hi @etam and thanks for the detailed report! And wow, haven't seen that sort of error before, that's interesting. It really just goes from activating modules to that oddly formatted error - I figure that's coming from the OS somehow? X window system or so?
:35:32.471 [main] INFO o.t.e.m.loadProcesses.RegisterMods - Activating module: CoreWorlds:1.2.1
17:35:32.471 [main] INFO o.t.e.m.loadProcesses.RegisterMods - Activating module: CoreSampleGameplay:4.1.0
X Error of failed request: BadAccess (attempt to access private resource denied)
Major opcode of failed request: 2 (X_ChangeWindowAttributes)
Serial number of failed request: 77
Current serial number in output stream: 78
AL lib: (EE) alc_cleanup: 1 device not closed
(pretty sure the AL thing is just from an unclean shutdown)
@Cervator This error - X system error. Output from X too. I saw errors like this, while migrating lwjgl. I think all those errors gone.
@etam Which WM/DE are you using?(gnome/kde/etc) Are you use Wayland with XWayland? Are you have hybrid graphics?(can you check game with discrete gpu?)
For experiment: run game on pure X. (Without your WM/DE)
I use i3wm, no wayland, no hybrid graphics.
I tried different DE and it works. So it seems it's caused by conflict with i3wm.
I use i3wm, no wayland, no hybrid graphics.
I tried different DE and it works. So it seems it's caused by conflict with i3wm.
Yeah. You right. Seems, i saw this error on i3. i3 is tiling window manager. Seem it tried to set window property in invalid time. You can setup your i3 to starts terasology in floating mode. (Or fullscreen via configs should helps.
Will this be fixed?
Will this be fixed?
@DarkWeird or @pollend may be able to comment on the current state regarding this issue.
Generally speaking, we're consistently trying to fix issues and improve Terasology (which unfortunately can result in new issues :sweat_smile:)
The same problem. Also i3. I have never encountered such a problem. Once there was a game that worked better if I specified the mode in the window, and not in full screen. But there were no crashes. I tried changing modes and games and wm, nothing helps
X Error of failed request: BadAccess (attempt to access private resource denied)
Major opcode of failed request: 2 (X_ChangeWindowAttributes)
Serial number of failed request: 70
Current serial number in output stream: 71
AL lib: (EE) alc_cleanup: 1 device not closed
Perhaps the logs from i3 will help you:
Got the same error on Artix Linux with DWM running in "Floating" mode. :
Major opcode of failed request: 2 (X_ChangeWindowAttributes) Serial number of failed request: 72 Current serial number in output stream: 73 AL lib: (EE) alc_cleanup: 1 device not closed
I'm getting the same error with bspwm.
For me the error happened here with .getScaledInstance()
.
https://github.com/MovingBlocks/Terasology/blob/7dbe8724bf9a52b99ea2fbbf0a107b99a421e23b/engine/src/main/java/org/terasology/engine/world/block/tiles/WorldAtlasImpl.java#L350
As this is a Java AWT method I looked through the OpenJDK sources and it seems to happen somewhere here.
I had other problems with AWT, tiling window manager (i3wm and bspwm) and X11 previously in other projects... I guess they do not always play nicely together.
Anyway, setting AWT into headless mode with -Djava.awt.headless=true
did the trick. But I'm not sure if this has any other side effects on other parts of the game.
@ltoenning are you able to check this running from source or a dev snapshot build?
@keturn I tried this by running from source. I haven't spotted any error while playing for a couple of minutes.
I can confirm this error still happens on dwm.
What you were trying to do
Play the game.
What actually happened
After clicking "Start Playing", the game is loading and at "Registering Blocks..." it crashes.
I tried changing language from my default Polish to English. I tried "Josharias Survival" and "Core Gameplay". I tried replacing
natives/linux/linux/x64/org/lwjgl/glfw/libglfw.so
with one provided by my distribution. Reproducible: 100%Log details and game version
Terasology: v4.1.0
Terasology-init.log: log.zip Output printed to console: output.zip
Computer details
OS: Linux openSUSE Tumbleweed (rolling release) Xorg: 1.20.10 Mesa: 20.2.4 Kernel: 5.9.12 OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 520 (SKL GT2) OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.2.4 OpenGL core profile shading language version string: 4.60 OpenGL version string: 3.0 Mesa 20.2.4 OpenGL shading language version string: 1.30 Java: openjdk 15.0.1 and 1.8.0_275 (both fail the same)