View Full Version : New Linux Issue?
Lebeau
07-30-2016, 03:33 AM
NGD, HELP! Today (7/29/2016), I logged into game via STEAM. I had been ingame just a few hours before. STEAM did a brief update to CoR (it has done this twice recently, with no issue). The CoR login screen functioned normally. It reached the character selection screen normally. I chose a character & pressed play. It loaded the loading screen (got at most 5-10% of load) & then immediately crashed to desktop. I tried repeatedly, even rebooted pc, but same result. I have up-to-date Linux 14.04 64-bit OS, Pentium D 2.8 CPU, & Nvidia GT218 GPU. A ticket has been submitted, but is anyone else also having this issue since the STEAM patch? :confused:
_Enio_
07-30-2016, 01:01 PM
The linux rolauncher binary has been updated a few times recently. It shouldnt be related to issues coming from the game binary itself.
Do you have any more info regarding your system and linux distribution?
Lebeau
07-30-2016, 09:33 PM
-Here's the TERMINAL printout at least (from start to crash):
Running Steam on ubuntu 14.04 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1468023329)
Installing breakpad exception handler for appid(steam)/version(1468023329)
Installing breakpad exception handler for appid(steam)/version(1468023329)
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
Installing breakpad exception handler for appid(steam)/version(1468023329)
Installing breakpad exception handler for appid(steam)/version(1468023329)
Installing breakpad exception handler for appid(steam)/version(1468023329)
Installing breakpad exception handler for appid(steam)/version(1468023329)
Installing breakpad exception handler for appid(steam)/version(1468023329)
Installing breakpad exception handler for appid(steam)/version(1468023329)
Created shared memory when not owner SteamController_Shared_mem
Installing breakpad exception handler for appid(steam)/version(1468023329)
Installing breakpad exception handler for appid(steam)/version(1468023329)
Installing breakpad exception handler for appid(steam)/version(1468023329)
[0730/172411:ERROR:main_delegate.cc(779)] Could not load cef_extensions.pak
[0730/172411:ERROR:browser_main_loop.cc(217)] Running without the SUID sandbox! See https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the sandbox on.
Installing breakpad exception handler for appid(steamwebhelper)/version(20160708214346)
Installing breakpad exception handler for appid(steamwebhelper)/version(1468014226)
[0730/172411:ERROR:main_delegate.cc(779)] Could not load cef_extensions.pak
Installing breakpad exception handler for appid(steamwebhelper)/version(20160708214346)
Installing breakpad exception handler for appid(steamwebhelper)/version(1468023329)
Installing breakpad exception handler for appid(steamwebhelper)/version(1468023329)
Generating new string page texture 2: 48x256, total string texture memory is 49.15 KB
Generating new string page texture 3: 256x256, total string texture memory is 311.30 KB
Installing breakpad exception handler for appid(steam)/version(1468023329)
Installing breakpad exception handler for appid(steam)/version(1468023329)
roaming config store loaded successfully - 1028 bytes.
migrating temporary roaming config store
Installing breakpad exception handler for appid(steam)/version(1468023329)
Installing breakpad exception handler for appid(steam)/version(1468023329)
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
Failed to init SteamVR because it isn't installed
ExecCommandLine: ""/home/admn/.local/share/Steam/ubuntu12_32/steam" "steam://rungameid/222520" "
ExecSteamURL: "steam://rungameid/222520"
Installing breakpad exception handler for appid(steam)/version(1468023329)
System startup time: 12.83 seconds
Game update: AppID 222520 "Champions of Regnum", ProcID 2416, IP 0.0.0.0:0
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
(steam:2364): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
CAPIJobRequestUserStats - Server response failed 2
ERROR: ld.so: object '/home/admn/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Generating new string page texture 71: 384x256, total string texture memory is 704.51 KB
Installing breakpad exception handler for appid(steam)/version(1468023329)
ERROR: ld.so: object '/home/admn/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Setting breakpad minidump AppID = 222520
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198100759239 [API loaded no]
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
Running Steam on ubuntu 14.04 64-bit
STEAM_RUNTIME has been set by the user to: /home/admn/.local/share/Steam/ubuntu12_32/steam-runtime
ExecCommandLine: "/home/admn/.local/share/Steam/ubuntu12_32/steam steam://open/driverhelperready"
ExecSteamURL: "steam://open/driverhelperready"
ERROR: ld.so: object '/home/admn/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Setting breakpad minidump AppID = 222520
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198100759239 [API loaded no]
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Audigy2.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,A ES2=0,AES3=2'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Audigy2.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,A ES2=0,AES3=2'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Audigy2.pcm.modem.0:CARD=0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Audigy2.pcm.modem.0:CARD=0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Audigy2.pcm.modem.0:CARD=0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM phoneline
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Audigy2.pcm.modem.0:CARD=0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM phoneline
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
Game removed: AppID 222520 "Champions of Regnum", ProcID 2535
No cached sticky mapping in ActivateActionSet.
-It's all 'Greek' to me, Enio, but what other info do you require, & how do I obtain it?
_Enio_
07-30-2016, 11:01 PM
Only thing i see there is errors about the 32bit steam overlay library, that doesnt have to mean anything though.
I dont play via steam, so i dont know how to debug it probelrly. You could consider trying the non-steam version. Thats easier to debug aswell.
All you need is the 64bit rolauncher, and the needed libraries. And patience since it will download alot of stuff.
In case you want to try it - I bundled those in my dropbox >>here<< (https://www.dropbox.com/s/t6sfy5udirsn9rj/regnum.tar.gz?dl=0).
Just extract this in your homefolder and run the rolauncher binary and it will download the game stuff. Better then the one from the website which is full of outdated resources.
Edit: You might have to make it executable by either using context menu in some file manager or via commandline with chmod +x rolauncher
Lebeau
07-31-2016, 02:12 AM
I will definitely consider the option, but I want to see if NGD/STEAM debugs their product 1st. I know next to nothing about computers or this OS, & I don't know what the current issue is now, but I do know that the native Linux version of CoR crashes even quicker on this dinosaur of a pc than what I have now thru STEAM. I have tried the native CoR version repeatedly thru 3 Linux OS upgrades over a few years to no effect, & each time had to run game thru STEAM in order to play, until now. I might also upgrade to 16.04 Xubuntu LTS & try running it then, but I had wanted to wait until 16.04 is as thoroughly proofed & as stable as 14.04. Thanks for the help, Enio, I'll keep my fingers crossed, & if all else fails, try your advice in a week or so....
-Repeat..."what other info do you require, & how do I obtain it?"
_Enio_
07-31-2016, 02:46 AM
-Repeat..."what other info do you require, & how do I obtain it?"
Well its rather technical. These mostly rely on running the game with some debug tool active, however with steam i am not sure, i did read it executes games in some kind of sandbox, which might make stuff difficult.
You say you crash after you press enter world, so you can get into character select successfully?
If yes, there are 2 tools that can get you info about whats going on right before the crash. strace logs system calls (file open calls and stuff) that can get hints at what "part" of execution the crash occurs, or what files or actions system-wise are involved. gdb is the main linux debugger, which can give insight into what program was executing when the crash occurred, this is rather cryptic however when the binary isnt a special debug version, however still can get some hints)
Now if you can get into character screen, and you can produce a crash by pressing enter, you can use these tools by attaching them to the game process.
So what you need to do after getting to character screen (in windowed mode)
strace
Fire up a console
Find out the Process id (PID) of the game binary ( either with the help of top, or by issuing ps ef | grep -v grep | grep game) <--- if you dont get a result here, stop. Then steam runs stuff in a sandbox where we cant just look in easily.. Then you need to try it with the standalone game version.
Attach strace to the process (strace -o <some_filename> -p <PID>)
Produce the crash
Stop the strace logging in console by issuing Ctrl+C
Upload and share the file (Shouldnt contain private info, but feel free to pm)
gdb
Fire up a console
Find out the Process id (PID) of the game binary ( either with the help of top, or by issuing ps ef | grep -v grep | grep game)
start gdb on commandline (just enter gdb)
In the gdb console that now shows up, enter attach <PID>
Produce the crash
gdb console will say something about the crash (received SIGABORT or SIGSEV or whatever)
enter "backtrace" or "bt"
Copy paste the printed result here
Btw, you can exit the gdb console by issuing quit
That should at least shed some light on where the problem lies. But its a bit technical.
If you have any questions, dont hesitate to ask (here or pm)
Good luck!
Edit: You might have to install these tools from the ubuntu packet manager.
Lebeau
08-01-2016, 02:47 AM
I tried the bundle you suggested. It ran normally for extraction & install. It loaded the RO-login screen when the RO-app was opened. It began a 4.6MB download on that login screen. It finished all of it, then the app immediately crashed to desktop. The RO-launcher won't do anything now, at all. It won't even run in a terminal so we can look at what is going on. The terminal opens, nothing appears, & a fraction of a second later, the terminal crashes to desktop. No luck (except bad). Just feelin' kinda' busted & disgusted...(but thanks for the effort, not your fault).
:facepalm3:
So, I ran the program in terminal via ... :~$ /home/admn/regnum/rolauncher &
& it spit this out:
[1] 3703
... :~$ /home/admn/regnum/rolauncher: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
Yet, the file & directory DO exist afaik.
-As to the other suggestion, I'm pretty sure I'll have to install those tools, as I use a stripped down GUI (XFCE) that has none of these things I'm fairly sure. Will try to follow your directions above & get you more info when my mood improves sufficiently, & I have the time & patience. Then, I'll try obtaining the native-RO info 1st, as you said you were unfamiliar with STEAM, & that it's easier to debug the native version.
Hayir
08-01-2016, 08:24 AM
I tried the bundle you suggested. It ran normally for extraction & install. It loaded the RO-login screen when the RO-app was opened. It began a 4.6MB download on that login screen. It finished all of it, then the app immediately crashed to desktop. The RO-launcher won't do anything now, at all. It won't even run in a terminal so we can look at what is going on. The terminal opens, nothing appears, & a fraction of a second later, the terminal crashes to desktop. No luck (except bad). Just feelin' kinda' busted & disgusted...(but thanks for the effort, not your fault).
:facepalm3:
So, I ran the program in terminal via ... :~$ /home/admn/regnum/rolauncher &
& it spit this out:
[1] 3703
... :~$ /home/admn/regnum/rolauncher: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
Yet, the file & directory DO exist afaik.
-As to the other suggestion, I'm pretty sure I'll have to install those tools, as I use a stripped down GUI (XFCE) that has none of these things I'm fairly sure. Will try to follow your directions above & get you more info when my mood improves sufficiently, & I have the time & patience. Then, I'll try obtaining the native-RO info 1st, as you said you were unfamiliar with STEAM, & that it's easier to debug the native version.
Download the file from Enios dropbox and try
LD_PRELOAD=path/to/file/libjpeg.so.62 ~/regnum/rolauncher
Also replace your rolauncher with the one Adrian posted. https://www.championsofregnum.com/forum/showpost.php?p=1862492&postcount=33
Maybe it helps.
_Enio_
08-01-2016, 10:42 AM
You need to cd into that directory and then run ./rolauncher. Sorry i shouldve mentined that: Binaries are looking in the current directory for libraries first, and then in the default library paths (usually /usr/lib/ and /usr/local/lib/) So in your case (seems you are in ~ = /home/admn) it looked in your home directory and didnt find that lib..
so do a cd /home/admn/regnum && ./rolauncherAnd try again.
The 4Mb update just meant it updated the rolauncher binary itself. To be able to start rolauncher from any path, you could "install" those libraries by copying it in the respective library folders. I personally dont mess with those though, only let packages i installed via some package manager add stuff there (so i can track it).
Edit: You can also do something like this LD_LIBRARY_PATH=/home/admn/regnum /home/admn/regnum/rolauncher this temporarily adds the folder ~/regnum to the search path. Im not sure about the LD_PRELOAD skit mentioned, it should work similarly, but per-library. You'd need to also preload the libpng12.so.0 then.
Lebeau
08-01-2016, 07:01 PM
<LD_PRELOAD=path/to/file/libjpeg.so.62 ~/regnum/rolauncher>
spits this out:
... :~$ LD_PRELOAD=path/to/file/libjpeg.so.62 ~/regnum/rolauncher
ERROR: ld.so: object 'path/to/file/libjpeg.so.62' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
/home/admn/regnum/rolauncher: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
<cd /home/admn/regnum && ./rolauncher>
spits this out:
./rolauncher: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
<LD_LIBRARY_PATH=/home/admn/regnum /home/admn/regnum/rolauncher>
spits this out:
/home/admn/regnum/rolauncher: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
SO,
What the hell is a "libjpeg.so.62"? Why don't I have one already? Where do I get one?
SO,
....after asking meself these questions, I found out I'm not alone in this issue. Others in unrelated app installations also suffer a lack of "libjpeg62", tho not sure why. I then installed it. I ran native-RO (the one that wouldn't do ANYthing before) in a terminal. The RO-loader loaded normally. It patched 21 MB or so, then I got to server selection screen. I choose a server, it went to the loading screen normally, but took a long while getting resources, as is normal 1st time in. It got to character selection screen, I pressed play, & RO crashed, the terminal spitting this out:
[1] 14832
... :~$ [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so.
SO,
WTF?! Why is the native version of RO looking for STEAM ffs?! Am I missing far more here than I realize?! /me is stupid ya' know...
:facepalm3:
Adrian
08-01-2016, 07:05 PM
Have you tried installing the library?
sudo apt-get install libjpeg62
Lebeau
08-01-2016, 07:42 PM
Have you tried installing the library?
sudo apt-get install libjpeg62
Yes, I did, but thanks (sorry, I'm bad with the post-posted edits):
"...Others in unrelated app installations also suffer a lack of "libjpeg62", tho not sure why. I then installed it. I ran native-RO (the one that wouldn't do ANYthing before) in a terminal..."
-Adrian, is it normal for the linux-native version of RO to look for STEAM? It cannot find it of course. It's not there to find.
_Enio_
08-01-2016, 07:58 PM
This is very odd. Does the user you log in to ro decide if it has to run with steam?
Also, just out of curiosity, can you confirm that that libjpeg.so.62 is infact located in /home/adm/regnim folder?
Very sorry for your issues, hope we get it nailed somehow. Why it is asking for steam when steam isnt even launcching it is beyond my knowledge..
Lebeau
08-01-2016, 08:19 PM
...Also, just out of curiosity, can you confirm that that libjpeg.so.62 is infact located in /home/adm/regnim folder?...
Is it supposed to be in home/admn/regnum/live/libs? If so, then it is NOT. NO libs at all in the "libs" folder there. Tried cntl-h & find nothing hidden, so...
schachteana
08-01-2016, 09:31 PM
I could actually confirm OPs issue:
./rolauncher: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
(I freshly upgraded to ubuntu 16.06 yesterday, some packages were uninstalled)
But after installing libjpeg again (see adrians post), everything worked properly again.
(Note: There are NO lib files whatsoever in the live folder. And the lib folder is totally empty. All the libs which can be found in a windows installation seem to be encapsulated within the binaries)
_Enio_
08-03-2016, 09:29 PM
I did some debugging with Lebeau (kudos to your patience!)
Sadly, its way beyond library stuff. In the recently compiled game binaries, the CPU instructions LAHF/SAHF are used that is not compatible with some of the older 64Bit CPU
The "bt" on the crash:
Program received signal SIGILL, Illegal instruction.
0x00000000011966ba in ?? ()
(gdb) bt
#0 0x00000000011966ba in ?? ()
#1 0x000000000117cd20 in lua_pcall ()
#2 0x0000000000718e3e in lua_action::operator()(ActionableObject*, Message*)
()
#3 0x0000000000816c41 in ActionableObject::run_action(Message*, ActionData*, char const*, int) ()
#4 0x0000000000810234 in ActionableObject::receive_action(Message*) ()
#5 0x0000000000961789 in Entity::input_message_internal(Message*) ()
#6 0x000000000096657d in LuaEntity::input_message_internal(Message*) ()
#7 0x000000000097235f in ProxyEntity::receive_message_callback(Message*) ()
#8 0x0000000000961194 in Entity::input_message_internal(Message*) ()
#9 0x000000000093ee7a in EntityMessageQueue::process_a_message(Message*) ()
#10 0x0000000000941621 in EntityMessageQueue::process_messages() ()
#11 0x000000000093b0be in EntitySystem::poll_frame() ()
#12 0x000000000064f84b in GameClient::iterate() ()
#13 0x000000000072581d in MainLoop::iterate() ()
#14 0x0000000000645e38 in main ()
With the instruction creating the SIGILL:
(gdb) x/i $pc => 0x11966ba: sahf/proc/cpuinfo reveals in the flags that lahf isnt supported
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc pebs bts nopl pni dtes64 monitor ds_cpl cid cx16 xtpr
specifically missing the flag lahf_lm: Load AH from Flags (LAHF) and Store AH into Flags (SAHF) in long mode
Questions:
* Did something on the compile flags change / or the compiler version change in one of the recent releases?
* Can this be fixed on NGDs end?
Adrian
08-03-2016, 09:34 PM
Thank you Enio, that was some great debugging. Of course it can be flagged.
Lebeau, which processor do you have? Please give us as much detail as you can.
Lebeau
08-03-2016, 09:54 PM
Thank you Enio, that was some great debugging. Of course it can be flagged.
Lebeau, which processor do you have? Please give us as much detail as you can.
... :~$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Pentium(R) D CPU 2.80GHz
stepping : 4
microcode : 0x6
cpu MHz : 2793.097
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc pebs bts nopl pni dtes64 monitor ds_cpl cid cx16 xtpr
bogomips : 5586.19
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Pentium(R) D CPU 2.80GHz
stepping : 4
microcode : 0x6
cpu MHz : 2793.097
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc pebs bts nopl pni dtes64 monitor ds_cpl cid cx16 xtpr
bogomips : 5586.19
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 48 bits virtual
power management:
_Enio_
08-06-2016, 01:23 AM
Just want to post an update on this issue.
For now we worked aound by getting the 32Bit version running on the 64Bit system.
However this is nothing a normal user will be getting right. Theres alot of dependencies you need to install in 32Bit. It involved starting the "game" binary without rolauncher to find out which 32Bit-libs were missing and resolving which ubuntu packages might contain it etc.
tl;dr: If there's no good reason to break compat with some of the older 64Bit CPU, i.e. some great improvements in performance for the newer, i think it would be worth getting this fixed (especially since RO might be played on older hardware in some parts of the world).
Lebeau
08-07-2016, 10:20 AM
I did some debugging with Lebeau (kudos to your patience!)...
Not the hero here, at all, you are (kudos to YOUR patience!).
:)
Adrian
08-11-2016, 07:56 PM
Well, we finally got to the real problem!
You never had a 64-bit version working in the past. We released the 64-bit version in Steam some weeks ago. You were running the 32-bit version and everything was fine until we made available the 64-bit one.
Even if we set the flag to avoid lahf/sahf, LuaJIT needs it and, of course, adds it.
The possible solutions would be:
- Downloading the 32-bit installer from our website and play outside Steam.
- Find a way (I don't know if it's possible) to force Steam to use the 32-bit architecture for CoR.
So, there is no way for us to fix it. Sorry! :(
_Enio_
08-11-2016, 08:47 PM
I was curious, and turned out - there is another option.
However first a quick note - even when supplying "-mno-sahf" to gcc when compiling LuaJIT - it will not remove it - because it is INLINE asm, this will be translated verbatim.
So what are we using.
[enio@thinkpad ~]$ cd regnum/live; strings game | grep LuaJ
LuaJIT 2.0.2
Have to say i checked 2.0.4 first, thats why i tested 2.0.3 too if it already works:
[enio@thinkpad LuaJIT-2.0.2]$ objdump -d src/libluajit.a | grep -A3 -B2 fprem
2924: dd 42 08 fldl 0x8(%rdx)
2927: dd 02 fldl (%rdx)
2929: d9 f8 fprem
292b: df e0 fnstsw %ax
292d: 9e sahf
292e: 7a f9 jp 2929 <lj_ff_math_fmod+0x28>
[enio@thinkpad LuaJIT-2.0.3]$ objdump -d src/libluajit.a | grep -A3 -B2 fprem
2921: dd 42 08 fldl 0x8(%rdx)
2924: dd 02 fldl (%rdx)
2926: d9 f8 fprem
2928: df e0 fnstsw %ax
292a: 9e sahf
292b: 7a f9 jp 2926 <lj_ff_math_fmod+0x28>
[enio@thinkpad LuaJIT-2.0.4]$ objdump -d src/libluajit.a | grep -A3 -B2 fprem
291f: dd 42 08 fldl 0x8(%rdx)
2922: dd 02 fldl (%rdx)
2924: d9 f8 fprem
2926: df e0 fnstsw %ax
2928: 66 25 00 04 and $0x400,%ax
292c: 75 f6 jne 2924 <lj_ff_math_fmod+0x28>
Isnt that funny? Thats the only occurrence of remainder calculation in LuaJIT, and they changed it in 2.0.4 (current stable release) to use and instead of sahf (which does the same as test in the other thread, maybe its faster).
Here is the github commit in question, sadly no reasoning stated, however its labelled "x86/x64: Avoid use of SAHF instruction." (https://github.com/LuaJIT/LuaJIT/commit/c03be1210c5334e58958d95ea0412c20c3eb0128)
tl;dr: SHAF is not used anymore in LuaJit since version 2.0.4, so get it updated! :P
Adrian
08-11-2016, 09:02 PM
tl;dr: SHAF is not used anymore in LuaJit since version 2.0.4, so get it updated! :P
OMG, I feel ashamed :sifflote:
Tomorrow we will test updating it and see if everything still works, ha!
_Enio_
08-11-2016, 09:44 PM
OMG, I feel ashamed :sifflote:
Tomorrow we will test updating it and see if everything still works, ha!
Lol, don't be! It was a lucky find driven by curiosity on the workings of the "-no-sahf" switch.
In case there are incompatibilities regarding other changes in 2.0.3/2.0.4 - it should be very easy to cherry pick this change into 2.0.2 too.
Good luck!
Adrian
08-13-2016, 07:28 PM
Lol, don't be! It was a lucky find driven by curiosity on the workings of the "-no-sahf" switch.
In case there are incompatibilities regarding other changes in 2.0.3/2.0.4 - it should be very easy to cherry pick this change into 2.0.2 too.
Good luck!
Good news. It works and sahf is not there anymore. We'll be uploading this on Monday and I'll let you know here so you can test.
_Enio_
08-13-2016, 08:32 PM
Good news. It works and sahf is not there anymore. We'll be uploading this on Monday and I'll let you know here so you can test.
Awesome, thanks for the update.
Adrian
08-15-2016, 11:14 AM
We uploaded the 64-bit version with the changes to our experimental repository. Lebeau, please tick in your launcher advanced options "Use experimental client" and let us know if the problem is gone. Thanks!
Lebeau
08-15-2016, 01:30 PM
We uploaded the 64-bit version with the changes to our experimental repository. Lebeau, please tick in your launcher advanced options "Use experimental client" and let us know if the problem is gone. Thanks!
Adrian, Enio, I'm extremely grateful for all of your time & effort that have been expended on my (& perhaps others') behalf in this matter, & I truly thank you both very much indeed. There's currently a hitch of sorts though, entirely on my end. Currently, I'm away from home & desktop, with only a tablet for internet access, & so, cannot test this revamped 64-bit game version. Regrettably, I'll be away for another two weeks, but will install, test it, & then, post my findings here as soon as I get settled back in at home. I duly apologize for being the roadblock in this & for this unavoidable delay, but summer vacation at the lake, cookouts, vino & an exceptionally large & comfy hammock hung in the shade are not at all to be missed if at all possible..../me raises glass in salute....
:o
_Enio_
08-15-2016, 05:05 PM
We uploaded the 64-bit version with the changes to our experimental repository.
I can confirm the absence of that evil sahf instruction, and i did not notice any side effects on my machine (A recent intel i5 cpu).
[15/08/2016 19:03:59] [ClientBase][client_base.cpp(343)] Client build: 39674
[enio@thinkpad live]$ strings game | grep LuaJ
LuaJIT 2.0.4
[enio@thinkpad live]$ objdump -d game | grep sahf
[enio@thinkpad live]$
Thank you Adrian!
Adrian
08-15-2016, 08:43 PM
I can confirm the absence of that evil sahf instruction, and i did not notice any side effects on my machine (A recent intel i5 cpu).
[15/08/2016 19:03:59] [ClientBase][client_base.cpp(343)] Client build: 39674
[enio@thinkpad live]$ strings game | grep LuaJ
LuaJIT 2.0.4
[enio@thinkpad live]$ objdump -d game | grep sahf
[enio@thinkpad live]$
Thank you Adrian!
Thank you for your stoic help!
Lebeau
08-27-2016, 12:53 AM
Final checklist, go.
Regnum 64-bit installed ... check.
Experimental client enabled ... check.
Authorization code entered & authorized ... check.
Good to go, begin countdown to launch sequence....
3
2
1
0
....Houston, we have liftoff:warning:
:clapclap: :beerchug: :thumb:
THANKS (AGAIN) GUYS:warning:
_Enio_
08-27-2016, 02:11 AM
Haha awesome, thats nice =)
Adrian
08-29-2016, 06:46 AM
Glad to read that! :)
vBulletin® v3.8.7, Copyright ©2000-2025, vBulletin Solutions, Inc.