Page 1 of 1

Client keeps crashing (seg. fault)

Posted: 01 Feb 2007, 19:15
by lobo
Hi

After upgrading my client keeps seg. faulting. when i push the 'play' button

Only error msg is:
[mk@workstation1 ~]$ tmw
The Mana World v0.0.22
Segmentation fault

I use FC6's rpm

manaworld-0.0.22-1.fc6 (x86_64)

uname -a
Linux workstation1 2.6.19-1.2895.fc6 #1 SMP Wed Jan 10 18:50:56 EST 2007 x86_64 x86_64 x86_64 GNU/Linux[/img]

Posted: 01 Feb 2007, 22:18
by Avaniel
A SIGSEGV can be any number of things...
Could you run tmw via gdb?
The commands would be:

Code: Select all

gdb tmw
run
[sigsegv comes here]
bt
q
Please copy paste all the input/output of your terminal session here.

Posted: 02 Feb 2007, 13:34
by Bjørn
Aside the backtrace, your log file may also include useful information. It is located at ~/.tmw/tmw.log.

gdb input/output

Posted: 04 Feb 2007, 10:39
by lobo
Avaniel wrote:A SIGSEGV can be any number of things...
Could you run tmw via gdb?
The commands would be:

Code: Select all

gdb tmw
run
[sigsegv comes here]
bt
q
Please copy paste all the input/output of your terminal session here.
[mk@workstation1 ~]$ gdb tmw
GNU gdb Red Hat Linux (6.5-15.fc6rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib64/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/tmw
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 46912496418336 (LWP 6252)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
The Mana World v0.0.22
(no debugging symbols found)
(no debugging symbols found)
[New Thread 1084229952 (LWP 6255)]
(no debugging symbols found)
[New Thread 1094719808 (LWP 6256)]
[New Thread 1105209664 (LWP 6257)]
(no debugging symbols found)
(no debugging symbols found)
[Thread 1105209664 (LWP 6257) exited]
[New Thread 1115699520 (LWP 6260)]
[Thread 1115699520 (LWP 6260) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912496418336 (LWP 6252)]
0x000000304ac524cb in glDeleteTexturesEXT () from /usr/lib64/libGL.so.1
(gdb)

Hope this helps

Lobo

tmw.log output

Posted: 04 Feb 2007, 10:41
by lobo
Bjørn wrote:Aside the backtrace, your log file may also include useful information. It is located at ~/.tmw/tmw.log.
[mk@workstation1 ~]$ cat .tmw/tmw.log
[10:36:46.33] Initializing SDL...
[10:36:46.41] Initializing resource manager...
[10:36:46.41] Adding to PhysicsFS: /home/mk//.tmw
[10:36:46.41] Adding to PhysicsFS: data
[10:36:46.41] Adding to PhysicsFS: /usr/share/tmw/data
[10:36:46.41] Initializing configuration...
[10:36:46.45] Setting video mode 800x600 windowed
[10:36:46.56] Using video driver: x11
[10:36:46.56] Possible to create hardware surfaces: no
[10:36:46.56] Window manager available: yes
[10:36:46.56] Accelerated hardware to hardware blits: no
[10:36:46.56] Accelerated hardware to hardware colorkey blits: no
[10:36:46.56] Accelerated hardware to hardware alpha blits: no
[10:36:46.56] Accelerated software to hardware blits: no
[10:36:46.56] Accelerated software to hardware colorkey blits: no
[10:36:46.56] Accelerated software to hardware alpha blits: no
[10:36:46.56] Accelerated color fills: no
[10:36:46.56] Available video memory: 0
[10:36:46.56] Initializing GUI...
[10:36:46.56] Loaded /usr/share/tmw/data/graphics/gui/sansserif8.png
[10:36:46.59] Loaded /usr/share/tmw/data/graphics/gui/rpgfont_wider.png
[10:36:46.60] Loaded /usr/share/tmw/data/graphics/gui/hits_red.png
[10:36:46.60] Loaded /usr/share/tmw/data/graphics/gui/hits_blue.png
[10:36:46.61] Loaded /usr/share/tmw/data/graphics/gui/hits_yellow.png
[10:36:46.61] Loaded /usr/share/tmw/data/graphics/gui/mouse.png
[10:36:46.61] Window::Window("Window")
[10:36:46.61] Loaded /usr/share/tmw/data/graphics/gui/vscroll_grey.png
[10:36:46.61] Loaded /usr/share/tmw/data/graphics/gui/bg_quad_dis.png
[10:36:46.61] Loaded /usr/share/tmw/data/graphics/gui/resize.png
[10:36:46.61] Sound::init() Initializing sound...
[10:36:46.68] Sound::info() SDL_mixer: 1.2.7 (compiled)
[10:36:46.68] Sound::info() SDL_mixer: 1.2.7 (linked)
[10:36:46.68] Sound::info() Driver: alsa
[10:36:46.68] Sound::info() Format: S16LSB
[10:36:46.68] Sound::info() Rate: 22050
[10:36:46.68] Sound::info() Channels: 2
[10:36:46.68] Sound::startMusic() Playing "/usr/share/tmw/data/music/Magick - Real.ogg" -1 times
[10:36:46.68] Sound::startMusic() Warning: error loading file.
[10:36:46.68] Loaded /usr/share/tmw/data/graphics/images/login_wallpaper.png
[10:36:46.76] State: UPDATE
[10:36:46.76] Window::Window("Updating...")
[10:36:46.76] Loaded /usr/share/tmw/data/graphics/gui/deepbox.png
[10:36:46.77] Loaded /usr/share/tmw/data/graphics/gui/vscroll_up_default.png
[10:36:46.77] Loaded /usr/share/tmw/data/graphics/gui/vscroll_down_default.png
[10:36:46.77] Loaded /usr/share/tmw/data/graphics/gui/hscroll_left_default.png
[10:36:46.77] Loaded /usr/share/tmw/data/graphics/gui/hscroll_right_default.png
[10:36:46.77] Loaded /usr/share/tmw/data/graphics/gui/vscroll_up_pressed.png
[10:36:46.78] Loaded /usr/share/tmw/data/graphics/gui/vscroll_down_pressed.png
[10:36:46.78] Loaded /usr/share/tmw/data/graphics/gui/hscroll_left_pressed.png
[10:36:46.78] Loaded /usr/share/tmw/data/graphics/gui/hscroll_right_pressed.png
[10:36:46.78] Loaded /usr/share/tmw/data/graphics/gui/button.png
[10:36:46.78] Loaded /usr/share/tmw/data/graphics/gui/buttonhi.png
[10:36:46.78] Loaded /usr/share/tmw/data/graphics/gui/buttonpress.png
[10:36:46.78] Loaded /usr/share/tmw/data/graphics/gui/button_disabled.png
[10:37:00.82] Downloading: http://updates.themanaworld.org/news.txt
[10:37:02.63] Downloading: http://updates.themanaworld.org/resources2.txt
[10:37:02.80] Loaded /home/mk//.tmw/updates/resources2.txt
[10:37:02.83] database-2935.zip already here
[10:37:02.83] items-2935.zip already here
[10:37:02.83] maps-2935.zip already here
[10:37:02.84] minimaps-2935.zip already here
[10:37:02.84] monsters-2935.zip already here
[10:37:02.85] sounds-2935.zip already here
[10:37:02.85] update-2939-2940.zip already here
[10:37:02.85] update-2940-3040.zip already here
[10:37:27.22] Loaded /home/mk//.tmw/updates/resources2.txt
[10:37:27.25] Adding to PhysicsFS: /home/mk//.tmw/updates/database-2935.zip
[10:37:27.25] Adding to PhysicsFS: /home/mk//.tmw/updates/items-2935.zip
[10:37:27.25] Adding to PhysicsFS: /home/mk//.tmw/updates/maps-2935.zip
[10:37:27.25] Adding to PhysicsFS: /home/mk//.tmw/updates/minimaps-2935.zip
[10:37:27.25] Adding to PhysicsFS: /home/mk//.tmw/updates/monsters-2935.zip
[10:37:27.25] Adding to PhysicsFS: /home/mk//.tmw/updates/sounds-2935.zip
[10:37:27.25] Adding to PhysicsFS: /home/mk//.tmw/updates/update-2939-2940.zip
[10:37:27.25] Adding to PhysicsFS: /home/mk//.tmw/updates/update-2940-3040.zip
[10:37:27.25] ResourceManager::release(graphics/images/login_wallpaper.png)
[mk@workstation1 ~]$

Hope this helps

Lobo

Posted: 04 Feb 2007, 12:08
by Avaniel
The problem seems to with OpenGL rendering, does the program function with software rendering? Please try it by changing the OpenGL setting to 0 in your config file in $HOME/.tmw/config.xml

Unfortunatly, you didn't include the backtrace (bt) after the SIGSEGV. So I cant find out which part of tmw called glDeleteTexturesEXT in /usr/lib64/libGL.so.1 with wrong parameters, causing the crash. I you feel up to it, it might be worth compiling tmw yourself. Then you could add debugging info and not get a terminal full of "no debugging symbols found".
Anyway, maybe Bjørn knows something.

gdb input/output, bt + config.xml

Posted: 04 Feb 2007, 15:01
by lobo
Avaniel wrote:The problem seems to with OpenGL rendering, does the program function with software rendering? Please try it by changing the OpenGL setting to 0 in your config file in $HOME/.tmw/config.xml

Unfortunatly, you didn't include the backtrace (bt) after the SIGSEGV. So I cant find out which part of tmw called glDeleteTexturesEXT in /usr/lib64/libGL.so.1 with wrong parameters, causing the crash. I you feel up to it, it might be worth compiling tmw yourself. Then you could add debugging info and not get a terminal full of "no debugging symbols found".
Anyway, maybe Bjørn knows something.
Sorry 'bout that. Here it is:

Code: Select all

[mk@workstation1 ~]$ gdb tmw
GNU gdb Red Hat Linux (6.5-15.fc6rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib64/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/tmw
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 46912496418336 (LWP 14057)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
The Mana World v0.0.22
(no debugging symbols found)
(no debugging symbols found)
[New Thread 1084229952 (LWP 14060)]
(no debugging symbols found)
[New Thread 1094719808 (LWP 14061)]
(no debugging symbols found)
(no debugging symbols found)
[Thread 1094719808 (LWP 14061) exited]
[New Thread 1105209664 (LWP 14068)]
[Thread 1105209664 (LWP 14068) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912496418336 (LWP 14057)]
0x000000304ac524cb in glDeleteTexturesEXT () from /usr/lib64/libGL.so.1
(gdb) bt
#0  0x000000304ac524cb in glDeleteTexturesEXT () from /usr/lib64/libGL.so.1
#1  0x0000000000483c55 in std::vector<gcn::Widget*, std::allocator<gcn> >::_M_insert_aux ()
#2  0x0000000000483c7d in std::vector<gcn::Widget*, std::allocator<gcn> >::_M_insert_aux ()
#3  0x00000000004a203d in std::_Deque_base<gcn::ClipRectangle, std::allocator<gcn> >::~_Deque_base$base ()
#4  0x0000003d8f01da44 in __libc_start_main () from /lib64/libc.so.6
#5  0x00000000004129b9 in gcn::Button::mousePress ()
#6  0x00007ffffacac268 in ?? ()
#7  0x0000000000000000 in ?? ()
(gdb) q
The program is running.  Exit anyway? (y or n) y
[mk@workstation1 ~]$
My conf file looks like this:

Code: Select all

[mk@workstation1 ~]$ cat .tmw/config.xml
<?xml version="1.0"?>
<configuration>
 <option name="ChatWinHeight" value="123"/>
 <option name="ChatWinWidth" value="606"/>
 <option name="ChatWinX" value="0"/>
 <option name="ChatWinY" value="476"/>
 <option name="DebugWinHeight" value="123"/>
 <option name="DebugWinWidth" value="406"/>
 <option name="DebugWinX" value="0"/>
 <option name="DebugWinY" value="0"/>
 <option name="EquipmentWinX" value="5"/>
 <option name="EquipmentWinY" value="230"/>
 <option name="HelpWinX" value="169"/>
 <option name="HelpWinY" value="113"/>
 <option name="InventoryWinHeight" value="195"/>
 <option name="InventoryWinWidth" value="328"/>
 <option name="InventoryWinX" value="461"/>
 <option name="InventoryWinY" value="28"/>
 <option name="MenuWinX" value="537"/>
 <option name="MenuWinY" value="0"/>
 <option name="MiniMapWinX" value="5"/>
 <option name="MiniMapWinY" value="25"/>
 <option name="MiniStatusWinX" value="0"/>
 <option name="MiniStatusWinY" value="0"/>
 <option name="ScrollLaziness" value="32"/>
 <option name="ScrollRadius" value="32"/>
 <option name="SkillsWinX" value="277"/>
 <option name="SkillsWinY" value="168"/>
 <option name="StatusWinHeight" value="278"/>
 <option name="StatusWinWidth" value="371"/>
 <option name="StatusWinX" value="429"/>
 <option name="StatusWinY" value="322"/>
 <option name="TradeWinX" value="115"/>
 <option name="TradeWinY" value="197"/>
 <option name="customcursor" value="1"/>
 <option name="fpslimit" value="60"/>
 <option name="guialpha" value="0.8"/>
 <option name="homeDir" value="/home/mk/.tmw"/>
 <option name="host" value="server.themanaworld.org"/>
 <option name="hwaccel" value="0"/>
 <option name="joystickEnabled" value="0"/>
 <option name="lastCharacter" value="Lobo"/>
 <option name="musicVolume" value="60"/>
 <option name="opengl" value="0"/>
 <option name="port" value="6901"/>
 <option name="remember" value="1"/>
 <option name="screen" value="0"/>
 <option name="sfxVolume" value="1"/>
 <option name="sound" value="0"/>
 <option name="updatehost" value="http://updates.themanaworld.org/"/>
 <option name="username" value="lobo"/>
 <option name="windowWinX" value="282"/>
 <option name="windowWinY" value="166"/>
</configuration>
[mk@workstation1 ~]$
Hope this helps

Lobo

solved

Posted: 04 Feb 2007, 17:33
by lobo
Hi

Ok, i solved the problem:

I changed opengl to 1 in the config file instead of 0 and now i'm in

Posted: 07 Feb 2007, 08:23
by Bjørn
So for some reason it seems that even though you had OpenGL turned off, it was still trying to delete some non-existing OpenGL texture when the wallpaper got released. We should probably check up on that.