mt2503 将project的分辨率改为240x400后编译出错
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
只修改分辨率为240x400,然后重新编译project会出错,在
\mcu\plutoMMI\Customer\ResGenerator\debug\resgen_img_group_compress.log有以下error信息:
--------------------pythonexceptionstart--------------------
Traceback(mostrecentcalllast):
File".\resgen_img_group_compress.py",line1113,in<module>
groupCreator=GroupCreator(allImageModel,imageParamModel,multiImgGroupMaxSize,singleImgGroupMaxSize,bootI
mgGroupMaxSize,bootImgResourceId,imageIndexFieldLength)
File".\resgen_img_group_compress.py",line171,in__init__
self.fiLTEr.filterAll(imageModel,self.noGroupingImageModel,self.imageModel)
File".\resgen_img_group_compress.py",line569,infilterAll
ifself.filter(item)isTrue:
File".\resgen_img_group_compress.py",line589,infilter
foritemParaminfoundParam:
TypeError:'NoneType'objectisnotiterable
--------------------pythonexceptionend--------------------
[SOLUTION]
修改文件为:\mcu\plutommi\Customer\ResGenerator\resgen_offline_param.py
修改方法:
找到以下代码:
self.symbolName=imageFilePath.strip().upper().replace('.','_').replace('/','_').replace('\\','_')
修改为:
self.symbolName=imageFilePath.strip().upper().replace('.','_').replace('/','_').replace('\\','_').replac
e('-','_')
然后重新buildproject。
只修改分辨率为240x400,然后重新编译project会出错,在
\mcu\plutoMMI\Customer\ResGenerator\debug\resgen_img_group_compress.log有以下error信息:
--------------------pythonexceptionstart--------------------
Traceback(mostrecentcalllast):
File".\resgen_img_group_compress.py",line1113,in<module>
groupCreator=GroupCreator(allImageModel,imageParamModel,multiImgGroupMaxSize,singleImgGroupMaxSize,bootI
mgGroupMaxSize,bootImgResourceId,imageIndexFieldLength)
File".\resgen_img_group_compress.py",line171,in__init__
self.fiLTEr.filterAll(imageModel,self.noGroupingImageModel,self.imageModel)
File".\resgen_img_group_compress.py",line569,infilterAll
ifself.filter(item)isTrue:
File".\resgen_img_group_compress.py",line589,infilter
foritemParaminfoundParam:
TypeError:'NoneType'objectisnotiterable
--------------------pythonexceptionend--------------------
[SOLUTION]
修改文件为:\mcu\plutommi\Customer\ResGenerator\resgen_offline_param.py
修改方法:
找到以下代码:
self.symbolName=imageFilePath.strip().upper().replace('.','_').replace('/','_').replace('\\','_')
修改为:
self.symbolName=imageFilePath.strip().upper().replace('.','_').replace('/','_').replace('\\','_').replac
e('-','_')
然后重新buildproject。
666666
学习学习学习学