[Tilesathome] TaH windows client only rendering z12 tiles?

Maarten Deen mdeen at xs4all.nl
Tue Aug 26 19:17:10 BST 2008


Sebastian Spaeth wrote:
> Maarten Deen wrote:
>   > I've tracked the bug down. Inkscapelocale=german does not work.
>> I've commented that line in the config file and set my decimal separator to ".", 
>> and like magic the client works. All tiles are generated and the upload seems to 
>> work (it ended with OK|4|OK|4|OK|4|, but the tile is not yet visible on the map, 
>> how long does that take?)
> 
> I really do hate that locale stuff. Perhaps someone finds a good way to 
> set inkscape locale to 'C' in a way that works both on Linux and on Windows.
> how long: depends how full the queue is and can be anything between 20 
> sec and 30 minutes.

It's still not there.

>> Only thing is I'm running in debug mode because the rmtree in Tileset.pm line 
>> 702 does not work:
>> Can't remove file C:\temp\TaH\12_2561_1226_U2Njw/part-0LuHD5.png (Permission 
>> denied) at lib/Tileset.pm line 702
>> Can't remove file C:\temp\TaH\12_2561_1226_U2Njw/part-4dRlRR.png (Permission 
>> denied) at lib/Tileset.pm line 702
>> (etc.)
>> 
>> Is it worth looking at File::Remove::remove in stead of File::Path::rmtree?
> 
> If permission is denied it is unlikely to succeed with File::Remove. 
> Although you can test it and see if it works. Can you see what 
> permissions those files have? I am unsure how the windows file 
> permissions work.

My computer is not in a network so no special permissions apply. The files are 
not readonly.
Using remove does help. The errormessages I listed disappear, but rmtree is also 
used in the standard Temp.pm program which gives errors too, so I've changed 
that too.

Changes:
Install File-Remove

In tileset.pm add "use File::Remove" and change "rmtree $self->{JobDir}" to 
"remove( \1, qw{JobDir} )"

In perl/lib/File/Temp.pm, add "use File::Remove" and on line 894 change 
"rmtree($dir, $DEBUG, 0);" to "File::Remove->remove( $dir );"

Seems to work for me. The last one is tricky of course. What's the correct way 
to get this to the attention of the guy's at Perl?

Oh yeah, and it would be nice to be able to switch of the automatic 
updatechecker. It kept complaining that Tileset.pm was out of date without 
updating it, so I had to comment the update routine out.

Maarten




More information about the Tilesathome mailing list