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

Can't load Las, Laz models from Electron app #1485

Open
intrida-dev opened this issue May 9, 2024 · 2 comments
Open

Can't load Las, Laz models from Electron app #1485

intrida-dev opened this issue May 9, 2024 · 2 comments

Comments

@intrida-dev
Copy link

We have an application which is built only to run in ElectronJS. Recently we implemented Las/Laz loading capability and found that it doesn't work in ElectronJS App. We get following error:
image

But we can load the same model with same code when it is viewed in browser. I have attached a video explaining this issue.

Untitled.mp4

We debugged a little and found an issue in canParseWithWorker function. If statement at line number 108996 evaluates to true, when it is from Electron.
image

Also I have attached a sample code in zip.
sample.zip

To Reproduce
Steps to reproduce the behavior:

  1. First place 'autzen.laz' sample model in models directory
  2. Open the attached sample code in VS code and go to terminal
  3. Execute 'npm install electron'
  4. Run command 'npm start' to launch electronjs app.
  5. See error on console
@xeolabs
Copy link
Member

xeolabs commented May 9, 2024

This looks like an issue with the 3rd-party library, loaders.gl, which we use for loading LAS/LAZ.

We've never developed any xeokit applications on Electron unfortunately, so I'm not sure what to suggest, but I recommend logging the issue with their repo.

@intrida-dev
Copy link
Author

Sure, I am going to report this to them. Thanks :-)

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