aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: EncryptedStreamSocket.cpp(683): assert "false" failed in Negotiate().  (Read 6012 times)

macias

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 110



At some point I get this message (when aMule is running):

Code: [Select]
ASSERT INFO:
EncryptedStreamSocket.cpp(683): assert "false" failed in Negotiate().

BACKTRACE:
[1] wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, wchar_t const*)
[2] CEncryptedStreamSocket::Negotiate(unsigned char const*, unsigned int) /home/user/rpm/BUILD/aMule-2.2.6/src/EncryptedStreamSocket.cpp:684
[3] CEncryptedStreamSocket::Read(void*, unsigned int) /home/user/rpm/BUILD/aMule-2.2.6/src/EncryptedStreamSocket.cpp:303
[4] CEMSocket::OnReceive(int) /home/user/rpm/BUILD/aMule-2.2.6/src/EMSocket.cpp:227
[5] CClientTCPSocket::OnReceive(int) /home/user/rpm/BUILD/aMule-2.2.6/src/ClientTCPSocket.cpp:1933
[6] CClientTCPSocketHandler::ClientTCPSocketHandler(wxSocketEvent&) /home/user/rpm/BUILD/aMule-2.2.6/src/ClientTCPSocket.cpp:96
[7] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) cons)
[8] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[9] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[10] wxEvtHandler::ProcessEvent(wxEvent&)
[11] wxEvtHandler::ProcessPendingEvents()
[12] wxAppConsole::ProcessPendingEvents()
[13] wxAppBase::ProcessIdle()
[14] g_main_context_dispatch()
[15] g_main_loop_run()
[16] gtk_main()
[17] wxEventLoop::Run()
[18] wxAppBase::MainLoop()
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: EncryptedStreamSocket.cpp(683): assert "false" failed in Negotiate().
« Reply #1 on: April 03, 2011, 08:33:33 PM »

No. Do NOT patch wx 2.8.12. It already has a different form of the patch included, applying the original patch to it again will be disastrous.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

macias

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 110
Re: EncryptedStreamSocket.cpp(683): assert "false" failed in Negotiate().
« Reply #2 on: April 04, 2011, 06:02:13 PM »

I applied the patch because of your very post :-) (the one about solving the issue with handling high traffic).

Anyway, I removed the patch, packaged wxGTK again, and I get this assertion again. Just in case new stack trace:

Code: [Select]
ASSERT INFO:
EncryptedStreamSocket.cpp(683): assert "false" failed in Negotiate().

BACKTRACE:
[1] wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, wchar_t const*)
[2] CEncryptedStreamSocket::Negotiate(unsigned char const*, unsigned int) /home/user/rpm/BUILD/aMule-2.2.6/src/EncryptedStreamSocket.cpp:684
[3] CEncryptedStreamSocket::Read(void*, unsigned int) /home/user/rpm/BUILD/aMule-2.2.6/src/EncryptedStreamSocket.cpp:303
[4] CEMSocket::OnReceive(int) /home/user/rpm/BUILD/aMule-2.2.6/src/EMSocket.cpp:227
[5] CClientTCPSocket::OnReceive(int) /home/user/rpm/BUILD/aMule-2.2.6/src/ClientTCPSocket.cpp:1933
[6] CClientTCPSocketHandler::ClientTCPSocketHandler(wxSocketEvent&) /home/user/rpm/BUILD/aMule-2.2.6/src/ClientTCPSocket.cpp:96
[7] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) cons)
[8] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[9] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[10] wxEvtHandler::ProcessEvent(wxEvent&)
[11] wxEvtHandler::ProcessPendingEvents()
[12] wxAppConsole::ProcessPendingEvents()
[13] wxAppBase::ProcessIdle()
[14] g_main_context_dispatch()
[15] g_main_loop_run()
[16] gtk_main()
[17] wxEventLoop::Run()
[18] wxAppBase::MainLoop()

Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: EncryptedStreamSocket.cpp(683): assert "false" failed in Negotiate().
« Reply #3 on: April 04, 2011, 09:32:57 PM »

Please try aMule 2.3.1 rc instead.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

btkaos

  • Global Moderator
  • Sr. Member
  • *****
  • Karma: 110
  • Offline Offline
  • Posts: 486
  • Kaos is infinite!
Re: EncryptedStreamSocket.cpp(683): assert "false" failed in Negotiate().
« Reply #4 on: April 05, 2011, 12:11:49 AM »

macias this seems like you are using a bad wxwigdets.
Logged

macias

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 110
Re: EncryptedStreamSocket.cpp(683): assert "false" failed in Negotiate().
« Reply #5 on: April 05, 2011, 04:54:53 PM »

What do you mean by "bad"? It is downloaded from wxWidgets site.
Logged

btkaos

  • Global Moderator
  • Sr. Member
  • *****
  • Karma: 110
  • Offline Offline
  • Posts: 486
  • Kaos is infinite!
Re: EncryptedStreamSocket.cpp(683): assert "false" failed in Negotiate().
« Reply #6 on: April 05, 2011, 06:10:17 PM »

What do you mean by "bad"? It is downloaded from wxWidgets site.
Either it was incorrectly built or was incorrectly patched. As STU said, I must not be patched. (it must not be patched :))

Of course a new bug could also be a possibility, but it doesn't seem so, as you are getting the same results I had when incorrectly patching wx.
« Last Edit: April 06, 2011, 02:07:44 AM by btkaos »
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: EncryptedStreamSocket.cpp(683): assert "false" failed in Negotiate().
« Reply #7 on: April 05, 2011, 07:45:18 PM »

As STU said, I must not be patched.
Yep, I totally said btkaos must not be patched.  ;D
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

macias

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 110
Re: EncryptedStreamSocket.cpp(683): assert "false" failed in Negotiate().
« Reply #8 on: April 09, 2011, 08:14:36 AM »

> Either it was incorrectly built

configure, and then make. That's all.

> or was incorrectly patched.

Not possible, I don't apply ANY patch.


Now, just for the record, this error shows when there is no connection. In my case, for a longer period of time, like 2 hours. I am not saying it is the only case, but for a few days, I lost signal (wifi) for few hours, and every time after that I got this error.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: EncryptedStreamSocket.cpp(683): assert "false" failed in Negotiate().
« Reply #9 on: April 09, 2011, 08:48:30 AM »

Personally I think we've reached the point where 2.2.6 is so detached from 2.3.x that we're not really paying any attention to bugs from 2.2.6 unless they're confirmed in 2.3.1rc1
Logged