Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPI4 OpenXRay16 PANIC: unprotected error in call to Lua API (bad light userdata pointer) #697

Closed
gnu9d opened this issue Dec 11, 2020 · 3 comments
Labels
ARM Bug The issue in the run-time. External (3rd party) This issue is related to external component used by our project. Linux Lua

Comments

@gnu9d
Copy link

gnu9d commented Dec 11, 2020

Игра не запускается.
OS: archlinuxarm aarch64
Лог:

! Couldn't create surface from image: Couldn't open logo.bmp
OpenXRay Rx86 build 7978, Dec 10 2020
Custom build from commit[690dba93e158be5c8df2ed4d5e50e61b09974fa3] branch[xd_dev]

 command line -fsltx /home/user/oxr/fsgame.ltx 

* CPU features: RDTSC
* CPU cores/threads: 4/4
* CPU current freq: 1500 MHz

Initializing File System...
$fs_root$ = /home/user/oxr
using fs-ltx /home/user/oxr/fsgame.ltx
FS: 39039 files cached 27 archives, 7Kb memory used.
Init FileSystem 0.491611 sec

Вывод в терминал при запуске xr_3da -fsltx /home/user/oxr/fsgame.ltx:
bin/xr_3da: error while loading shared libraries: xrEngine.so: cannot open shared object file: No such file or directory

Вывод в терминал при запуске xr_3da.sh -fsltx /home/user/oxr/fsgame.ltx:

! Couldn't create surface from image: Couldn't open logo.bmp
OpenXRay Rx86 build 7978, Dec 10 2020
Custom build from commit[690dba93e158be5c8df2ed4d5e50e61b09974fa3] branch[xd_dev]
 
command line -fsltx /home/user/oxr/fsgame.ltx 

* CPU features: RDTSC
* CPU cores/threads: 4/4
* CPU current freq: 1500 MHz

Initializing File System...
$fs_root$ = /home/user/oxr
using fs-ltx /home/user/oxr/fsgame.ltx
FS: 39042 files cached 27 archives, 7Kb memory used.
Init FileSystem 0.476500 sec
-----loading \home\user\oxr\gamedata\configs\system.ltx
-----loading \home\user\oxr\gamedata\configs\system.ltx
Starting INPUT device...
No joysticks available
Loading module: xrRender_GL
Available render modes[1]:
renderer_rgl
Executing config-script "user.ltx"...
! Cannot open script file [user.ltx]
Selected renderer: renderer_rgl
Loading module: xrGame
Initializing Engine...
Executing config-script "\home\user\oxr\gamedata\configs\default_controls.ltx"...
! Can't find a key name for kPOWER
! Can't find a key name for kF13
! Can't find a key name for kF14
! Can't find a key name for kF15
! Can't find a key name for kF16
! Can't find a key name for kF17
! Can't find a key name for kF18
! Can't find a key name for kF19
! Can't find a key name for kF20
! Can't find a key name for kMENU
! Can't find a key name for kCUT
! Can't find a key name for kCOPY
! Can't find a key name for kPASTE
! Can't find a key name for kMUTE
! Can't find a key name for kVOLUMEUP
! Can't find a key name for kVOLUMEDOWN
! Can't find a key name for kINTERNATIONAL1
! Can't find a key name for kINTERNATIONAL2
! Can't find a key name for kYEN
! Can't find a key name for kINTERNATIONAL4
! Can't find a key name for kINTERNATIONAL5
! Can't find a key name for kINTERNATIONAL6
! Can't find a key name for kINTERNATIONAL7
! Can't find a key name for kINTERNATIONAL8
! Can't find a key name for kINTERNATIONAL9
! Can't find a key name for kHANGUL
! Can't find a key name for kHANJA
! Can't find a key name for kKATAKANA
! Can't find a key name for kHIRAGANA
! Can't find a key name for kZENHANKAKU
! Can't find a key name for kLANG6
! Can't find a key name for kLANG7
! Can't find a key name for kLANG8
! Can't find a key name for kLANG9
! Can't find a key name for kAUDIONEXT
! Can't find a key name for kAUDIOPREV
! Can't find a key name for kAUDIOSTOP
! Can't find a key name for kAUDIOPLAY
! Can't find a key name for kMEDIASELECT
! Can't find a key name for kWWW
! Can't find a key name for kMAIL
! Can't find a key name for kCALCULATOR
! Can't find a key name for kCOMPUTER
! Can't find a key name for kNUMPAD_AC_SEARCH
! Can't find a key name for kNUMPAD_AC_HOME
! Can't find a key name for kNUMPAD_AC_BACK
! Can't find a key name for kNUMPAD_AC_FORWARD
! Can't find a key name for kNUMPAD_AC_REFRESH
! Can't find a key name for kNUMPAD_AC_BOOKMARKS
! Can't find a key name for kBRIGHTNESSDOWN
! Can't find a key name for kBRIGHTNESSUP
! Can't find a key name for kDISPLAYSWITCH
! Can't find a key name for kKBDILLUMTOGGLE
! Can't find a key name for kKBDILLUMDOWN
! Can't find a key name for kKBDILLUMUP
! Can't find a key name for kEJECT
! Can't find a key name for kSLEEP
! Can't find a key name for kAPP1
! Can't find a key name for kAPP2
[\home\user\oxr\gamedata\configs\default_controls.ltx] successfully loaded.
Executing config-script "user.ltx"...
! Cannot open script file [user.ltx]
SOUND: OpenAL: enumerate devices...
SOUND: OpenAL: EnumerationExtension Present
devices OpenAL Soft
SOUND: OpenAL: system  default SndDevice name is OpenAL Soft
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)
SOUND: OpenAL: All available devices:
1. OpenAL Soft, Spec Version 1.1 (default) eax[0] efx[yes] xram[no]
SOUND: Selected device is OpenAL Soft
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)
* sound: EAX 2.0 extension: absent
* sound: EAX 2.0 deferred: absent
* sound : cache: 65537 kb, 4856 lines, 13820 bpl
Starting RENDER device...
~ Invalid syntax in call to 'vid_refresh'
~ Valid arguments: change screen refresh rate
* GPU vendor: [Mesa/X.org] device: [llvmpipe (LLVM 11.0.0, 128 bits)]
* GPU OpenGL version: 4.5 (Core Profile) Mesa 20.2.3
* GPU OpenGL shading language version: 4.50
* GPU OpenGL VTF units: [32] CTI units: [192]
* DVB created: 4096K
* DIB created: 512K
PANIC: unprotected error in call to Lua API (bad light userdata pointer)

При запуске других файлов (xrEngine.so xrCore.so ....) выдаёт
Недопустимая инструкция (стек памяти сброшен на диск)

Использование другой версии luatjit не помогает.

@gnu9d gnu9d added the Bug The issue in the run-time. label Dec 11, 2020
@Xottab-DUTY
Copy link
Member

ARM сейчас не поддерживается.
Мы относительно недавно смогли скомпилить движок, но его запустить ещё надо..

@Xottab-DUTY Xottab-DUTY added External (3rd party) This issue is related to external component used by our project. Lua labels Jan 12, 2021
@Xottab-DUTY
Copy link
Member

@gnu9d, можешь проверить движок ещё раз?

@Xottab-DUTY
Copy link
Member

Проблемы с LuaJIT после обновления больше быть не должно, люди уже успешно запускали игру (скриншот есть в #643) :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARM Bug The issue in the run-time. External (3rd party) This issue is related to external component used by our project. Linux Lua
Projects
None yet
Development

No branches or pull requests

2 participants