xtreme8000 / CavEX

Project to recreate your favourite block game for the Wii (Beta 1.7.3)
GNU General Public License v3.0
274 stars 22 forks source link

Crash on startup on opensuse when building from source #39

Closed Un1q32 closed 8 months ago

Un1q32 commented 8 months ago
Could not load extended OpenGL functions!
Vendor: AMD
Renderer: AMD Radeon Graphics (radeonsi, renoir, LLVM 17.0.6, DRM 3.57, 6.7.7-1-default)
Version: 4.6 (Compatibility Profile) Mesa 23.3.6
cavex: /home/uniq/Downloads/CavEX/source/platform/pc/gfx.c:140: gfx_setup: Assertion `vertex' failed.
zsh: IOT instruction (core dumped)  ./cavex

Same thing happens if I force it to use my dGPU

Could not load extended OpenGL functions!
Vendor: NVIDIA Corporation
Renderer: NVIDIA GeForce GTX 1650/PCIe/SSE2
Version: 4.6.0 NVIDIA 550.54.14
cavex: /home/uniq/Downloads/CavEX/source/platform/pc/gfx.c:140: gfx_setup: Assertion `vertex' failed.
zsh: IOT instruction (core dumped)  __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia ./cavex
xtreme8000 commented 8 months ago

see #4

Un1q32 commented 8 months ago
Could not load extended OpenGL functions!
Vendor: AMD
Renderer: AMD Radeon Graphics (radeonsi, renoir, LLVM 17.0.6, DRM 3.57, 6.7.7-1-default)
Version: 4.6 (Compatibility Profile) Mesa 23.3.6
cavex: /home/uniq/Downloads/CavEX/source/graphics/texture_atlas.c:82: tex_atlas_compute: Assertion `image && width >= 256 && width == height' failed.
zsh: IOT instruction (core dumped)  ./cavex

new crash

Un1q32 commented 8 months ago

The solution is the whole assets folder needs to be in the same directory as the executable, this part should really be handled automatically by cmake