amule-project / amule

'All-platform' P2P client based on eMule
1k stars 222 forks source link

amulegui assertion/bug (and amuled dropping connections!) #180

Open Stoatwblr opened 4 years ago

Stoatwblr commented 4 years ago

svn build (pulled down 20200305) and compiled into debian packages on Ubuntu Focal. but it's been doing this for a while:

7500 files shared 1020 in the "grab" list, but only 200 "active" (waiting or downloading)

amuled running, connecting to it with amulegui

lots of:

BUG In pixman_region32_init_rect: Invalid rectangle passed Set a breakpoint on '_pixman_log_error' to debug

occasional batches of:

(amulegui:3148427): Gtk-CRITICAL **: 18:40:29.815: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkSpinButton

and then it will crash out with a popup saying "connection closed probably"

whilst logging 2020-03-12 19:30:13 (remote-GUI): amule-remote-gui.cpp(325): Remote GUI EC event handler 2020-03-12 19:30:13 (remote-GUI): amule-remote-gui.cpp(332): Going down Error code 10 unknown.

It will keep periodically logging the Error code 10 until the program is exited by acknowledging the error window.

This MOSTLY happens when in the download tab, switching between category tabs.

Stoatwblr commented 4 years ago

Finally got an actual error log (kind of...)

ASSERT INFO: ECSocket.cpp(189): assert "len == canWrite" failed in ReadFromSocket().

BACKTRACE: [1] CQueuedData::ReadFromSocket(CECSocket, unsigned long) ./src/libs/ec/cpp/ECSocket.cpp:189 [2] CECSocket::OnInput() ./src/libs/ec/cpp/ECSocket.cpp:383 [3] MuleNotify::LibSocketReceive(CLibSocket, int) ./src/./LibSocketAsio.cpp:383 [4] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler, wxEvent&) [5] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler) [6] wxEvtHandler::TryHereOnly(wxEvent&) [7] wxEvtHandler::ProcessEventLocally(wxEvent&) [8] wxEvtHandler::ProcessEvent(wxEvent&) [9] wxEvtHandler::ProcessPendingEvents() [10] wxAppConsoleBase::ProcessPendingEvents() [11] wxApp::DoIdle() [12] g_main_context_dispatch [13] g_main_loop_run [14] gtk_main [15] wxGUIEventLoop::DoRun() [16] wxEventLoopBase::Run() [17] wxAppConsoleBase::MainLoop() [18] wxEntry(int&, wchar_t**) [19] main ./src/amule-remote-gui.cpp [20] __libc_start_main [21] _start

Stoatwblr commented 4 years ago

(the pixmap stuff might be a fonting/sizing error) https://bugzilla.gnome.org/show_bug.cgi?id=791081 and https://bugs.eclipse.org/bugs/show_bug.cgi?id=533799

Stoatwblr commented 4 years ago

ARRGH!

At least some of these really are amuled dropping the connection

It's actually worse than just the gui getting disconnected - amuled is also disconnecting itself from peers too

I'm trying to see if this is a kernel/network setting issue but it's pointing at Amuled

gonosztopi commented 4 years ago

7500 files shared 1020 in the "grab" list, but only 200 "active" (waiting or downloading)

Seems to be too much. Both 7500 and 1020.

Stoatwblr commented 4 years ago

Most of them have been waiting on completion for years. As for sharing, this is a low number

Amuled has no issue with it, nor when run as amule. This is strictly an amulegui issue

rkfg commented 1 year ago

Interesting fact: if you look into the traffic the connection is reset after you press OK in that error message in amulegui. So the error is shown for some other reason because the connection is perfectly fine, and it's only closed because the program terminates.

EDIT: but it only seems to happen with the repo version in Debian, I compiled the program myself and it works fine, no disconnects at all.