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

H5 problem,it works fine in chrome, but in other browers and in app webview,it doesn't work。 #198

Open
389103326 opened this issue Apr 11, 2024 · 4 comments

Comments

@389103326
Copy link

The console log doesn't print "Sorting web worker WASM setup complete. Sorting web worker ready." I suspect the sort worker wasm compatibility.

@mkkellogg
Copy link
Owner

Please excuse my ignorance, but what exactly do you mean by H5? Also, would you be able to share your setup code? That might help me troubleshoot.

@389103326
Copy link
Author

Thanks for your reply.
H5 I means the web page in mobile device, like andriod phone or iphone.
My problem is the same as the issue "#56". The UI display “Processing splats...” the whole time. I can access to the web page and see the scene in the PC, not successed in mobile.
But my debug message is different: "CompileError: WebAssembly.compile(): invalid memory limits flags (enable via --experimental-wasm-threads) ……". And I already use "sharedMemoryForWorkers" to disable share memory.
Here is my setup code.

`
import * as GaussianSplats3D from "@mkkellogg/gaussian-splats-3d";
import VConsole from "vconsole";

const vconsole = new VConsole();

const viewer = new GaussianSplats3D.Viewer({
cameraUp: [0, -0.01, 0],
initialCameraPosition: [0, 0, 4],
initialCameraLookAt: [0, 0.7, 0],
integerBasedSort: false,
sharedMemoryForWorkers: false,
});
viewer
.addSplatScene("../assets/data/pagoda.ply", {
showLoadingUI: true,
})
.then(() => {
viewer.start();
});
`

@389103326
Copy link
Author

In addition, in mobile, is not all of browers doesn't work. It works in chrome@100, but in my phone defalut browers or in app's webview, the UI display “Processing splats...” the whole time. The OS of my phone is Android 11.

@Leaf-Player
Copy link

Have you solved the problem now? I had the same problem

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

3 participants