aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: Got Problem on aMule CVS r9909 on 10.6.2 Snow Leopard  (Read 12432 times)

hdfdisk

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Got Problem on aMule CVS r9909 on 10.6.2 Snow Leopard
« on: December 27, 2009, 08:27:46 AM »

Hello all.
I'm trying to compile aMule CVS with wxWidgets 2.9, I have get through all the compilation problem and finally got the app, but when I run it, I got following message just after "Server List Download"

Thread 4 Crashed:
0   libSystem.B.dylib                0x00007fff86b0dfde __semwait_signal_nocancel + 10
1   libSystem.B.dylib                0x00007fff86b0dee0 nanosleep$NOCANCEL + 129
2   libSystem.B.dylib                0x00007fff86b6a886 usleep$NOCANCEL + 57
3   libSystem.B.dylib                0x00007fff86b89e3c abort + 93
4   org.amule.aMule                  0x00000001006b7c51 wxFatalSignalHandler + 33
5   libSystem.B.dylib                0x00007fff86afaeaa _sigtramp + 26
6   ???                              0x0000000102776f20 0 + 4336348960
7   org.amule.aMule                  0x00000001005a1704 wxSocketManagerMac::Install_Callback(wxSocketImpl*, wxSocketNotify) + 52
8   org.amule.aMule                  0x00000001005a12de wxSocketImplUnix::DoEnableEvents(int, bool) + 238
9   org.amule.aMule                  0x000000010059d53e wxSocketBase::Peek(void*, unsigned int) + 62
10  org.amule.aMule                  0x00000001005968fb wxProtocol::ReadLine(wxSocketBase*, wxString&) + 475
11  org.amule.aMule                  0x000000010059369b wxHTTP::ParseHeaders() + 443
12  org.amule.aMule                  0x00000001005949d7 wxHTTP::BuildRequest(wxString const&, wxHTTP::wxHTTP_Req) + 3143
13  org.amule.aMule                  0x000000010059527d wxHTTP::GetInputStream(wxString const&) + 221
14  org.amule.aMule                  0x000000010012b680 CHTTPDownloadThread::GetInputStream(wxHTTP**, wxString const&, bool) + 1056
15  org.amule.aMule                  0x000000010012c112 CHTTPDownloadThread::Entry() + 546
16  org.amule.aMule                  0x00000001006b5b6a wxThreadInternal::PthreadStart(wxThread*) + 762
17  libSystem.B.dylib                0x00007fff86ad3f8e _pthread_start + 331
18  libSystem.B.dylib                0x00007fff86ad3e41 thread_start + 13

anyone has any idea?
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Got Problem on aMule CVS r9909 on 10.6.2 Snow Leopard
« Reply #1 on: December 27, 2009, 04:08:37 PM »

What wx version are you using? The 2.9 release won't work, you have to use the 2.9.1 SVN version.
Oh, and 2.9 support of aMule is highly experimental. I'll help you as far as I can, but I don't know MacOS.
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

hdfdisk

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Re: Got Problem on aMule CVS r9909 on 10.6.2 Snow Leopard
« Reply #2 on: December 28, 2009, 01:28:08 AM »

So you means that I should use 2.9.1 SVN?
OK I'm trying that, I'll put the result later.
« Last Edit: December 28, 2009, 01:40:24 AM by hdfdisk »
Logged

hdfdisk

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Re: Got Problem on aMule CVS r9909 on 10.6.2 Snow Leopard
« Reply #3 on: December 28, 2009, 05:30:19 AM »

Sorry...But this is what I got (compilation PASSED)


Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib                0x00007fff86ae8fe6 __kill + 10
1   org.amule.aMule                  0x000000010006af52 CamuleApp::OnAssertFailure(wchar_t const*, int, wchar_t const*, wchar_t const*, wchar_t const*) + 648
2   org.amule.aMule                  0x0000000100651064 wxDefaultAssertHandler(wxString const&, int, wxString const&, wxString const&, wxString const&) + 308
3   org.amule.aMule                  0x000000010004bc84 wxOnAssert(char const*, int, char const*, char const*, char const*) + 660
4   org.amule.aMule                  0x00000001006f4159 wxLocale::AddCatalog(wxString const&, wxLanguage, wxString const&) + 121
5   org.amule.aMule                  0x00000001006f4583 wxLocale::AddCatalog(wxString const&) + 243
6   org.amule.aMule                  0x00000001002d0a59 InitLocale(wxLocale&, int) + 273
7   org.amule.aMule                  0x000000010006bd7a CamuleApp::Localize_mule() + 58
8   org.amule.aMule                  0x00000001000700c0 CamuleApp::OnInit() + 1270
9   org.amule.aMule                  0x00000001001c3bad CamuleGuiApp::OnInit() + 49
10  org.amule.aMule                  0x00000001004d28fb wxApp::CallOnInit() + 43
11  org.amule.aMule                  0x00000001006e4254 wxEntry(int&, wchar_t**) + 100
12  org.amule.aMule                  0x00000001001c4c3e main + 28
13  org.amule.aMule                  0x0000000100060868 start + 52

[UPDATE] I think i got the problem, here is the GDB result:
Reading symbols for shared libraries . done
2009-12-28 13:21:38.334 amule[48755:a0f] Can't open input server /Library/InputManagers/Inquisitor
 2009-12-28 13:21:38: Initialising aMule SVN using wxMac v2.9.1 (Debugging) (Snapshot: rev. 9909)
 2009-12-28 13:21:38: Checking if there is an instance already running...
 2009-12-28 13:21:38: No other instances are running.
Assertion failed: ../src/common/intl.cpp:AddCatalog:2555: Assertion '!m_strShort.empty()' failed. must initialize catalog first

I need to know how to fix it.
« Last Edit: December 28, 2009, 06:24:50 AM by hdfdisk »
Logged

hdfdisk

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Re: Got Problem on aMule CVS r9909 on 10.6.2 Snow Leopard
« Reply #4 on: December 28, 2009, 06:46:53 AM »

Hello EveryBody!!!!
Well, I did it.
(There is some problem, I have to removed the wxCHECK_MSG( !m_strShort.empty(), false, "must initialize catalog first" );
from intl.cpp of WxWidgets 2.9.1)

aMule, meet the world of Snow :p
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Got Problem on aMule CVS r9909 on 10.6.2 Snow Leopard
« Reply #5 on: December 28, 2009, 01:33:00 PM »

Good to hear!

(There is some problem, I have to removed the wxCHECK_MSG( !m_strShort.empty(), false, "must initialize catalog first" );
from intl.cpp of WxWidgets 2.9.1)
Maybe it doesn't find its localization files? Did you just run it or install it properly first?
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

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Got Problem on aMule CVS r9909 on 10.6.2 Snow Leopard
« Reply #6 on: December 29, 2009, 09:52:31 AM »

Sounds to me (without actually looking into it) like the intl init happens before we're ready to handle the assert callback call.
Logged

hdfdisk

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Re: Got Problem on aMule CVS r9909 on 10.6.2 Snow Leopard
« Reply #7 on: December 29, 2009, 10:29:23 AM »

OK...Here are the problem we are currently facing:
It has to run in GDB, with root priority
Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib                0x00007fff86ae8fe6 __kill + 10
1   org.amule.aMule                  0x000000010006a9b2 CamuleApp::OnAssertFailure(wchar_t const*, int, wchar_t const*, wchar_t const*, wchar_t const*) + 648
2   org.amule.aMule                  0x00000001006510d4 wxDefaultAssertHandler(wxString const&, int, wxString const&, wxString const&, wxString const&) + 308
3   org.amule.aMule                  0x000000010004b724 wxOnAssert(char const*, int, char const*, char const*, char const*) + 660
4   org.amule.aMule                  0x00000001006f2bba wxMsgCatalogFile::Load(wxString const&, wxString const&, wxPluralFormsCalculatorPtr&) + 3578
5   org.amule.aMule                  0x00000001006f4636 wxMsgCatalog::Load(wxString const&, wxString const&, wxString const&, bool) + 102
6   org.amule.aMule                  0x00000001006f475a wxLocale::AddCatalog(wxString const&, wxLanguage, wxString const&) + 202
7   org.amule.aMule                  0x00000001006f4ad3 wxLocale::AddCatalog(wxString const&) + 243
8   org.amule.aMule                  0x00000001002d044d InitLocale(wxLocale&, int) + 273
9   org.amule.aMule                  0x000000010006b7da CamuleApp::Localize_mule() + 58
10  org.amule.aMule                  0x000000010006fb20 CamuleApp::OnInit() + 1270
11  org.amule.aMule                  0x00000001001c35d9 CamuleGuiApp::OnInit() + 49
12  org.amule.aMule                  0x00000001004d235b wxApp::CallOnInit() + 43
13  org.amule.aMule                  0x00000001006e4294 wxEntry(int&, wchar_t**) + 100
14  org.amule.aMule                  0x00000001001c466a main + 28
15  org.amule.aMule                  0x0000000100060308 start + 52

(IN GDB, without ROOT)
../src/common/intl.cpp:Load:1157: Assertion 'szDirPrefix.length() >= LEN_LANG' failed. invalid language specification
Why there are so many trouble in intl.cpp...what's its usage, international language support?
« Last Edit: December 29, 2009, 10:45:53 AM by hdfdisk »
Logged

hdfdisk

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Re: Got Problem on aMule CVS r9909 on 10.6.2 Snow Leopard
« Reply #8 on: December 29, 2009, 12:02:55 PM »

ok...After I turn off the multilanguage support (disable-nls), everything is fine.
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Got Problem on aMule CVS r9909 on 10.6.2 Snow Leopard
« Reply #9 on: December 29, 2009, 12:25:47 PM »

Strange. Not that it works with --disable-nls, but that it doesn't work otherwise.
Logged
concordia cum veritate

hdfdisk

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Re: Got Problem on aMule CVS r9909 on 10.6.2 Snow Leopard
« Reply #10 on: December 29, 2009, 03:47:08 PM »

I guess it's the problem of wxWidgets?

BTW: Testing UPNP Support now, but since my internet connection will be cut off 10 minutes later, I may have to report the result tomorrow morning..:P (it's almost 23:00 here)

Update: UPNP is OK.
« Last Edit: December 29, 2009, 03:57:50 PM by hdfdisk »
Logged

l3v3l

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: Got Problem on aMule CVS r9909 on 10.6.2 Snow Leopard
« Reply #11 on: December 29, 2009, 08:52:49 PM »

I guess it's the problem of wxWidgets?

BTW: Testing UPNP Support now, but since my internet connection will be cut off 10 minutes later, I may have to report the result tomorrow morning..:P (it's almost 23:00 here)

Update: UPNP is OK.


Could you please post your compiled binary? Thanks in advance! l3v3l
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Got Problem on aMule CVS r9909 on 10.6.2 Snow Leopard
« Reply #12 on: December 29, 2009, 10:54:45 PM »

hdfdisk, please check your config.h for the PACKAGE definition. It should be
Code: [Select]
#define PACKAGE "amule"

And add a debug output to see what is passed to AddCatalogLookupPathPrefix here. (OtherFunctions.cpp)
Code: [Select]
void InitLocale(wxLocale& locale, int language)
{
locale.Init(language, wxLOCALE_LOAD_DEFAULT);

#if defined(__WXMAC__) || defined(__WXMSW__)
locale.AddCatalogLookupPathPrefix(JoinPaths(wxStandardPaths::Get().GetDataDir(), wxT("locale")));
#endif
locale.AddCatalog(wxT(PACKAGE));
}

NLS works fine on Windows.
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

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Got Problem on aMule CVS r9909 on 10.6.2 Snow Leopard
« Reply #13 on: December 29, 2009, 11:05:25 PM »

I've had problems with other apps in MacOSX that used wxWidgets, exactly the same problems.
Logged

hdfdisk

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Re: Got Problem on aMule CVS r9909 on 10.6.2 Snow Leopard
« Reply #14 on: December 30, 2009, 05:21:14 AM »



OK, Recompiling, NLS is enabled.
I have added a cout just before that line.

 2009-12-30 12:19:22: Initialising aMule SVN using wxMac v2.9.1 (Debugging) (Snapshot: rev. 9909)
 2009-12-30 12:19:22: Checking if there is an instance already running...
 2009-12-30 12:19:22: No other instances are running.
This is the thing passed
/Users/Phoenix/AppleSource/aMule-SVN-r9909/aMule.app/Contents/SharedSupport/locale
Assertion failed: ../src/common/intl.cpp:Load:1157: Assertion 'szDirPrefix.length() >= LEN_LANG' failed. invalid language specification



Could you please post your compiled binary? Thanks in advance! l3v3l

I'll do so once I can sure it's stable :P
« Last Edit: December 30, 2009, 05:30:27 AM by hdfdisk »
Logged
Pages: [1] 2