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
Deck not loading layers when one layer has configuration issue? #4134
Comments
@jfuehner Some comments based on work I did on this a long time ago (@Pessimistress likely has more recent insights)
This was the original intention. There was code to catch exceptions from each layer during rendering phase and continue with next layer but I have also seen that this seems to be broken.
E.g. as in allow the application to catch any resulting exceptions? The exceptions are likely being caught by deck.gl which would be somewhat reasonable if rendering wasn't broken. |
@ibgreen Perhaps a error event indicating what layer(s) were unable to be rendered? If you have quite a few layers rendering its challenging to identify why one might be broken. Especially, when none are rendering ;-) |
Agreed, errors should not be silently discarded. As errors are caught and handled there should at least be console logs emitted. |
We do catch the errors during layer lifecycle, so that all layers get initiated/updated even if one fails. However we throw the error at the end: We can expose an optional |
Callback will be available in v8.1. |
Hi! I have noticed that deck will not load any layers if one or more layers has a configuration issue...
This seems counter-intuitive. I would think if deck has trouble rendering a layer it would omit rendering that layer but render layers that do not have issues. Additionally, there doesn't appear to be a way to handle these errors.
The text was updated successfully, but these errors were encountered: