qB 1.5.0 crashes when opening a .torrent file

Bug #425227 reported by ToxAtec
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
qBittorrent
Fix Released
Undecided
Christophe Dumez

Bug Description

Hi,
I just compiled qbittorrent 1.5.0 (and libtorrent-rasterbar-0.14.5). I'm using slackware-current (not really "current", something between 12.2 and 13.0) and qt4-4.5.2.

The programm starts fine, but when I try to open any .torrent file, qbittorrent immediately crashes (disappears, not feezes) as soon as I have chosen a .torrent file and press "open".

Here is the backtrace:

bash-3.1$ qbittorrent
Warning: Local domain socket was not closed cleanly, deleting file...

*************************************************************
Catching SIGSEGV, please report a bug at http://bug.qbittorrent.org
and provide the following backtrace:
stack trace:
  [0xffffe400]
  /lib/libc.so.6 : memcpy()+0x27 [0xb6c7b237]
  /usr/lib/qt4/lib/libQtCore.so.4 : QString::append(QString const&)+0x86 [0xb6f2e0e6]
  qbittorrent : torrentAdditionDialog::updateDiskSpaceLabels()+0x320 [0x80b11d0]
  qbittorrent : torrentAdditionDialog::showLoad(QString, QString)+0xc62 [0x80b5242]
  qbittorrent : GUI::on_actionOpen_triggered()+0x363 [0x809c7a3]
  qbittorrent : GUI::qt_metacall(QMetaObject::Call, int, void**)+0x4c5 [0x8191aa5]
  /usr/lib/qt4/lib/libQtCore.so.4 : QMetaObject::activate(QObject*, int, int, void**)+0x228 [0xb6fef0e8]
  /usr/lib/qt4/lib/libQtCore.so.4 : QMetaObject::activate(QObject*, QMetaObject const*, int, int, void**)+0x60 [0xb6fef520]
  /usr/lib/qt4/lib/libQtGui.so.4 : QAction::triggered(bool)+0x51 [0xb7312a21]
  /usr/lib/qt4/lib/libQtGui.so.4 : QAction::activate(QAction::ActionEvent)+0xaf [0xb7313f9f]
  /usr/lib/qt4/lib/libQtGui.so.4 : QToolButton::nextCheckState()+0x32 [0xb77b5642]
  /usr/lib/qt4/lib/libQtGui.so.4 [0xb76ce0f3]
  /usr/lib/qt4/lib/libQtGui.so.4 : QAbstractButton::mouseReleaseEvent(QMouseEvent*)+0x96 [0xb76ce3c6]
  /usr/lib/qt4/lib/libQtGui.so.4 : QToolButton::mouseReleaseEvent(QMouseEvent*)+0x2c [0xb77b5b3c]
  /usr/lib/qt4/lib/libQtGui.so.4 : QWidget::event(QEvent*)+0x753 [0xb736fba3]
  /usr/lib/qt4/lib/libQtGui.so.4 : QAbstractButton::event(QEvent*)+0x3e [0xb76cc38e]
  /usr/lib/qt4/lib/libQtGui.so.4 : QToolButton::event(QEvent*)+0x4a [0xb77b856a]
  /usr/lib/qt4/lib/libQtGui.so.4 : QApplicationPrivate::notify_helper(QObject*, QEvent*)+0xbc [0xb731909c]
  /usr/lib/qt4/lib/libQtGui.so.4 : QApplication::notify(QObject*, QEvent*)+0xa31 [0xb7321d21]
  /usr/lib/qt4/lib/libQtCore.so.4 : QCoreApplication::notifyInternal(QObject*, QEvent*)+0x7b [0xb6fd9c6b]
  /usr/lib/qt4/lib/libQtGui.so.4 : QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&)+0xde [0xb7320d8e]
  /usr/lib/qt4/lib/libQtGui.so.4 [0xb73906f5]
  /usr/lib/qt4/lib/libQtGui.so.4 : QApplication::x11ProcessEvent(_XEvent*)+0x191e [0xb738fb7e]
  /usr/lib/qt4/lib/libQtGui.so.4 [0xb73b8dd2]
  /usr/lib/libglib-2.0.so.0 : g_main_context_dispatch()+0x1e8 [0xb68e3ac8]
  /usr/lib/libglib-2.0.so.0 [0xb68e7163]
  /usr/lib/libglib-2.0.so.0 : g_main_context_iteration()+0x71 [0xb68e7321]
  /usr/lib/qt4/lib/libQtCore.so.4 : QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x58 [0xb7005208]
  /usr/lib/qt4/lib/libQtGui.so.4 [0xb73b8515]
  /usr/lib/qt4/lib/libQtCore.so.4 : QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x4a [0xb6fd829a]
  /usr/lib/qt4/lib/libQtCore.so.4 : QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+0xf2 [0xb6fd86e2]
  /usr/lib/qt4/lib/libQtCore.so.4 : QCoreApplication::exec()+0xb9 [0xb6fdab89]
  /usr/lib/qt4/lib/libQtGui.so.4 : QApplication::exec()+0x27 [0xb7318f17]
  qbittorrent : main()+0xac2 [0x80b85e2]
  /lib/libc.so.6 : __libc_start_main()+0xe5 [0xb6c186a5]
  qbittorrent [0x8083d81]

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Could you send me the torrent file at <email address hidden> ?
In the meantime, simply disable "torrent addition dialog" in program preferences.

Changed in qbittorrent:
assignee: nobody → Christophe Dumez (hydr0g3n)
milestone: none → 1.5.1
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

This is what I thought, it has nothing to do with the torrent file. The torrents you sent me work just fine here. There must be something different on your system... Are you using 64 bits?

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Would you be able to enable debug in qBittorrent (DEBUG=1 in src/src.pro) and recompile? then get a real backtrace in gdb?

I tried to figure out where the problem could occur but I could not. And since I cannot reproduce the problem, this is hard.

Revision history for this message
codyn (great457as) wrote :

Hi !
First, please forgive my english.
My system is an Archlinux(up to date) and until today I run an older version of qBittorrent (I guess 1.4) without any problem.
Today I installed qBittorrent-1.5.0 from the Archlinux /community repository http://www.archlinux.org/packages/?repo=Community and surprise: the programm crashes and disappears from the screen when, as usual, it must appear the "Torrent addition dialog". What's going on? Thank you!

Revision history for this message
ToxAtec (michi-buechler) wrote :

Hi,
I found out that the crash only occurs when the folder that would be displayed as the save path (/home/michael/qBT_dir for me) does NOT exist. Otherwise it just works as it should.

I also recompiled qBittorrent with DEBUG=1, but although the folder doesn't exist, qBittorrent doesn't crash :S

Thats what it says with DEBUG=1: http://pastebin.com/f123e1a91
It does not affect the debugging output if the folder does exist or not, BUT:
If it exists, the dialog window looks as usual, like that: http://img5.imagebanana.com/view/aw4yo041/qBT1.png
If it doesn't, there are strange symbols and numbers: http://img5.imagebanana.com/view/mh5o41w2/qBT2.png

I hope that helps.

By the way, I'm not using x64, I don't know what should be different otherwise. I'm having some dbus problems though.

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Ok. I commited the fix on SVN. Thanks a lot for this critical bug report. I should release v1.5.1 soon.

Changed in qbittorrent:
status: New → Fix Committed
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

v1.5.1 was just released.

Changed in qbittorrent:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.