GithubHelp home page GithubHelp logo

double se::Value::toDouble() const: assertion "_type == Type::Number || _type == Type::Boolean || _type == Type::BigInt || _type == Type::String" failed about cocos-engine HOT 4 OPEN

GamewolfLongMan avatar GamewolfLongMan commented on June 16, 2024
double se::Value::toDouble() const: assertion "_type == Type::Number || _type == Type::Boolean || _type == Type::BigInt || _type == Type::String" failed

from cocos-engine.

Comments (4)

smallmain avatar smallmain commented on June 16, 2024

Encountered the same problem.

from cocos-engine.

smallmain avatar smallmain commented on June 16, 2024

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:

  • Verify before storing.
  • Also related to this proposal: #15941

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

from cocos-engine.

GamewolfLongMan avatar GamewolfLongMan commented on June 16, 2024

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

from cocos-engine.

dumganhar avatar dumganhar commented on June 16, 2024

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.

from cocos-engine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.