Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The view go blank #520

Open
Warpeas opened this issue Dec 11, 2021 · 1 comment
Open

The view go blank #520

Warpeas opened this issue Dec 11, 2021 · 1 comment

Comments

@Warpeas
Copy link

Warpeas commented Dec 11, 2021

Hi, I try the streetscape.gl and xviz on Ubuntu20.04. I started the get-start and can see the scene.
Screenshot from 2021-12-11 22-38-37

But when I try to drag the view under the view mode driver, all the page go blank.
Screenshot from 2021-12-11 22-42-33
The error in the console shows

Uncaught Error: failed to invert matrix
_calcMatrices transform.js:763
set transform.js:200
jumpTo camera.js:716
_updateMapViewport mapbox.js:434
_update mapbox.js:400
setProps mapbox.js:213
_updateMapProps static-map.js:217
componentDidUpdate static-map.js:156
React 6
unstable_runWithPriority scheduler.development.js:653
React 5
unstable_runWithPriority scheduler.development.js:653
React 6
_customRender deckgl.js:148
redraw deck.js:330
_onRenderFrame deck.js:694
onRender animation-loop.js:259
_renderFrame animation-loop.js:347
redraw animation-loop.js:185
renderFrame animation-loop.js:286
requestAnimationFrame request-animation-frame.js:6
_requestAnimationFrame animation-loop.js:334
renderFrame animation-loop.js:287
requestAnimationFrame request-animation-frame.js:6
_requestAnimationFrame animation-loop.js:334
renderFrame animation-loop.js:287
requestAnimationFrame request-animation-frame.js:6
_requestAnimationFrame animation-loop.js:334
renderFrame animation-loop.js:287
requestAnimationFrame request-animation-frame.js:6
_requestAnimationFrame animation-loop.js:334
renderFrame animation-loop.js:287
requestAnimationFrame request-animation-frame.js:6
_requestAnimationFrame animation-loop.js:334
renderFrame animation-loop.js:287
requestAnimationFrame request-animation-frame.js:6
_requestAnimationFrame animation-loop.js:334
renderFrame animation-loop.js:287
requestAnimationFrame request-animation-frame.js:6
_requestAnimationFrame animation-loop.js:334
renderFrame animation-loop.js:287
requestAnimationFrame request-animation-frame.js:6
_requestAnimationFrame animation-loop.js:334
renderFrame animation-loop.js:287
requestAnimationFrame request-animation-frame.js:6
_requestAnimationFrame animation-loop.js:334
renderFrame animation-loop.js:287
requestAnimationFrame request-animation-frame.js:6
_requestAnimationFrame animation-loop.js:334
renderFrame animation-loop.js:287
requestAnimationFrame request-animation-frame.js:6
_requestAnimationFrame animation-loop.js:334
renderFrame animation-loop.js:287
requestAnimationFrame request-animation-frame.js:6
_requestAnimationFrame animation-loop.js:334
renderFrame animation-loop.js:287
requestAnimationFrame request-animation-frame.js:6
_requestAnimationFrame animation-loop.js:334
renderFrame animation-loop.js:287
requestAnimationFrame request-animation-frame.js:6
_requestAnimationFrame animation-loop.js:334
renderFrame animation-loop.js:287
requestAnimationFrame request-animation-frame.js:6
_requestAnimationFrame animation-loop.js:334
renderFrame animation-loop.js:287
requestAnimationFrame request-animation-frame.js:6
_requestAnimationFrame animation-loop.js:334
renderFrame animation-loop.js:287
transform.js:763:22

The above error occurred in the component:
in StaticMap (created by Core3DViewer)
in div (created by DeckGL)
in div (created by DeckGL)
in DeckGL (created by Core3DViewer)
in Core3DViewer (created by LogViewer)
in div (created by LogViewer)
in LogViewer (created by WrappedComponent)
in WrappedComponent (created by Example)
in div (created by Example)
in div (created by Example)
in div (created by Example)
in Example
Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries

@twojtasz
Copy link
Contributor

twojtasz commented Jan 2, 2022

@Warpeas this is a viewport matrix inversion, the root cause comes from the StaticMap.

Normally in the perspective view, the viewport is limited and you can't go below the car. (ground plane). In driver mode, I can't seem to repro, I can only rotate, not change pitch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants