Not logged in. · Lost password · Register
Forum: Community Pre-release Discussion RSS
Psi 0.12 RC1 - Crash with Filetransfer!
SVN from 17 and 27 March 2008

Announcement

11-16-2005, 12:33 by halr9000
Subject: Psi Groupchat (new address)
Join us at the Psi Groupchat (MUC)! Room name: psi@conference.psi-im.org
Avatar
Coolcat #1
Member since 05/2007 · 34 posts · Location: NRW, Germany, Europe
Group memberships: Members
Show profile · Link to this post
Subject: Psi 0.12 RC1 - Crash with Filetransfer!
Each time I do the following, Psi is crashing immediately:
Rightclick on contact -> "Send file"
For a split second I see two new windows, then I get a "Speicherzugriffsfehler" in console and Psi terminates.
(Translated: "memory access error" => in most cases "Null-Pointer-Exception".)

Confirmed with SVN versions from 17 and from 27 March 2008.

kernel-2.6.23.15-80.fc7 (Fedora 7 Linux)
KDE 3.5.9
qt-4.3.3
qca-2.0.0
qca-cyrus-sasl-2.0.0-beta3
qca-gnupg-2.0.0-beta2
qca-ossl-2.0.0-beta3

Coolcat
Avatar
Kev (Administrator) #2
User title: Project Lead
Member since 11/2002 · 2998 posts · Location: Exeter, UK
Group memberships: Administrators, Developers, Members
Show profile · Link to this post
Could you get us a backtrace please? We can't reproduce this.
Psi Project Leader.
Homepage, including development blog
Avatar
Coolcat #3
Member since 05/2007 · 34 posts · Location: NRW, Germany, Europe
Group memberships: Members
Show profile · Link to this post
I used GDB to get the backtrace but I'm not familiar with debuggers...so I hope this is what you want:

(...)
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208833824 (LWP 6098)]
0x033b8ba2 in ?? () from /usr/lib/libQtGui.so.4
(gdb) bt
#0  0x033b8ba2 in ?? () from /usr/lib/libQtGui.so.4
#1  0x033b3a46 in ?? () from /usr/lib/libQtGui.so.4
#2  0x034b937d in ?? () from /usr/lib/libQtGui.so.4
#3  0x0088216a in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#4  0x00882a52 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#5  0x0089d399 in QAbstractItemModel::dataChanged ()
   from /usr/lib/libQtCore.so.4
#6  0x033bc3ca in ?? () from /usr/lib/libQtGui.so.4
#7  0x034b96c9 in ?? () from /usr/lib/libQtGui.so.4
#8  0x0087c71b in QMetaCallEvent::placeMetaCall () from /usr/lib/libQtCore.so.4
#9  0x0087e809 in QObject::event () from /usr/lib/libQtCore.so.4
#10 0x02fda76d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#11 0x02fe06b9 in QApplication::notify () from /usr/lib/libQtGui.so.4
#12 0x0832a3d3 in PsiApplication::notify (this=0xbfb97ec0, receiver=0x939c7f8,
    event=0x9a97a08) at psiapplication.cpp:250
#13 0x0087079b in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#14 0x00871e00 in QCoreApplicationPrivate::sendPostedEvents ()
   from /usr/lib/libQtCore.so.4
#15 0x008720bd in QCoreApplication::sendPostedEvents ()
   from /usr/lib/libQtCore.so.4
#16 0x00891980 in ?? () from /usr/lib/libQtCore.so.4
#17 0x045847f2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#18 0x045877cf in ?? () from /lib/libglib-2.0.so.0
#19 0x04587d35 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#20 0x00891ca8 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#21 0x03053c95 in ?? () from /usr/lib/libQtGui.so.4
#22 0x0086fcc1 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#23 0x0086fdcc in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#24 0x03392b97 in QDialog::exec () from /usr/lib/libQtGui.so.4
#25 0x033a0feb in QFileDialog::getOpenFileName () from /usr/lib/libQtGui.so.4
#26 0x0820e120 in FileUtil::getOpenFileName (parent=0x99ac6d8,
    caption=@0xbfb972c8, filter=@0xbfb972c4, selectedFilter=0x0)
    at fileutil.cpp:65
#27 0x0832d8cf in FileRequestDlg::chooseFile (this=0x99ac6d8)
    at filetransdlg.cpp:758
#28 0x08449170 in FileRequestDlg::qt_metacall (this=0x99ac6d8,
    _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbfb9736c)
    at .moc/moc_filetransdlg.cpp:217
#29 0x0088216a in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#30 0x00882a52 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#31 0x00887b67 in ?? () from /usr/lib/libQtCore.so.4
#32 0x00887bac in ?? () from /usr/lib/libQtCore.so.4
#33 0x0087e785 in QObject::event () from /usr/lib/libQtCore.so.4
#34 0x02fda76d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
---Type <return> to continue, or q <return> to quit---
#35 0x02fe06b9 in QApplication::notify () from /usr/lib/libQtGui.so.4
#36 0x0832a3d3 in PsiApplication::notify (this=0xbfb97ec0, receiver=0x93d0bc0,
    event=0xbfb97c78) at psiapplication.cpp:250
#37 0x0087079b in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#38 0x00893fdd in ?? () from /usr/lib/libQtCore.so.4
#39 0x00891740 in ?? () from /usr/lib/libQtCore.so.4
#40 0x045847f2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#41 0x045877cf in ?? () from /lib/libglib-2.0.so.0
#42 0x04587d35 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#43 0x00891ca8 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#44 0x03053c95 in ?? () from /usr/lib/libQtGui.so.4
#45 0x0086fcc1 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#46 0x0086fdcc in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#47 0x0087217a in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#48 0x02fd9d77 in QApplication::exec () from /usr/lib/libQtGui.so.4
#49 0x0842f8db in main (argc=1, argv=0xbfb97fa4) at main.cpp:356
Avatar
infiniti (Administrator) #4
Member since 09/2002 · 1375 posts · Location: California, USA
Group memberships: Administrators, Developers, Members
Show profile · Link to this post
What if you access a different 'open file' area of Psi, such as when you try to select a sound file?  Does it also crash?
-Justin
Avatar
Coolcat #5
Member since 05/2007 · 34 posts · Location: NRW, Germany, Europe
Group memberships: Members
Show profile · Link to this post
Does it also crash?
Good idea.....yes, it does also crash for sound files! (I had not tried it until now...)

Backtrace:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1209030432 (LWP 2880)]
0x033b8b9f in ?? () from /usr/lib/libQtGui.so.4
(gdb) bt
#0  0x033b8b9f in ?? () from /usr/lib/libQtGui.so.4
#1  0x033b3a46 in ?? () from /usr/lib/libQtGui.so.4
#2  0x034b937d in ?? () from /usr/lib/libQtGui.so.4
#3  0x0088216a in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#4  0x00882a52 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#5  0x0089d399 in QAbstractItemModel::dataChanged ()
   from /usr/lib/libQtCore.so.4
#6  0x033bc3ca in ?? () from /usr/lib/libQtGui.so.4
#7  0x034b96c9 in ?? () from /usr/lib/libQtGui.so.4
#8  0x0087c71b in QMetaCallEvent::placeMetaCall () from /usr/lib/libQtCore.so.4
#9  0x0087e809 in QObject::event () from /usr/lib/libQtCore.so.4
#10 0x02fda76d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#11 0x02fe06b9 in QApplication::notify () from /usr/lib/libQtGui.so.4
#12 0x0832a3d3 in PsiApplication::notify (this=0xbf8a2bd0, receiver=0x99b9e48,
    event=0x9ba1fb8) at psiapplication.cpp:250
#13 0x0087079b in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#14 0x00871e00 in QCoreApplicationPrivate::sendPostedEvents ()
   from /usr/lib/libQtCore.so.4
#15 0x008720bd in QCoreApplication::sendPostedEvents ()
   from /usr/lib/libQtCore.so.4
#16 0x00891980 in ?? () from /usr/lib/libQtCore.so.4
#17 0x045847f2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#18 0x045877cf in ?? () from /lib/libglib-2.0.so.0
#19 0x04587d35 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#20 0x00891ca8 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#21 0x03053c95 in ?? () from /usr/lib/libQtGui.so.4
#22 0x0086fcc1 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#23 0x0086fdcc in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#24 0x03392b97 in QDialog::exec () from /usr/lib/libQtGui.so.4
#25 0x033a0feb in QFileDialog::getOpenFileName () from /usr/lib/libQtGui.so.4
#26 0x0820e120 in FileUtil::getOpenFileName (parent=0x9abd860,
    caption=@0xbf8a1a10, filter=@0xbf8a1a0c, selectedFilter=0x0)
    at fileutil.cpp:65
#27 0x084125f6 in OptionsTabSound::chooseSoundEvent (this=0x9b3fc30,
    b=0x9a74cd0) at options/opt_sound.cpp:196
#28 0x0844e963 in OptionsTabSound::qt_metacall (this=0x9b3fc30,
    _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbf8a1f0c)
    at .moc/moc_opt_sound.cpp:69
#29 0x0088216a in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#30 0x00882a52 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#31 0x034b2463 in QButtonGroup::buttonClicked () from /usr/lib/libQtGui.so.4
#32 0x0329f4aa in ?? () from /usr/lib/libQtGui.so.4
#33 0x032a0c70 in ?? () from /usr/lib/libQtGui.so.4
#34 0x032a0ea0 in QAbstractButton::mouseReleaseEvent ()
   from /usr/lib/libQtGui.so.4
---Type <return> to continue, or q <return> to quit---
#35 0x0335930c in QToolButton::mouseReleaseEvent () from /usr/lib/libQtGui.so.4
#36 0x0301db43 in QWidget::event () from /usr/lib/libQtGui.so.4
#37 0x032a0183 in QAbstractButton::event () from /usr/lib/libQtGui.so.4
#38 0x03358e34 in QToolButton::event () from /usr/lib/libQtGui.so.4
#39 0x02fda76d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#40 0x02fe0907 in QApplication::notify () from /usr/lib/libQtGui.so.4
#41 0x0832a3d3 in PsiApplication::notify (this=0xbf8a2bd0, receiver=0x9a74cd0,
    event=0xbf8a24a8) at psiapplication.cpp:250
#42 0x0087079b in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#43 0x03030405 in ?? () from /usr/lib/libQtGui.so.4
#44 0x0302fa6f in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#45 0x03053ee4 in ?? () from /usr/lib/libQtGui.so.4
#46 0x045847f2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#47 0x045877cf in ?? () from /lib/libglib-2.0.so.0
#48 0x04587d35 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#49 0x00891ca8 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#50 0x03053c95 in ?? () from /usr/lib/libQtGui.so.4
#51 0x0086fcc1 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#52 0x0086fdcc in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#53 0x0087217a in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#54 0x02fd9d77 in QApplication::exec () from /usr/lib/libQtGui.so.4
---Type <return> to continue, or q <return> to quit---
#55 0x0842f8db in main (argc=1, argv=0xbf8a2cb4) at main.cpp:356
(gdb) quit
The program is running.  Exit anyway? (y or n) y
This post was edited on 03-29-2008, 06:37 by Coolcat.
textshell #6
Member since 03/2004 · 66 posts
Group memberships: Developers, Members
Show profile · Link to this post
can you look at the option options.ui.last-used-open-path in options.xml for us? what is the current setting in there?
Maybe something broken got in there.
Avatar
Coolcat #7
Member since 05/2007 · 34 posts · Location: NRW, Germany, Europe
Group memberships: Members
Show profile · Link to this post
<options comment="Client options" >
...
 <ui comment="User interface options" >
  ...
  <last-used-open-path type="QString" >/home/coolcat/.mozilla/firefox/op3myuc5.default</last-used-open-path>
  ...
 </ui>
 ...
</options>

This directory does exist.
Avatar
Coolcat #8
Member since 05/2007 · 34 posts · Location: NRW, Germany, Europe
Group memberships: Members
Show profile · Link to this post
That was it, I changed the directory manually to /home/coolcat and it does not longer crash. :)

Maybe its because the directory .mozilla is hidden?
Avatar
Coolcat #9
Member since 05/2007 · 34 posts · Location: NRW, Germany, Europe
Group memberships: Members
Show profile · Link to this post
It is possible to send files once from hidden directories, but if you open the FileOpenDialog again Psi crashes. You can reach hidden directories by entering the directory name manually as filename in the dialog.

Crash does also happen for other hidden directories, e.g. .psi
This post was edited on 03-29-2008, 20:49 by Coolcat.
debianuser #10
Member since 01/2007 · 32 posts
Group memberships: Members
Show profile · Link to this post
Nice that you have found the error for you :)

But here I cannot reproduce the error, do you use a special file system or something in that connection extraordinary?
Avatar
Coolcat #11
Member since 05/2007 · 34 posts · Location: NRW, Germany, Europe
Group memberships: Members
Show profile · Link to this post
No, that partition is local and normal EXT3.
This post was edited on 03-30-2008, 07:51 by Coolcat.
Avatar
Coolcat #12
Member since 05/2007 · 34 posts · Location: NRW, Germany, Europe
Group memberships: Members
Show profile · Link to this post
For some reason the bug does only happen if I have really send a file (e.g. /home/coolcat/.mozilla/firefox/op3myuc5.default/bookmarks.html) from one to the other account and the other user has really accepted it. In my case both Accounts are running on the same machine, with same instance of Psi, so transfer goes most probably over localhost. If the other user does reject the file transfer, Psi remembers the directory, but does not crash at the next time.

It did some testing and found out that the hidden directory needs a subdirectory and this rights:
[coolcat@sempron2800 ~]$ cd ~
[coolcat@sempron2800 ~]$ ls -ld .test/ .test/test2/ .test/test2/test.txt
drwx------ 3 coolcat users 4096 30. Mär 14:20 .test/
drwx------ 2 coolcat users 4096 30. Mär 14:20 .test/test2/
-rw-r-xr-- 1 coolcat users   12 30. Mär 14:03 .test/test2/test.txt
This post was edited on 03-30-2008, 08:29 by Coolcat.
Avatar
infiniti (Administrator) #13
Member since 09/2002 · 1375 posts · Location: California, USA
Group memberships: Administrators, Developers, Members
Show profile · Link to this post
Looks like this should be fixed in Qt 4.3.4:

http://trolltech.com/developer/notes/changes/changes-4.3.4/

Thanks Coolcat for helping pinpoint the error.
-Justin
Avatar
Coolcat #14
Member since 05/2007 · 34 posts · Location: NRW, Germany, Europe
Group memberships: Members
Show profile · Link to this post
Ok, I will report if the bug remains after updating to qt 4.3.4. But this could take a while since Fedora 7 is outdated and only security fixes are imported into the repository. I have planed to upgrade directly to Fedora 9 sometime this summer, because I had some problems with Fedora 8.
Close Smaller – Larger + Reply to this post:
Smilies: :mellow: :huh: ^_^ :o ;) :P :D :lol: B) :rolleyes: -_- <_< :) :wub: :angry: :( :unsure: :wacko: :blink: :ph34r:
Special characters:
Go to forum
Unclassified NewsBoard devel of 20051113 © 2003-5 by Yves Goergen
Current time: 05-12-2008, 18:13:46 (UTC -04:00)