google / earthenterprise

Google Earth Enterprise - Open Source
Apache License 2.0
2.67k stars 887 forks source link

Segmentation fault can occur when accessing transparent tiles #1927

Closed tst-ccamp closed 3 years ago

tst-ccamp commented 3 years ago

Describe the bug

A segmentation fault can happen when accessing transparent tiles in GEE Server.

To Reproduce

  1. Create a database with some transparent tiles
  2. Pan and zoom into an area that has both transparent and non-transparent tiles in Mercator map

Receive this error in the server error_log file:

ERROR 10: Pointer 'hDS' is NULL in 'GDALGetRasterCount'.

[Thu Mar 25 10:53:54.337808 2021] [core:notice] [pid 32369:tid 140536558585728] AH00051: child pid 113 exit signal Segmentation fault (11), possible coredump in /opt/google/gehttpd

Server returns 404 errors when trying to access tiles

Expected behavior

No errors and return tiles properly