Client closes suddenly when trading

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
gbrish
Newly Registered User
Posts: 4
Joined: 26 Jul 2012, 00:56

Client closes suddenly when trading

Post by gbrish » 26 Jul 2012, 01:00

If I try to move an item from my inventory into the trade window.. or into the bank storage.. the game closes on me without warning and I have to restart it again.

I'm not sure what is causing it and I have looked online and used search in the forums however I don't see any information on the issue.
4144
Client Developer
Client Developer
Posts: 917
Joined: 03 Aug 2009, 12:57

Re: Client closes suddenly when trading

Post by 4144 » 26 Jul 2012, 01:08

what client version you using?
You can look it in help window (F1) or in settings (F9)
User avatar
o11c
Knight
Knight
Posts: 2262
Joined: 20 Feb 2011, 22:09
Location: ^ ^

Re: Client closes suddenly when trading

Post by o11c » 26 Jul 2012, 06:31

In addition to the version, it would probably help if you
1. Report which distro and architecture you are using.
2. install debug symbols

then run the client from a terminal, within a debugger, like this:

Code: Select all

$ gdb mana (or manaplus?)
(gdb) set logging on
(gdb) run
<wait until it crashes>
(gdb) thread apply all bt full
(gdb) quit
Then attach gdb.txt

(if you're on Windows this is all possible but rather painful)
Former programmer for the TMWA server.
gbrish
Newly Registered User
Posts: 4
Joined: 26 Jul 2012, 00:56

Re: Client closes suddenly when trading

Post by gbrish » 26 Jul 2012, 16:59

I don't know why but I cannot reproduce this error... maybe it fixed itself?? o.o

anyways, Im using Linux 3.2.0-27-generic KDE 4.8.4

I didn't install any debug symbols because I didn't know which *-dbg package was the correct one and didn't want to install all of them.

I ran gdb and went in game but this time it did not crash.

Code: Select all

Reading symbols from /usr/games/mana...(no debugging symbols found)...done.
(gdb) set logging on
Copying output to gdb.txt.
(gdb) run
Starting program: /usr/games/mana 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe9903700 (LWP 6036)]
[New Thread 0x7fffe4d63700 (LWP 6037)]
[Thread 0x7fffe4d63700 (LWP 6037) exited]
[New Thread 0x7fffe4d63700 (LWP 6038)]
[New Thread 0x7fffdffff700 (LWP 6039)]
[Thread 0x7fffdffff700 (LWP 6039) exited]
[New Thread 0x7fffdffff700 (LWP 6040)]
[New Thread 0x7fffdefd2700 (LWP 6041)]
[Thread 0x7fffdefd2700 (LWP 6041) exited]
[New Thread 0x7fffde7d1700 (LWP 6042)]
[Thread 0x7fffde7d1700 (LWP 6042) exited]
[Thread 0x7fffdffff700 (LWP 6040) exited]
[New Thread 0x7fffdffff700 (LWP 6044)]
[Thread 0x7fffdffff700 (LWP 6044) exited]
[New Thread 0x7fffdffff700 (LWP 6045)]
[Thread 0x7fffe4d63700 (LWP 6038) exited]
[Thread 0x7fffe9903700 (LWP 6036) exited]
[Thread 0x7fffdffff700 (LWP 6045) exited]
[Inferior 1 (process 6033) exited normally]
User avatar
o11c
Knight
Knight
Posts: 2262
Joined: 20 Feb 2011, 22:09
Location: ^ ^

Re: Client closes suddenly when trading

Post by o11c » 27 Jul 2012, 00:41

You still didn't specify your client version.
gbrish wrote:I don't know why but I cannot reproduce this error... maybe it fixed itself?? o.o
You wish. I suggest to *always* run the client in a debugger. You can add an alias to ~/.bashrc

Code: Select all

alias mana='gdb -ex run --args mana'
(--args allows you to pass flags like -s and -u so they won't get handled by gdb)
and then always run mana from a terminal.
Oh, and you'll want to make sure you aren't running in fullscreen, because it won't close if it crashes in a debugger.

Or, you could add/edit a menu entry and check the "run in terminal" box with that extended command instead of just "mana".
gbrish wrote:anyways, Im using Linux 3.2.0-27-generic KDE 4.8.4
I meant, distro in {Debian,Ubuntu,Fedora,Gentoo,Slackware,...} and architecture in {x86, amd64, arm, ppc, sparc, mips, ...}
gbrish wrote:I didn't install any debug symbols because I didn't know which *-dbg package was the correct one and didn't want to install all of them.
For Debian, it's mana-dbg; for Gentoo, add -g to CXXFLAGS and splitdebug to FEATURES, for other distros, ask someone else, or look harder.
gbrish wrote:I ran gdb and went in game but this time it did not crash.
Sigh, not another Heisenbug.
Former programmer for the TMWA server.
gbrish
Newly Registered User
Posts: 4
Joined: 26 Jul 2012, 00:56

Re: Client closes suddenly when trading

Post by gbrish » 31 Jul 2012, 21:52

Ok I'm running on Ubuntu (shesh why didn't I go with the easy answer to begin with) and its amd64

I looked at the debugging symbols and the problem for me is I found too many >< I'm not sure if the one I found was correct or if I should download all of them.

So far the bug hasn't been repeating but thats mainly because I have been careful not to try and drag items from inventory to storage or trade, but use the add item option.

edit I downloaded mana-dbg and it seemed to take it fine...
Post Reply