Cocos Creator v2.0.9 内测版发布帖(3-04 更新 rc.5)

报什么错?能把有问题的 prefab 传上来吗?

这是我后台的完整报错信息,是在关闭界面的时候,我现在临时解决是把所有的Object.create(null)改成了Object.create({}),附加我报错时的runtime

(see stack)
Uncaught TypeError: Cannot convert object to primitive value
[0]__realTypeOfObj@/data/user/0/com.nearme.instant.platform/app_game/app/hssfg.kyx.nearme.gamecenter/147/src/cocos2d-runtime.js:53139
[1]compileDestruct@/data/user/0/com.nearme.instant.platform/app_game/app/hssfg.kyx.nearme.gamecenter/147/src/cocos2d-runtime.js:24378
[2]138.prototype._destruct@/data/user/0/com.nearme.instant.platform/app_game/app/hssfg.kyx.nearme.gamecenter/147/src/cocos2d-runtime.js:24424
[3]138.prototype._destroyImmediate@/data/user/0/com.nearme.instant.platform/app_game/app/hssfg.kyx.nearme.gamecenter/147/src/cocos2d-runtime.js:24437
[4]_onPreDestroy@/data/user/0/com.nearme.instant.platform/app_game/app/hssfg.kyx.nearme.gamecenter/147/src/cocos2d-runtime.js:41215
[5]_onPreDestroy@/data/user/0/com.nearme.instant.platform/app_game/app/hssfg.kyx.nearme.gamecenter/147/src/cocos2d-runtime.js:8201
[6]138.prototype._destroyImmediate@/data/user/0/com.nearme.instant.platform/app_game/app/hssfg.kyx.nearme.gamecenter/147/src/cocos2d-runtime.js:24435
[7]_onPreDestroy@/data/user/0/com.nearme.instant.platform/app_game/app/hssfg.kyx.nearme.gamecenter/147/src/cocos2d-runtime.js:41212
[8]_onPreDestroy@/data/user/0/com.nearme.instant.platform/app_game/app/hssfg.kyx.nearme.gamecenter/147/src/cocos2d-runtime.js:8201
[9]138.prototype._destroyImmediate@/data/user/0/com.nearme.instant.platform/app_game/app/hssfg.kyx.nearme.gamecenter/147/src/cocos2d-runtime.js:24435
[10]deferredDestroy@/data/user/0/com.nearme.instant.platform/app_game/app/hssfg.kyx.nearme.gamecenter/147/src/cocos2d-runtime.js:24342
[11]mainLoop@/data/user/0/com.nearme.instant.platform/app_game/app/hssfg.kyx.nearme.gamecenter/147/src/cocos2d-runtime.js:7246
[12]callback@/data/user/0/com.nearme.instant.platform/app_game/app/hssfg.kyx.nearme.gamecenter/147/src/cocos2d-runtime.js:7476
[13]window.gameTick@@assets/default/qg-framework.js:1

cocos2d-runtime.zip (373.5 KB)

@jare 大神,cc.game.restart 之后,原生平台的anysdk就找不到了,现在卡在anysdk打包不了。这个问题问了好几天了,这个版本能否解决,不能解决的话,麻烦告诉我们怎么临时解决,好让我们团队可以打包。麻烦回复下,谢谢

1赞

抱歉这个版本解决不了了。请单独发个帖子,附一个 demo,谢谢

看起来是某个版本的 JavaScriptCore 上的问题。Object.create(null) 上面竟然还会有 toString 的定义,真是够奇葩的。是 iOS 几?你那边能重现的话,能不能改成这样试试
function __realTypeOfObj(obj) {
if (obj && obj.toString && obj instanceof Object && “[object CallbackConstructor]” === obj.toString()) return “function”;
return “object”;
}

这样应该就正常了

请问这是怎么回事

好的:slightly_smiling:

什么平台呢?看下后面部分的报错信息?

之前我是从RC2直接升到RC4报错的,昨天我删掉后装上了2.08,刚我又在一个新目录下安装了2.09RC5能打开那个预制体不报错了

cc.game.restart 之后,原生平台的anysdk就找不到了,这个版本不能修复?那让我们想发布的游戏的怎么办?2.0.5版本也有anysdk找不到的问题,这要等到什么时候才处理啊?
@jare

请确保插件里没有 AMD 的写法,目前在百度上可能会有问题

已知问题,抱歉没空修复,事情太多了。我们记录一下

没空修复,能否给个临时解决方案,我们现在卡着发布不了项目,让我们回退?

已经知道什么样的问题,然后没有空修复?
你知道我要一个能稍微稳定点,功能正常点的版本等了多久吗,就因为用了这个引擎工期拖延了很久。
有时候真想骂人,但骂人没用啊,一直很支持你们引擎,能不能给力点,帮忙解决一下问题,真的拖不起了,我们就要一个正常的版本,能上线的版本,不需要你引擎多强大的功能。。。。

就是咯,先别搞什么3D了,2D的赶紧弄个功能正常完善的版本出来,就2D现在都这样,谁还敢用你们3D的引擎

回退都不知道要能回退到哪个版本,因为没有一个版本能够正常用于发布上线,每一个版本都存在致命的问题,这些问题没法绕过去啊,就只能反馈,搞各种demo,等引擎组修复,花了很多时间在填各个版本的坑,效率极其低下。项目的功能又多,回退版本是噩梦。

详见 xxx

请单独发个帖子,我们讨论一下

单独发什么帖,撕逼大战?不,这不是我要表达的。
我绝对的是2dx引擎的忠实粉丝,只不过现在被creator搞的遍体鳞伤。
项目已经用creator折腾了1年了,升级版本后就没办法回退了。
为什么不停留在一个版本开发?为什么要升级版本?这就是因为你们引擎组一步步引导我们上去的。
每一个版本都存在一些问题,我们反馈 -> 引擎组修复 -> 然后出现另外一些问题-反反复复。在这个过程中我们不断的踩坑,开发新功能,虽然每个版本都有备份,但回退版本却做不到。
每一个版本出来我们都有跟进测试,就是为了找一个稳定的版本。
目前项目停留在2.0.5版本开发,已知致命问题是:IOS耗电发烫(正在查原因,注:android是正常的),anysdk找不到的问题。
现在跟进测试的2.0.9版本,以上问题均存在,另外,android打开界面的体验比2.0.5版本差(比较卡),这个问题还在查具体引起原因。
需要单独发帖的问题,我们都会做尽量查明具体引发的原因,制作demo提供给引擎组。我们有几个账号在反馈。
之前已经有在其它贴提及到了,我们更像在免费帮你们打工。

1赞

最后一句过激了,你不也是免费在用吗。你有你的视角,引擎也有引擎的视角,没办法完全匹配,就会有一个不稳定的过程,除了耐心等待完善,还有什么办法呢,不能全围着你转吧,还有很多优先级排在前面