aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: crash while opening an item to show sources  (Read 3087 times)

nsd20463

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
crash while opening an item to show sources
« on: May 10, 2004, 03:40:18 AM »

canceled a file. Then double-clicked on a different file to show its sources,
and it amule crashed while rendering the 1st source line. Here's the backtrace

Canceling
        Stopped
        Removed from shared
        Removed from download queue
        Removed transferwnd
        Closed
        Removed .part.met
        Removed .part
        Removed .BAK
        Removed .seeds
Done

Program received signal SIGSEGV, Segmentation fault.
0x080d61d4 in CAbstractFile::GetFileSize (this=0x0) at KnownFile.h:116
116             uint32  GetFileSize()                   {return m_nFileSize;}
(gdb) bt
#0  0x080d61d4 in CAbstractFile::GetFileSize (this=0x0) at KnownFile.h:116
#1  0x08107922 in CUpDownClient::DrawStatusBar (this=0x8a888e0, dc=0xbfffec00, rect=, onlygreyrect=true, bFlat=false)
    at DownloadClient.cpp:74
#2  0x0811362d in CDownloadListCtrl::DrawSourceItem (this=0x8564a78, dc=0xbffff040, nColumn=5, lpRect=0xbfffeeb0, lpCtrlItem=0x8a88b60)
    at DownloadListCtrl.cpp:1245
#3  0x081103b9 in CDownloadListCtrl::OnDrawItem (this=0x8564a78, item=34, dc=0xbffff040, rect=@0xbffff010, rectHL=@0xbfffef70,
    highlighted=false) at DownloadListCtrl.cpp:513
#4  0x08159dc0 in wxODListMainWindow::OnPaint (this=0x8564f28) at listctrl.cpp:2999
#5  0x402ed667 in wxEvtHandler::SearchEventTable () from /usr/lib/libwx_gtk-2.4.so.0
#6  0x402ed483 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_gtk-2.4.so.0
#7  0x402ab60a in wxWindow::GtkSendPaintEvents () from /usr/lib/libwx_gtk-2.4.so.0
#8  0x402ab36e in wxWindow::GtkUpdate () from /usr/lib/libwx_gtk-2.4.so.0
#9  0x402a9d4f in wxWindow::OnInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
#10 0x4024c955 in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
#11 0x4024c96f in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
#12 0x4024c96f in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
#13 0x4024c96f in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
#14 0x4024c96f in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
#15 0x4024c96f in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
#16 0x4024c96f in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
#17 0x4024c7bf in wxApp::ProcessIdle () from /usr/lib/libwx_gtk-2.4.so.0
#18 0x4024c01a in wxWakeUpIdle () from /usr/lib/libwx_gtk-2.4.so.0
#19 0x4065afa0 in g_timeout_add () from /usr/lib/libglib-1.2.so.0
#20 0x4065a03d in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#21 0x4065a4f4 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#22 0x4065a724 in g_main_run () from /usr/lib/libglib-1.2.so.0
#23 0x40580c3f in gtk_main () from /usr/lib/libgtk-1.2.so.0
#24 0x4024ca79 in wxApp::MainLoop () from /usr/lib/libwx_gtk-2.4.so.0
#25 0x402ada47 in wxAppBase::OnRun () from /usr/lib/libwx_gtk-2.4.so.0
#26 0x4024d1db in wxEntry () from /usr/lib/libwx_gtk-2.4.so.0
#27 0x08225f02 in main (argc=1, argv=0xbffff8b4) at amule.cpp:114
(gdb) bt full
#0  0x080d61d4 in CAbstractFile::GetFileSize (this=0x0) at KnownFile.h:116
No locals.
#1  0x08107922 in CUpDownClient::DrawStatusBar (this=0x8a888e0, dc=0xbfffec00, rect=, onlygreyrect=true, bFlat=false)
    at DownloadClient.cpp:74
        crBoth = 49152
        crNeither = 15790320
        crClientOnly = 6842472
        crPending = 16764928
        crNextPending = 16777060
        gettingParts = {<> = {}, }
#2  0x0811362d in CDownloadListCtrl::DrawSourceItem (this=0x8564a78, dc=0xbffff040, nColumn=5, lpRect=0xbfffeeb0, lpCtrlItem=0x8a88b60)
    at DownloadListCtrl.cpp:1245
        iWidth = 158
        iHeight = 20
        dwTicks = 1821167464
        cdcStatus =
        clipper =
        buffer = {<> = {}, }
        lpUpDownClient = (CUpDownClient *) 0x8a888e0
#3  0x081103b9 in CDownloadListCtrl::OnDrawItem (this=0x8564a78, item=34, dc=0xbffff040, rect=@0xbffff010, rectHL=@0xbfffef70,
    highlighted=false) at DownloadListCtrl.cpp:513
        iNextLeft = 742
        iColumn = 5
        listitem = {<> = {}, m_mask = 98, m_itemId = 0, m_col = 0, m_state = 0, m_stateMask = 0,
  m_text = , m_image = -1, m_data = 0, m_format = 0, m_width = 170, m_attr = 0x0,
  static sm_classwxListItem = {}}
        cx = 170
        iCurrent = 5
        content = (CtrlItem_Struct *) 0x8a88b60
        file = (class CPartFile *) 0x8a888e0
        mypen =
        cur_rec = {left = 577, top = 749, right = 735, bottom = 769}
        tree_start = 569
        tree_end = 576
        notLast = true
        notFirst = true
        iOffset = 4
        iCount = 12
#4  0x08159dc0 in wxODListMainWindow::OnPaint (this=0x8564f28) at listctrl.cpp:2999
        line = 34
        visibleTo = 41
        rectLine =
        xOrig = 0
        lineHeight = 22
        visibleFrom = 31
        yOrig = 682
        dc =
        dev_x = 0
        dev_y = -682
#5  0x402ed667 in wxEvtHandler::SearchEventTable () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#6  0x402ed483 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#7  0x402ab60a in wxWindow::GtkSendPaintEvents () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#8  0x402ab36e in wxWindow::GtkUpdate () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#9  0x402a9d4f in wxWindow::OnInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#10 0x4024c955 in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#11 0x4024c96f in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#12 0x4024c96f in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#13 0x4024c96f in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#14 0x4024c96f in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#15 0x4024c96f in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#16 0x4024c96f in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#17 0x4024c7bf in wxApp::ProcessIdle () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#18 0x4024c01a in wxWakeUpIdle () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#19 0x4065afa0 in g_timeout_add () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#20 0x4065a03d in g_get_current_time () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#21 0x4065a4f4 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#22 0x4065a724 in g_main_run () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#23 0x40580c3f in gtk_main () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#24 0x4024ca79 in wxApp::MainLoop () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#25 0x402ada47 in wxAppBase::OnRun () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#26 0x4024d1db in wxEntry () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#27 0x08225f02 in main (argc=1, argv=0xbffff8b4) at amule.cpp:114
No locals.
(gdb)

Enjoy!
Logged
-nsd

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: crash while opening an item to show sources
« Reply #1 on: May 10, 2004, 06:35:21 AM »

a workaround: disable transfer bars

yjimenezg

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: crash while opening an item to show sources
« Reply #2 on: May 10, 2004, 10:30:43 PM »

So do I

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 13931)]
0x08100d50 in CUpDownClient::DrawStatusBar ()
(gdb) bt
#0  0x08100d50 in CUpDownClient::DrawStatusBar ()
#1  0x0810e985 in CDownloadListCtrl::DrawSourceItem ()
#2  0x0810a7a0 in CDownloadListCtrl::OnDrawItem ()
#3  0x08158418 in wxODListMainWindow::OnPaint ()
#4  0x4031faf2 in wxEvtHandler::SearchEventTable ()
   from /usr/lib/libwx_gtk-2.4.so.0
#5  0x4031f961 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_gtk-2.4.so.0
#6  0x402df682 in wxWindow::GtkSendPaintEvents ()
   from /usr/lib/libwx_gtk-2.4.so.0
#7  0x402df146 in wxWindow::GtkUpdate () from /usr/lib/libwx_gtk-2.4.so.0
#8  0x402ddc71 in wxWindow::OnInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
#9  0x402898b6 in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
#10 0x402898dd in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
#11 0x402898dd in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
#12 0x402898dd in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
#13 0x402898dd in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
#14 0x402898dd in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
#15 0x402898dd in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
#16 0x4028970f in wxApp::ProcessIdle () from /usr/lib/libwx_gtk-2.4.so.0
#17 0x40289134 in wxWakeUpIdle () from /usr/lib/libwx_gtk-2.4.so.0
#18 0x4071e4fa in g_timeout_add () from /usr/lib/libglib-1.2.so.0
#19 0x4071d4d8 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#20 0x4071dae3 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#21 0x4071dc7c in g_main_run () from /usr/lib/libglib-1.2.so.0
#22 0x4063e7e7 in gtk_main () from /usr/lib/libgtk-1.2.so.0
#23 0x40289a28 in wxApp::MainLoop () from /usr/lib/libwx_gtk-2.4.so.0
#24 0x402e1657 in wxAppBase::OnRun () from /usr/lib/libwx_gtk-2.4.so.0
#25 0x4028a359 in wxEntry () from /usr/lib/libwx_gtk-2.4.so.0
#26 0x0822ce10 in main ()
#27 0x411d00bf in __libc_start_main () from /lib/libc.so.6


(gdb) bt full
#0  0x08100d50 in CUpDownClient::DrawStatusBar ()
No symbol table info available.
#1  0x0810e985 in CDownloadListCtrl::DrawSourceItem ()
No symbol table info available.
#2  0x0810a7a0 in CDownloadListCtrl::OnDrawItem ()
No symbol table info available.
#3  0x08158418 in wxODListMainWindow::OnPaint ()
No symbol table info available.
#4  0x4031faf2 in wxEvtHandler::SearchEventTable ()
   from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#5  0x4031f961 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#6  0x402df682 in wxWindow::GtkSendPaintEvents ()
   from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#7  0x402df146 in wxWindow::GtkUpdate () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#8  0x402ddc71 in wxWindow::OnInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#9  0x402898b6 in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#10 0x402898dd in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#11 0x402898dd in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#12 0x402898dd in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#13 0x402898dd in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#14 0x402898dd in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#15 0x402898dd in wxApp::CallInternalIdle () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#16 0x4028970f in wxApp::ProcessIdle () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#17 0x40289134 in wxWakeUpIdle () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#18 0x4071e4fa in g_timeout_add () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#19 0x4071d4d8 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#20 0x4071dae3 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#21 0x4071dc7c in g_main_run () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#22 0x4063e7e7 in gtk_main () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#23 0x40289a28 in wxApp::MainLoop () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
---Type to continue, or q to quit---
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: crash while opening an item to show sources
« Reply #3 on: May 10, 2004, 10:34:38 PM »

yjimenezg, did u disabled the bars on your preferences ?

nsd20463

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Re: crash while opening an item to show sources
« Reply #4 on: May 11, 2004, 08:27:04 PM »

I didn't see anything called "transferbars" or similar in ./configure, so I have deselected Preferences/Gui Tweaks/Show progressbar.

I rather like progress bars, though. They tell me if an item has a chance of completing or
not. So I hope the bug is fixed in rc4.

Thanks for the reply.
Logged
-nsd

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: crash while opening an item to show sources
« Reply #5 on: May 11, 2004, 08:31:32 PM »

as long u don't play with the bars (open it etc) amule shouldn't crash..
disabling the bars is atm a workaround