设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 7130|回复: 4
打印 上一主题 下一主题

[已经解决] 求解uncaught typeerror:cannot read.....

[复制链接]

Lv1.梦旅人

梦石
0
星屑
75
在线时间
127 小时
注册时间
2008-5-12
帖子
144
跳转到指定楼层
1
发表于 2016-5-13 00:57:44 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
uncaught typeerror:cannot read property'width' of null

在下出了这个错
不过在下是纯事件派,完全没有更改脚本,这里这个width为空,都不知道是哪个为空囧
请问出现这种情况 可能是哪些地方出了问题呢?
拜谢!

Lv1.梦旅人

梦石
0
星屑
50
在线时间
20 小时
注册时间
2016-4-21
帖子
5
2
发表于 2016-5-13 09:59:16 | 只看该作者
按F8,可以看到是哪一行代码出错。看不出来就把报错贴出来
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
75
在线时间
127 小时
注册时间
2008-5-12
帖子
144
3
 楼主| 发表于 2016-5-13 11:01:24 | 只看该作者
lichangjian 发表于 2016-5-13 09:59
按F8,可以看到是哪一行代码出错。看不出来就把报错贴出来

非常感谢回复 不过这个问题很奇怪的是 在RMMV里运行完全不报错 但是一旦打包到手机上后就会 一定几率 出现这个错 我说的一定几率是指 运行同个事件 有时不报错 有时却会 目前报错的地方 就是播放一个序列帧动画的时候 ---- 我用的一个事件连续播放20张图片 就是 显示图片 1 “XXX.PNG",显示图片1 "XXX2.PNG”。。。类似这个样子实现了序列帧动画 会是内存问题么?其他的序列帧动画都oK
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
75
在线时间
127 小时
注册时间
2008-5-12
帖子
144
4
 楼主| 发表于 2016-5-13 11:06:48 | 只看该作者
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
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
75
在线时间
127 小时
注册时间
2008-5-12
帖子
144
5
 楼主| 发表于 2016-5-13 18:11:20 | 只看该作者
弱弱的顶一下
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-12-24 10:49

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表