@crossingfire 写道:
mac下cocos creator 2.2.1版本
删除某些图集中用不到的图片后,游戏报错**Uncaught Download text failed**,具体错误信息为:Simulator: ERROR: Uncaught Download text failed: /Users/xxx/ProjectName/library/imports/83/83573c3f-e269-44ec-91e7-60f4fd8c8819.json, location: src/cocos2d-jsb.js:0:0 STACK: [0]anonymous@src/cocos2d-jsb.js:9184 [1]anonymous@src/cocos2d-jsb.js:35173 [2]fireTimeout@jsb-adapter/jsb-builtin.js:2038 [3]tick@jsb-adapter/jsb-builtin.js:2000 [ERROR] (/Users/nantas/jenkins/workspace/Creator_2D/cocos2d-x-lite/mac/cocos2d-x-lite/cocos/scripting/js-bindings/jswrapper/v8/Object.cpp, 562): Invoking function (0x7fbe7122ef70) failed! at HTMLElement.print-simulator-log (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/builtin/scene/panel/messages/scene.js:1:1608) at Object.e._dispatch (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor-framework/lib/renderer/panel.js:1:1876) at EventEmitter.<anonymous> (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor-framework/lib/renderer/ipc.js:1:2952) at EventEmitter.emit (events.js:194:13)
但从这些报错信息中,无法得知具体哪个prefab引用了哪张不存在的图片导致的,因此想要查找问题,就得手动挨个检查prefab中的节点;当同时删除多张图片、游戏中存在大量prefab时,查找起来特别麻烦。
请问大家都是怎么解决这个问题的?有没有办法方便快速地定位到哪个prefab引用了哪张不存在的图?
帖子: 3
参与者: 1