这是indexloc提供的服务,不要输入任何密码
Skip to content

Unhandled Exception: type 'double' is not a subtype of type 'int' while trying to load RPM model #76

@obiwanzenobi

Description

@obiwanzenobi

Hello,

I'm trying to load RPM models with this package but without success.
Tested on macos. Example model from RPM documentation:
https://docs.readyplayer.me/ready-player-me/api-reference/rest-api/avatars/get-3d-avatars
Direct glb link:
https://models.readyplayer.me/64e3055495439dfcf3f0b665.glb

Thanks!

Log:

2025-06-27 01:02:01.563 example[98568:2298544] Creating texture with physical dimensions: 3456 x 2160
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: type 'double' is not a subtype of type 'int'
#0      GLTFParser.loadAccessor (package:three_js_advanced_loaders/gltf/gltf_parser.dart:447:45)
<asynchronous suspension>
#1      GLTFParser.getDependency (package:three_js_advanced_loaders/gltf/gltf_parser.dart:252:24)
<asynchronous suspension>
#2      addPrimitiveAttributes.<anonymous closure>.assignAttributeAccessor (package:three_js_advanced_loaders/gltf/gltf_helper.dart:490:22)
<asynchronous suspension>
#3      addPrimitiveAttributes.<anonymous closure> (package:three_js_advanced_loaders/gltf/gltf_helper.dart:506:7)
<asynchronous suspension>
#4      GLTFParser.loadGeometries (package:three_js_advanced_loaders/gltf/gltf_parser.dart:976:29)
<asynchronous suspension>
#5      Future.wait.<anonymous closure> (dart:async/future.dart:525:21)
<asynchronous suspension>
#6      GLTFParser.loadMesh (package:three_js_advanced_loaders/gltf/gltf_parser.dart:1013:21)
<asynchronous suspension>
#7      GLTFParser.getDependency.<anonymous closure> (package:three_js_advanced_loaders/gltf/gltf_parser.dart:247:44)
<asynchronous suspension>
#8      GLTFParser._invokeOne (package:three_js_advanced_loaders/gltf/gltf_parser.dart:206:22)
<asynchronous suspension>
#9      GLTFParser.getDependency (package:three_js_advanced_loaders/gltf/gltf_parser.dart:246:24)
<asynchronous suspension>
#10     GLTFParser.createNodeMesh (package:three_js_advanced_loaders/gltf/gltf_parser.dart:1294:18)
<asynchronous suspension>
#11     GLTFParser._invokeOne (package:three_js_advanced_loaders/gltf/gltf_parser.dart:206:22)
<asynchronous suspension>
#12     GLTFParser.loadNode (package:three_js_advanced_loaders/gltf/gltf_parser.dart:1328:25)
<asynchronous suspension>
#13     GLTFParser.getDependency (package:three_js_advanced_loaders/gltf/gltf_parser.dart:242:24)
<asynchronous suspension>
#14     GLTFParser.buildNodeHierarchy (package:three_js_advanced_loaders/gltf/gltf_parser.dart:1436:28)
<asynchronous suspension>
#15     GLTFParser.buildNodeHierarchy (package:three_js_advanced_loaders/gltf/gltf_parser.dart:1486:9)
<asynchronous suspension>
#16     GLTFParser.loadScene (package:three_js_advanced_loaders/gltf/gltf_parser.dart:1512:7)
<asynchronous suspension>
#17     GLTFParser.getDependency (package:three_js_advanced_loaders/gltf/gltf_parser.dart:238:24)
<asynchronous suspension>
#18     GLTFParser.getDependencies (package:three_js_advanced_loaders/gltf/gltf_parser.dart:324:20)
<asynchronous suspension>
#19     GLTFParser.parse (package:three_js_advanced_loaders/gltf/gltf_parser.dart:106:20)
<asynchronous suspension>
#20     _RemoteRunner._run (dart:isolate:1118:18)
<asynchronous suspension>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions