friction2d / friction

Friction Graphics
https://friction.graphics
GNU General Public License v3.0
233 stars 12 forks source link

v0.9.4: Failed to make native interface/intrface. #98

Closed WaldemarLehner closed 10 months ago

WaldemarLehner commented 10 months ago

When starting up, I immediately get

0)  70  :  gputaskexecutor.cpp  :  initializeContext()
  Failed to make native interface.

as a fatal error. The UI stays open. When I try to create a new project from the UI I get a

0)  103  :  glwindow.cpp  :  initialize()
  Failed to make native intrface.

After clicking "ok" on the error log the window closes.

You can find a Recording at the bottom. Also… in case it helps, here is the entire Console Output from Friction:

➜  ~ friction
Friction 0.9.4 - https://friction.graphics
---
Setup Default QSurfaceFormat
Hardware:
    CPU Threads: 12
         Memory: 32019MB
            GPU: AMD

Generated Alpha Mesh
Loaded settings
QIODevice::read (QFile, "/home/waldi/.config/friction/icons/24/ver"): device not open
Entered initializeGpu
OffscreenQGL33c initialized
Make OffscreenQGL33c current
iniPlainVShaderVBO
iniPlainVShaderVAO
iniTexturedVShaderVBO
iniTexturedVShaderVAO
iniColorPrograms
Done OffscreenQGL33c current
Entered GpuExecController initialize
GpuTaskExecutor initialized
Shader effects initialized
Entered GpuTaskExecutor::initializeContext
Audio initialized
Render handler initialized
0)  70  :  gputaskexecutor.cpp  :  initializeContext()
  Failed to make native interface.
0)  103  :  glwindow.cpp  :  initialize()
  Failed to make native intrface.
terminate called after throwing an instance of 'std::_Nested_exception<std::runtime_error>'
  what():  103  :  glwindow.cpp  :  initialize()
  Failed to make native intrface.
[1]    57119 IOT instruction (core dumped)  friction

Here are my system specs:

OS: Arch Linux x86_64 
Host: MS-7C02 1.0 
Kernel: 6.6.1-arch1-1 
Uptime: 7 hours, 31 mins 
Packages: 1047 (pacman), 6 (flatpak) 
Shell: zsh 5.9 
Resolution: 1920x1080 
DE: Plasma 5.27.9 
WM: kwin 
Theme: [Plasma], Breeze [GTK2/3] 
Icons: [Plasma], breeze-dark [GTK2/3] 
Terminal: yakuake 
CPU: AMD Ryzen 5 3600X (12) @ 3.800GHz 
GPU: AMD ATI Radeon RX 7700 XT / 7800 XT 
Memory: 11219MiB / 32019MiB 

I installed friction using the provided Arch-Package using sudo pacman -U friction-0.9.4-1-x86_64.pkg.tar.zst

https://github.com/friction2d/friction/assets/27686785/0c9edf5d-df47-467e-a498-a46aaad543cf

rodlie commented 10 months ago

Wayland is not supported. If Friction is built against a Qt version that supports Wayland and you are running Wayland then you must force XCB.

Example: QT_QPA_PLATFORM=xcb friction

Why? libraries Friction depend on uses GLX.

WaldemarLehner commented 10 months ago

Running with QT_QPA_PLATFORM=xcb env var works for me. Thank you! :)