aMule Forum

English => en_Bugs => Topic started by: darklegion on November 08, 2004, 01:36:17 PM

Title: 2004-11-07 - Several Problems
Post by: darklegion on November 08, 2004, 01:36:17 PM
Well after putting up with a previous (broken cvs) that could only run semi-reliably under amulecmd/amuled,I have tried compiling the latest cvs.Here are the details of the wxgtk and amule compiles:

wxGTK 2.5.3:
Code: [Select]
--with-gtk2 --with-unicode
amule:
Code: [Select]
---disable-debug --enable-optimise -enable-amule-daemon --enable-webserver
--enable-amulecmd --disable-systray --enable-ccache

And here are the problems:  
 
Main amule(GUI):
Gui doesn't have the swap workspace/window segfault anymore but now it can't load my shared files or transfer list.These are the errors in the log that stand out:
Code: [Select]
IDS_CRYPT_INITFAILED
Error enumerating files for dir ~/amule/temp
Error enumerating files for dir ~/amule/incoming/

Also graphics are somewhat messed up,such as unicode might not be working correctly.

amulecmd:
Loads the password prompt and lets me enter my pass then it just closes without a message.

amuleweb:
Code: [Select]
  Õ·      Õ·ssword not passed on command line and config file not used
amuled:
Possible insight to the above problems here as it seems to be trying to load the shared/temp files from '.' rather then my proper shared/temp directories:
Code: [Select]
Loading temp files from .
Empty dir  shared

A lot of the problesm above might suggest permission problems but I am have read/write access to all of the files,so I can't see why thies would be happening.
I'm compiling rc7 again against the same wx to see if the problems disappear.
Title: Re: 2004-11-07 - Several Problems
Post by: lfroen on November 08, 2004, 02:17:21 PM
Quote
Password not passed on command line and config file not used

You should set password for amuleweb - either by specifying it on command line or by using config file with -f switch.
run amuleweb --help to see exact syntax

amuled using same config file as gui mule. So if one doesn't work - another probably will not too.

Quote
Error enumerating files for dir ~/amule/temp

Did you specified "~" in .eMule or somewhere in options ? I don't think amule gonna like it - set full path to directory.
Title: Re: 2004-11-07 - Several Problems
Post by: Jacobo221 on November 08, 2004, 03:19:40 PM
i think it does support ~. I'm not sure since my computer is broken, so I can't check, but I reember some part of the code resolves the ~ symbol. Or maybe it's just the signature path in preferences...
Greetings!
Title: Re: 2004-11-07 - Several Problems
Post by: darklegion on November 08, 2004, 04:09:37 PM
Dropped back to a previous cvs (20041028) and so far the gui seems to be working well and shared files/transfers are being picked up correctly..some minor glitches here but that doesn't really bother me.However webserver is seg faultnig and amulecmd loads but does not do anything after telling it to connect.Amuled works fine although it is useless without the other 2 working :) I  also disabled embedded crypto on this which may/may not have fixed the password/shared files problem.

As for using '~'...it is not specified like that,I am just used to using that as shorthand :)
Title: Re: 2004-11-07 - Several Problems
Post by: Kry on November 08, 2004, 07:37:35 PM
Reverting to a previous cvs don't help us tracking ;) Can you pelase retry with current cvs?

The problem is that your aMule is not reading the config from where it should. Can you confirm if it still happens?
Title: Re: 2004-11-07 - Several Problems
Post by: Kanniball on November 10, 2004, 12:25:17 AM
kry I have this prob too...
I'm using wx 2.5.3 with unicode + gkt2

Empty dir  shared
Empty dir ?§î@?§î@ff/media/

the dir should be /mnt/stuff/media...
and in the userHash I have "¯#     " (without "" ) before numbers&leters

tried with cvs Ter Nov  9 22:57:56 WET 2004

and with rc7 works fine....
Title: Re: 2004-11-07 - Several Problems
Post by: darklegion on November 10, 2004, 08:29:14 AM
Yes it still happens (november 7 cvs).Oh and I have also seemingly lost my statistics and possibly my credits also which I can't seem to get back in the older version either i.e total uploads and downloads was reset back to 0.However this may have also been cause by a temporary move of clients.met,but that should not have stuffed things permanently.I don't particularly care though as I have seen no effect on my download speed...but then my connect is low-end adsl and I tend to download from a different source each time.
Title: Re: 2004-11-07 - Several Problems
Post by: OldFrog on November 10, 2004, 08:12:22 PM
Same configuration, same punishment.
Same troubvle for me, including with the current CVS. I gave a try to CVS from Oct 30th and everything went fine.
Title: Re: 2004-11-07 - Several Problems
Post by: Kry on November 11, 2004, 02:03:21 AM
Can someone provide me the exact date? I mean, 30Oct is ok and today's is wrong, but what about 1-9?
Title: Re: 2004-11-07 - Several Problems
Post by: darklegion on November 11, 2004, 03:08:54 AM
Well I'll try compiling 20041104 and see if it still happens(middle ground between oct 30th and nov 7th :) ).If it does/doesn't work that should narrow it down a bit.20041107 was the one where it originally happened.
Title: Re: 2004-11-07 - Several Problems
Post by: darklegion on November 11, 2004, 04:02:17 AM
Ok,it still happens on 20041104 so the bug is here or earlier.
Title: Re: 2004-11-07 - Several Problems
Post by: junaru on November 13, 2004, 08:54:15 PM
I tried the one from 20041103 and gues what, it worked! So it seems like the problem is somewhere within the 20041104 tarball .
Title: Re: 2004-11-07 - Several Problems
Post by: OldFrog on November 14, 2004, 09:55:52 AM
I confirm 20041103 CVS works about lists, anyway, it seems there are some troubles with unicode on the list of servers.

(http://oldfrog.9online.fr/divers/amulelist.jpg)
Title: Re: 2004-11-07 - Several Problems
Post by: Jacobo221 on November 14, 2004, 07:04:25 PM
should be fixed now. check tonights CVS please
Greetings!
Title: Re: 2004-11-07 - Several Problems
Post by: OldFrog on November 14, 2004, 09:03:17 PM
Trouyble compiling current CVS (20041114):


Quote
erverListCtrl.cpp: In static member function `static int CServerListCtrl::SortProc(long int, long int, long int)':
ServerListCtrl.cpp:591: error: `CmpAny' undeclared (first use this function)
ServerListCtrl.cpp:591: error: (Each undeclared identifier is reported only once for each function it appears in.)
ServerListCtrl.cpp:593: error: duplicate case value
ServerListCtrl.cpp:577: error: previously used here
make[4]: *** [amule-ServerListCtrl.o] Erreur 1
make[3]: *** [all-recursive] Erreur 1
make[2]: *** [all] Erreur 2
make[1]: *** [all-recursive] Erreur 1
make: *** [all] Erreur 2
Title: Re: 2004-11-07 - Several Problems
Post by: GonoszTopi on November 14, 2004, 09:11:27 PM
http://www.amule.org/amule/thread.php?threadid=4133&sid=
Title: Re: 2004-11-07 - Several Problems
Post by: OldFrog on November 14, 2004, 09:22:25 PM
Sorry for the double post  :] ;(
Title: Re: 2004-11-07 - Several Problems
Post by: Jacobo221 on November 15, 2004, 12:04:50 AM
no problem but it's not fixed yet in CVS (20041114), it will be in TONIGHT's cvs ;)
Greetings!
Title: Re: 2004-11-07 - Several Problems
Post by: OldFrog on November 15, 2004, 06:36:25 PM
Trouble compiling CVS of 20041115

Quote
In file included from alcc.cpp:49:
alcc.h:73: warning: missing initializer for member `wxCmdLineEntryDesc::shortName'
alcc.h:73: warning: missing initializer for member `wxCmdLineEntryDesc::longName'
alcc.h:73: warning: missing initializer for member `wxCmdLineEntryDesc::description'
alcc.h:73: warning: missing initializer for member `wxCmdLineEntryDesc::type'
alcc.h:73: warning: missing initializer for member `wxCmdLineEntryDesc::flags'
In file included from ListenSocket.cpp:26:
server.h: In member function `const wxString CServer::GetListName() const':
server.h:61: error: cannot convert `const wxString' to `const char*' for argument `1' to `const wxWCharBuffer char2unicode(const char*)'
server.h: In member function `const wxString CServer::GetAddress() const':
server.h:66: error: cannot convert `const wxString' to `const char*' for argument `1' to `const wxWCharBuffer char2unicode(const char*)'
server.h: In member function `const wxString CServer::GetDescription() const':
server.h:79: error: cannot convert `const wxString' to `const char*' for argument `1' to `const wxWCharBuffer char2unicode(const char*)'
server.h: In member function `const wxString CServer::GetVersion() const':
server.h:105: error: cannot convert `const wxString' to `const char*' for argument `1' to `const wxWCharBuffer char2unicode(const char*)'
ListenSocket.cpp:111:18: warning: #warning check closing method to change order and get rid of this
ListenSocket.cpp:819:50: warning: #warning Here should be the IDHybrid, but we don't use it yet and I'm afraid it willbreak a lot ;)
ListenSocket.cpp:825:42: warning: #warning Here should be the IDHybrid, but we don't use it yet and I'm afraid it willbreak a lot ;)
ListenSocket.cpp:1165:42: warning: #warning We need a new ProcessSharedFileList that can handle dirs. ___UNICODE___
make[4]: *** [amule-ListenSocket.o] Erreur 1
make[3]: *** [all-recursive] Erreur 1
make[2]: *** [all] Erreur 2
make[1]: *** [all-recursive] Erreur 1
make: *** [all] Erreur 2

Title: Re: 2004-11-07 - Several Problems
Post by: volpol on November 15, 2004, 07:14:08 PM
the fixes to the above compilation problems are trivial. the real problem is that this version (cvs-20041115) also exposes the behavior described in the earlier posts. also starting from cvs-20041104 amule messes up ipfiler.dat
if anyone wants to compile 20041115 here is the patch:
Code: [Select]
diff -Naur amule-cvs-20041115/src/server.h amule-cvs-20041115.fixed/src/server.h
--- amule-cvs-20041115/src/server.h     2004-11-14 18:29:05.000000000 +0100
+++ amule-cvs-20041115.fixed/src/server.h       2004-11-15 19:19:26.000000000 +0100
@@ -58,12 +58,12 @@
        CServer(CServer* pOld);
        ~CServer();
        void    AddTag(CTag* in_tag)                                    {taglist->Append(in_tag);}
-       const wxString  GetListName()   const           {return char2unicode(listname);}
+       const wxString  GetListName()   const           {return listname;}
        const wxString& GetFullIP()             const           {return ipfull;}
 
        const wxString GetAddress() const {
                if (!dynip.IsEmpty()) {
-                       return char2unicode(dynip);
+                       return dynip;
                } else {
                        return ipfull;
                }
@@ -76,7 +76,7 @@
        uint32  GetIP()         const                   {return ip;}
        uint32  GetFiles()      const                   {return files;}
        uint32  GetUsers()      const                   {return users;}
-       const wxString  GetDescription()        const   {return char2unicode(description);}  
+       const wxString  GetDescription()        const   {return description;}  
        uint32  GetPing()                       const   {return ping;}
        uint32  GetPreferences()        const   {return preferences;}
        uint32  GetMaxUsers()           const   {return maxusers;}
@@ -102,7 +102,7 @@
        void    SetSoftFiles(uint32 in_softfiles)                       {softfiles = in_softfiles;}
        uint32  GetHardFiles()          const           {return hardfiles;}
        void    SetHardFiles(uint32 in_hardfiles)                       {hardfiles = in_hardfiles;}
-       const   wxString GetVersion() const                             {return char2unicode(m_strVersion);}
+       const   wxString GetVersion() const                             {return m_strVersion;}
        void    SetVersion(wxString pszVersion)                         {m_strVersion = pszVersion;}
        void    SetTCPFlags(uint32 uFlags)                              {m_uTCPFlags = uFlags;}
        uint32  GetTCPFlags() const                                     {return m_uTCPFlags;}
diff -Naur amule-cvs-20041115/src/ServerListCtrl.cpp amule-cvs-20041115.fixed/src/ServerListCtrl.cpp
--- amule-cvs-20041115/src/ServerListCtrl.cpp   2004-11-14 11:59:51.000000000 +0100
+++ amule-cvs-20041115.fixed/src/ServerListCtrl.cpp     2004-11-15 19:19:53.000000000 +0100
@@ -200,7 +200,7 @@
 
        SetItem( itemnr, COLUMN_SERVER_NAME, server->GetListName() );
        SetItem( itemnr, COLUMN_SERVER_ADDR, server->GetAddress() );
-       SetItem( itemnr, COLUMN_SERVER_PORT, wxString::Format("%i", server->GetPort()) );
+       SetItem( itemnr, COLUMN_SERVER_PORT, wxString::Format( wxT("%i"), server->GetPort()) );
        SetItem( itemnr, COLUMN_SERVER_DESC, server->GetDescription() );
 
        if ( server->GetPing() ) {
Title: Re: 2004-11-07 - Several Problems
Post by: Kry on November 15, 2004, 09:07:16 PM
Yo, I should compile cvs on unicode too ;)

Thaks for the patch.
Title: Re: 2004-11-07 - Several Problems
Post by: volpol on November 18, 2004, 02:35:19 PM
the unicode bug is finally fixed! thank you. i noticed that change from macro to inline (20041104 was it?) during that massive migration of code from otherfunctions.h to StringFunctions and etc, but what i thought to myself was "no, that can't be the cause!" =) by the way unless you meant someone else i am volpol not "volpop"
Title: Re: 2004-11-07 - Several Problems
Post by: Jacobo221 on November 18, 2004, 02:50:56 PM
vulipop :P
Title: Re: 2004-11-07 - Several Problems
Post by: volpol on November 18, 2004, 09:07:58 PM
well...if you insist =)