Hm, that %2B URL escaping in the EXIF GPS value is weird:

"exifgps|sha1-42c3170acbd238e446bbe291683d356937799a02" =
"45.54396388888889|-4.294966352e%2B09"

Mathieu, can you do a quick fix to make the server handle such rows?

I seem to recall this was fixed once, though. We were using the wrong
floating point stringification fmt format at one point and we were
getting scientific notation (-4.2949e+09) with the exponent 'e' and
the '+' character which got escaped to %2B.

So you probably got unlucky and that got into your index.

Reindexing would fix it, but would be slow. I have a new plan on how
to make indexing at least twice as fast, but I haven't done it yet.

In the meantime I think we should just parse those historical row types.


On Tue, Apr 24, 2018 at 5:12 PM, Adrian Tritschler <[email protected]> wrote:
> Thanks Brad, Mathieu,
>
> Doesn't look like that fixes it for me, a pull & a rebuild and I  have
> ./perkeepd -version
> perkeepd version: 2018-04-23-66e6766571
> Go version: go1.10 (linux/amd64)
>
> which still gives the panic when starting up
>
> 2018/04/25 10:05:07 Starting perkeepd version 2018-04-23-66e6766571; Go
> go1.10 (linux/amd64)
>  :
> 2018/04/25 10:08:00 Caught panic installer handlers: error instantiating
> handler for prefix "/my-search/", type "search": error slurping index to
> memory: bogus row "exifgps|sha1-42c3170acbd238e446bbe291683d356937799a02" =
> "45.54396388888889|-4.294966352e%2B09"
> goroutine 1 [running]:
> runtime/debug.Stack(0xc4200b6190, 0x2, 0xc4a9ad4700)
>         /usr/local/go/src/runtime/debug/stack.go:24 +0xa7
> runtime/debug.PrintStack()
>         /usr/local/go/src/runtime/debug/stack.go:16 +0x22
> perkeep.org/pkg/serverinit.(*Config).InstallHandlers.func1(0xc4204f5c80)
>         /home/ajft/src/go/src/perkeep.org/pkg/serverinit/serverinit.go:548
> +0x9e
> panic(0xf10300, 0xc4209e4490)
>         /usr/local/go/src/runtime/panic.go:505 +0x229
> perkeep.org/pkg/serverinit.(*handlerLoader).setupHandler.func1(0xc422bc1050,
> 0xc4201b4680, 0x115d0f8, 0xb)
>         /home/ajft/src/go/src/perkeep.org/pkg/serverinit/serverinit.go:309
> +0x198
> panic(0xf10300, 0xc4209e4490)
>         /usr/local/go/src/runtime/panic.go:505 +0x229
> perkeep.org/pkg/serverinit.exitFailure(0x118fa22, 0x36, 0xc4204f5718, 0x3,
> 0x3)
>         /home/ajft/src/go/src/perkeep.org/pkg/serverinit/serverinit.go:278
> +0x167
> perkeep.org/pkg/serverinit.(*handlerLoader).setupHandler(0xc4201b4680,
> 0x115d0f8, 0xb)
>         /home/ajft/src/go/src/perkeep.org/pkg/serverinit/serverinit.go:373
> +0xb5d
> perkeep.org/pkg/serverinit.(*handlerLoader).setupAll(0xc4201b4680)
>         /home/ajft/src/go/src/perkeep.org/pkg/serverinit/serverinit.go:232
> +0x92
> perkeep.org/pkg/serverinit.(*Config).InstallHandlers(0xc420910780,
> 0x179a7e0, 0xc420a5f180, 0xc420eac960, 0x1f, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
>         /home/ajft/src/go/src/perkeep.org/pkg/serverinit/serverinit.go:617
> +0xa0e
> main.Main(0x0, 0x0)
>         /home/ajft/src/go/src/perkeep.org/server/perkeepd/camlistored.go:770
> +0x4b5
> main.main()
>         /home/ajft/src/go/src/perkeep.org/server/perkeepd/camlistored.go:713
> +0x29
> Error parsing config: Caught panic: error instantiating handler for prefix
> "/my-search/", type "search": error slurping index to memory: bogus row
> "exifgps|sha1-42c3170acbd238e446bbe291683d356937799a02" =
> "45.54396388888889|-4.294966352e%2B09"
>
>
>   Adrian
>
>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Perkeep" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Perkeep" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Perkeep" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to