Page 1 of 1

Client closes suddenly when trading

Posted: 26 Jul 2012, 00:00
by gbrish
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.

Re: Client closes suddenly when trading

Posted: 26 Jul 2012, 00:08
by 4144
what client version you using?
You can look it in help window (F1) or in settings (F9)

Re: Client closes suddenly when trading

Posted: 26 Jul 2012, 05:31
by o11c
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)

Re: Client closes suddenly when trading

Posted: 26 Jul 2012, 15:59
by gbrish
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]

Re: Client closes suddenly when trading

Posted: 26 Jul 2012, 23:41
by o11c
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.

Re: Client closes suddenly when trading

Posted: 31 Jul 2012, 20:52
by gbrish
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...