natsuk4ze / gal

How to Save Image or Video to Photo Gallery in Flutter
https://pub.dev/packages/gal
BSD 3-Clause "New" or "Revised" License
83 stars 12 forks source link

Macos App is crashing when saving image/video from url/asset path #211

Closed evanswanyoike closed 4 months ago

evanswanyoike commented 4 months ago

Did you check the documentation and it did not help?

Overview

Example app is crashing when saving any media in a macos app.

Launching lib/main.dart on macOS in debug mode... Running pod install... Building macOS application... Debug service listening on ws://127.0.0.1:62949/agyoteWD9JI=/ws Syncing files to device macOS... Lost connection to device. the Dart compiler exited unexpectedly.

Steps to reproduce

1 Run example app in intel mac 2 Press "Save Video from file path" button

Code sample

Code sample ```dart [Paste your code here] ```

Environment

Logs ```console /Users/macpro/sdk/flutter/bin/flutter doctor --verbose [✓] Flutter (Channel stable, 3.16.8, on macOS 13.4 22F66 darwin-x64, locale en-GB) • Flutter version 3.16.8 on channel stable at /Users/macpro/sdk/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 67457e669f (3 weeks ago), 2024-01-16 16:22:29 -0800 • Engine revision 6e2ea58a5c • Dart version 3.2.5 • DevTools version 2.28.5 [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2) • Android SDK at /Users/macpro/Library/Android/sdk • Platform android-34, build-tools 33.0.2 • ANDROID_HOME = /Users/macpro/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 14.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 14C18 • CocoaPods version 1.14.3 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2023.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314) [✓] VS Code (version 1.85.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.80.0 [✓] Connected device (2 available) • macOS (desktop) • macos • darwin-x64 • macOS 13.4 22F66 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 121.0.6167.160 [✓] Network resources • All expected network resources are available. • No issues found! Process finished with exit code 0 ```

Logs

Logs ```console [Paste your logs here] ```
natsuk4ze commented 4 months ago

It is not a gal plugin issue, see the warnings in the readme.

Please read the target issue carefully and mention me if it has nothing to do with it.