aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Invalid range in wxGauge?  (Read 1851 times)

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Invalid range in wxGauge?
« on: August 18, 2004, 12:12:10 PM »

Code: [Select]
(gdb) bt
#0  0x00b7cc32 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x0080ee1b in raise () from /lib/tls/libpthread.so.0
#2  0x001a4f35 in wxTrap() () at src/common/appbase.cpp:569
#3  0x001a4f91 in wxOnAssert(char const*, int, char const*, char const*) (szFile=0x65d968 "src/gtk/gauge.cpp",
    nLine=95, szCond=0x65d958 "wxAssertFailure", szMsg=0x65da00 "invalid value in wxGauge::SetValue()")
    at src/common/appbase.cpp:597
#4  0x001a4f68 in wxAssert(int, char const*, int, char const*, char const*) (cond=0,
    szFile=0x65d968 "src/gtk/gauge.cpp", nLine=95, szCond=0x65d958 "wxAssertFailure",
    szMsg=0x65da00 "invalid value in wxGauge::SetValue()") at src/common/appbase.cpp:582
#5  0x0055f9b8 in wxGauge::SetValue(int) (this=0x8bb2430, pos=20924) at src/gtk/gauge.cpp:95
#6  0x082aac99 in CSharedFilesWnd::ShowDetails(CKnownFile*) (this=0x8b9e8b8, cur_file=0x8c50828)
    at SharedFilesWnd.cpp:99
#7  0x082aabae in CSharedFilesWnd::Check4StatUpdate(CKnownFile*) (this=0x8b9e8b8, file=0x8c50828)
    at SharedFilesWnd.cpp:72
#8  0x082a95e5 in CSharedFilesCtrl::UpdateItem(CKnownFile*) (this=0x8ba1c88, toupdate=0x8c50828)
    at SharedFilesCtrl.cpp:618
#9  0x082d335d in CamuleApp::NotifyEvent(GUIEvent) (this=0x88c3d08, event=
      {ID = SHAREDFILES_UPDATEITEM, byte_value = 0 '\0', short_value = 0, long_value = 0, longlong_value = 0, string_value = { = {static npos = 4294967195, m_pchData = 0x250aa4 ""}, }, ptr_value = 0x8c50828, ptr_aux_value = 0x0}) at amule.cpp:1921
#10 0x081f1976 in CKnownFile::UpdateAutoUpPriority() (this=0x8c50828) at KnownFile.cpp:783
#11 0x082c5110 in CKnownFile::SubQueuedCount() (this=0x8c50828) at KnownFile.h:158
#12 0x082c3973 in CUpDownClient::SetUploadFileID(CKnownFile*) (this=0xbeffe60, newreqfile=0x0)
    at UploadClient.cpp:524
#13 0x0817d51d in ~CUpDownClient (this=0xbeffe60) at BaseClient.cpp:258
#14 0x0819f6bd in CClientList::Process() (this=0x892b288) at ClientList.cpp:334
#15 0x082d23f5 in CamuleApp::OnCoreTimer(wxTimerEvent&) (this=0x88c3d08) at amule.cpp:1602
#16 0x001a49c8 in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const (
    this=0x88c3d08, handler=0x88c3d08, func=
      {__pfn = 0x82d2312 , __delta = 0}, event=@0xbfef7440)
    at src/common/appbase.cpp:305
#17 0x00242259 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) (
    entry=@0x857cb78, handler=0x88c3d08, event=@0xbfef7440) at src/common/event.cpp:1169
#18 0x002411e6 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) (this=0x857cad4, event=@0xbfef7440,
    self=0x88c3d08) at src/common/event.cpp:837
#19 0x0024246c in wxEvtHandler::ProcessEvent(wxEvent&) (this=0x88c3d08, event=@0xbfef7440)
    at src/common/event.cpp:1231
#20 0x0060b001 in wxTimerBase::Notify() (this=0x891d128) at src/common/timercmn.cpp:61
#21 0x0050b60b in timeout_callback (data=0x891d128) at src/gtk/timer.cpp:47
#22 0x044b08ec in g_main_context_wakeup () from /usr/lib/libglib-2.0.so.0
#23 0x044adfdd in unblock_source () from /usr/lib/libglib-2.0.so.0
#24 0x044aefd8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#25 0x044af2ef in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#26 0x044af9cf in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#27 0x05051282 in gtk_dialog_run () from /usr/lib/libgtk-x11-2.0.so.0
(gdb) bt full
#0  0x00b7cc32 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1  0x0080ee1b in raise () from /lib/tls/libpthread.so.0
No symbol table info available.
#2  0x001a4f35 in wxTrap() () at src/common/appbase.cpp:569
No locals.
#3  0x001a4f91 in wxOnAssert(char const*, int, char const*, char const*) (szFile=0x65d968 "src/gtk/gauge.cpp",
    nLine=95, szCond=0x65d958 "wxAssertFailure", szMsg=0x65da00 "invalid value in wxGauge::SetValue()")
    at src/common/appbase.cpp:597
        s_bInAssert = true
#4  0x001a4f68 in wxAssert(int, char const*, int, char const*, char const*) (cond=0,
    szFile=0x65d968 "src/gtk/gauge.cpp", nLine=95, szCond=0x65d958 "wxAssertFailure",
    szMsg=0x65da00 "invalid value in wxGauge::SetValue()") at src/common/appbase.cpp:582
No locals.
#5  0x0055f9b8 in wxGauge::SetValue(int) (this=0x8bb2430, pos=20924) at src/gtk/gauge.cpp:95
No locals.
#6  0x082aac99 in CSharedFilesWnd::ShowDetails(CKnownFile*) (this=0x8b9e8b8, cur_file=0x8c50828)
    at SharedFilesWnd.cpp:99
        buffer = "\b\000\000\000xb(\000øoï¿#3!\000\230\e\021\f\000\000\000\000\002\000\000\000\b3!\000\000\000\000\000@pï¿\030pï¿/O\022\b`pï¿@pï¿xpï¿#m*\b\210\034º\b\r\000\000\000xpï¿Wm*\b`pï¿Î'2\b$è\002\fÔuÞ\vÈ\035ù\v"
#7  0x082aabae in CSharedFilesWnd::Check4StatUpdate(CKnownFile*) (this=0x8b9e8b8, file=0x8c50828)
    at SharedFilesWnd.cpp:72
No locals.
#8  0x082a95e5 in CSharedFilesCtrl::UpdateItem(CKnownFile*) (this=0x8ba1c88, toupdate=0x8c50828)
    at SharedFilesCtrl.cpp:618
        result = 13
#9  0x082d335d in CamuleApp::NotifyEvent(GUIEvent) (this=0x88c3d08, event=
      {ID = SHAREDFILES_UPDATEITEM, byte_value = 0 '\0', short_value = 0, long_value = 0, longlong_value = 0, string_value = { = {static npos = 4294967195, m_pchData = 0x250aa4 ""}, }, ptr_value = 0x8c50828, ptr_aux_value = 0x0}) at amule.cpp:1921
No locals.
#10 0x081f1976 in CKnownFile::UpdateAutoUpPriority() (this=0x8c50828) at KnownFile.cpp:783
No locals.
#11 0x082c5110 in CKnownFile::SubQueuedCount() (this=0x8c50828) at KnownFile.h:158
No locals.
#12 0x082c3973 in CUpDownClient::SetUploadFileID(CKnownFile*) (this=0xbeffe60, newreqfile=0x0)
    at UploadClient.cpp:524
        oldreqfile = (class CKnownFile *) 0x8c50828
#13 0x0817d51d in ~CUpDownClient (this=0xbeffe60) at BaseClient.cpp:258
No locals.
#14 0x0819f6bd in CClientList::Process() (this=0x892b288) at ClientList.cpp:334
        toremove = (CUpDownClient *) 0xbeffe60
        cur_tick = 1860382750
#15 0x082d23f5 in CamuleApp::OnCoreTimer(wxTimerEvent&) (this=0x88c3d08) at amule.cpp:1602
        msPrev1 = 337496240
        msPrev5 = 337495537
        msPrevSave = 337438012
        msCur = 337496240
#16 0x001a49c8 in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const (
    this=0x88c3d08, handler=0x88c3d08, func=
      {__pfn = 0x82d2312 , __delta = 0}, event=@0xbfef7440)
    at src/common/appbase.cpp:305
No locals.
#17 0x00242259 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) (
    entry=@0x857cb78, handler=0x88c3d08, event=@0xbfef7440) at src/common/event.cpp:1169
        tableId1 = 6127
        tableId2 = -1
#18 0x002411e6 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) (this=0x857cad4, event=@0xbfef7440,
    self=0x88c3d08) at src/common/event.cpp:837
        n = 2
        eventEntryTable = (const wxEventTableEntryPointerArray &) @0x8a29604: { = {m_nSize = 3,
    m_nCount = 3, m_pItems = 0x8a292c0}, }
        count = 3
        eventType = 10082
        eTTnode = (EventTypeTable * const) 0x8a29600
#19 0x0024246c in wxEvtHandler::ProcessEvent(wxEvent&) (this=0x88c3d08, event=@0xbfef7440)
    at src/common/event.cpp:1231
No locals.
#20 0x0060b001 in wxTimerBase::Notify() (this=0x891d128) at src/common/timercmn.cpp:61
        event = { = { = {_vptr.wxObject = 0x83901e8, static ms_classInfo = {
        m_className = 0x24f62d "wxObject", m_objectSize = 8, m_objectConstructor = 0, m_baseInfo1 = 0x0,
        m_baseInfo2 = 0x0, static sm_first = 0x83915a8, m_next = 0x28be50, static sm_classTable = 0x88b5008},
      m_refData = 0x0}, m_eventObject = 0x891d128, m_eventType = 10082, m_timeStamp = 0, m_id = 6127,
    m_callbackUserData = 0x0, m_propagationLevel = 0, m_skipped = false, m_isCommandEvent = false,
    static ms_classInfo = {m_className = 0x254857 "wxEvent", m_objectSize = 36, m_objectConstructor = 0,
      m_baseInfo1 = 0x28be14, m_baseInfo2 = 0x0, static sm_first = 0x83915a8, m_next = 0x28c0a4,
      static sm_classTable = 0x88b5008}}, m_interval = 100, static ms_classInfo = {
    m_className = 0x670082 "wxTimerEvent", m_objectSize = 40,
    m_objectConstructor = 0x60ae08 , m_baseInfo1 = 0x28c0bc, m_baseInfo2 = 0x0,
    static sm_first = 0x83915a8, m_next = 0x6fece8, static sm_classTable = 0x88b5008}}
#21 0x0050b60b in timeout_callback (data=0x891d128) at src/gtk/timer.cpp:47
        timer = (wxTimer *) 0x891d128
#22 0x044b08ec in g_main_context_wakeup () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#23 0x044adfdd in unblock_source () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#24 0x044aefd8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#25 0x044af2ef in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#26 0x044af9cf in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#27 0x05051282 in gtk_dialog_run () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
(gdb) frame 6
#6  0x082aac99 in CSharedFilesWnd::ShowDetails(CKnownFile*) (this=0x8b9e8b8, cur_file=0x8c50828)
    at SharedFilesWnd.cpp:99
99              pop_bartrans->SetValue(cur_file->statistic.GetTransfered()/1024);
(gdb) l
94              char buffer[100];
95
96              //pop_bartrans.SetRange32(0,theApp.knownfiles->transfered/1024);
97              pop_bartrans->SetRange(theApp.knownfiles->transfered/1024);
98              //pop_bartrans.SetPos(cur_file->statistic.GetTransfered()/1024);
99              pop_bartrans->SetValue(cur_file->statistic.GetTransfered()/1024);
100             //pop_bartrans.SetShowPercent();
101             GetDlgItem(IDC_STRANSFERED)->SetLabel(CastItoXBytes(cur_file->statistic.GetTransfered()));
102
103             pop_bar->SetRange(theApp.knownfiles->requested);
Logged