You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error:
Resolving dependencies... (8.9s)
Unsupported operation: No source of cryptographically secure random numbers available.
dart:math new Random.secure
package:pub/src/utils.dart 111:28 random
package:pub/src/utils.dart random
package:pub/src/utils.dart 758:39 retry
===== asynchronous gap ===========================
package:pub/src/http.dart 365:10 retryForHttp
===== asynchronous gap ===========================
package:pub/src/source/hosted.dart 501:16 HostedSource._fetchVersionsNoPrefetching.
===== asynchronous gap ===========================
package:pub/src/authentication/client.dart 127:12 withAuthenticatedClient
===== asynchronous gap ===========================
package:pub/src/source/hosted.dart 499:18 HostedSource._fetchVersionsNoPrefetching
===== asynchronous gap ===========================
package:pub/src/source/hosted.dart 571:20 HostedSource._fetchVersions
===== asynchronous gap ===========================
package:pub/src/rate_limited_scheduler.dart 86:11 RateLimitedScheduler._processNextTask.runJob
===== asynchronous gap ===========================
package:pub/src/rate_limited_scheduler.dart 96:7 RateLimitedScheduler._processNextTask
===== asynchronous gap ===========================
package:pool/pool.dart 127:14 Pool.withResource
This is an unexpected error. The full log and other details are collected in:
/Users/builder/.pub-cache/log/pub_log.txt
Consider creating an issue on https://github.com/dart-lang/pub/issues/new
and attaching the relevant parts of that log file.
FileSystemException: Cannot open file, path = 'pubspec.yaml' (OS Error: Too many open files, errno = 24)
#0 _File.throwIfError (dart:io/file_impl.dart:782:7) #1 _File.openSync (dart:io/file_impl.dart:575:5) #2 _File.readAsBytesSync (dart:io/file_impl.dart:663:18) #3 _File.readAsStringSync (dart:io/file_impl.dart:718:18) #4 readTextFile (package:pub/src/io.dart:205:48) #5 dumpTranscriptToFile (package:pub/src/log.dart:383:11) #6 PubCommand.run (package:pub/src/command.dart:239:13)
Uh oh!
There was an error while loading. Please reload this page.
OS: MacOS (Darwin Kernel Version 24.4.0, RELEASE_ARM64_T8132)
flutter version: 3.29.3
Run:
export PUB_HOSTED_URL=https://mirrors.tuna.tsinghua.edu.cn/dart-pub
export FLUTTER_STORAGE_BASE_URL=https://mirrors.tuna.tsinghua.edu.cn/flutter
export DART_VM_OPTIONS=--root-certs-file=/Users/builder/tuna.tsinghua.edu.cn.der
flutter pub get
Error:
Resolving dependencies... (8.9s)
Unsupported operation: No source of cryptographically secure random numbers available.
dart:math new Random.secure
package:pub/src/utils.dart 111:28 random
package:pub/src/utils.dart random
package:pub/src/utils.dart 758:39 retry
===== asynchronous gap ===========================
package:pub/src/http.dart 365:10 retryForHttp
===== asynchronous gap ===========================
package:pub/src/source/hosted.dart 501:16 HostedSource._fetchVersionsNoPrefetching.
===== asynchronous gap ===========================
package:pub/src/authentication/client.dart 127:12 withAuthenticatedClient
===== asynchronous gap ===========================
package:pub/src/source/hosted.dart 499:18 HostedSource._fetchVersionsNoPrefetching
===== asynchronous gap ===========================
package:pub/src/source/hosted.dart 571:20 HostedSource._fetchVersions
===== asynchronous gap ===========================
package:pub/src/rate_limited_scheduler.dart 86:11 RateLimitedScheduler._processNextTask.runJob
===== asynchronous gap ===========================
package:pub/src/rate_limited_scheduler.dart 96:7 RateLimitedScheduler._processNextTask
===== asynchronous gap ===========================
package:pool/pool.dart 127:14 Pool.withResource
This is an unexpected error. The full log and other details are collected in:
Consider creating an issue on https://github.com/dart-lang/pub/issues/new
and attaching the relevant parts of that log file.
FileSystemException: Cannot open file, path = 'pubspec.yaml' (OS Error: Too many open files, errno = 24)
#0 _File.throwIfError (dart:io/file_impl.dart:782:7)
#1 _File.openSync (dart:io/file_impl.dart:575:5)
#2 _File.readAsBytesSync (dart:io/file_impl.dart:663:18)
#3 _File.readAsStringSync (dart:io/file_impl.dart:718:18)
#4 readTextFile (package:pub/src/io.dart:205:48)
#5 dumpTranscriptToFile (package:pub/src/log.dart:383:11)
#6 PubCommand.run (package:pub/src/command.dart:239:13)
#7 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
#8 DartdevRunner.runCommand (package:dartdev/dartdev.dart:240:18)
#9 runDartdev (package:dartdev/dartdev.dart:47:16)
#10 main (file:///Volumes/Work/s/w/ir/x/w/sdk/pkg/dartdev/bin/dartdev.dart:13:5)
Failed to update packages.
================================
try run: flutter pub get -v
Error:
........
FINE: Failed writing cache file. FileSystemException: Cannot open file, path = '/Users/builder/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/.cache/pub_semver-versions.json' (OS Error: Too many open files, errno = 24)
IO : Attempt #2 for fetching versions for "watcher" from "https://mirrors.tuna.tsinghua.edu.cn/dart-pub/api/packages/watcher"
SLVR: Version solving took 0:00:11.553566 seconds.
| Tried 1 solutions.
FINE: Resolving dependencies finished (11.593s).
ERR : Unsupported operation: No source of cryptographically secure random numbers available.
FINE: Exception type: UnsupportedError
ERR : dart:math new Random.secure
| package:pub/src/utils.dart 111:28 random
| package:pub/src/utils.dart random
| package:pub/src/utils.dart 758:39 retry
| ===== asynchronous gap ===========================
| dart:async Future.catchError
| package:pub/src/utils.dart 140:10 captureErrors.wrappedCallback
| package:stack_trace Chain.capture
| package:pub/src/utils.dart 155:11 captureErrors
| package:pub/src/command.dart 196:13 PubCommand.run
| package:args/command_runner.dart 212:27 CommandRunner.runCommand
| package:dartdev/dartdev.dart 240:30 DartdevRunner.runCommand
| package:args/command_runner.dart 122:25 CommandRunner.run.
| dart:async new Future.sync
| package:args/command_runner.dart 122:14 CommandRunner.run
| package:dartdev/dartdev.dart 47:29 runDartdev
| /Volumes/Work/s/w/ir/x/w/sdk/pkg/dartdev/bin/dartdev.dart 13:11 main
---- End log transcript ----
FileSystemException: Cannot open file, path = 'pubspec.yaml' (OS Error: Too many open files, errno = 24)
#0 _File.throwIfError (dart:io/file_impl.dart:782:7)
#1 _File.openSync (dart:io/file_impl.dart:575:5)
#2 _File.readAsBytesSync (dart:io/file_impl.dart:663:18)
#3 _File.readAsStringSync (dart:io/file_impl.dart:718:18)
#4 readTextFile (package:pub/src/io.dart:205:48)
#5 dumpTranscriptToFile (package:pub/src/log.dart:383:11)
#6 PubCommand.run (package:pub/src/command.dart:239:13)
#7 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
#8 DartdevRunner.runCommand (package:dartdev/dartdev.dart:240:18)
#9 runDartdev (package:dartdev/dartdev.dart:47:16)
#10 main (file:///Volumes/Work/s/w/ir/x/w/sdk/pkg/dartdev/bin/dartdev.dart:13:5)
[+11917 ms] pub failed
command: "/Users/builder/development/flutter3.29.3/bin/cache/dart-sdk/bin/dart pub --suppress-analytics get -v --example --directory ."
pub env: {
"FLUTTER_ROOT": "/Users/builder/development/flutter3.29.3",
"PUB_ENVIRONMENT": "flutter_cli:get",
}
exit code: 1
[ +9 ms] "flutter get" took 12,023ms.
[ +6 ms] Failed to update packages.
[ ]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:34:3)
#1 _DefaultPub._runWithStdioInherited (package:flutter_tools/src/dart/pub.dart:531:7)
#2 _DefaultPub.interactively (package:flutter_tools/src/dart/pub.dart:610:5)
#3 PackagesGetCommand.runCommand (package:flutter_tools/src/commands/packages.dart:343:7)
#4 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1558:27)
#5 AppContext.run. (package:flutter_tools/src/base/context.dart:154:19)
#6 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
#7 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:496:9)
#8 AppContext.run. (package:flutter_tools/src/base/context.dart:154:19)
#9 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:431:5)
#10 run.. (package:flutter_tools/runner.dart:98:11)
#11 AppContext.run. (package:flutter_tools/src/base/context.dart:154:19)
#12 main (package:flutter_tools/executable.dart:99:3)
[ ] Running 1 shutdown hook
[ ] Shutdown hooks complete
[ +270 ms] exiting with code 1
May I ask how I can fix this problem?
The text was updated successfully, but these errors were encountered: