Browser preview is not working correctly

Hi, I’m testing Cocos Creator and hit a problem with any built-in 3D object (Cube, Sphere, Plane, etc.).

  • Version: 3.8.6
  • OS: Windows 10
  • Pipeline: I am using Legacy (builtin-forward.rpp). If I leave “Render Pipeline (new)” selected, I get other errors, so I switched to Legacy!
  • Steps to reproduce:
    1. Create a new empty project.
    2. Add a 3D Object → Cube (or any other primitive).
    3. Preview the scene in browser.
  • Result: Preview fails and I see errors like:
the native asset of <uuid>@xxxx is missing!
RangeError: Invalid typed array length: ...
MeshRenderer._updateModelParams ...

This happens for every 3D primitive I try to add. I did not import any external models!

  • What I tried:
    • Deleted temp/, library/, and local/ folders to force re-import.
    • Developer → Refresh All Effect.
    • Reinstalled Cocos Creator.
      Still the same issue.

Question:
Why are the built-in 3D primitives failing to load their mesh data? Is this a known issue in? Is there a way to regenerate or repair the missing native assets?

Btw, the 3D models will be rendered in “Preview in Simulator” but not in “Preview in Browser”

Thanks!

Here’s a screenshot of the error in the browser console when I add a built-in 3D object and preview

After Render Pipeline switch, have you reopen the project?

I test the steps you told, but I cant regenerate the error you have encountered. Pls have a try to delete the folder under path ‘C:\Users\xxxxx.Cocos’.

Thanks for your reply. I don’t know why, but it turned out I had to remove Internet Download Manager (IDM) from my PC for the Cocos preview in the browser to work properly. After uninstalling it, everything worked fine.

1 Like

:clap: That is Great.

1 Like