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

fix: mapLayer web worker crashes if no property data provded. #1900

Merged

Conversation

LeonidPolukhin
Copy link
Collaborator

The crash if fixed.
Some mapLayer code refactored.

@LeonidPolukhin LeonidPolukhin added bug Something isn't working map-component Issues related to the map component. labels Jan 30, 2024
@LeonidPolukhin LeonidPolukhin self-assigned this Jan 30, 2024
@LeonidPolukhin LeonidPolukhin linked an issue Jan 30, 2024 that may be closed by this pull request
isMesh: boolean,
frame: Frame,
smoothShading: boolean,
gridLines: boolean,
];

async function loadURLData(url: string): Promise<Float32Array | null> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't these function be shared and used in every place where data arrays are loaded ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, they should be but it's more preferable to refactor in a dedicated PR rather than in this bug fixing one.

@LeonidPolukhin LeonidPolukhin merged commit 8cfa9d8 into equinor:master Jan 31, 2024
8 checks passed
@LeonidPolukhin LeonidPolukhin deleted the FixMapLayerWebWorkerCrash branch January 31, 2024 06:51
hkfb pushed a commit that referenced this pull request Jan 31, 2024
## [0.14.2](https://github.com/equinor/webviz-subsurface-components/compare/subsurface-viewer@0.14.1...subsurface-viewer@0.14.2) (2024-01-31)

### Bug Fixes

* mapLayer web worker crashes if no property data provded. ([#1900](#1900)) ([8cfa9d8](8cfa9d8))
@hkfb
Copy link
Collaborator

hkfb commented Jan 31, 2024

🎉 This issue has been resolved in version subsurface-viewer@0.14.2 🎉

The release is available on GitHub release

@hkfb hkfb added the released label Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working map-component Issues related to the map component. released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MapLayer raises an exception if no property data provided.
4 participants