XProger / OpenLara

Classic Tomb Raider open-source engine
http://xproger.info/projects/OpenLara/
BSD 2-Clause "Simplified" License
4.69k stars 359 forks source link

error loading file "/home/s98259/.openlara/047A427E.xsh" #470

Open Helenah2020 opened 1 year ago

Helenah2020 commented 1 year ago

Description

Failure to load what I suspect is a shader file. error loading file "/home/s98259/.openlara/047A427E.xsh"

Architecture and Platform

Operating System: GNU/Linux CPU Architecture: ARMv8 CPU Model: Rockchip RK3399

Things Tried

Filesystem Trees

OpenLara/bin
├── DATA
│   ├── CRED1.PCX
│   ├── CRED2.PCX
│   ├── CRED3.PCX
│   ├── CUT1.PHD
│   ├── CUT2.PHD
│   ├── CUT3.PHD
│   ├── CUT4.PHD
│   ├── EIDOSPC.PCX
│   ├── END.PCX
│   ├── GYM.PHD
│   ├── INSTALL.PCX
│   ├── LEVEL10A.PHD
│   ├── LEVEL10B.PHD
│   ├── LEVEL10C.PHD
│   ├── LEVEL1.PHD
│   ├── LEVEL2.PHD
│   ├── LEVEL3A.PHD
│   ├── LEVEL3B.PHD
│   ├── LEVEL4.PHD
│   ├── LEVEL5.PHD
│   ├── LEVEL6.PHD
│   ├── LEVEL7A.PHD
│   ├── LEVEL7B.PHD
│   ├── LEVEL8A.PHD
│   ├── LEVEL8B.PHD
│   ├── LEVEL8C.PHD
│   ├── TITLEH.PCX
│   └── TITLE.PHD
├── OpenLara
└── openvr_api.dll
.openlara
└── perlin3_128.raw

Simple Log

scan 32 files
init gamepads:
OpenLara (Aug 16 2023)
Vendor   : Mesa
Renderer : Mali-T860 (Panfrost)
Version  : 3.1 Mesa 23.0.4
cache    : /home/s98259/.openlara/
supports :
  variyngs count : 16
  binary shaders : true
  vertex arrays  : true
  depth texture  : true
  shadow sampler : true
  discard frame  : false
  NPOT textures  : true
  3D   textures  : true
  RG   textures  : true
  border color   : true
  max level      : false
  anisotropic    : 0
  float textures : float = full, half = full

shader: cache warm-up...
error loading file "/home/s98259/.openlara/047A427E.xsh"
zsh: segmentation fault (core dumped)  ./OpenLara

Compile Log

clang-15: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
clang-15: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
In file included from main.cpp:15:
In file included from ../../game.h:4:
In file included from ../../core.h:795:
../../gapi/gl.h:1319:35: warning: comparison of function 'glTexImage3D' not equal to a null pointer is always true [-Wtautological-pointer-compare]
            support.tex3D       = glTexImage3D != NULL;
                                  ^~~~~~~~~~~~    ~~~~
../../gapi/gl.h:1319:35: note: prefix with the address-of operator to silence this warning
            support.tex3D       = glTexImage3D != NULL;

Debug Log

debug.log

Helenah2020 commented 1 year ago

Someone else has tested this and had the same issue on an X86 system.

XProger commented 1 year ago

check the access rights for /home/s98259/.openlara/047A427E.xsh the game can't fopen it for some reason

Helenah2020 commented 1 year ago

check the access rights for /home/s98259/.openlara/047A427E.xsh the game can't fopen it for some reason

Thing is, OpenLara created the .openlara directory, and created a .raw file but no other files as seen in the directory tree I posted in my issue so it clearly can create files in there, I then removed the directory upon this error, to which OpenLara created it again and reported the same error so therefore I wouldn't have thought there was a permissions problem unless OpenLara is creating the directory then setting the permissions on it. As per your request however, I have just checked the directory permissions and all seems good

stat -c "%A %a %U %G" .openlara
drwxr-xr-x 755 s98259 s98259
ws1968 commented 1 year ago

I also have the same problem. Running Manjaro Linux on a Odroid N2plus (aarch64). The previous release works oke, but I don't have the source anymore so can't see what has changed.

Helenah2020 commented 1 year ago

I also have the same problem. Running Manjaro Linux on a Odroid N2plus (aarch64). The previous release works oke, but I don't have the source anymore so can't see what has changed.

It's not a platform or distribution specific issue, a friend of mine has attempted to test OpenLara after having read my issue, he uses Fedora Linux on an X86_64 system and had the same issue.

RICCIARDI-Adrien commented 1 year ago

Same problem for me on Debian Testing (trixie) x86_64.

egrain commented 11 months ago

Same on Archlinux, everything fresh, 6.5.7-arch1-1 kernel. (x86_64)

rafaegont1 commented 9 months ago

The last release for nix works for me, but when I try to build from source it gives me this same error