aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Maybe a problem for win32  (Read 1895 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
Maybe a problem for win32
« on: August 12, 2004, 12:22:51 AM »

I keep getting these (totally deterministic when amule starts):

src/gtk/bitmap.cpp(1094): assert "wxAssertFailure" failed: invalid bitmap
Do you want to stop the program?
You can also choose [Cancel] to suppress further warnings.

src/generic/imaglist.cpp(74): assert "bitmap.GetWidth() == m_width && bitmap.GetHeight() == m_height" failed: invalid bitmap size in wxImageList: this might work on this platform but definitely won't under Windows.
Do you want to stop the program?
You can also choose [Cancel] to suppress further warnings.

Then I generated a core to see where it is:

Code: [Select]
(gdb) bt
#0  0x00343c32 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
...
#8  0x001787d0 in wxAssert(int, char const*, int, char const*, char const*) (cond=0,
    szFile=0x6cfbdf "src/gtk/bitmap.cpp", nLine=1094, szCond=0x6cfbcf "wxAssertFailure",
    szMsg=0x6cfc66 "invalid bitmap") at src/common/appbase.cpp:582
#9  0x0056320f in wxBitmap::GetWidth() const (this=0xbfec4110) at src/gtk/bitmap.cpp:1094
#10 0x005a7e4e in wxGenericImageList::Add(wxBitmap const&) (this=0x90cb350, bitmap=@0xbfec4110)
    at src/generic/imaglist.cpp:71
#11 0x082dcb00 in CamuleDlg::Apply_Clients_Skin(wxString) (this=0x90cb170, file=
        { = {static npos = 4294967195, m_pchData = 0x90b4b2c "/home/mroberto/.aMule/skins.dat"}, }) at amuleDlg.cpp:1362
#12 0x082d613b in CamuleDlg (this=0x90cb170, pParent=0x0, title=@0xbfec4570, where={x = -1, y = -1}, dlg_size=
      {x = 800, y = 600}) at amuleDlg.cpp:132
#13 0x082cdddd in CamuleApp::OnInit() (this=0x905bd08) at amule.cpp:671
#14 0x082d3b2a in wxAppConsole::CallOnInit() (this=0x905bd08) at app.h:87
#15 0x001ba7e2 in wxEntry(int&, char**) (argc=@0xbfec4a60, argv=0xbfec4ae4) at src/common/init.cpp:394
#16 0x082caf05 in main (argc=1, argv=0xbfec4ae4) at amule.cpp:170
(gdb) bt full
#0  0x00343c32 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
...
#8  0x001787d0 in wxAssert(int, char const*, int, char const*, char const*) (cond=0,
    szFile=0x6cfbdf "src/gtk/bitmap.cpp", nLine=1094, szCond=0x6cfbcf "wxAssertFailure",
    szMsg=0x6cfc66 "invalid bitmap") at src/common/appbase.cpp:582
No locals.
#9  0x0056320f in wxBitmap::GetWidth() const (this=0xbfec4110) at src/gtk/bitmap.cpp:1094
No locals.
#10 0x005a7e4e in wxGenericImageList::Add(wxBitmap const&) (this=0x90cb350, bitmap=@0xbfec4110)
    at src/generic/imaglist.cpp:71
No locals.
#11 0x082dcb00 in CamuleDlg::Apply_Clients_Skin(wxString) (this=0x90cb170, file=
        { = {static npos = 4294967195, m_pchData = 0x90b4b2c "/home/mroberto/.aMule/skins.dat"}, }) at amuleDlg.cpp:1362
        i = 22
        client_header_found = 0
        bitmaps_found = {{found = false, filename = { = {static npos = 4294967195,
        m_pchData = 0x224ba4 ""}, }}, {found = false, filename = { = {
        static npos = 4294967195, m_pchData = 0x224ba4 ""}, }}, {found = false,
    filename = { = {static npos = 4294967195, m_pchData = 0x224ba4 ""}, }}, {
    found = false, filename = { = {static npos = 4294967195,
        m_pchData = 0x224ba4 ""}, }}, {found = false, filename = { = {
        static npos = 4294967195, m_pchData = 0x224ba4 ""}, }}, {found = false,
    filename = { = {static npos = 4294967195, m_pchData = 0x224ba4 ""}, }}, {
    found = false, filename = { = {static npos = 4294967195,
        m_pchData = 0x224ba4 ""}, }}, {found = false, filename = { = {
        static npos = 4294967195, m_pchData = 0x224ba4 ""}, }}, {found = false,
    filename = { = {static npos = 4294967195, m_pchData = 0x224ba4 ""}, }}, {
    found = false, filename = { = {static npos = 4294967195,
        m_pchData = 0x224ba4 ""}, }}, {found = false, filename = { = {
        static npos = 4294967195, m_pchData = 0x224ba4 ""}, }}, {found = false,
    filename = { = {static npos = 4294967195, m_pchData = 0x224ba4 ""}, }}, {
    found = false, filename = { = {static npos = 4294967195,
        m_pchData = 0x224ba4 ""}, }}, {found = false, filename = { = {
        static npos = 4294967195, m_pchData = 0x224ba4 ""}, }}, {found = false,
    filename = { = {static npos = 4294967195, m_pchData = 0x224ba4 ""}, }}, {
    found = false, filename = { = {static npos = 4294967195,
        m_pchData = 0x224ba4 ""}, }}, {found = false, filename = { = {
        static npos = 4294967195, m_pchData = 0x224ba4 ""}, }}, {found = false,
    filename = { = {static npos = 4294967195, m_pchData = 0x224ba4 ""}, }}, {
    found = false, filename = { = {static npos = 4294967195,
        m_pchData = 0x224ba4 ""}, }}, {found = false, filename = { = {
        static npos = 4294967195, m_pchData = 0x224ba4 ""}, }}, {found = false,
    filename = { = {static npos = 4294967195, m_pchData = 0x224ba4 ""}, }}, {
    found = false, filename = { = {static npos = 4294967195,
        m_pchData = 0x224ba4 ""}, }}, {found = false, filename = { = {
        static npos = 4294967195, m_pchData = 0x224ba4 ""}, }}}
        skinfile = { = {_vptr.wxTextBuffer = 0x838d228, static typeDefault = wxTextFileType_Unix,
    m_strBufferName = { = {static npos = 4294967195,
        m_pchData = 0x90b4b2c "/home/mroberto/.aMule/skins.dat"}, }, m_aTypes = { = {
        m_nSize = 24, m_nCount = 23, m_pItems = 0x90dd468}, }, m_aLines = {m_nSize = 24,
      m_nCount = 23, m_pItems = 0x90dd400, m_autoSort = false}, m_nCurLine = 0, m_isOpened = true}, m_file = {
    m_fd = -1, m_error = false}}
#12 0x082d613b in CamuleDlg (this=0x90cb170, pParent=0x0, title=@0xbfec4570, where={x = -1, y = -1}, dlg_size=
      {x = 800, y = 600}) at amuleDlg.cpp:132
        override_where = 191
        override_size = 236
        s_main = (class wxFlexGridSizer *) 0x1e53c3
        p_cnt = (class wxPanel *) 0x25b5f8
#13 0x082cdddd in CamuleApp::OnInit() (this=0x905bd08) at amule.cpp:671
        geometry_enabled = false
        geometry_x = 0
        geometry_y = 0
        geometry_width = 800
        geometry_height = 600
        cmdline = {m_data = 0x90a4740}
        geom_string = { = {static npos = 4294967195, m_pchData = 0x224ba4 ""}, }
        server = { = {static npos = 4294967195,
    m_pchData = 0x90a4be4 "/home/mroberto/.aMule//muleconn"}, }
        host = { = {static npos = 4294967195, m_pchData = 0x90a4b84 "localhost"}, }
        IPC = { = {static npos = 4294967195,
    m_pchData = 0x90a4bac "aMule IPC TESTRUN"}, }
        client = (class wxTCPClient *) 0x90a4c10
        conn = (class wxConnectionBase *) 0x0
        lMulePrefDir = { = {static npos = 4294967195,
    m_pchData = 0x90a5034 "/home/mroberto/.lmule"}, }
        xMulePrefDir = { = {static npos = 4294967195,
    m_pchData = 0x90a5224 "/home/mroberto/.xmule"}, }
        logname = { = {static npos = 4294967195,
    m_pchData = 0x90a525c "/home/mroberto/.aMule/logfile"}, }
        file = { = {_vptr.wxTextBuffer = 0x838d228, static typeDefault = wxTextFileType_Unix,
    m_strBufferName = { = {static npos = 4294967195,
        m_pchData = 0x90a525c "/home/mroberto/.aMule/logfile"}, }, m_aTypes = { = {
        m_nSize = 0, m_nCount = 0, m_pItems = 0x0}, }, m_aLines = {m_nSize = 0, m_nCount = 0,
      m_pItems = 0x0, m_autoSort = false}, m_nCurLine = 0, m_isOpened = false}, m_file = {m_fd = -1, m_error = false}}
        vfile = { = {_vptr.wxTextBuffer = 0x838d228, static typeDefault = wxTextFileType_Unix,
    m_strBufferName = { = {static npos = 4294967195,
        m_pchData = 0x90b4e04 "/home/mroberto/.aMule//lastversion"}, },
    m_aTypes = { = {m_nSize = 0, m_nCount = 0, m_pItems = 0x0}, }, m_aLines = {
      m_nSize = 0, m_nCount = 0, m_pItems = 0x0, m_autoSort = false}, m_nCurLine = 0, m_isOpened = false}, m_file = {
    m_fd = -1, m_error = false}}
        newMule = { = {static npos = 4294967195, m_pchData = 0x90b4a44 "CVS"}, }
        mnt_tab = (FILE *) 0x90be228
        myaddr = { = { = { = {_vptr.wxObject = 0xa6a408, static ms_classInfo = {
          m_className = 0x22372d "wxObject", m_objectSize = 8, m_objectConstructor = 0, m_baseInfo1 = 0x0,
          m_baseInfo2 = 0x0, static sm_first = 0x838df48, m_next = 0x2611f0, static sm_classTable = 0x904d008},
        m_refData = 0x0}, static ms_classInfo = {m_className = 0xa622cf "wxSockAddress", m_objectSize = 12,
        m_objectConstructor = 0, m_baseInfo1 = 0x2611b4, m_baseInfo2 = 0x0, static sm_first = 0x838df48,
        m_next = 0xa6b6e0, static sm_classTable = 0x904d008}, m_address = 0x90c7458}, static ms_classInfo = {
      m_className = 0xa622dd "wxIPaddress", m_objectSize = 12, m_objectConstructor = 0, m_baseInfo1 = 0xa6b678,
      m_baseInfo2 = 0x0, static sm_first = 0x838df48, m_next = 0xa6b678, static sm_classTable = 0x904d008}},
  static ms_classInfo = {m_className = 0xa622e9 "wxIPV4address", m_objectSize = 16,
    m_objectConstructor = 0xa542a8 , m_baseInfo1 = 0xa6b690, m_baseInfo2 = 0x0,
    static sm_first = 0x838df48, m_next = 0xa6b690, static sm_classTable = 0x904d008},
  m_origHostname = { = {static npos = 4294967195, m_pchData = 0x224ba4 ""}, }}
#14 0x082d3b2a in wxAppConsole::CallOnInit() (this=0x905bd08) at app.h:87
No locals.
#15 0x001ba7e2 in wxEntry(int&, char**) (argc=@0xbfec4a60, argv=0xbfec4ae4) at src/common/init.cpp:394
        callOnExit = {}
        cleanupOnExit = {}
#16 0x082caf05 in main (argc=1, argv=0xbfec4ae4) at amule.cpp:170
No locals.
(gdb) frame 11
#11 0x082dcb00 in CamuleDlg::Apply_Clients_Skin(wxString) (this=0x90cb170, file=
        { = {static npos = 4294967195, m_pchData = 0x90b4b2c "/home/mroberto/.aMule/skins.dat"}, }) at amuleDlg.cpp:1362
1362                                    imagelist.Add(wxBitmap(clientImages(i)));
(gdb) l
1357                                    } else {
1358                                            printf("Warning: wrong client bitmap file Nº%i: %s",i,unicode2char(bitmaps_found[i].filename));
1359                                            imagelist.Add(wxBitmap(clientImages(i)));
1360                                    }
1361                            }else {
1362                                    imagelist.Add(wxBitmap(clientImages(i)));
1363                            }
1364                    }
1365
1366                    skinfile.Close();
(gdb) p i
$1 = 22

Any clues?
Cheers!
Logged