之前使用2.1.0发现会有crash的bug: https://ask.layabox.com/question/43832
官方建议升级引擎,于是下了最新的beta4测试了一下demo, 可是还是会crash,只是crash的堆栈不一样了,这次是这样的堆栈:
2019-09-13 15:32:57.548 4078-4208/com.test.layaNativeTest3 I/LayaBox: alert=出错啦,请把此信息截图给研发商
TypeError: Cannot read property 'length' of undefined
apploader.js:338:
TypeError: Cannot read property 'length' of undefined
for (var i = 0; i < text.length; i++) {
^^
TypeError: Cannot read property 'length' of undefined
at conchTextCanvas.measureText (apploader.js:338:34)
at Text.__proto._parseLines (http://stand.alone.version/libs/laya.core.js:28784:53)
at Text.__proto.typeset (http://stand.alone.version/libs/laya.core.js:28727:8)
at LaterHandler.__proto.run (http://stand.alone.version/libs/laya.core.js:16207:45)
at CallLater.__proto.runCallLater (http://stand.alone.version/libs/laya.core.js:16178:12)
at Timer.__proto.runCallLater (http://stand.alone.version/libs/laya.core.js:7461:15)
at Text.<anonymous> (http://stand.alone.version/libs/laya.core.js:28943:39)
at Text.defaultFontStr (http://stand.alone.version/libs/laya.core.js:28928:15)
at Label.__proto.measureWidt
Demo在附件中,是导出的单机版的2.2.0beta4的android studio工程
原始laya项目在之前的帖子里面已经上传了,就不重复传了
我们很理解官方研发人员非常忙,但是我们反馈bug也是帮助了引擎提升质量。
拜托重视一下用户报的bug,不要老版本(其实只相差了一个版本)的bug直接回复我们升级新版就好!
至少让研发人员确认一下这个bug是不是已经在新版本里面修复了吧
补充:修改了一下标题,现在的情况是2.2.0beta4直接导出native就会crash,无论是否删除layabox.ttf,或者替换另外一个字体,都会crash
之前2.1.0只要不去动这个导出的layabox.ttf就不会有事,替换字体后会有Label位置不对的bug(
https://ask.layabox.com/question/43880),现在升级引擎后就是直接挂
附件:
layaNativeTestCase3.zip