Closed ChugunovRoman closed 1 year ago
my GDB traced of this error:
```
$ gdb xr_3da
GNU gdb (Ubuntu 12.1-3ubuntu2) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
in Ubuntu 22.10 using the last commit 6b59f7a48eefc80d43e22d0a23c00b956e33ec32
Thread 1 "Primary thread" received signal SIGSEGV, Segmentation fault. 0x00007ffff749d2f9 in mi_checked_ptr_segment (msg=0x7ffff74ae4c2 "mi_free", p=0x555555666c10) at ./src/alloc.c:471
another Mimalloc related Issue that segfaults:
now happens in: mi_free
```
$ gdb xr_3da
GNU gdb (Ubuntu 12.1-3ubuntu2) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
@BielBdeLuna this issue fixes by PR https://github.com/OpenXRay/xray-16/pull/1216
this isn't the same issue, it's related, now it fails at mi_free
instead of at mi_checked_ptr_segment
here is an explanation of what the mimalloc: warning: mi_free: pointer might not point to a valid heap region
issue could mean, it's from another unrelated project but they see this error too:
https://github.com/microsoft/mimalloc/issues/565#issuecomment-1082536701
@ChugunovRoman can you test it now? It should be fixed by #863
I assume this should be fixed with https://github.com/OpenXRay/xray-16/pull/863.
Describe the bug On latest dev branch I cannot run CoP. Engine crashes with segmentation fault.
To Reproduce Steps to reproduce the behavior:
Expected behavior The game start successful
Screenshots
log
openxray_ruut.log
``` ! Couldn't create surface from image: Parameter 'src' is invalid OpenXRay Release build 8724, Dec 26 2022 (Linux 64-bit, shared) Custom build from commit[dee5323de20e6815250cee7da3187e6406b5891a] branch[dev] command line -nointro -fsltx /run/media/ruut/99c9b836-a7b8-403c-9ef8-5bfc1e1ec831/games/stalker/CoP/fsgame.ltx * CPU features: RDTSC, MMX, SSE, AVX * CPU threads: 8 Initializing File System... $fs_root$ = /run/media/ruut/99c9b836-a7b8-403c-9ef8-5bfc1e1ec831/games/stalker/CoP using fs-ltx /run/media/ruut/99c9b836-a7b8-403c-9ef8-5bfc1e1ec831/games/stalker/CoP/fsgame.ltx FS: 39682 files cached 28 archives, 20Kb memory used. Init FileSystem 0.398881 sec -----loading \run\media\ruut\99c9b836-a7b8-403c-9ef8-5bfc1e1ec831\games\stalker\CoP\gamedata\configs\system.ltx -----loading \run\media\ruut\99c9b836-a7b8-403c-9ef8-5bfc1e1ec831\games\stalker\CoP\gamedata\configs\system.ltx ! Failed to determine on which monitor the game is launched. ! SDL: Invalid window Starting INPUT device... Loading module: xrRender_GL Available render modes[1]: renderer_rgl Executing config-script "user.ltx"... [\run\media\ruut\99c9b836-a7b8-403c-9ef8-5bfc1e1ec831\games\stalker\CoP\appdata\user.ltx] successfully loaded. Selected renderer: renderer_rgl Loading module: xrGame Initializing Engine... SOUND: OpenAL: enumerate devices... SOUND: OpenAL: EnumerationExtension Present SOUND: OpenAL: system default sound device name is OpenAL Soft SOUND: OpenAL: All available devices: 1. OpenAL Soft, Spec Version 1.1 (default) eax[0] efx[yes] xram[no] Executing config-script "\run\media\ruut\99c9b836-a7b8-403c-9ef8-5bfc1e1ec831\games\stalker\CoP\gamedata\configs\default_controls.ltx"... FATAL ERROR [error] Expression :Desktop (please complete the following information):
Additional context