[haiku-development] BeGet FilePanel crash

  • From: scott mc <scottmc2@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 30 Jul 2009 18:32:42 +0000

In BeGet (old BeOS app now on OSDrawer) there's a preference option to
set a custom sound up for when a download completes, however if you
try to select "Other..." it tries to open the filepanel to open the
file, but it crashes to gdb.  If I comment out line 87 in
HSoundSettingView.cpp I can avoid the crash.  I'm not sure if this
even worked on the original BeOS version, as I haven't changed any
code on this file:
http://dev.osdrawer.net/repositories/entry/beget/src/HSoundSettingView.cpp
(I tried adding #include <FilePanel.h> but still got the same results)

To build BeGet, first check out: svn checkout http://svn.osdrawer.net/beget
Then run make.

I then tried to duplicate that opening of the filepanel the way it
works in icon-o-matic and that still crashed for me, so I suspect
there's something that may not be getting initialized correctly before
calling Show()?

Here's the gdb output, not sure what I'm looking for though, anyone
see any red flags?
GNU gdb 6.3
Copyright 2004 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 "i586-pc-haiku"...(no debugging symbols found)

[tcsetpgrp failed in terminal_inferior: Invalid Argument]
Thread 469 caused an exception: Segment violation
Reading symbols from /boot/system/runtime_loader...done.
Loaded symbols for /boot/system/runtime_loader
Reading symbols from /boot/system/lib/libbe.so...done.
Loaded symbols for /boot/system/lib/libbe.so
Reading symbols from /boot/system/lib/libnetwork.so...done.
Loaded symbols for /boot/system/lib/libnetwork.so
Reading symbols from /boot/system/lib/libgame.so...done.
Loaded symbols for /boot/system/lib/libgame.so
Reading symbols from /boot/system/lib/libtracker.so...done.
Loaded symbols for /boot/system/lib/libtracker.so
Reading symbols from /boot/system/lib/libmedia.so...done.
Loaded symbols for /boot/system/lib/libmedia.so
Reading symbols from /boot/system/lib/libstdc++.r4.so...done.
Loaded symbols for /boot/system/lib/libstdc++.r4.so
Reading symbols from /boot/system/lib/libroot.so...done.
Loaded symbols for /boot/system/lib/libroot.so
Reading symbols from /boot/system/lib/libtranslation.so...done.
Loaded symbols for /boot/system/lib/libtranslation.so
Reading symbols from /boot/system/lib/libtextencoding.so...done.
Loaded symbols for /boot/system/lib/libtextencoding.so
Reading symbols from /boot/common/lib/libiconv.so...done.
Loaded symbols for /boot/common/lib/libiconv.so
[tcsetpgrp failed in terminal_inferior: Invalid Argument]
[Switching to team /boot/home/Desktop/BeGet (432) thread w>BeGet: Open (469)]
0x008251f1 in __si_type_info::dcast () from /boot/system/lib/libroot.so
(gdb) bt
#0  0x008251f1 in __si_type_info::dcast () from /boot/system/lib/libroot.so
#1  0x00825f13 in __dynamic_cast () from /boot/system/lib/libroot.so
#2  0x003ecd01 in BWindow::_FindView () from /boot/system/lib/libbe.so
#3  0x003e7a45 in BWindow::DispatchMessage () from /boot/system/lib/libbe.so
#4  0x003e8dbd in BWindow::UpdateIfNeeded () from /boot/system/lib/libbe.so
#5  0x003da296 in BView::GetMouse () from /boot/system/lib/libbe.so
#6  0x0066dce7 in BPrivate::BPoseView::Pulse ()
   from /boot/system/lib/libtracker.so
#7  0x003e32ce in BView::_Pulse () from /boot/system/lib/libbe.so
#8  0x003e32e1 in BView::_Pulse () from /boot/system/lib/libbe.so
#9  0x003e32e1 in BView::_Pulse () from /boot/system/lib/libbe.so
#10 0x003e76a8 in BWindow::DispatchMessage () from /boot/system/lib/libbe.so
#11 0x0062685d in BPrivate::TFilePanel::DispatchMessage ()
   from /boot/system/lib/libtracker.so
#12 0x003eb654 in BWindow::task_looper () from /boot/system/lib/libbe.so
#13 0x0032dadf in BLooper::_task0_ () from /boot/system/lib/libbe.so
#14 0x0082ad78 in thread_entry () from /boot/system/lib/libroot.so
#15 0x700c1fec in ?? ()
Current language:  auto; currently c++
(gdb)


-scottmc

Other related posts: