OpenXRay / OpenXRay/xray-16

Path to fsgame.ltx corrupted

Open
#570 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
C++
Stars
3.6k
Forks
536
Avg merge
6d 1h
Merged PRs (30d)
3

Description

This output:
command line -fsltx /mnt/sda2/Programs/Steam/steamapps/common/Stalker Call of Pripyat/fsgame.ltx

and then this in same time:
using fs-ltx /mnt/sda2/Programs/Steam/steamapps/common/Stalker
Shows that path to fsgame.ltx is corrupted at runtime - it was split by white space.

Console output $:./run.sh PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/sdc1/stalkercop1/usr/games LD_LIBRARY_PATH=:/mnt/sdc1/stalkercop1/usr/lib:/mnt/sdc1/stalkercop1/lib/mimalloc-1.6 ! Couldn't create surface from image: Couldn't open logo.bmp OpenXRay Rx64 build 7729, Apr 5 2020 Custom build from commit[34cd539079a836703401bca64bab435717c9b149] branch[xd_dev]

command line -fsltx /mnt/sda2/Programs/Steam/steamapps/common/Stalker Call of Pripyat/fsgame.ltx

  • CPU features: RDTSC, MMX, SSE, SSE2, SSE3, SSE4.1
  • CPU cores/threads: 4/4
  • CPU current freq: 3780 MHz

Initializing File System...
using fs-ltx /mnt/sda2/Programs/Steam/steamapps/common/Stalker

FATAL ERROR

[error] Expression : file_size == (u32)r_bytes
[error] Function : FileDownload
[error] File : /mnt/sdc1/openxray/xray-16/src/xrCore/FS.cpp
[error] Line : 146
[error] Description : can't read from file :
[error] Arguments : \mnt\sda2\Programs\Steam\steamapps\

stack trace:

xrDebug::GatherInfo(char*, unsigned long, ErrorLocation const&, char const*, char const*, char const*, char const*)
xrDebug::Fail(bool&, ErrorLocation const&, char const*, char const*, char const*, char const*)
/mnt/sdc1/stalkercop1/usr/lib/xrCore.so(+0x2a822) [0x7f908d86e822]
CLocatorAPI::setup_fs_ltx(char const*)
CLocatorAPI::_initialize(unsigned int, char const*, char const*)
xrCore::Initialize(char const*, char const*, LogCallback, bool, char const*, bool)
xr_3da(+0x177f) [0x5624d27f977f]
xr_3da(+0x139f) [0x5624d27f939f]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f908cb4ab97]
xr_3da(_start+0x2a) [0x5624d27f95aa]
Trace/breakpoint trap (core dumped)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce with ./run.sh and the shown -fsltx command using a path containing spaces. Start in src/xrCore/FS.cpp around line 146 and CLocatorAPI::setup_fs_ltx; inspect how the argument reaches file loading. Done means the complete path remains intact and fsgame.ltx can be read without the reported failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.