t-rex-tileserver / t-rex

t-rex is a vector tile server specialized on publishing MVT tiles from your own data
https://t-rex.tileserver.ch/
MIT License
545 stars 68 forks source link

[0.14.0] 'actix-web' panics with a GDAL config, but non-GDAL built #260

Open tobwen opened 2 years ago

tobwen commented 2 years ago

tl;dr

thread 'actix-web' panicked at 'not implemented', t-rex-core/src/datasource/datasource.rs:47:9

environment

build: https://github.com/t-rex-tileserver/t-rex/releases/download/v0.14.0/t-rex-v0.14.0-x86_64-linux-gnu.tar.gz OS: Debian Bullseye, 64-bit

# ldd t_rex
        linux-vdso.so.1 (0x00007ffeea466000)
        libssl.so.1.1 => /lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007fdce2717000)
        libcrypto.so.1.1 => /lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007fdce2423000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fdce2409000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fdce23e7000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fdce22a3000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fdce229d000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fdce20d6000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fdce3c52000)

RUST backtrace

open me ``` # RUST_BACKTRACE=full t_rex serve --config t-rex.toml 2021-09-18 02:09:43.510 INFO Reading configuration from 't-rex.toml' thread 'actix-web' panicked at 'not implemented', t-rex-core/src/datasource/datasource.rs:47:9 stack backtrace: 0: 0x55ea096077f0 - 1: 0x55ea0962d65c - 2: 0x55ea09600395 - 3: 0x55ea0960989b - 4: 0x55ea09609371 - 5: 0x55ea09609f64 - 6: 0x55ea09609a17 - 7: 0x55ea09607cec - 8: 0x55ea096099a9 - 9: 0x55ea08ec8751 - 10: 0x55ea08ec869d - 11: 0x55ea0922ce9a - 12: 0x55ea09170bde - 13: 0x55ea08f16039 - 14: 0x55ea08ef62c9 - 15: 0x55ea090e6861 - 16: 0x55ea090e706f - 17: 0x55ea0960fda7 - 18: 0x7f3fe7f0eea7 - start_thread 19: 0x7f3fe7cf2def - clone 20: 0x0 - thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Canceled', t-rex-webserver/src/server.rs:242:6 stack backtrace: 0: 0x55ea096077f0 - 1: 0x55ea0962d65c - 2: 0x55ea09600395 - 3: 0x55ea0960989b - 4: 0x55ea09609371 - 5: 0x55ea09609f64 - 6: 0x55ea09609a47 - 7: 0x55ea09607cec - 8: 0x55ea096099a9 - 9: 0x55ea08ec8751 - 10: 0x55ea08ec8843 - 11: 0x55ea08fb0369 - 12: 0x55ea08f72950 - 13: 0x55ea08fcfa65 - 14: 0x55ea08f71005 - 15: 0x55ea08fbd6c9 - 16: 0x55ea08fa7138 - 17: 0x55ea08fbdd6a - 18: 0x55ea08eee7d5 - 19: 0x55ea08ee620f - 20: 0x55ea08ed0c43 - 21: 0x55ea08ee8389 - 22: 0x55ea0960a569 - 23: 0x55ea08ee71b2 - 24: 0x7f3fe7c1bd0a - __libc_start_main 25: 0x55ea08ec8f2e - 26: 0x0 - Panic in Arbiter thread. ```
tobwen commented 2 years ago

Own build works, but it is linked against WAY more dependencies (which belong to GDAL world): https://github.com/t-rex-tileserver/t-rex/issues/259#issuecomment-922148658

pka commented 2 years ago

The t-rex-v0.14.0-x86_64-linux-gnu tarball is built without GDAL support. I assume, you're getting his panic when accessing a GDAL datasource. So we should have a better error message here.