问题描述
我正在探索Object3D软件包,它对于某些.Obj文件效果很好,但在某些没有错误的文件上却失败了,在某些情况下,它会抛出此错误消息
The following FormatException was thrown during paint():
Invalid double
The relevant error-causing widget was:
CustomPaint file:///C:/Users/Tiwari/.AndroidStudio4.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_3d_obj-0.0.6/lib/flutter_3d_obj.dart:120:18
When the exception was thrown,this was the stack:
#0 double.parse (dart:core-patch/double_patch.dart:111:28)
#1 _ObjectPainter._parseObjString.<anonymous closure> (package:flutter_3d_obj/flutter_3d_obj.dart:190:37)
#2 List.forEach (dart:core-patch/growable_array.dart:313:8)
#3 _ObjectPainter._parseObjString (package:flutter_3d_obj/flutter_3d_obj.dart:177:11)
#4 _ObjectPainter.paint (package:flutter_3d_obj/flutter_3d_obj.dart:316:22)
...
The following RenderObject was being processed when the exception was fired: RenderCustomPaint#b558d relayoutBoundary=up4
... parentData: <none> (can use size)
... constraints: BoxConstraints(0.0<=w<=423.5,0.0<=h<=799.2)
... size: Size(40.0,40.0)
RenderObject: RenderCustomPaint#b558d relayoutBoundary=up4
parentData: <none> (can use size)
constraints: BoxConstraints(0.0<=w<=423.5,0.0<=h<=799.2)
size: Size(40.0,40.0)
从here下载文件
我应该如何调试,此错误来自软件包,但未提供失败的值,我尝试使用调试器,并尝试通过编辑软件包文件来打印值,但是没用。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)