Skip to content
New issue

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

isn't run for flutter web #241

Open
JgomesAT opened this issue May 24, 2024 · 3 comments
Open

isn't run for flutter web #241

JgomesAT opened this issue May 24, 2024 · 3 comments

Comments

@JgomesAT
Copy link

When I try to run my code with vector graphics compiler in Flutter Web, the command always finishes with Exit and don't run the code

@alod2019
Copy link

alod2019 commented May 25, 2024

I can confirm. In my case the assets section of pubspec.yaml has vector_graphics_compiler appied to folders rather than separte files. On MacOS web build just crashes with

Compiling lib/main.dart for the Web...                          
Target web_release_bundle failed: ProcessException: Too many open files
  Command: /Users/admin/flutter-3.22.1/bin/cache/dart-sdk/bin/dart run vector_graphics_compiler --input=/var/folders/6h/rfdkq1md3v79423cgp0_kpbh0000gn/T/flutter_tools.tfmC7z/ic_calendar.svg-transformOutput0.svg --output=/var/folders/6h/rfdkq1md3v79423cgp0_kpbh0000gn/T/flutter_tools.tfmC7z/ic_calendar.svg-transformOutput1.svg
#0      _ProcessImpl._start (dart:io-patch/process_patch.dart:402:33)
#1      Process.start (dart:io-patch/process_patch.dart:38:20)
#2      _runNonInteractiveProcess (dart:io-patch/process_patch.dart:579:18)
#3      Process.run (dart:io-patch/process_patch.dart:49:12)
#4      LocalProcessManager.run (package:process/src/interface/local_process_manager.dart:72:22)
#5      ErrorHandlingProcessManager.run.<anonymous closure> (package:flutter_tools/src/base/error_handling_io.dart:661:24)
#6      _run (package:flutter_tools/src/base/error_handling_io.dart:556:20)
#7      ErrorHandlingProcessManager.run (package:flutter_tools/src/base/error_handling_io.dart:660:12)
#8      AssetTransformer._applyTransformer (package:flutter_tools/src/build_system/tools/asset_transformer.dart:115:56)
#9      AssetTransformer.transformAsset (package:flutter_tools/src/build_system/tools/asset_transformer.dart:64:70)
<asynchronous suspension>

on Windows the picture is better and some of SVG files are transformed but finally build also fails with a file error

@willhlas
Copy link

I had this issue too but just needed to update my flutter version to 3.22.1! Maybe try this?

@alod2019
Copy link

alod2019 commented May 29, 2024

my crashlog above shows that it happens with flutter 3.22.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants