2022年3月のメモ帳


2022/03/18

#1 sedが動かない

GnuWinのsedが動かない。

C:\Users\myaccount>sed
      0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x68570000, RegionSize 0x150000, State 0x10000
C:\Program Files (x86)\Git\bin\sed.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0

gmap作成作業で、過去(多分今年になってから)2回くらいこれが発生してたけど、メモリが足らんのかな、と思ってWindows再起動したらその時は解消してた。が、今日は再起動してもダメだった。ということでググって見つけたここより、power shellをsedとrebaseがあるディレクトリで起動し、

PS C:\Program Files (x86)\Git\bin> rebase -b 0x30000000 msys-1.0.dll

してみたら、sedが動くようになった。この現象、説明を読む限り、内部でCygwinを使うツールだと発生しそうだな。会社のWindowsPCでまれに使ってるgitもそのうち踏みそうだけど、これを覚えてたらすぐに解決できそうだ。

2022/03/04

#1 mkgmapのエラー その1

またmkgmapの海岸線エラー。

Mkgmap version 4897
Time started: Fri Mar 04 23:30:50 JST 2022
重大 (SeaGenerator): 63310078.osm.pbf.roman: Adjacent coastlines hit tile edge in same direction at 44.296875,132.346920 and 44.296875,132.318605 null
重大 (SeaGenerator): 63310078.osm.pbf.roman: Adjacent coastlines hit tile edge in same direction at 44.296875,132.306242 and 42.663909,130.869141 Way generated from way 938805312 starting at 42.663909,130.869141 and ending at 42.644164,130.869141 []

前回と違って、結果としては大陸側に間違って海ができてるだけで、日本海には海が欠けるなどの問題はなさそう。ほっといてもいいんだけど、そうすると毎回警告が出たままになって必要な警告も見逃しやすくなるので対処する。前回同様、当該区画の北の方は不要なので、手動にて領域を削減。


count: [an error occurred while processing this directive]