flutter 使用软件包“integration_test”运行集成测试时,“Matrix4条目必须有限”

t98cgbkg  于 2023-02-16  发布在  Flutter
关注(0)|答案(1)|浏览(133)

在计划程序回调期间引发了以下Assert:

Matrix4 entries must be finite.
'dart:ui/painting.dart':
Failed assertion: line 50 pos 10: '<optimized out>'

Either the assertion indicates an error in the framework itself, or we should provide substantially
more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.md

When the exception was thrown, this was the stack:
#2      _matrix4IsValid (dart:ui/painting.dart:50:10)
#3      SceneBuilder.pushTransform (dart:ui/compositing.dart:301:12)
#4      TransformLayer.addToScene (package:flutter/src/rendering/layer.dart:1677:27)
#5      ContainerLayer.buildScene (package:flutter/src/rendering/layer.dart:938:5)
#6      RenderView.compositeFrame (package:flutter/src/rendering/view.dart:228:37)
#7      RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:508:18)
#8      WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:892:13)
#9      RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:370:5)
#10     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1146:15)
#11     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1083:9)
#12     LiveTestWidgetsFlutterBinding.handleDrawFrame (package:flutter_test/src/binding.dart:1546:13)
#13     SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:864:7)
(elided 17 frames from class _AssertionError, class _RawReceivePortImpl, class _Timer, dart:async, dart:async-patch, and package:stack_trace)
wmomyfyw

wmomyfyw1#

当您的设备(移动的)屏幕关闭时,从显示设置(Android)增加屏幕超时

相关问题