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

double se::Value::toDouble() const: assertion "_type == Type::Number || _type == Type::Boolean || _type == Type::BigInt || _type == Type::String" failed #17015

Open
GamewolfLongMan opened this issue May 20, 2024 · 4 comments
Labels
Bug Needs Triage Needs to be assigned by the team

Comments

@GamewolfLongMan
Copy link

GamewolfLongMan commented May 20, 2024

Cocos Creator version

3.8.2

System information

android

Issue description

C:/ProgramData/cocos/editors/Creator/3.8.2/resources/resources/3d/engine/native/cocos/bindings/jswrapper/Value.cpp:451: double se::Value::toDouble() const: assertion "_type == Type::Number || _type == Type::Boolean || _type == Type::BigInt || _type == Type::String" failed
get error afte assetManager.loadBundle

Relevant error log output

擷取

Steps to reproduce

some asset get this error some not . I dont know why

Minimal reproduction project

No response

@GamewolfLongMan GamewolfLongMan added Bug Needs Triage Needs to be assigned by the team labels May 20, 2024
@smallmain
Copy link

Encountered the same problem.

@smallmain
Copy link

I found the problem was that the data of a certain prefab was corrupted:

    "_lpos": {
      "__type__": "cc.Vec3",
      "x": 0,
      "y": 160,
      "z": 0
    },
    "_lrot": {
      "__type__": "cc.Quat",
      "x": null,
      "y": null,
      "z": null,
      "w": null
    },
    "_lscale": {
      "__type__": "cc.Vec3",
      "x": 1,
      "y": 1,
      "z": 0
    },

_lrot is null, but i don't know why this is happening.
The only rotation-related operation I performed on this node was this.node.setWorldRotation(Quat.IDENTITY);

Error data should not be serialized:

After this problem occurs, it is very difficult to debug, and it will be fine without loading. It is a time bomb.

@GamewolfLongMan
Copy link
Author

GamewolfLongMan commented May 21, 2024

This is not the only one prefab with this problem.
one day some prefab get broken and I dont know why

@dumganhar
Copy link
Contributor

It's possible the same issue which was fixed at #16935
You could try to customize the engine , rebuild the engine and see whether it still exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Needs to be assigned by the team
Projects
None yet
Development

No branches or pull requests

3 participants