Closed v-xianya closed 2 months ago
@v-xianya can you share a file used to repro this? I am not able to reproduce. In my case I used: Menger_sponge_sample.zip
I can reproduce on a Windows VM. This shouldn't be entirely surprising, because VMs don't come with hardware-accelerated graphics. This is easily proven by attempting to view THREE.js sample models.
@MRayermannMSFT @richardMSFT The error is being thrown when attempting to create the THREE.WebGLRenderer
. Considering how often users install Storage Explorer on VMs, it may be prudent to add a try/catch block. But the error is fairly clear, so maybe we don't.
@v-xianya nevermind on needing a sample file. We'll instead focus on handling the error in a more graceful way.
Ok @v-xianya, first, it should be considered expected that 3d file preview doesn't work on the Auzre VM. However, I have updated the file preview exxperience to be more tolderant of this situation. In this situation, there should be an activity saying Storage Explorer was unable to preview, and no error dialogs should pop up unless you click on something to explicitly bring one up (ex: a "Details..." action).
Hi, @MRayermannMSFT thank you for the updates! On the new build 20240421.1, the current behaviors keep the same with the build 20240419.1. Are these the expected behaviors?
That is all expected! Thank you for verifying.
Storage Explorer Version: 1.34.0-dev (98) Build Number: 20240419.1 Branch: main Platform/OS: Windows 11 Architecture: arm64 How Found: From running test cases Regression From: Not a regression
Steps to Reproduce
Expected Experience
The file is previewed successfully.
Actual Experience
Fail to preview the file with an error![image](https://github.com/microsoft/AzureStorageExplorer/assets/41351993/40071c19-206a-4bb4-a4f1-40d91602c5a4)
"message": "Error creating WebGL context"
.Additional Context
"message": "Error creating WebGL context"
when previewing .glb/.gltf/.obj/.stl files.