aMule Forum

English => Backtraces => Topic started by: Fenix-TX on December 18, 2006, 11:37:58 AM

Title: crashed when open
Post by: Fenix-TX on December 18, 2006, 11:37:58 AM
Hi! i've compiled today amule-cvs with wxWidgets 2.8.0 and it crashes. This is the backtrace:

Code: [Select]
----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMule CVS using wxGTK2 v2.8.0 (Snapshot: Mon Dec 18 07:01:47 CET 2006)
Running on: Linux 2.6.17-10-generic i686

[2] ?? in amule [0x807a4b6]
[3] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.8.so.0[0xb7a2a6c0]
[4] ?? in [0xffffe420]
[5] wxGIFDecoder::GetFrameSize(unsigned int) const in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xb7cb8e8f]
[6] wxGIFDecoder::ConvertToImage(unsigned int, wxImage*) const in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xb7cb8b94]
[7] ?? in amule [0x8347937]
[8] ?? in amule [0x8346c72]
[9] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const in /usr/lib/libwx_baseu-2.8.so.0[0xb79834af]
[10] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) in /usr/lib/libwx_baseu-2.8.so.0[0xb7a2623c]
[11] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) in /usr/lib/libwx_baseu-2.8.so.0[0xb7a2640e]
[12] wxEvtHandler::ProcessEvent(wxEvent&) in /usr/lib/libwx_baseu-2.8.so.0[0xb7a265b6]
[13] wxTimerBase::Notify() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xb7d00d37]
[14] ?? in /usr/lib/libwx_gtk2u_core-2.8.so.0 [0xb7be5077]
[15] ?? in /usr/lib/libglib-2.0.so.0 [0xb7406dd6]
[16] g_main_context_dispatch in /usr/lib/libglib-2.0.so.0[0xb7406802]
[17] ?? in /usr/lib/libglib-2.0.so.0 [0xb74097df]
[18] g_main_loop_run in /usr/lib/libglib-2.0.so.0[0xb7409b89]
[19] gtk_main in /usr/lib/libgtk-x11-2.0.so.0[0xb71ba574]
[20] wxEventLoop::Run() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xb7bdc454]
[21] wxAppBase::MainLoop() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xb7c7ab97]
[22] wxAppBase::OnRun() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0xb7c7ac3f]
[23] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.8.so.0[0xb79bd55e]
[24] wxEntry(int&, char**) in /usr/lib/libwx_baseu-2.8.so.0[0xb79bd612]
[25] ?? in amule [0x81dafa5]
[26] __libc_start_main in /lib/tls/i686/cmov/libc.so.6[0xb76fa8cc]
[27] ?? in amule [0x806e491]


--------------------------------------------------------------------------------
Cancelado
Title: Re: crashed when open
Post by: phoenix on December 24, 2006, 12:42:14 PM
This looks like a problem with wxWidgets. You said in another thread that you are compiling wxWidgets yourself. Try to compile aMule and wxWidgets with debug information, it may help us and the wxWidgets developers to find what is going on.

Unfortunately, for me :), I have to keep different copies of wxWidgets in my hard disk, so I usually compile it like this:

$ ./configure --enable-debug --disable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --with-opengl --enable-gtk2 --enable-unicode --enable-largefile --prefix=~/usr/local/wxWidgets-2.6.3 && make && make install

When running aMule, I must then specify which wxWidgets library the program will use, so I do:

$ LD_LIBRARY_PATH=~/usr/local/wxWidgets-2.6.3/lib/ LANG=en_US.UTF-8 upnp/src/amule --even-if-lfroen-complains-this-will-stay &

Like that I can even choose the language my aMule will display ;)

Cheers!
Title: Re: crashed when open
Post by: Fenix-TX on December 24, 2006, 01:00:05 PM
Quote
Originally posted by phoenix
This looks like a problem with wxWidgets. You said in another thread that you are compiling wxWidgets yourself. Try to compile aMule and wxWidgets with debug information, it may help us and the wxWidgets developers to find what is going on.

Unfortunately, for me :), I have to keep different copies of wxWidgets in my hard disk, so I usually compile it like this:

$ ./configure --enable-debug --disable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --with-opengl --enable-gtk2 --enable-unicode --enable-largefile --prefix=~/usr/local/wxWidgets-2.6.3 && make && make install

When running aMule, I must then specify which wxWidgets library the program will use, so I do:

$ LD_LIBRARY_PATH=~/usr/local/wxWidgets-2.6.3/lib/ LANG=en_US.UTF-8 upnp/src/amule --even-if-lfroen-complains-this-will-stay &

Like that I can even choose the language my aMule will display ;)

Cheers!

Hi! I'll try it, thanks!
Title: Re: crashed when open
Post by: Fenix-TX on December 24, 2006, 01:50:43 PM
This is with debug:

An assertion falied: ./src/common/list.cpp(321): assert "wxAssertFailure" failed in Item(): invalid index in wxListBase::Item

Backtrace
Code: [Select]
ASSERT INFO:
./src/common/list.cpp(321): assert "wxAssertFailure" failed in Item(): invalid index in wxListBase::Item

BACKTRACE:
[1] wxListBase::Item(unsigned int) cons)
[2] wxObjectList::Item(unsigned int) cons)
[3] wxGenericImageList::GetBitmapPtr(int) cons)
[4] wxGenericImageList::GetBitmap(int) cons)
[5] wxString::operator=(wchar_t)
[6] wxTimer::wxTimer()
[7] wxString::GetChar(unsigned int) cons)
[8] operator==(wxString const&, wchar_t const*)
[9] wxString::operator+=(wchar_t)
[10] wxURL::GetError() cons)
[11] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) cons)
[12] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[13] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[14] wxEvtHandler::ProcessEvent(wxEvent&)
[15] wxEvtHandler::ProcessPendingEvents()
[16] wxAppConsole::ProcessPendingEvents()
[17] wxAppBase::OnIdle(wxIdleEvent&)
[18] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) cons)
[19] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[20] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[21] wxEvtHandler::ProcessEvent(wxEvent&)
[22] wxAppBase::ProcessIdle()
[23] g_main_context_dispatch()
[24] g_main_loop_run()
[25] gtk_main()
[26] wxEventLoop::Run()
[27] wxAppBase::MainLoop()
Title: Re: crashed when open
Post by: phoenix on December 24, 2006, 03:01:29 PM
Fenix-TX,

This is still not good enough, but we are improoving ;)

Try to generate a gdb backtrace:
http://www.amule.org/wiki/index.php/Backtraces

If you want, read this too:
http://www.amule.org/wiki/index.php/Using_gdb_and_valgrind

Cheers!
Title: Re: crashed when open
Post by: Fenix-TX on December 24, 2006, 06:42:44 PM
And this?

Code: [Select]
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7ed8651 in raise () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb77e33a4 in wxTrap () from /usr/lib/libwx_baseud-2.8.so.0
#3  0xb77e360a in wxOnAssert () from /usr/lib/libwx_baseud-2.8.so.0
#4  0x081f4478 in wxBaseArrayPtrVoid::Item (this=0x8e3b0c4, uiIndex=36)
    at /usr/include/wx-2.8/wx/dynarray.h:809
#5  0xb7ba6fc8 in wxGIFDecoder::GetFrameSize ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#6  0xb7ba7142 in wxGIFDecoder::ConvertToImage ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#7  0x08358dd7 in MuleGIFDecoder::ConvertToImage (this=0x8e3b0a8,
    image=0xbf98307c) at MuleGifCtrl.cpp:59
#8  0x08358052 in MuleGifCtrl::OnTimer (this=0x8e368c0) at MuleGifCtrl.cpp:160
#9  0xb77e329f in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
#10 0xb789e0ee in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseud-2.8.so.0
#11 0xb789fede in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
#12 0xb78a0044 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
#13 0xb7bf5861 in wxTimerBase::Notify ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
---Type to continue, or q to quit---
#14 0xb7ad538e in wxTimer::Start () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#15 0xb6f0add6 in g_source_get_current_time () from /usr/lib/libglib-2.0.so.0
#16 0xb6f0a802 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#17 0xb6f0d7df in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#18 0xb6f0db89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#19 0xb7285dfb in gtk_dialog_run () from /usr/lib/libgtk-x11-2.0.so.0
#20 0xb7ad9d00 in wxGUIAppTraits::ShowAssertDialog ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#21 0xb77e359c in wxTrap () from /usr/lib/libwx_baseud-2.8.so.0
#22 0xb77e37c2 in wxAppConsole::OnAssertFailure ()
   from /usr/lib/libwx_baseud-2.8.so.0
#23 0xb7aa9c93 in wxApp::OnAssertFailure ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#24 0xb77e36bd in wxOnAssert () from /usr/lib/libwx_baseud-2.8.so.0
#25 0xb7838c5f in wxListBase::Item () from /usr/lib/libwx_baseud-2.8.so.0
#26 0xb7aa1cde in wxObjectList::Item ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#27 0xb7aa0881 in wxGenericImageList::GetBitmapPtr ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#28 0xb7aa0928 in wxGenericImageList::GetBitmap ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#29 0x081ed6eb in CamuleDlg::ShowConnectionState (this=0x8a4cf68)
    at amuleDlg.cpp:646
---Type to continue, or q to quit---
#30 0x08258df4 in MuleNotify::HandleNotification (ntf=@0xbf983724)
    at GuiEvents.cpp:43
#31 0x08089c93 in MuleNotify::DoNotify (
    func=0x82580b0 , arg1=8 '\b')
    at GuiEvents.h:346
#32 0x08080355 in CamuleApp::ShowConnectionState (this=0x8709970)
    at amule.cpp:1989
#33 0x081c0d02 in Kademlia::CKademliaUDPListener::ProcessPacket (
    this=0x8e66b88, data=0xbf983ab8 "ýb\025", lenData=529, ip=1431667607,
    port=12006) at kademlia/net/KademliaUDPListener.cpp:124
#34 0x0819730a in Kademlia::CKademlia::ProcessPacket (
    data=0xbf983ab8 "ýb\025", lenData=529, ip=1431667607, port=12006)
    at kademlia/kademlia/Kademlia.cpp:321
#35 0x080cf947 in CClientUDPSocket::OnPacketReceived (this=0x8db3510,
    addr=@0xbf983a80, buffer=0xbf983ab8 "ýb\025", length=529)
    at ClientUDPSocket.cpp:91
#36 0x08148c18 in CMuleUDPSocket::OnReceive (this=0x8db3510, errorCode=dwarf2_read_address: Corrupted DWARF expression.
)
    at MuleUDPSocket.cpp:179
#37 0x080cfcee in CClientUDPSocket::OnReceive (this=0x8db3510, errorCode=0)
    at ClientUDPSocket.cpp:65
#38 0xb77e329f in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
#39 0xb789e0ee in wxEvtHandler::ProcessEventIfMatches ()
---Type to continue, or q to quit---
   from /usr/lib/libwx_baseud-2.8.so.0
#40 0xb789fede in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
#41 0xb78a0044 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
#42 0xb789e9b8 in wxEvtHandler::ProcessPendingEvents ()
   from /usr/lib/libwx_baseud-2.8.so.0
#43 0xb77e4317 in wxAppConsole::ProcessPendingEvents ()
   from /usr/lib/libwx_baseud-2.8.so.0
#44 0xb7b658ec in wxAppBase::OnIdle () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#45 0xb77e329f in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
#46 0xb789e0ee in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseud-2.8.so.0
#47 0xb789fede in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
#48 0xb78a0044 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
#49 0xb7b656dc in wxAppBase::ProcessIdle ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#50 0xb7aaa987 in wxApp::WakeUpIdle () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#51 0xb6f08aa1 in g_source_is_destroyed () from /usr/lib/libglib-2.0.so.0
#52 0xb6f0a802 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
---Type to continue, or q to quit---
#53 0xb6f0d7df in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#54 0xb6f0db89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#55 0xb7304574 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#56 0xb7aca7eb in wxEventLoop::Run () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#57 0xb7b655b8 in wxAppBase::MainLoop ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#58 0xb7b64f01 in wxAppBase::OnRun () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#59 0xb782abd6 in wxEntry () from /usr/lib/libwx_baseud-2.8.so.0
#60 0xb782ac9e in wxEntry () from /usr/lib/libwx_baseud-2.8.so.0
#61 0x081e57a5 in main (argc=Cannot access memory at address 0x496c
) at amule-gui.cpp:95
Code: [Select]
(gdb) bt full
#0  0xffffe410 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7ed8651 in raise () from /lib/tls/i686/cmov/libpthread.so.0
No symbol table info available.
#2  0xb77e33a4 in wxTrap () from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#3  0xb77e360a in wxOnAssert () from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#4  0x081f4478 in wxBaseArrayPtrVoid::Item (this=0x8e3b0c4, uiIndex=36)
    at /usr/include/wx-2.8/wx/dynarray.h:809
        __FUNCTION__ = "Item"
#5  0xb7ba6fc8 in wxGIFDecoder::GetFrameSize ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
No symbol table info available.
#6  0xb7ba7142 in wxGIFDecoder::ConvertToImage ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
No symbol table info available.
#7  0x08358dd7 in MuleGIFDecoder::ConvertToImage (this=0x8e3b0a8,
    image=0xbf98307c) at MuleGifCtrl.cpp:59
No locals.
#8  0x08358052 in MuleGifCtrl::OnTimer (this=0x8e368c0) at MuleGifCtrl.cpp:160
        frame =
#9  0xb77e329f in wxAppConsole::HandleEvent ()
---Type to continue, or q to quit---
   from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#10 0xb789e0ee in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#11 0xb789fede in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#12 0xb78a0044 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#13 0xb7bf5861 in wxTimerBase::Notify ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
No symbol table info available.
#14 0xb7ad538e in wxTimer::Start () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
No symbol table info available.
#15 0xb6f0add6 in g_source_get_current_time () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#16 0xb6f0a802 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#17 0xb6f0d7df in g_main_context_check () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#18 0xb6f0db89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
---Type to continue, or q to quit---
No symbol table info available.
#19 0xb7285dfb in gtk_dialog_run () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#20 0xb7ad9d00 in wxGUIAppTraits::ShowAssertDialog ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
No symbol table info available.
#21 0xb77e359c in wxTrap () from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#22 0xb77e37c2 in wxAppConsole::OnAssertFailure ()
   from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#23 0xb7aa9c93 in wxApp::OnAssertFailure ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
No symbol table info available.
#24 0xb77e36bd in wxOnAssert () from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#25 0xb7838c5f in wxListBase::Item () from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#26 0xb7aa1cde in wxObjectList::Item ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
No symbol table info available.
#27 0xb7aa0881 in wxGenericImageList::GetBitmapPtr ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
---Type to continue, or q to quit---
No symbol table info available.
#28 0xb7aa0928 in wxGenericImageList::GetBitmap ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
No symbol table info available.
#29 0x081ed6eb in CamuleDlg::ShowConnectionState (this=0x8a4cf68)
    at amuleDlg.cpp:646
        index =
        conn_bitmap = (struct wxStaticBitmap *) 0x8c0d8d8
        conn_image =
        NewED2KState = CamuleDlg::sConnecting
        NewKadState = CamuleDlg::sFirewalled
        connLabel = (struct wxStaticText *) 0x8c06418
        connected_server = { = {static npos = 4294967295,
    m_pchData = 0xb78dd6fc}, }
        ed2k_server =
        __FUNCTION__ = "ShowConnectionState"
        bitmap_dc =
        status_arrows =
        LastKadState = CamuleDlg::sOff
        LastED2KState = CamuleDlg::sConnecting
#30 0x08258df4 in MuleNotify::HandleNotification (ntf=@0xbf983724)
    at GuiEvents.cpp:43
No locals.
---Type to continue, or q to quit---
#31 0x08089c93 in MuleNotify::DoNotify (
    func=0x82580b0 , arg1=8 '\b')
    at GuiEvents.h:346
No locals.
#32 0x08080355 in CamuleApp::ShowConnectionState (this=0x8709970)
    at amule.cpp:1989
        state = 8 '\b'
        old_state = 2 '\002'
#33 0x081c0d02 in Kademlia::CKademliaUDPListener::ProcessPacket (
    this=0x8e66b88, data=0xbf983ab8 "ýb\025", lenData=529, ip=1431667607,
    port=12006) at kademlia/net/KademliaUDPListener.cpp:124
        curCon = false
        opcode =
        packetData = (const byte *) 0xb7653158 ""
        lenPacket =
#34 0x0819730a in Kademlia::CKademlia::ProcessPacket (
    data=0xbf983ab8 "ýb\025", lenData=529, ip=1431667607, port=12006)
    at kademlia/kademlia/Kademlia.cpp:321
No locals.
#35 0x080cf947 in CClientUDPSocket::OnPacketReceived (this=0x8db3510,
    addr=@0xbf983a80, buffer=0xbf983ab8 "ýb\025", length=529)
    at ClientUDPSocket.cpp:91
        protocol = 228 'ý
---Type to continue, or q to quit---
        opcode = 8 '\b'
        ip = 151
        port = 12006
        __FUNCTION__ = "OnPacketReceived"
#36 0x08148c18 in CMuleUDPSocket::OnReceive (this=0x8db3510, errorCode=dwarf2_read_address: Corrupted DWARF expression.
)
    at MuleUDPSocket.cpp:179
        lock = {m_isOk = true, m_mutex = @0x8db3534}
        buffer = "ýb\025\000Lý\022[\nXDzý215ý\024Zi5ý\000\211dü)ýýZTeLFý\223TA\0227\022\000\200JüZ~zE:\2344ý210t\031ýQ@\0226\022\000%ý\022D\211\b\017B\200Jkh\216ý\201ý220a\230.\002\220 \v$/kOX\222ýg ý217'\000ýý235ý036O\025ý!\f{V!7S@\0226\022\000\227Zýý8\016\2275\036Rý\200yX@\0226\022\0003ý\001\200ý\a\033ý\037\216ý@"...
        addr = {<> = {}, }
        length = 529
        error =
        lastError = 0
#37 0x080cfcee in CClientUDPSocket::OnReceive (this=0x8db3510, errorCode=0)
    at ClientUDPSocket.cpp:65
No locals.
#38 0xb77e329f in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#39 0xb789e0ee in wxEvtHandler::ProcessEventIfMatches ()
---Type to continue, or q to quit---
   from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#40 0xb789fede in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#41 0xb78a0044 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#42 0xb789e9b8 in wxEvtHandler::ProcessPendingEvents ()
   from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#43 0xb77e4317 in wxAppConsole::ProcessPendingEvents ()
   from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#44 0xb7b658ec in wxAppBase::OnIdle () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
No symbol table info available.
#45 0xb77e329f in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#46 0xb789e0ee in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#47 0xb789fede in wxEventHashTable::HandleEvent ()
---Type to continue, or q to quit---
   from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#48 0xb78a0044 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#49 0xb7b656dc in wxAppBase::ProcessIdle ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
No symbol table info available.
#50 0xb7aaa987 in wxApp::WakeUpIdle () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
No symbol table info available.
#51 0xb6f08aa1 in g_source_is_destroyed () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#52 0xb6f0a802 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#53 0xb6f0d7df in g_main_context_check () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#54 0xb6f0db89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#55 0xb7304574 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#56 0xb7aca7eb in wxEventLoop::Run () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
No symbol table info available.
#57 0xb7b655b8 in wxAppBase::MainLoop ()
---Type to continue, or q to quit---
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
No symbol table info available.
#58 0xb7b64f01 in wxAppBase::OnRun () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
No symbol table info available.
#59 0xb782abd6 in wxEntry () from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#60 0xb782ac9e in wxEntry () from /usr/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#61 0x081e57a5 in main (argc=Cannot access memory at address 0x496c
) at amule-gui.cpp:95
No locals.
Code: [Select]
gdb) thread apply all bt

Thread 7 (Thread -1284920416 (LWP 18814)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7ed4a8c in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb7899d53 in wxConditionInternal::WaitTimeout ()
   from /usr/lib/libwx_baseud-2.8.so.0
#3  0xb7899e38 in wxCondition::WaitTimeout ()
   from /usr/lib/libwx_baseud-2.8.so.0
#4  0xb789ac7b in wxSemaphoreInternal::WaitTimeout ()
   from /usr/lib/libwx_baseud-2.8.so.0
#5  0xb789ad64 in wxSemaphore::WaitTimeout ()
   from /usr/lib/libwx_baseud-2.8.so.0
#6  0x082c7723 in CTimerThread::Entry (this=0x8e67f10) at Timer.cpp:63
#7  0xb789c04a in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_baseud-2.8.so.0
#8  0xb789c1b5 in wxPthreadStart () from /usr/lib/libwx_baseud-2.8.so.0
#9  0xb7ed1504 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#10 0xb75ef51e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 5 (Thread -1268135008 (LWP 18811)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb75e8321 in select () from /lib/tls/i686/cmov/libc.so.6
---Type to continue, or q to quit---
#2  0xb795f275 in GSocket::Input_Timeout ()
   from /usr/lib/libwx_baseud_net-2.8.so.0
#3  0xb795fbce in GSocket::Read () from /usr/lib/libwx_baseud_net-2.8.so.0
#4  0xb7959c61 in wxSocketBase::_Read ()
   from /usr/lib/libwx_baseud_net-2.8.so.0
#5  0xb795a0b0 in wxSocketBase::Read () from /usr/lib/libwx_baseud_net-2.8.so.0
#6  0xb7957b7e in wxSocketInputStream::OnSysRead ()
   from /usr/lib/libwx_baseud_net-2.8.so.0
#7  0xb794f22e in wxHTTPStream::OnSysRead ()
   from /usr/lib/libwx_baseud_net-2.8.so.0
#8  0xb7850ebd in wxInputStream::Read () from /usr/lib/libwx_baseud-2.8.so.0
#9  0x081395c2 in CHTTPDownloadThread::Entry (this=0x8db23a8)
    at HTTPDownload.cpp:209
#10 0xb789c04a in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_baseud-2.8.so.0
#11 0xb789c1b5 in wxPthreadStart () from /usr/lib/libwx_baseud-2.8.so.0
#12 0xb7ed1504 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#13 0xb75ef51e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread -1234150496 (LWP 18809)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7ed7bf6 in __nanosleep_nocancel ()
   from /lib/tls/i686/cmov/libpthread.so.0
---Type to continue, or q to quit---
#2  0xb78a5d4f in wxMicroSleep () from /usr/lib/libwx_baseud-2.8.so.0
#3  0xb78a5d79 in wxMilliSleep () from /usr/lib/libwx_baseud-2.8.so.0
#4  0xb78999d3 in wxThread::Sleep () from /usr/lib/libwx_baseud-2.8.so.0
#5  0x0817f0ef in UploadBandwidthThrottler::Entry (this=0x8d49b00)
    at UploadBandwidthThrottler.cpp:321
#6  0xb789c04a in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_baseud-2.8.so.0
#7  0xb789c1b5 in wxPthreadStart () from /usr/lib/libwx_baseud-2.8.so.0
#8  0xb7ed1504 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9  0xb75ef51e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread -1227925840 (LWP 18796)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7ed8651 in raise () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb77e33a4 in wxTrap () from /usr/lib/libwx_baseud-2.8.so.0
#3  0xb77e360a in wxOnAssert () from /usr/lib/libwx_baseud-2.8.so.0
#4  0x081f4478 in wxBaseArrayPtrVoid::Item (this=0x8e3b0c4, uiIndex=36)
    at /usr/include/wx-2.8/wx/dynarray.h:809
#5  0xb7ba6fc8 in wxGIFDecoder::GetFrameSize ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#6  0xb7ba7142 in wxGIFDecoder::ConvertToImage ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#7  0x08358dd7 in MuleGIFDecoder::ConvertToImage (this=0x8e3b0a8,
---Type to continue, or q to quit---
    image=0xbf98307c) at MuleGifCtrl.cpp:59
#8  0x08358052 in MuleGifCtrl::OnTimer (this=0x8e368c0) at MuleGifCtrl.cpp:160
#9  0xb77e329f in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
#10 0xb789e0ee in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseud-2.8.so.0
#11 0xb789fede in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
#12 0xb78a0044 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
#13 0xb7bf5861 in wxTimerBase::Notify ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#14 0xb7ad538e in wxTimer::Start () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#15 0xb6f0add6 in g_source_get_current_time () from /usr/lib/libglib-2.0.so.0
#16 0xb6f0a802 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#17 0xb6f0d7df in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#18 0xb6f0db89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#19 0xb7285dfb in gtk_dialog_run () from /usr/lib/libgtk-x11-2.0.so.0
#20 0xb7ad9d00 in wxGUIAppTraits::ShowAssertDialog ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#21 0xb77e359c in wxTrap () from /usr/lib/libwx_baseud-2.8.so.0
#22 0xb77e37c2 in wxAppConsole::OnAssertFailure ()
   from /usr/lib/libwx_baseud-2.8.so.0
---Type to continue, or q to quit---
#23 0xb7aa9c93 in wxApp::OnAssertFailure ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#24 0xb77e36bd in wxOnAssert () from /usr/lib/libwx_baseud-2.8.so.0
#25 0xb7838c5f in wxListBase::Item () from /usr/lib/libwx_baseud-2.8.so.0
#26 0xb7aa1cde in wxObjectList::Item ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#27 0xb7aa0881 in wxGenericImageList::GetBitmapPtr ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#28 0xb7aa0928 in wxGenericImageList::GetBitmap ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#29 0x081ed6eb in CamuleDlg::ShowConnectionState (this=0x8a4cf68)
    at amuleDlg.cpp:646
#30 0x08258df4 in MuleNotify::HandleNotification (ntf=@0xbf983724)
    at GuiEvents.cpp:43
#31 0x08089c93 in MuleNotify::DoNotify (
    func=0x82580b0 , arg1=8 '\b')
    at GuiEvents.h:346
#32 0x08080355 in CamuleApp::ShowConnectionState (this=0x8709970)
    at amule.cpp:1989
#33 0x081c0d02 in Kademlia::CKademliaUDPListener::ProcessPacket (
    this=0x8e66b88, data=0xbf983ab8 "ýb\025", lenData=529, ip=1431667607,
    port=12006) at kademlia/net/KademliaUDPListener.cpp:124
#34 0x0819730a in Kademlia::CKademlia::ProcessPacket (
---Type to continue, or q to quit---
    data=0xbf983ab8 "ýb\025", lenData=529, ip=1431667607, port=12006)
    at kademlia/kademlia/Kademlia.cpp:321
#35 0x080cf947 in CClientUDPSocket::OnPacketReceived (this=0x8db3510,
    addr=@0xbf983a80, buffer=0xbf983ab8 "ýb\025", length=529)
    at ClientUDPSocket.cpp:91
#36 0x08148c18 in CMuleUDPSocket::OnReceive (this=0x8db3510, errorCode=dwarf2_read_address: Corrupted DWARF expression.
)
    at MuleUDPSocket.cpp:179
#37 0x080cfcee in CClientUDPSocket::OnReceive (this=0x8db3510, errorCode=0)
    at ClientUDPSocket.cpp:65
#38 0xb77e329f in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
#39 0xb789e0ee in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseud-2.8.so.0
#40 0xb789fede in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
#41 0xb78a0044 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
#42 0xb789e9b8 in wxEvtHandler::ProcessPendingEvents ()
   from /usr/lib/libwx_baseud-2.8.so.0
#43 0xb77e4317 in wxAppConsole::ProcessPendingEvents ()
   from /usr/lib/libwx_baseud-2.8.so.0
#44 0xb7b658ec in wxAppBase::OnIdle () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#45 0xb77e329f in wxAppConsole::HandleEvent ()
---Type to continue, or q to quit---
   from /usr/lib/libwx_baseud-2.8.so.0
#46 0xb789e0ee in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseud-2.8.so.0
#47 0xb789fede in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
#48 0xb78a0044 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
#49 0xb7b656dc in wxAppBase::ProcessIdle ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#50 0xb7aaa987 in wxApp::WakeUpIdle () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#51 0xb6f08aa1 in g_source_is_destroyed () from /usr/lib/libglib-2.0.so.0
#52 0xb6f0a802 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#53 0xb6f0d7df in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#54 0xb6f0db89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#55 0xb7304574 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#56 0xb7aca7eb in wxEventLoop::Run () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#57 0xb7b655b8 in wxAppBase::MainLoop ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#58 0xb7b64f01 in wxAppBase::OnRun () from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#59 0xb782abd6 in wxEntry () from /usr/lib/libwx_baseud-2.8.so.0
#60 0xb782ac9e in wxEntry () from /usr/lib/libwx_baseud-2.8.so.0
#61 0x081e57a5 in main (argc=Cannot access memory at address 0x496c
) at amule-gui.cpp:95
Title: Re: crashed when open
Post by: phoenix on December 24, 2006, 07:29:25 PM
Much better. Though your wxWidgets still seem to lack debug information.

Anyway, there seems to be two bugs.
Code: [Select]
#20 0xb7ad9d00 in wxGUIAppTraits::ShowAssertDialog ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#21 0xb77e359c in wxTrap () from /usr/lib/libwx_baseud-2.8.so.0
#22 0xb77e37c2 in wxAppConsole::OnAssertFailure ()
   from /usr/lib/libwx_baseud-2.8.so.0
#23 0xb7aa9c93 in wxApp::OnAssertFailure ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#24 0xb77e36bd in wxOnAssert () from /usr/lib/libwx_baseud-2.8.so.0
#25 0xb7838c5f in wxListBase::Item () from /usr/lib/libwx_baseud-2.8.so.0
#26 0xb7aa1cde in wxObjectList::Item ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#27 0xb7aa0881 in wxGenericImageList::GetBitmapPtr ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#28 0xb7aa0928 in wxGenericImageList::GetBitmap ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#29 0x081ed6eb in CamuleDlg::ShowConnectionState (this=0x8a4cf68)
    at amuleDlg.cpp:646
---Type to continue, or q to quit---
#30 0x08258df4 in MuleNotify::HandleNotification (ntf=@0xbf983724)
    at GuiEvents.cpp:43
#31 0x08089c93 in MuleNotify::DoNotify (
    func=0x82580b0 , arg1=8 '\b')
    at GuiEvents.h:346
#32 0x08080355 in CamuleApp::ShowConnectionState (this=0x8709970)
    at amule.cpp:1989
#33 0x081c0d02 in Kademlia::CKademliaUDPListener::ProcessPacket (
    this=0x8e66b88, data=0xbf983ab8 "ýb\025", lenData=529, ip=1431667607,
    port=12006) at kademlia/net/KademliaUDPListener.cpp:124
#34 0x0819730a in Kademlia::CKademlia::ProcessPacket (
    data=0xbf983ab8 "ýb\025", lenData=529, ip=1431667607, port=12006)
    at kademlia/kademlia/Kademlia.cpp:321
#35 0x080cf947 in CClientUDPSocket::OnPacketReceived (this=0x8db3510,
    addr=@0xbf983a80, buffer=0xbf983ab8 "ýb\025", length=529)
    at ClientUDPSocket.cpp:91
#36 0x08148c18 in CMuleUDPSocket::OnReceive (this=0x8db3510, errorCode=dwarf2_read_address: Corrupted DWARF expression.
)
    at MuleUDPSocket.cpp:179
#37 0x080cfcee in CClientUDPSocket::OnReceive (this=0x8db3510, errorCode=0)
    at ClientUDPSocket.cpp:65

This one can be an aMule bug, though it is still difficult to understand why without duplicating it here in the debugger.

The other one happened when the timer tick hit and aMule tried to update the gif.
Code: [Select]
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7ed8651 in raise () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb77e33a4 in wxTrap () from /usr/lib/libwx_baseud-2.8.so.0
#3  0xb77e360a in wxOnAssert () from /usr/lib/libwx_baseud-2.8.so.0
#4  0x081f4478 in wxBaseArrayPtrVoid::Item (this=0x8e3b0c4, uiIndex=36)
    at /usr/include/wx-2.8/wx/dynarray.h:809
#5  0xb7ba6fc8 in wxGIFDecoder::GetFrameSize ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#6  0xb7ba7142 in wxGIFDecoder::ConvertToImage ()
   from /usr/lib/libwx_gtk2ud_core-2.8.so.0
#7  0x08358dd7 in MuleGIFDecoder::ConvertToImage (this=0x8e3b0a8,
    image=0xbf98307c) at MuleGifCtrl.cpp:59
#8  0x08358052 in MuleGifCtrl::OnTimer (this=0x8e368c0) at MuleGifCtrl.cpp:160
#9  0xb77e329f in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseud-2.8.so.0
#10 0xb789e0ee in wxEvtHandler::ProcessEventIfMatches ()

I'll see what I can do, but this one is difficult because I can't reproduce it here. Are you using any skin file for the aMule buttons?
Title: Re: crashed when open
Post by: Fenix-TX on December 24, 2006, 09:11:11 PM
Yes, i'm using this skin:

(http://webs.ono.com/usr003/jesusvpct/Crystal1.eMuleToolbar.kad02.png)
Title: Re: crashed when open
Post by: phoenix on December 24, 2006, 09:53:32 PM
Ok, first, try to disable the skin file and see if it starts.

Go to Preferences->Gui Tweaks->Skin Support
and uncheck "Use skin file to set aMule bitmaps".

Also, tell me how can I get this skin file to test it here.

EDIT: Sorry, you probably wont be able to reach Preferences :)
Edit ~/.aMule/amule.conf and look for "UseSkinFile" and then do:
UseSkinFile=0
Title: Re: crashed when open
Post by: Fenix-TX on December 24, 2006, 10:37:31 PM
Rigth click on the image that i put, and download it, the image is the skin file, i've uploaded on a web space.

I've tried without skin and i have the same problem...
Title: Re: crashed when open
Post by: phoenix on December 25, 2006, 03:40:25 AM
Well, that image does not work for me. The old images are displayed, and when I click the connect button, it disappears. But no crash.
Title: Re: crashed when open
Post by: wuischke on December 25, 2006, 11:22:17 AM
Quote
2006-12-25 11:21:32: Error: Failed to convert file "/home/tux/Desktop/Crystal1.eMuleToolbar.kad02.gif" to Unicode.
2006-12-25 11:21:32: Unable to open skin file: /home/tux/Desktop/Crystal1.eMuleToolbar.kad02.gif - loading toolbar defaults
Oh, I really see the need to convert a image to unicode. ;)
Title: Re: crashed when open
Post by: Fenix-TX on December 25, 2006, 12:39:43 PM
I think that is a problem with my ldconfig, because i've unistalled wxwidgets-2.6 (development files) and i can't compile:

Code: [Select]
configure: error:
                wxWidgets must be installed on your system but wx-config
                script couldn't be found. Please check that wx-config is
                in path or specified by --with-wx-config=path flag, the
                directory where wxWidgets libraries are installed (returned
                by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
                equivalent variable and wxWidgets version is 2.6.0 or above.

I've installed with --prefix=/usr and i've added that path and /usr/lib and /usr/lib/wx (to try if works) on my ld.so.conf and i execute sudo ldconfig, what's wrong?
Title: Re: crashed when open
Post by: phoenix on December 25, 2006, 12:40:40 PM
Quote
originally posted by wuischke
Oh, I really see the need to convert a image to unicode.
lol, this is really important, didn't you know? :D

Anyway, does not happen here, my log file is clean. I was looking for a message like this one, but didn't happen. Of course, unicode would have surprised me. ;)
Title: Re: crashed when open
Post by: phoenix on December 25, 2006, 01:00:25 PM
Quote
Originally posted by Fenix-TX
I think that is a problem with my ldconfig, because i've unistalled wxwidgets-2.6 (development files) and i can't compile:

Code: [Select]
configure: error:
                wxWidgets must be installed on your system but wx-config
                script couldn't be found. Please check that wx-config is
                in path or specified by --with-wx-config=path flag, the
                directory where wxWidgets libraries are installed (returned
                by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
                equivalent variable and wxWidgets version is 2.6.0 or above.

I've installed with --prefix=/usr and i've added that path and /usr/lib and /usr/lib/wx (to try if works) on my ld.so.conf and i execute sudo ldconfig, what's wrong?

Are you compiling wx yourself? This is not an easy decision, because If the answer is yes, then first remove all wx from your system. RPM's, old hand instalations, etc. These will all bite you in the back. Check all paths that are in ld.so.conf to see if there is nothing left:
$ ls -l /usr/lib/wx*
$ ls -l /usr/local/lib/wx*
etc

Now, and now comes after you removed all wx, you have to decide if you leave your hand compiled wx in your system path or not. If the answer is yes, I would advise you to compile wx with a flag like --prefix=/usr/local/wx/ so that it wont mix with the other system libraries, and so that it makes it easier to remove, you just have to "rm -rf /usr/local/wx". That implies that you need a line "/usr/local/wx/lib/" in ld.so.conf. That also implies that you need to compile amule with the switch "--with-wx-config=/usr/local/wx/bin/wx-config"

If you decide that your hand compiled wx will be in the system path, then use no --prefix at all in the wx configure, the default will be /usr/local, which is the right place for hand compiled stuff. If you use /usr as prefix, your hand compiled stuff will mix with the system rpm stuff, and that is a mess. That assumes you will have a line like "/usr/local/lib" in ld.so.conf. Also, "/usr/local/bin" must be in the path, so that the wx-config program can be found by aMule configure script. And that is where the need for unicity of wx in your system comes from. If you have two wx installed, the wx-config script called will always be the one that comes first in the path, unless you specify the flag --with-wx-config=... in aMule configure script.

Maybe it is a little confusing, but the whole explanation is there, read it carefully and your problems will be over! :D

Cheers!
Title: Re: crashed when open
Post by: Fenix-TX on December 25, 2006, 01:10:42 PM
Well, yesterday i desinstalled my wxwidgets 2.8.0 and i've installed dapper debs (yes, i have edgy, but i think that is not a problem). Today i've desinstalled 2.6.0 development files from adept (that version is native on the system).

My wx-config --libs return:
-pthread   -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8

I've compiled with flag --with-wx-config and i can compile but crashes again.

(gdb) start
Breakpoint 1 at 0x81c7c51: file amule-gui.cpp, line 95.
Starting program: /media/Datos/Compartido/jvp/Linux/amule/amule-cvs/src/amule
[Thread debugging using libthread_db enabled]
[New Thread -1228433744 (LWP 11247)]
[Switching to Thread -1228433744 (LWP 11247)]
main (argc=1, argv=0xbff80f04) at amule-gui.cpp:95
95      IMPLEMENT_APP(CamuleGuiApp)
Title: Re: crashed when open
Post by: phoenix on December 25, 2006, 01:35:10 PM
Quote
Originally posted by Fenix-TX
I've compiled with flag --with-wx-config and i can compile but crashes again.

(gdb) start
Breakpoint 1 at 0x81c7c51: file amule-gui.cpp, line 95.
Starting program: /media/Datos/Compartido/jvp/Linux/amule/amule-cvs/src/amule
[Thread debugging using libthread_db enabled]
[New Thread -1228433744 (LWP 11247)]
[Switching to Thread -1228433744 (LWP 11247)]
main (argc=1, argv=0xbff80f04) at amule-gui.cpp:95
95      IMPLEMENT_APP(CamuleGuiApp)

This is not a crash. You have specified a breakpoint, and gdb has stoped at the requested place. He is only following your orders :)
Title: Re: crashed when open
Post by: Fenix-TX on December 25, 2006, 01:48:13 PM
Well, i'm back to wxwidgets 2.6 of edgy.

I'm tired now, i'll try again all other day.

Thanks phoenix and wuischke for your time.

I'll back of course with my problem again  :D
Title: Re: crashed when open
Post by: phoenix on December 25, 2006, 04:22:40 PM
Ok Fenix-TX, take a rest.

In case you have not specified this breakpoint, check to see if you have a file named .gdbinit in the same directory that you where when you ran gdb, the breakpoint may be specified there.

Or else, type:
(gdb) info break
(gdb) delete 1

type 1 or the number that applies to your case.
Title: Re: crashed when open
Post by: phoenix on December 25, 2006, 07:51:44 PM
wuischke,

Quote
originally posted by wuischke
2006-12-25 11:21:32: Error: Failed to convert file "/home/tux/Desktop/Crystal1.eMuleToolbar.kad02.gif" to Unicode.
2006-12-25 11:21:32: Unable to open skin file: /home/tux/Desktop/Crystal1.eMuleToolbar.kad02.gif - loading toolbar defaults


Oh, I really see the need to convert a image to unicode. ;)

You know, I found that this error message only happens with wx-2.8.0, not with wx-2.6.3. The error message happens because wx tries to convert the file content to unicode. Which means that the file content must be text. With a little of code reading I found that we are using the skin feature the wrong way. You can't add a png directly to the skin, see this thread for the right information:
http://forum.amule.org/thread.php?threadid=9073&sid=&hilight=skin

It is a shame we don't have an eMule compatible skin... Hey folks (yeah, you reading this! :) ), c'mon, should not be difficult to code this, I've been having a hard time to start another coding thread.

In the mean time, Brandon's patch is in the code and seems to be working fine.
Title: Re: crashed when open
Post by: phoenix on December 25, 2006, 09:04:32 PM
I have updated the wiki on skins:
http://www.amule.org/wiki/index.php/Skins
Title: Re: crashed when open
Post by: wuischke on December 25, 2006, 09:23:57 PM
OK, I'll take a look at this and try to write a converter for emule skins.

Expect results soon¹


¹you know, aMule soon
Title: Re: crashed when open
Post by: wuischke on December 26, 2006, 02:09:29 AM
See here: http://forum.amule.org/thread.php?threadid=11891
Title: Re: crashed when open
Post by: Fenix-TX on December 26, 2006, 01:52:12 PM
Hi! I have a doubt. When i compile amule, it says when finish:

Code: [Select]
Configured aMule CVS for 'i686-pc-linux-gnu'.
And when i start gdb it says:
Code: [Select]
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".

Is this a problem?


EDITED

And i have already the same problem with gdb:

Code: [Select]
(gdb) start
Breakpoint 1 at 0x81e6056: file amule-gui.cpp, line 95.
Starting program: /media/Datos/Compartido/jvp/Linux/amule/amule-cvs/src/amule
[Thread debugging using libthread_db enabled]
[New Thread -1229941072 (LWP 12952)]
[Switching to Thread -1229941072 (LWP 12952)]
main (argc=1, argv=0xbfa80a04) at amule-gui.cpp:95
95      IMPLEMENT_APP(CamuleGuiApp)
(gdb) info break
No breakpoints or watchpoints.
Title: Re: crashed when open
Post by: phoenix on December 27, 2006, 02:58:05 AM
Hi,

This is not a problem, you have aMule configured for i686 and gdb configured for i486. This is only a problem if your computer has a 80486 processor :D I thought I was the only person in the world to have one of these working  :rolleyes:

Regarding the problem with gdb, somehow you are setting a temporary breakpoint (tbreak). The breakpoint will only exist until its reached and then it disappears. Just type "c" to continue.

Cheers!
Title: Re: crashed when open
Post by: Fenix-TX on December 28, 2006, 11:40:37 AM
Now (without skin) i have this:

Code: [Select]
(gdb) start
Breakpoint 1 at 0x8207b45: file amule-gui.cpp, line 95.
Starting program: /media/Datos/Compartido/jvp/Linux/amule/amule-cvs/src/amule
[Thread debugging using libthread_db enabled]
[New Thread -1228249424 (LWP 4923)]
[Switching to Thread -1228249424 (LWP 4923)]
main (argc=1, argv=0xbfe07d94) at amule-gui.cpp:95
95      IMPLEMENT_APP(CamuleGuiApp)
(gdb) c
Continuing.
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
[New Thread -1230066784 (LWP 4928)]
HTTP download thread started
[New Thread -1249256544 (LWP 4937)]
[New Thread -1257649248 (LWP 4938)]
Loading temp files from /media/Datos/eMule/Temp.
Loading PartFile 4 of 11HTTP download thread started
HTTP download thread ended
Loading PartFile 11 of 11
All PartFiles Loaded.
ListenSocket: Ok.

*** TCP socket (ECServer) listening on 0.0.0.0:4714
*** Server UDP socket (TCP+3) at 0.0.0.0:14665
*** TCP socket (TCP) listening on 0.0.0.0:14662
*** Client UDP socket (extended eMule) at 0.0.0.0:14672
Adding file /media/Datos/eMule/Temp/003.part.met to shares
Adding file /media/Datos/eMule/Temp/004.part.met to shares
Adding file /media/Datos/eMule/Temp/005.part.met to shares
Adding file /media/Datos/eMule/Temp/007.part.met to shares
Adding file /media/Datos/eMule/Temp/008.part.met to shares
Adding file /media/Datos/eMule/Temp/009.part.met to shares
Adding file /media/Datos/eMule/Temp/010.part.met to shares
Adding file /media/Datos/eMule/Temp/012.part.met to shares
Adding file /media/Datos/eMule/Temp/014.part.met to shares
Adding file /media/Datos/eMule/Temp/018.part.met to shares
[Thread -1257649248 (zombie) exited]
[New Thread -1266041952 (LWP 4939)]
HTTP download thread started
[New Thread -1274434656 (LWP 4941)]
[New Thread -1282827360 (LWP 4942)]
Host: amule.sourceforge.net:80
URL: [URL]http://amule.sourceforge.net/lastversion[/URL]
Response: 200 (Error: 0)
Download size: 6
HTTP download thread ended
[Thread -1230066784 (zombie) exited]
QPainter::begin: Cannot paint null pixmap
QPainter::setPen: Will be reset by begin()
QPainter::setBrush: Will be reset by begin()
QPainter::setBrush: Will be reset by begin()
QPainter::setPen: Will be reset by begin()
QPainter::setPen: Will be reset by begin()
QPainter::setPen: Will be reset by begin()

(amule:4923): Gdk-CRITICAL **: gdk_pixmap_foreign_new_for_display: assertion `(anid != 0)' failed

(amule:4923): Gdk-CRITICAL **: gdk_draw_drawable: assertion `src != NULL' failed

(amule:4923): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Host: kent.dl.sourceforge.net:80
URL: [URL]http://kent.dl.sourceforge.net/sourceforge/emulepawcio/ipfilter.dat[/URL]
Response: 200 (Error: 0)
Download size: 10408030
[New Thread -1230066784 (LWP 4944)]
HTTP download thread started
HTTP download thread ended
[Thread -1230066784 (zombie) exited]
[New Thread -1293943904 (LWP 4945)]
HTTP download thread started
HTTP download thread ended
[Thread -1293943904 (zombie) exited]
[Thread -1274434656 (zombie) exited]

Program received signal SIGSEGV, Segmentation fault.
0xb7cdee8f in wxGIFDecoder::GetFrameSize ()
   from /usr/lib/libwx_gtk2u_core-2.8.so.0

Code: [Select]
(gdb) bt
#0  0xb7cdee8f in wxGIFDecoder::GetFrameSize ()
   from /usr/lib/libwx_gtk2u_core-2.8.so.0
#1  0xb7cdeb94 in wxGIFDecoder::ConvertToImage ()
   from /usr/lib/libwx_gtk2u_core-2.8.so.0
#2  0x083b6081 in MuleGIFDecoder::ConvertToImage (this=0x8eacf10,
    image=0xbfe07974) at MuleGifCtrl.cpp:59
#3  0x083b50ed in MuleGifCtrl::OnTimer (this=0x8ea8240) at MuleGifCtrl.cpp:160
#4  0xb79a94af in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseu-2.8.so.0
#5  0xb7a4c23c in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseu-2.8.so.0
#6  0xb7a4c40e in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseu-2.8.so.0
#7  0xb7a4c5b6 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.8.so.0
#8  0xb7d26d37 in wxTimerBase::Notify ()
   from /usr/lib/libwx_gtk2u_core-2.8.so.0
#9  0xb7c0b077 in wxTimer::Start () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#10 0xb742cdd6 in g_source_get_current_time () from /usr/lib/libglib-2.0.so.0
#11 0xb742c802 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#12 0xb742f7df in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#13 0xb742fb89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#14 0xb71e0574 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
---Type to continue, or q to quit---
#15 0xb7c02454 in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#16 0xb7ca0b97 in wxAppBase::MainLoop ()
   from /usr/lib/libwx_gtk2u_core-2.8.so.0
#17 0xb7ca0c3f in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#18 0xb79e355e in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#19 0xb79e3612 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#20 0x08207b54 in main (argc=149606528, argv=0x8eac600) at amule-gui.cpp:95


Code: [Select]
(gdb) bt full
#0  0xb7cdee8f in wxGIFDecoder::GetFrameSize ()
   from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#1  0xb7cdeb94 in wxGIFDecoder::ConvertToImage ()
   from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#2  0x083b6081 in MuleGIFDecoder::ConvertToImage (this=0x8eacf10,
    image=0xbfe07974) at MuleGifCtrl.cpp:59
No locals.
#3  0x083b50ed in MuleGifCtrl::OnTimer (this=0x8ea8240) at MuleGifCtrl.cpp:160
        frame =
#4  0xb79a94af in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#5  0xb7a4c23c in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#6  0xb7a4c40e in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#7  0xb7a4c5b6 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
---Type to continue, or q to quit---
#8  0xb7d26d37 in wxTimerBase::Notify ()
   from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#9  0xb7c0b077 in wxTimer::Start () from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#10 0xb742cdd6 in g_source_get_current_time () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#11 0xb742c802 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#12 0xb742f7df in g_main_context_check () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#13 0xb742fb89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#14 0xb71e0574 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#15 0xb7c02454 in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#16 0xb7ca0b97 in wxAppBase::MainLoop ()
   from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#17 0xb7ca0c3f in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#18 0xb79e355e in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
---Type to continue, or q to quit---
No symbol table info available.
#19 0xb79e3612 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#20 0x08207b54 in main (argc=149606528, argv=0x8eac600) at amule-gui.cpp:95
No locals.


Code: [Select]
(gdb) thread apply all bt

Thread 7 (Thread -1282827360 (LWP 4942)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7f8ea8c in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb7a4a0c9 in wxConditionInternal::WaitTimeout ()
   from /usr/lib/libwx_baseu-2.8.so.0
#3  0xb7a4a11b in wxCondition::WaitTimeout ()
   from /usr/lib/libwx_baseu-2.8.so.0
#4  0xb7a4a7b6 in wxSemaphoreInternal::WaitTimeout ()
   from /usr/lib/libwx_baseu-2.8.so.0
#5  0xb7a4a83b in wxSemaphore::WaitTimeout ()
   from /usr/lib/libwx_baseu-2.8.so.0
#6  0x08317e22 in CTimerThread::Entry (this=0x87bba30) at Timer.cpp:63
#7  0xb7a4b48c in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_baseu-2.8.so.0
#8  0xb7a4b4e5 in wxPthreadStart () from /usr/lib/libwx_baseu-2.8.so.0
#9  0xb7f8b504 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#10 0xb77d851e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 5 (Thread -1266041952 (LWP 4939)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb77d1321 in select () from /lib/tls/i686/cmov/libc.so.6
---Type to continue, or q to quit---
#2  0xb7acc0f5 in GSocket::Input_Timeout ()
   from /usr/lib/libwx_baseu_net-2.8.so.0
#3  0xb7acd1e2 in GSocket::Read () from /usr/lib/libwx_baseu_net-2.8.so.0
#4  0xb7ac82c4 in wxSocketBase::_Read () from /usr/lib/libwx_baseu_net-2.8.so.0
#5  0xb7ac84a5 in wxSocketBase::Read () from /usr/lib/libwx_baseu_net-2.8.so.0
#6  0xb7ac6ac7 in wxSocketInputStream::OnSysRead ()
   from /usr/lib/libwx_baseu_net-2.8.so.0
#7  0xb7abebf4 in wxHTTPStream::OnSysRead ()
   from /usr/lib/libwx_baseu_net-2.8.so.0
#8  0xb7a01475 in wxInputStream::Read () from /usr/lib/libwx_baseu-2.8.so.0
#9  0x08146bfd in CHTTPDownloadThread::Entry (this=0x8ea7438)
    at HTTPDownload.cpp:209
#10 0xb7a4b48c in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_baseu-2.8.so.0
#11 0xb7a4b4e5 in wxPthreadStart () from /usr/lib/libwx_baseu-2.8.so.0
#12 0xb7f8b504 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#13 0xb77d851e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread -1249256544 (LWP 4937)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7f91bf6 in __nanosleep_nocancel ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb7a50357 in wxMicroSleep () from /usr/lib/libwx_baseu-2.8.so.0
---Type to continue, or q to quit---
#3  0xb7a5038c in wxMilliSleep () from /usr/lib/libwx_baseu-2.8.so.0
#4  0xb7a494af in wxThread::Sleep () from /usr/lib/libwx_baseu-2.8.so.0
#5  0x08193830 in UploadBandwidthThrottler::Entry (this=0x8dbaf28)
    at UploadBandwidthThrottler.cpp:321
#6  0xb7a4b48c in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_baseu-2.8.so.0
#7  0xb7a4b4e5 in wxPthreadStart () from /usr/lib/libwx_baseu-2.8.so.0
#8  0xb7f8b504 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9  0xb77d851e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread -1228249424 (LWP 4923)):
#0  0xb7cdee8f in wxGIFDecoder::GetFrameSize ()
   from /usr/lib/libwx_gtk2u_core-2.8.so.0
#1  0xb7cdeb94 in wxGIFDecoder::ConvertToImage ()
   from /usr/lib/libwx_gtk2u_core-2.8.so.0
#2  0x083b6081 in MuleGIFDecoder::ConvertToImage (this=0x8eacf10,
    image=0xbfe07974) at MuleGifCtrl.cpp:59
#3  0x083b50ed in MuleGifCtrl::OnTimer (this=0x8ea8240) at MuleGifCtrl.cpp:160
#4  0xb79a94af in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseu-2.8.so.0
#5  0xb7a4c23c in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseu-2.8.so.0
#6  0xb7a4c40e in wxEventHashTable::HandleEvent ()
---Type to continue, or q to quit---
   from /usr/lib/libwx_baseu-2.8.so.0
#7  0xb7a4c5b6 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.8.so.0
#8  0xb7d26d37 in wxTimerBase::Notify ()
   from /usr/lib/libwx_gtk2u_core-2.8.so.0
#9  0xb7c0b077 in wxTimer::Start () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#10 0xb742cdd6 in g_source_get_current_time () from /usr/lib/libglib-2.0.so.0
#11 0xb742c802 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#12 0xb742f7df in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#13 0xb742fb89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#14 0xb71e0574 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#15 0xb7c02454 in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#16 0xb7ca0b97 in wxAppBase::MainLoop ()
   from /usr/lib/libwx_gtk2u_core-2.8.so.0
#17 0xb7ca0c3f in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#18 0xb79e355e in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#19 0xb79e3612 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#20 0x08207b54 in main (argc=149606528, argv=0x8eac600) at amule-gui.cpp:95
Title: Re: crashed when open
Post by: Fenix-TX on January 01, 2007, 10:54:04 PM
If i disable auto-update ipfilter on start (security section), works perfect, so i think it's that the problem.

Thanks!

EDIT: In fact, if i click on Auto-update button, it crashes.
Title: Re: crashed when open
Post by: phoenix on January 05, 2007, 04:59:51 AM
Fenix-TX,

Please try again with tomorrow cvs tarball, I have committed code that should fix this issue.
Title: Re: crashed when open
Post by: Fenix-TX on January 05, 2007, 01:16:58 PM
Thanks!!!!!!!!! :D :D :D

 :baby: :baby: :baby: :baby: :baby: :baby:

Now it's working perfect!!!!!!!!