Closed dnth closed 1 year ago
I managed to build the app but couldn't run the generation. It throws a runtime error as follows.
Connecting to VM Service at ws://127.0.0.1:36045/kNHo-XIkczc=/ws [GETX] Instance "GetMaterialController" has been created [GETX] Instance "GetMaterialController" has been initialized [GETX] GOING TO ROUTE /home [GETX] Instance "HomeController" has been created [GETX] Instance "HomeController" has been initialized D/FlutterArchivePlugin( 3402): onMethodCall / unzip... D/FlutterArchivePlugin( 3402): destinationDir.path: /data/user/0/com.example.flutter_diffusion/app_flutter D/FlutterArchivePlugin( 3402): destinationDir.canonicalPath: /data/data/com.example.flutter_diffusion/app_flutter D/FlutterArchivePlugin( 3402): destinationDir.absolutePath: /data/user/0/com.example.flutter_diffusion/app_flutter D/FlutterArchivePlugin( 3402): zipEntry fileName=decoder_quant.ort, compressedSize=35907533, size=50227992, crc=1789327337 D/FlutterArchivePlugin( 3402): Waiting reportProgress... I/FlutterArchivePlugin( 3402): invokeMethod - success: includeItem D/FlutterArchivePlugin( 3402): ...reportProgress: INCLUDE_ITEM D/FlutterArchivePlugin( 3402): Writing entry to file: /data/user/0/com.example.flutter_diffusion/app_flutter/decoder_quant.ort D/FlutterArchivePlugin( 3402): zipEntry fileName=diffusion.tflite, compressedSize=670140239, size=863123120, crc=1785926499 D/FlutterArchivePlugin( 3402): Waiting reportProgress... I/FlutterArchivePlugin( 3402): invokeMethod - success: includeItem D/FlutterArchivePlugin( 3402): ...reportProgress: INCLUDE_ITEM D/FlutterArchivePlugin( 3402): Writing entry to file: /data/user/0/com.example.flutter_diffusion/app_flutter/diffusion.tflite D/FlutterArchivePlugin( 3402): zipEntry fileName=text_encoder.tflite, compressedSize=79500397, size=123708640, crc=3115125186 D/FlutterArchivePlugin( 3402): Waiting reportProgress... I/FlutterArchivePlugin( 3402): invokeMethod - success: includeItem D/FlutterArchivePlugin( 3402): ...reportProgress: INCLUDE_ITEM D/FlutterArchivePlugin( 3402): Writing entry to file: /data/user/0/com.example.flutter_diffusion/app_flutter/text_encoder.tflite D/FlutterArchivePlugin( 3402): ...onMethodCall / unzip E/tflite ( 3402): Mmap of '86' at offset '0' failed with error '12'. E/tflite ( 3402): The model allocation is null/empty E/flutter ( 3402): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Unable to create model from file E/flutter ( 3402): #0 checkArgument check.dart:45 E/flutter ( 3402): #1 new Model.fromFile model.dart:40 E/flutter ( 3402): #2 new Interpreter.fromFile interpreter.dart:84 E/flutter ( 3402): #3 HomeController.generateImg home_controller.dart:74 E/flutter ( 3402): <asynchronous suspension> E/flutter ( 3402): #4 HomeView.build.<anonymous closure>.<anonymous closure> home_view.dart:99 E/flutter ( 3402): <asynchronous suspension> E/flutter ( 3402):
I'm running on
• Flutter version 3.13.2 on channel stable at /home/dnth/snap/flutter/common/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision ff5b5b5fa6 (9 days ago), 2023-08-24 08:12:28 -0500 • Engine revision b20183e040 • Dart version 3.1.0 • DevTools version 2.25.0
HI, i couldn't replicate this error with my setup. Can you provide more details about your env ? like device info and all
I managed to build the app but couldn't run the generation. It throws a runtime error as follows.
I'm running on