Go Back   Champions of Regnum > English > Technical Support

Technical Support Questions about game technical support to the users of the community

Reply
 
Thread Tools Display Modes
Old 11-24-2013, 04:48 PM   #1
Zarakaye
Apprentice
 
Zarakaye's Avatar
 
Join Date: Dec 2007
Location: FRANCE
Posts: 93
Zarakaye is on a distinguished road
Default Rolauncher segfault

Hi,
Today i does a new install and i fail to use regnum

I will show step by step what i try:

Running RO

Code:
$ LANG=C ./rolauncher 
Erreur de segmentation (core dumped)


Running RO with env var


Code:
$  LANG=C MALLOC_CHECK_=1 ./rolauncher 
Erreur de segmentation (core dumped
Running RO with gdb

Code:
$  LANG=C MALLOC_CHECK_=1  gdb -q ./rolauncher
Reading symbols from /.../...../...../regnum/rolauncher...(no debugging symbols found)...done.
(gdb) r --sync
Starting program: /.../.../.../regnum/rolauncher --sync

Program received signal SIGSEGV, Segmentation fault.
0x00000030d8f06a40 in ?? ()
(gdb) bt
#0  0x00000030d8f06a40 in ?? ()
#1  0x0000000000000057 in ?? ()
#2  0x0000000001434400 in ?? ()
#3  0x00007fffffffb2f0 in ?? ()
#4  0x00000030ca819584 in ?? ()
#5  0x0000000000000000 in ?? ()
(gdb) quit
A debugging session is active.

    Inferior 1 [process 16170] will be killed.

Quit anyway? (y or n) y
Running Live/game directly

Code:
 $ ./game login md5EncryptedPassword &
[2] 15102
That display this




Looking for missing dependencies

Code:
 for lib in $(ldd live/game | grep -o '/lib.* '); do
    [[ ! -e $lib ]] && echo "error lib $lib not installed"
done
All linked file listed are present on my system

System

Code:
$ lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID:    Fedora
Description:    Fedora release 20 (Heisenbug)
Release:    20
Codename:    Heisenbug
So what can i do ?

Last edited by Zarakaye; 11-24-2013 at 05:05 PM.
Zarakaye no ha iniciado sesión   Reply With Quote
Old 11-28-2013, 12:33 AM   #2
Awrath
Master
 
Awrath's Avatar
 
Join Date: May 2010
Location: England
Posts: 455
Awrath is on a distinguished road
Default

Hi.

What version of libpng does your distro have?
Awrath no ha iniciado sesión   Reply With Quote
Old 12-07-2013, 01:20 PM   #3
regnumproba
Pledge
 
regnumproba's Avatar
 
Join Date: Dec 2007
Posts: 9
regnumproba is on a distinguished road
Default segfault too at Archlinux

The same thing here but no stack?

LANG=C MALLOC_CHECK_=1 gdb -q ./rolauncher
Reading symbols from /home/nikolay/regnum/rolauncher...
warning: no loadable sections found in added symbol-file /home/nikolay/regnum/rolauncher
(no debugging symbols found)...done.
(gdb) r --sync
Starting program: /home/nikolay/regnum/./rolauncher --sync
During startup program terminated with signal SIGSEGV, Segmentation fault.
(gdb) bt
No stack.

Archlinux
Linux 3.12.3-1-ARCH i686 GNU/Linux
libpng 1.6.7-1
nvidia 331.20-2
GeForce 9300M GS
__________________
Hunter (50) "get me" Knight (50) "kejo" Warlock (50) "KINGFISHER" barbarian (50) "manaf"
Registered Linux User #375603 at counter.li.org
regnumproba no ha iniciado sesión   Reply With Quote
Old 12-07-2013, 05:28 PM   #4
Awrath
Master
 
Awrath's Avatar
 
Join Date: May 2010
Location: England
Posts: 455
Awrath is on a distinguished road
Default

Quote:
Originally Posted by regnumproba View Post
The same thing here but no stack?

LANG=C MALLOC_CHECK_=1 gdb -q ./rolauncher
Reading symbols from /home/nikolay/regnum/rolauncher...
warning: no loadable sections found in added symbol-file /home/nikolay/regnum/rolauncher
(no debugging symbols found)...done.
(gdb) r --sync
Starting program: /home/nikolay/regnum/./rolauncher --sync
During startup program terminated with signal SIGSEGV, Segmentation fault.
(gdb) bt
No stack.

Archlinux
Linux 3.12.3-1-ARCH i686 GNU/Linux
libpng 1.6.7-1
nvidia 331.20-2
GeForce 9300M GS
You can try to isntall libpng 1.2 from the AUR, but I think you will need an older version of gdk-pixbuf too as the latest version of that causes segfaults on the launcher too.

What I found helps is to place all the older libs the launcher needs into a folder "libs" in the same directory as the launcher executable, if you need the older gdk-pixbuf lib, let me know I'll stick it up somewhere for you to download.

Good luck! Here's hoping NGD shows linux some love in 2014, so we can stop tinkering to get their game that's supposedly supported on linux to work.
Awrath no ha iniciado sesión   Reply With Quote
Old 12-07-2013, 05:55 PM   #5
andres81
Count
 
Join Date: Sep 2008
Posts: 1,690
andres81 is on a distinguished road
Default

I might be wrong but some friends told me that the linux binaries offered by NGD for download are broken. They had no problems running the game with my binary (updated through the launcher from a game version I downloaded years ago).
andres81 no ha iniciado sesión   Reply With Quote
Old 12-08-2013, 06:03 AM   #6
Truewar
Master
 
Truewar's Avatar
 
Join Date: Jan 2009
Location: Kriegsplatz 6, Hopstad Alsius Ra
Posts: 291
Truewar is on a distinguished road
Default

I've found the cause of this issue

For developers:
Quote:
$ strace ./rolauncher

***


open("/usr/share/icons/Faenza/actions/16/gtk-cancel.png", O_RDONLY) = 14
fstat(14, {st_mode=S_IFREG|0644, st_size=816, ...}) = 0
read(14, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\20\0\0\0\20\10 \6\0\0\0\37\363\377"..., 65536) = 816
read(14, "", 65536) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x40} ---
+++ killed by SIGSEGV (core dumped) +++
Its all about icon and developer's mistake)))

For users solution colud be in
Quote:
sudo rm /usr/share/icons/YOUR_GTK_THEME/actions/*/gtk-cancel.png
This file is symlink in Arch so don't worry

EDIT: also you can try to switch to default GNOME icon theme (for me there was no file gtk-cncel.png) After you authorize your computer via email, there should be no problems.
__________________

Truewar
The Knightmare

Last edited by Truewar; 12-08-2013 at 07:13 AM.
Truewar no ha iniciado sesión   Reply With Quote
Old 12-08-2013, 07:05 PM   #7
Truewar
Master
 
Truewar's Avatar
 
Join Date: Jan 2009
Location: Kriegsplatz 6, Hopstad Alsius Ra
Posts: 291
Truewar is on a distinguished road
Default

Full strace output for another icon

rolauncher.segfault.-20131208110437.txt
__________________

Truewar
The Knightmare
Truewar no ha iniciado sesión   Reply With Quote
Old 12-09-2013, 11:59 AM   #8
regnumproba
Pledge
 
regnumproba's Avatar
 
Join Date: Dec 2007
Posts: 9
regnumproba is on a distinguished road
Default works

Quote:
Originally Posted by Iliares View Post
I've found the cause of this issue

For developers:


Its all about icon and developer's mistake)))

For users solution colud be in


This file is symlink in Arch so don't worry

EDIT: also you can try to switch to default GNOME icon theme (for me there was no file gtk-cncel.png) After you authorize your computer via email, there should be no problems.
Yes, it depends on themes

open("/usr/share/themes/Adwaita/gtk-2.0/Entry/entry-border-fill.png", O_RDONLY|O_LARGEFILE) = 19

I use openbox and its not working, changing to kde4 is back to normal.
__________________
Hunter (50) "get me" Knight (50) "kejo" Warlock (50) "KINGFISHER" barbarian (50) "manaf"
Registered Linux User #375603 at counter.li.org
regnumproba no ha iniciado sesión   Reply With Quote
Old 12-10-2013, 04:37 AM   #9
Truewar
Master
 
Truewar's Avatar
 
Join Date: Jan 2009
Location: Kriegsplatz 6, Hopstad Alsius Ra
Posts: 291
Truewar is on a distinguished road
Default

Quote:
Originally Posted by regnumproba View Post
Yes, it depends on themes

open("/usr/share/themes/Adwaita/gtk-2.0/Entry/entry-border-fill.png", O_RDONLY|O_LARGEFILE) = 19

I use openbox and its not working, changing to kde4 is back to normal.
Maybe It is all because of symlinks. On opensuse there is no such troubles on same machine with same settings.
__________________

Truewar
The Knightmare
Truewar no ha iniciado sesión   Reply With Quote
Old 12-10-2013, 10:18 AM   #10
andres81
Count
 
Join Date: Sep 2008
Posts: 1,690
andres81 is on a distinguished road
Default

Quote:
Originally Posted by Iliares View Post
Maybe It is all because of symlinks. On opensuse there is no such troubles on same machine with same settings.
We don't know the code they used before the segfault, however they should use readlink to get a symlinks real path and filename before they try to open it with the open command. Opening a symlink directly by open( is clearly an error of programmation.
andres81 no ha iniciado sesión   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:35 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
NGD Studios 2002-2024 © All rights reserved