aMule Forum

English => en_Bugs => Topic started by: nachbarnebenan on May 04, 2004, 11:21:59 AM

Title: shareddir.dat encoding
Post by: nachbarnebenan on May 04, 2004, 11:21:59 AM
I know it's not a real bug nor amules fault, but maybe there are more people who will stumple about this.
With my move to suse 9.1 all filenames were re-encoded to uft8. amule can't keep the names of files with uft8 chars, and rehashes them every time it is started. That's not a big problem, but if you have dirs shared, which have uft8 chars in their names amule will ignore them. The file shareddir.dat has to be converted manually to utf8, then it works.
Now they only thing missing is a way to recode known.met, so amule doesn't have to hash the files again at each start. Just "recode" doesn't work, but maybe someone knows a trick.
Title: Re: shareddir.dat encoding
Post by: Jacobo221 on May 04, 2004, 10:23:30 PM
That's because unicode support hasn't been added yet to aMule, although it's under development :-(

"The file shareddir.dat has to be converted manually to utf8, then it works." <- you mean converting to UTF-8 worked? Or you mean you renamed all special charecters in filenames to ASCII characters and then editted shareddir.dat to point there?

Greetings
Title: Re: shareddir.dat encoding
Post by: nachbarnebenan on May 05, 2004, 02:05:57 AM
> "The file shareddir.dat has to be converted manually to utf8, then it works." <- you mean converting to UTF-8 worked?

Yes, I have some shared dirs with german umlauts in their names (but the filenames in there are pure ascii), that weren't shared, even they were selected in amules preferences. So I got the idea to do a "recode iso-8859-15..utf8 shareddir.dat" and it helped. At least a little, a have a shared dir with french accents (and the files too, mostly) which is not shared, no matter what. Since I can't rename it (it's shared via NFS too) I just made a symlink.
Title: Re: shareddir.dat encoding
Post by: Jacobo221 on June 11, 2004, 04:25:53 AM
Could you please try with current CVS? It should be ok now.
I know it is ok now because you encoded it to UTF-(, but what'd be nice is if you could delte known.met and let aMule hash files again, and then see if it is working now with UTF-8 filenames.
Thanks a lot :-)
Greetings!
Title: Re: shareddir.dat encoding
Post by: nachbarnebenan on June 11, 2004, 10:59:07 AM
Ok, I will try it when I get home. Is it ok when I use the same wxwidgets and wxbase 2.4.2 as for rc3 or do you recommend 2.5.1?
Title: Re: shareddir.dat encoding
Post by: Kry on June 11, 2004, 02:39:16 PM
2.5.1
Title: Re: shareddir.dat encoding
Post by: nachbarnebenan on June 11, 2004, 03:49:22 PM
I set up a completely new build dir, to prevent conflicts with rc3 or wx 2.4.2.
WxBase 2.5.1, WxGTK 2.5.1 and aMule.20040611 did I miss something (libcrypt is system-wide)?
Title: Re: shareddir.dat encoding
Post by: Jacobo221 on June 11, 2004, 04:23:15 PM
that's ok. let's see how that does ;-)
thanks
Title: Re: shareddir.dat encoding
Post by: nachbarnebenan on June 11, 2004, 05:20:21 PM
Ok, let's see: bad news: it seems to be impossible to compile wxBase on my system. good news: aMule cvs compiles and runs without it. btw, why do the part indicators in the download list look so ... ugly?
Title: Re: shareddir.dat encoding
Post by: deltaHF on June 11, 2004, 05:31:26 PM
u mean the transfer bars ?

go to prefs and move the slider a bit till they looks like u like it ;)
Title: Re: shareddir.dat encoding
Post by: Jacobo221 on June 11, 2004, 05:50:43 PM
Moving it to the middle will leave it probably the way you want it to be ;-)
Greetings!

P.S.: And thanx for reporting the unicode results
Title: Re: shareddir.dat encoding
Post by: nachbarnebenan on June 11, 2004, 06:00:18 PM
I had already done that. But it was not aMule fault, my X server was somehow messed up, but a restart of vncviewer solved that.
But thanks anyway, aMule runs fine until now, just like rc3, except I don't have to asciice the files anymore... ;-)
Title: Re: shareddir.dat encoding
Post by: Jacobo221 on June 11, 2004, 06:40:30 PM
Thanks to you for reporting. It really makes me happy to know unicode is working fine :-)))))
Title: Re: shareddir.dat encoding
Post by: nachbarnebenan on June 12, 2004, 01:53:17 AM
When I select the shared dirs in preferences, utf8 folder names are still shown as garbage, at least some of them. But if you add the dirs in shareddir.dat manually, everything is fine.
Title: crash
Post by: nachbarnebenan on June 12, 2004, 10:10:14 AM
CPartFile->GetPartStatus() = 25, cur_src->m_nPartCount = 25,  forClient->m_nPart
Count = 17

CPartFile->GetPartStatus() = 25, cur_src->m_nPartCount = 25,  forClient->m_nPart
Count = 17

CPartFile->GetPartStatus() = 25, cur_src->m_nPartCount = 25,  forClient->m_nPart
Count = 17

CPartFile->GetPartStatus() = 25, cur_src->m_nPartCount = 25,  forClient->m_nPart
Count = 17

CPartFile->GetPartStatus() = 25, cur_src->m_nPartCount = 25,  forClient->m_nPart
Count = 17

CPartFile->GetPartStatus() = 25, cur_src->m_nPartCount = 25,  forClient->m_nPart
Count = 17

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1086591232 (LWP 32626)]
0x08156fd8 in CUpDownClient::GetDownloadState (this=0x348)
    at updownclient.h:298
298             uint8           GetDownloadState() const        { return m_nDown
loadState; }
(gdb) bt
#0  0x08156fd8 in CUpDownClient::GetDownloadState (this=0x348)
    at updownclient.h:298
#1  0x0823ede8 in CPartFile::Process (this=0x8991480, reducedownload=200,
    m_icounter=1 '\001') at PartFile.cpp:1595
#2  0x0819b367 in CDownloadQueue::Process (this=0x87fd2b0)
    at DownloadQueue.cpp:373
#3  0x082adc7c in CamuleApp::OnCoreTimer (this=0x85ee898) at amule.cpp:1710
#4  0x4046d6e4 in wxAppConsole::HandleEvent ()
   from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
#5  0x404f8270 in wxEvtHandler::ProcessEventIfMatches ()
   from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
#6  0x404f9610 in wxEventHashTable::HandleEvent ()
   from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
#7  0x404f96ea in wxEvtHandler::ProcessEvent ()
   from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
#8  0x40320e74 in wxTimerBase::Notify ()
   from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
#9  0x4023e629 in timeout_callback ()
   from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
#10 0x406eb8e3 in g_timeout_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
#11 0x406ebfbb in g_main_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
#12 0x406ec8b7 in g_main_iterate () from /opt/gnome/lib/libglib-1.2.so.0
#13 0x406ec98f in g_main_run () from /opt/gnome/lib/libglib-1.2.so.0
---Type to continue, or q to quit---
#14 0x405f1c4f in gtk_main () from /opt/gnome/lib/libgtk-1.2.so.0
#15 0x402348d9 in wxEventLoop::Run ()
   from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
#16 0x402af29d in wxAppBase::MainLoop ()
   from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
#17 0x402af0fe in wxAppBase::OnRun ()
   from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
#18 0x404aa953 in wxEntry () from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
#19 0x082a7a5c in main (argc=1, argv=0xbfffefa4) at amule.cpp:152
(gdb) bt full
#0  0x08156fd8 in CUpDownClient::GetDownloadState (this=0x348)
    at updownclient.h:298
No locals.
#1  0x0823ede8 in CPartFile::Process (this=0x8991480, reducedownload=200,
    m_icounter=1 '\001') at PartFile.cpp:1595
        cur_src = (CUpDownClient *) 0x348
        it = { = {
    _M_node = 0x8a02170}, }
        old_trans = 2
        dwCurTick = 393501338
#2  0x0819b367 in CDownloadQueue::Process (this=0x87fd2b0)
    at DownloadQueue.cpp:373
        cur_file = (class CPartFile *) 0x8991480
        i = 18
        size = 36
        downspeed = 200
#3  0x082adc7c in CamuleApp::OnCoreTimer (this=0x85ee898) at amule.cpp:1710
        msPrev1 = 22614232
        msPrev5 = 22610540
        msPrevSave = 22576846
        msCur = 22615251
#4  0x4046d6e4 in wxAppConsole::HandleEvent ()
   from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
---Type to continue, or q to quit---
No symbol table info available.
#5  0x404f8270 in wxEvtHandler::ProcessEventIfMatches ()
   from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
No symbol table info available.
#6  0x404f9610 in wxEventHashTable::HandleEvent ()
   from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
No symbol table info available.
#7  0x404f96ea in wxEvtHandler::ProcessEvent ()
   from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
No symbol table info available.
#8  0x40320e74 in wxTimerBase::Notify ()
   from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
No symbol table info available.
#9  0x4023e629 in timeout_callback ()
   from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
No symbol table info available.
#10 0x406eb8e3 in g_timeout_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
No symbol table info available.
#11 0x406ebfbb in g_main_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
No symbol table info available.
#12 0x406ec8b7 in g_main_iterate () from /opt/gnome/lib/libglib-1.2.so.0
No symbol table info available.
#13 0x406ec98f in g_main_run () from /opt/gnome/lib/libglib-1.2.so.0No symbol table info available.
#14 0x405f1c4f in gtk_main () from /opt/gnome/lib/libgtk-1.2.so.0
No symbol table info available.
#15 0x402348d9 in wxEventLoop::Run ()
   from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
No symbol table info available.
#16 0x402af29d in wxAppBase::MainLoop ()
   from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
No symbol table info available.
#17 0x402af0fe in wxAppBase::OnRun ()
   from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
No symbol table info available.
#18 0x404aa953 in wxEntry () from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
No symbol table info available.
#19 0x082a7a5c in main (argc=1, argv=0xbfffefa4) at amule.cpp:152
No locals.
(gdb)
Title: Re: shareddir.dat encoding
Post by: nachbarnebenan on June 12, 2004, 04:14:39 PM
Well, the next one:

--------------------------------------------------------
ClientSoftware ->00<- ClientVersion ->v99<- ClientModString ->
Crypto available
CurrentIdentState Ident OK
ClientSoftware ->00<- ClientVersion ->v99<- ClientModString ->
Crypto available
CurrentIdentState Ident OK
CPartFile::CPartFile(CSearchFile*): ignored tag 0x15=257
CPartFile::CPartFile(CSearchFile*): added tag "bitrate"=128
CPartFile::CPartFile(CSearchFile*): added tag "codec"="dx50"
CPartFile::CPartFile(CSearchFile*): ignored tag "length"=3939
ClientSoftware ->34<- ClientVersion ->v26<- ClientModString ->
Crypto available
CurrentIdentState not available

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1086591232 (LWP 2327)]
0x08156fd8 in CUpDownClient::GetDownloadState (this=0x348) at updownclient.h:298
298             uint8           GetDownloadState() const        { return m_nDownloadState; }
(gdb) bt
#0  0x08156fd8 in CUpDownClient::GetDownloadState (this=0x348) at updownclient.h:298
#1  0x0823ede8 in CPartFile::Process (this=0x8c55fa8, reducedownload=200, m_icounter=8 '\b') at PartFile.cpp:1595
#2  0x0819b367 in CDownloadQueue::Process (this=0x87fdab0) at DownloadQueue.cpp:373
#3  0x082adc7c in CamuleApp::OnCoreTimer (this=0x85ee898) at amule.cpp:1710
#4  0x4046d6e4 in wxAppConsole::HandleEvent () from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
#5  0x404f8270 in wxEvtHandler::ProcessEventIfMatches () from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
#6  0x404f9610 in wxEventHashTable::HandleEvent () from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
#7  0x404f96ea in wxEvtHandler::ProcessEvent () from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
#8  0x40320e74 in wxTimerBase::Notify () from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
#9  0x4023e629 in timeout_callback () from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
#10 0x406eb8e3 in g_timeout_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
#11 0x406ebfbb in g_main_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
#12 0x406ec8b7 in g_main_iterate () from /opt/gnome/lib/libglib-1.2.so.0
#13 0x406ec98f in g_main_run () from /opt/gnome/lib/libglib-1.2.so.0
#14 0x405f1c4f in gtk_main () from /opt/gnome/lib/libgtk-1.2.so.0
#15 0x402348d9 in wxEventLoop::Run () from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
#16 0x402af29d in wxAppBase::MainLoop () from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
#17 0x402af0fe in wxAppBase::OnRun () from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
#18 0x404aa953 in wxEntry () from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
#19 0x082a7a5c in main (argc=1, argv=0xbfffefa4) at amule.cpp:152
(gdb) bt full
#0  0x08156fd8 in CUpDownClient::GetDownloadState (this=0x348) at updownclient.h:298
No locals.
#1  0x0823ede8 in CPartFile::Process (this=0x8c55fa8, reducedownload=200, m_icounter=8 '\b') at PartFile.cpp:1595
        cur_src = (CUpDownClient *) 0x348
        it = { = {_M_node = 0x89fce68}, }
        old_trans = 4
        dwCurTick = 422448367
#2  0x0819b367 in CDownloadQueue::Process (this=0x87fdab0) at DownloadQueue.cpp:373
        cur_file = (class CPartFile *) 0x8c55fa8
        i = 32
        size = 37
        downspeed = 200
#3  0x082adc7c in CamuleApp::OnCoreTimer (this=0x85ee898) at amule.cpp:1710
        msPrev1 = 21027405
        msPrev5 = 21026293
        msPrevSave = 21016381
        msCur = 21028107
#4  0x4046d6e4 in wxAppConsole::HandleEvent () from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
No symbol table info available.
#5  0x404f8270 in wxEvtHandler::ProcessEventIfMatches () from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
No symbol table info available.
#6  0x404f9610 in wxEventHashTable::HandleEvent () from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
No symbol table info available.
#7  0x404f96ea in wxEvtHandler::ProcessEvent () from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
No symbol table info available.
#8  0x40320e74 in wxTimerBase::Notify () from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
No symbol table info available.
#9  0x4023e629 in timeout_callback () from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
No symbol table info available.
#10 0x406eb8e3 in g_timeout_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
No symbol table info available.
#11 0x406ebfbb in g_main_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
No symbol table info available.
#12 0x406ec8b7 in g_main_iterate () from /opt/gnome/lib/libglib-1.2.so.0
No symbol table info available.
#13 0x406ec98f in g_main_run () from /opt/gnome/lib/libglib-1.2.so.0
No symbol table info available.
#14 0x405f1c4f in gtk_main () from /opt/gnome/lib/libgtk-1.2.so.0
No symbol table info available.
#15 0x402348d9 in wxEventLoop::Run () from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
No symbol table info available.
#16 0x402af29d in wxAppBase::MainLoop () from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
No symbol table info available.
#17 0x402af0fe in wxAppBase::OnRun () from /home/amule/temp/BUILD/lib/libwx_gtk_core-2.5.so.1
No symbol table info available.
#18 0x404aa953 in wxEntry () from /home/amule/temp/BUILD/lib/libwx_base-2.5.so.1
No symbol table info available.
#19 0x082a7a5c in main (argc=1, argv=0xbfffefa4) at amule.cpp:152
No locals.
(gdb)
Title: Re: shareddir.dat encoding
Post by: Jacobo221 on June 12, 2004, 06:31:13 PM
Thanks :-) But please paste backtraces in the backtraces forums (clarify that that's a unicode build ;-))
Greetings!
Title: Re: shareddir.dat encoding
Post by: nachbarnebenan on June 12, 2004, 07:19:09 PM
Ok, no prob. Can the posts be moved there?
Title: Re: shareddir.dat encoding
Post by: Jacobo221 on June 12, 2004, 11:57:43 PM
Nope. Only whole threads can be moved there. So it'd be better if you copy&pasted them back into backtraces forums. Thanks :-)
Greetings.