Project1
标题:
求解uncaught typeerror:cannot read.....
[打印本页]
作者:
ace69
时间:
2016-5-13 00:57
标题:
求解uncaught typeerror:cannot read.....
uncaught typeerror:cannot read property'width' of null
在下出了这个错
不过在下是纯事件派,完全没有更改脚本,这里这个width为空,都不知道是哪个为空囧
请问出现这种情况 可能是哪些地方出了问题呢?
拜谢!
作者:
lichangjian
时间:
2016-5-13 09:59
按F8,可以看到是哪一行代码出错。看不出来就把报错贴出来
作者:
ace69
时间:
2016-5-13 11:01
lichangjian 发表于 2016-5-13 09:59
按F8,可以看到是哪一行代码出错。看不出来就把报错贴出来
非常感谢回复 不过这个问题很奇怪的是 在RMMV里运行完全不报错 但是一旦打包到手机上后就会 一定几率 出现这个错 我说的一定几率是指 运行同个事件 有时不报错 有时却会 目前报错的地方 就是播放一个序列帧动画的时候 ---- 我用的一个事件连续播放20张图片 就是 显示图片 1 “XXX.PNG",显示图片1 "XXX2.PNG”。。。类似这个样子实现了序列帧动画 会是内存问题么?其他的序列帧动画都oK
作者:
ace69
时间:
2016-5-13 11:06
lichangjian 发表于 2016-5-13 09:59
按F8,可以看到是哪一行代码出错。看不出来就把报错贴出来
sorry 我收回我上面的话 在rmmv里运行时也碰到了 我给您po一下错误代码你帮我看看
rpg_managers.js:1589 file:///C:/Users/DCZ/Desktop/Dcz's%20Game/001/js/rpg_core.js 3386
rpg_core.js:3386 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1588 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1589 file:///C:/Users/DCZ/Desktop/Dcz's%20Game/001/js/rpg_core.js 3386
rpg_core.js:3386 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1588 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1589 file:///C:/Users/DCZ/Desktop/Dcz's%20Game/001/js/rpg_core.js 3386
rpg_core.js:3386 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1588 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1589 file:///C:/Users/DCZ/Desktop/Dcz's%20Game/001/js/rpg_core.js 3386
rpg_core.js:3386 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1588 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1589 file:///C:/Users/DCZ/Desktop/Dcz's%20Game/001/js/rpg_core.js 3386
rpg_core.js:3386 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1588 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1589 file:///C:/Users/DCZ/Desktop/Dcz's%20Game/001/js/rpg_core.js 3386
rpg_core.js:3386 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1588 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1589 file:///C:/Users/DCZ/Desktop/Dcz's%20Game/001/js/rpg_core.js 3386
rpg_core.js:3386 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1588 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1589 file:///C:/Users/DCZ/Desktop/Dcz's%20Game/001/js/rpg_core.js 3386
rpg_core.js:3386 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1588 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1589 file:///C:/Users/DCZ/Desktop/Dcz's%20Game/001/js/rpg_core.js 3386
rpg_core.js:3386 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1588 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1589 file:///C:/Users/DCZ/Desktop/Dcz's%20Game/001/js/rpg_core.js 3386
rpg_core.js:3386 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1588 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1589 file:///C:/Users/DCZ/Desktop/Dcz's%20Game/001/js/rpg_core.js 3386
rpg_core.js:3386 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1588 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1589 file:///C:/Users/DCZ/Desktop/Dcz's%20Game/001/js/rpg_core.js 3386
rpg_core.js:3386 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1588 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1589 file:///C:/Users/DCZ/Desktop/Dcz's%20Game/001/js/rpg_core.js 3386
rpg_core.js:3386 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1588 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1589 file:///C:/Users/DCZ/Desktop/Dcz's%20Game/001/js/rpg_core.js 3386
rpg_core.js:3386 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1588 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1589 file:///C:/Users/DCZ/Desktop/Dcz's%20Game/001/js/rpg_core.js 3386
rpg_core.js:3386 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1588 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1589 file:///C:/Users/DCZ/Desktop/Dcz's%20Game/001/js/rpg_core.js 3386
rpg_core.js:3386 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1588 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1589 file:///C:/Users/DCZ/Desktop/Dcz's%20Game/001/js/rpg_core.js 3386
rpg_core.js:3386 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1588 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1589 file:///C:/Users/DCZ/Desktop/Dcz's%20Game/001/js/rpg_core.js 3386
rpg_core.js:3386 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1588 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1589 file:///C:/Users/DCZ/Desktop/Dcz's%20Game/001/js/rpg_core.js 3386
rpg_core.js:3386 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1588 Uncaught TypeError: Cannot read property 'width' of null
rpg_managers.js:1589 file:///C:/Users/DCZ/Desktop/Dcz's%20Game/001/js/rpg_core.js 3386
rpg_core.js:3386 Uncaught TypeError: Cannot read property 'width' of null
作者:
ace69
时间:
2016-5-13 18:11
弱弱的顶一下
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1