aMule Forum
English => Multiplatform => Mac OSX => Topic started by: hdfdisk 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?
-
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.
-
So you means that I should use 2.9.1 SVN?
OK I'm trying that, I'll put the result later.
-
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.
-
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
-
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?
-
Sounds to me (without actually looking into it) like the intl init happens before we're ready to handle the assert callback call.
-
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?
-
ok...After I turn off the multilanguage support (disable-nls), everything is fine.
-
Strange. Not that it works with --disable-nls, but that it doesn't work otherwise.
-
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.
-
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
-
hdfdisk, please check your config.h for the PACKAGE definition. It should be
#define PACKAGE "amule"
And add a debug output to see what is passed to AddCatalogLookupPathPrefix here. (OtherFunctions.cpp)
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.
-
I've had problems with other apps in MacOSX that used wxWidgets, exactly the same problems.
-
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
-
What gets passed to InitLocale in CamuleApp::Localize_mule() (amule.cpp) ?
And how did you configure wx?
-
for wxWidgets
../configure --with-osx_cocoa --disable-shared --with-opengl --with-libiconv-prefix="/opt/local"
aMule Debugging.
StrLang2wx
0
Assertion failed: ../src/common/intl.cpp:Load:1157: Assertion 'szDirPrefix.length() >= LEN_LANG' failed. invalid language specification
-
What gets passed to InitLocale in CamuleApp::Localize_mule() (amule.cpp) ?
And how did you configure wx?
wxCHECK_MSG( szDirPrefix.length() >= LEN_LANG, false,
message );
it seems like szDirPrefix.length() is 0.
Do you know why it is?
-
No, that's why I'm asking:
What gets passed to InitLocale in CamuleApp::Localize_mule() (amule.cpp) ?
-
Seems Like I cannot ignore this message , it'll still crash.
BTW:To All dev happy new years:p (In my time zone we have just passed 0:00)