[LayaNative 2.0]LayaNative2.0 Lable引发的crash bug(有demo)

JCFreeTypeFontRender::getTextBitmapData the buffersize is insufficient.
E/LayaBox: JS onFrame error
I/LayaBox: alert=出错啦,请把此信息截图给研发商
    TypeError: Cannot read property 'data' of null
    apploader.js:305:
    TypeError: Cannot read property 'data' of null
        pTextBitmap.data = nativeObj.data;
                                     ^^    
    TypeError: Cannot read property 'data' of null
        at conchTextCanvas.getTextBitmapData (apploader.js:305:34)
        at e.i.getCharBmp (http://192.168.1.11/slider/lib ... 372024)
        at M.t.getCharRenderInfo (http://192.168.1.11/slider/lib ... :41690)
        at M.t._fast_filltext (http://192.168.1.11/slider/lib ... :39406)
        at G.t._fast_filltext (http://192.168.1.11/slider/lib ... 143372)
        at o.t.run (http://192.168.1.11/slider/lib ... 270082)
        at t.e._renderAll (http://192.168.1.11/slider/lib ... 243668)
        at d.g.transform_drawLayaGL [as _fun] (http://192.168.1.11/slider/libs/laya.core.js:1:8243)
        at f.t.render (http://192.168.1.11/slider/lib ... 378119)
        at d.g.transform_drawN
 
附件里面包含demo和导出的andoid studio工程
去掉导出的layabox.ttf字体后,显示Label就挂了,字体加回去没事。但是我们不想要这个字体啊,太大了
另外如果文本短一些也会没事。
另外即便文本短,也可能有其他条件触发这个bug。还在研究。
谢谢!
已邀请:

Aar0n

赞同来自:

升级最新版就好了

Aar0n

赞同来自:

新ts 重写那个 和 老ts 不冲突。  这个不升级用新runtime  不配套会出问题的。

要回复问题请先

商务合作
商务合作