We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey i try to draw an 3d.obj you can find the object here: https://www.blog.viz-people.com/blog/free-3d-model-lemon-tree/
I am new to 3d objects, but is the file maybe too large? When i try to draw it, i get following error:
══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════ I/flutter ( 9803): The following RangeError was thrown during paint(): I/flutter ( 9803): RangeError (index): Invalid value: Not in range 0..177430, inclusive: -177432 I/flutter ( 9803): I/flutter ( 9803): The relevant error-causing widget was: I/flutter ( 9803): CustomPaint I/flutter ( 9803): file:///Users/fm23/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_3d_obj-0.0.6/lib/flutter_3d_obj.dart:118:18 I/flutter ( 9803): I/flutter ( 9803): When the exception was thrown, this was the stack: I/flutter ( 9803): #0 List.[] (dart:core-patch/growable_array.dart:146:60) I/flutter ( 9803): #1 _ObjectPainter.paint.<anonymous closure> (package:flutter_3d_obj/flutter_3d_obj.dart:326:28) I/flutter ( 9803): #2 List.forEach (dart:core-patch/growable_array.dart:282:8) I/flutter ( 9803): #3 _ObjectPainter.paint (package:flutter_3d_obj/flutter_3d_obj.dart:324:12) I/flutter ( 9803): #4 RenderCustomPaint._paintWithPainter (package:flutter/src/rendering/custom_paint.dart:531:13) I/flutter ( 9803): #5 RenderCustomPaint.paint (package:flutter/src/rendering/custom_paint.dart:572:7) I/flutter ( 9803): #6 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #7 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #8 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:129:15) I/flutter ( 9803): #9 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #10 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #11 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:129:15) I/flutter ( 9803): #12 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #13 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #14 RenderBoxContainerDefaultsMixin.defaultPaint (package:flutter/src/rendering/box.dart:2515:15) I/flutter ( 9803): #15 RenderFlex.paint (package:flutter/src/rendering/flex.dart:950:7) I/flutter ( 9803): #16 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #17 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #18 RenderShiftedBox.paint (package:flutter/src/rendering/shifted_box.dart:70:15) I/flutter ( 9803): #19 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #20 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #21 RenderShiftedBox.paint (package:flutter/src/rendering/shifted_box.dart:70:15) I/flutter ( 9803): #22 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #23 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #24 RenderBoxContainerDefaultsMixin.defaultPaint (package:flutter/src/rendering/box.dart:2515:15) I/flutter ( 9803): #25 RenderCustomMultiChildLayoutBox.paint (package:flutter/src/rendering/custom_layout.dart:404:5) I/flutter ( 9803): #26 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #27 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #28 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:129:15) I/flutter ( 9803): #29 _RenderInkFeatures.paint (package:flutter/src/material/material.dart:531:11) I/flutter ( 9803): #30 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #31 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #32 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:129:15) I/flutter ( 9803): #33 PaintingContext.pushLayer (package:flutter/src/rendering/object.dart:391:12) I/flutter ( 9803): #34 RenderPhysicalModel.paint (package:flutter/src/rendering/proxy_box.dart:1800:15) I/flutter ( 9803): #35 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #36 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #37 RenderBoxContainerDefaultsMixin.defaultPaint (package:flutter/src/rendering/box.dart:2515:15) I/flutter ( 9803): #38 RenderCustomMultiChildLayoutBox.paint (package:flutter/src/rendering/custom_layout.dart:404:5) I/flutter ( 9803): #39 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #40 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #41 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:129:15) I/flutter ( 9803): #42 _RenderInkFeatures.paint (package:flutter/src/material/material.dart:531:11) I/flutter ( 9803): #43 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #44 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #45 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:129:15) I/flutter ( 9803): #46 PaintingContext.pushLayer (package:flutter/src/rendering/object.dart:391:12) I/flutter ( 9803): #47 RenderPhysicalModel.paint (package:flutter/src/rendering/proxy_box.dart:1800:15) I/flutter ( 9803): #48 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #49 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #50 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:129:15) I/flutter ( 9803): #51 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #52 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #53 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:129:15) I/flutter ( 9803): #54 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #55 PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:135:11) I/flutter ( 9803): #56 PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:95:5) I/flutter ( 9803): #57 PipelineOwner.flushPaint (package:flutter/src/rendering/object.dart:980:29) I/flutter ( 9803): #58 RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:404:19) I/flutter ( 9803): #59 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:884:13) I/flutter ( 9803): #60 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:284:5) I/flutter ( 9803): #61 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1113:15) I/flutter ( 9803): #62 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1052:9) I/flutter ( 9803): #63 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:968:5) I/flutter ( 9803): #67 _invoke (dart:ui/hooks.dart:261:10) I/flutter ( 9803): #68 _drawFrame (dart:ui/hooks.dart:219:3) I/flutter ( 9803): (elided 3 frames from dart:async) I/flutter ( 9803): I/flutter ( 9803): The following RenderObject was being processed when the exception was fired: RenderCustomPaint#7fb33 relayoutBoundary=up9: I/flutter ( 9803): creator: CustomPaint ← _PointerListener ← Listener ← _GestureSemantics ← RawGestureDetector ← I/flutter ( 9803): GestureDetector ← Object3D ← Column ← Align ← Padding ← Container ← _BodyBuilder ← ⋯ I/flutter ( 9803): parentData: <none> (can use size) I/flutter ( 9803): constraints: BoxConstraints(0.0<=w<=392.7, 0.0<=h<=Infinity) I/flutter ( 9803): size: Size(392.7, 400.0) I/flutter ( 9803): This RenderObject has no descendants. I/flutter ( 9803): ════════════════════════════════════════════════════════════════════════════════════════════════════
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey i try to draw an 3d.obj you can find the object here: https://www.blog.viz-people.com/blog/free-3d-model-lemon-tree/
I am new to 3d objects, but is the file maybe too large?
When i try to draw it, i get following error:
══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════ I/flutter ( 9803): The following RangeError was thrown during paint(): I/flutter ( 9803): RangeError (index): Invalid value: Not in range 0..177430, inclusive: -177432 I/flutter ( 9803): I/flutter ( 9803): The relevant error-causing widget was: I/flutter ( 9803): CustomPaint I/flutter ( 9803): file:///Users/fm23/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_3d_obj-0.0.6/lib/flutter_3d_obj.dart:118:18 I/flutter ( 9803): I/flutter ( 9803): When the exception was thrown, this was the stack: I/flutter ( 9803): #0 List.[] (dart:core-patch/growable_array.dart:146:60) I/flutter ( 9803): #1 _ObjectPainter.paint.<anonymous closure> (package:flutter_3d_obj/flutter_3d_obj.dart:326:28) I/flutter ( 9803): #2 List.forEach (dart:core-patch/growable_array.dart:282:8) I/flutter ( 9803): #3 _ObjectPainter.paint (package:flutter_3d_obj/flutter_3d_obj.dart:324:12) I/flutter ( 9803): #4 RenderCustomPaint._paintWithPainter (package:flutter/src/rendering/custom_paint.dart:531:13) I/flutter ( 9803): #5 RenderCustomPaint.paint (package:flutter/src/rendering/custom_paint.dart:572:7) I/flutter ( 9803): #6 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #7 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #8 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:129:15) I/flutter ( 9803): #9 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #10 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #11 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:129:15) I/flutter ( 9803): #12 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #13 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #14 RenderBoxContainerDefaultsMixin.defaultPaint (package:flutter/src/rendering/box.dart:2515:15) I/flutter ( 9803): #15 RenderFlex.paint (package:flutter/src/rendering/flex.dart:950:7) I/flutter ( 9803): #16 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #17 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #18 RenderShiftedBox.paint (package:flutter/src/rendering/shifted_box.dart:70:15) I/flutter ( 9803): #19 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #20 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #21 RenderShiftedBox.paint (package:flutter/src/rendering/shifted_box.dart:70:15) I/flutter ( 9803): #22 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #23 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #24 RenderBoxContainerDefaultsMixin.defaultPaint (package:flutter/src/rendering/box.dart:2515:15) I/flutter ( 9803): #25 RenderCustomMultiChildLayoutBox.paint (package:flutter/src/rendering/custom_layout.dart:404:5) I/flutter ( 9803): #26 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #27 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #28 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:129:15) I/flutter ( 9803): #29 _RenderInkFeatures.paint (package:flutter/src/material/material.dart:531:11) I/flutter ( 9803): #30 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #31 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #32 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:129:15) I/flutter ( 9803): #33 PaintingContext.pushLayer (package:flutter/src/rendering/object.dart:391:12) I/flutter ( 9803): #34 RenderPhysicalModel.paint (package:flutter/src/rendering/proxy_box.dart:1800:15) I/flutter ( 9803): #35 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #36 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #37 RenderBoxContainerDefaultsMixin.defaultPaint (package:flutter/src/rendering/box.dart:2515:15) I/flutter ( 9803): #38 RenderCustomMultiChildLayoutBox.paint (package:flutter/src/rendering/custom_layout.dart:404:5) I/flutter ( 9803): #39 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #40 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #41 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:129:15) I/flutter ( 9803): #42 _RenderInkFeatures.paint (package:flutter/src/material/material.dart:531:11) I/flutter ( 9803): #43 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #44 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #45 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:129:15) I/flutter ( 9803): #46 PaintingContext.pushLayer (package:flutter/src/rendering/object.dart:391:12) I/flutter ( 9803): #47 RenderPhysicalModel.paint (package:flutter/src/rendering/proxy_box.dart:1800:15) I/flutter ( 9803): #48 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #49 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #50 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:129:15) I/flutter ( 9803): #51 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #52 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:184:13) I/flutter ( 9803): #53 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:129:15) I/flutter ( 9803): #54 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2264:7) I/flutter ( 9803): #55 PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:135:11) I/flutter ( 9803): #56 PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:95:5) I/flutter ( 9803): #57 PipelineOwner.flushPaint (package:flutter/src/rendering/object.dart:980:29) I/flutter ( 9803): #58 RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:404:19) I/flutter ( 9803): #59 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:884:13) I/flutter ( 9803): #60 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:284:5) I/flutter ( 9803): #61 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1113:15) I/flutter ( 9803): #62 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1052:9) I/flutter ( 9803): #63 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:968:5) I/flutter ( 9803): #67 _invoke (dart:ui/hooks.dart:261:10) I/flutter ( 9803): #68 _drawFrame (dart:ui/hooks.dart:219:3) I/flutter ( 9803): (elided 3 frames from dart:async) I/flutter ( 9803): I/flutter ( 9803): The following RenderObject was being processed when the exception was fired: RenderCustomPaint#7fb33 relayoutBoundary=up9: I/flutter ( 9803): creator: CustomPaint ← _PointerListener ← Listener ← _GestureSemantics ← RawGestureDetector ← I/flutter ( 9803): GestureDetector ← Object3D ← Column ← Align ← Padding ← Container ← _BodyBuilder ← ⋯ I/flutter ( 9803): parentData: <none> (can use size) I/flutter ( 9803): constraints: BoxConstraints(0.0<=w<=392.7, 0.0<=h<=Infinity) I/flutter ( 9803): size: Size(392.7, 400.0) I/flutter ( 9803): This RenderObject has no descendants. I/flutter ( 9803): ════════════════════════════════════════════════════════════════════════════════════════════════════
The text was updated successfully, but these errors were encountered: