[Bug] Uncaught TypeError: Cannot read properties of undefined (reading 'key') with terrain
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 32/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- react, typescript
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện việc thu phóng nhanh hoặc pan với nguồn địa hình https://api.maptiler.com/tiles/terrain-rgb/tiles.json, vì không có sandbox được cung cấp. Đọc source_cache.ts quanh _updateRetainedTiles và update, sau đó lần theo các bên gọi trong style.ts. Hoàn tất khi việc kết xuất địa hình không còn gây ra TypeError đã báo cáo trong lúc điều hướng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
I'm getting this error when I zoom or pan quickly and terrain is present in my style. I've tried setting maxTileCacheSize to 256 to no avail. Removing the terrain object from the style stops this from happening.
The terrain source is https://api.maptiler.com/tiles/terrain-rgb/tiles.json
framebuffer_error.ts:13 Uncaught TypeError: Cannot read properties of undefined (reading 'key')
at be._updateRetainedTiles (source_cache.ts:750:1)
at be.update (source_cache.ts:670:1)
at bi._updateSources (style.ts:1654:1)
at e.Map._render (map.ts:3291:1)
at map.ts:3453:1
at browser.ts:22:1
Expected Behavior
The app shouldn't crash while zooming or panning while rendering 3d features
Steps to Reproduce
I'm not able to provide a code sandbox atm
Environment
- Framework version: [email protected]
- Map library: [email protected]
- Browser: Chrome 135.0.7049.42
- OS: MacOs
Logs
framebuffer_error.ts:13 Uncaught TypeError: Cannot read properties of undefined (reading 'key')
at be._updateRetainedTiles (source_cache.ts:750:1)
at be.update (source_cache.ts:670:1)
at bi._updateSources (style.ts:1654:1)
at e.Map._render (map.ts:3291:1)
at map.ts:3453:1
at browser.ts:22:1
- Ngôn ngữ chính
- TypeScript
- Star
- 8.5k
- Fork
- 1.3k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của visgl/react-map-gl
-
DEFAULT_SETTINGS.maxBounds in @vis.gl/react-maplibre has 360° longitude span, triggers maplibre-gl-js#6148 crash via _updateSettings fallbackCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
visgl/react-map-gl#2591 · 2 bình luận ·
-
[Bug] Mapbox geocoder example crashes: "i is not a function"Có thể đã có người làm @yuiseki đã nhận 20 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
visgl/react-map-gl#2628 ·
-
[Bug] Scroll zoom stops short of maxZoom in controlled mode with MapLibreCó thể đã có người làm @sviat-barbutsa đã nhận 33 ngày trước. Đang mởbug
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 74/100
visgl/react-map-gl#2626 ·
-
[Bug] reuseMaps: Mapbox.reuse() infinite-loops (tab freeze) when the recycled map's container is the mount containerCó thể đã có người làm @mikeyfarina đã nhận 82 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
visgl/react-map-gl#2613 ·
-
feature
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 42/100
visgl/react-map-gl#2603 · 1 reaction ·
Tất cả issue của visgl/react-map-gl
Issue tương tự
-
accessibility area:ci ci-test level:low priority:high type:test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 71/100
skytuhua-org/Gen-V1#3132 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
drmrd/vernacular#1238 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
question
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
enhancement migration-prioritized
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Hudson-Pufferfish/local-party-console#136 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
priority:medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày