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

VM error: "Not in inclusive range 6457..286720: 1578263" #3735

Open
kevmoo opened this issue Aug 19, 2024 · 4 comments
Open

VM error: "Not in inclusive range 6457..286720: 1578263" #3735

kevmoo opened this issue Aug 19, 2024 · 4 comments
Labels
P0 A serious issue requiring immediate resolution package:build_resolvers type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@kevmoo
Copy link
Member

kevmoo commented Aug 19, 2024

Happening all over

3.6.0-149.0.dev

RangeError (end): Invalid value: Not in inclusive range 6457..286720: 1578263
  dart:typed_data                                                          new Uint8List.sublistView
  package:analyzer/src/summary2/data_reader.dart 202:28                    SummaryDataReader.readUint8List
  package:analyzer/src/summary2/package_bundle_format.dart 85:31           new PackageBundleReader
  package:analyzer/src/clients/build_resolvers/build_resolvers.dart 45:[19](https://github.com/kevmoo/source_gen_test/actions/runs/10436304756/job/28901213357#step:5:20)  createAnalysisDriver
  package:build_resolvers/src/analysis_driver.dart 26:10                   analysisDriver
  package:build_resolvers/src/resolver.dart 460:26                         AnalyzerResolvers._ensureInitialized.<fn>
  ===== asynchronous gap ===========================
  package:async/src/result/value.dart 24:3                                 ValueResult.ValueResult
  ===== asynchronous gap ===========================
  package:async/src/result/result.dart 131:[22](https://github.com/kevmoo/source_gen_test/actions/runs/10436304756/job/28901213357#step:5:23)                              Result.release.<fn>
  ===== asynchronous gap ===========================
  package:build_resolvers/src/resolver.dart 470:5                          AnalyzerResolvers.get
  ===== asynchronous gap ===========================
  package:build/src/builder/build_step_impl.dart [23](https://github.com/kevmoo/source_gen_test/actions/runs/10436304756/job/28901213357#step:5:24)7:8                     _DelayedResolver.libraryFor
  ===== asynchronous gap ===========================
  package:build_test/src/resolve_source.dart 238:23                        _ResolveSourceBuilder.build
  ===== asynchronous gap ===========================
  package:build/src/generate/run_builder.dart 83:7                         runBuilder.buildForInput
  ===== asynchronous gap ===========================
  package:build/src/builder/logging.dart 32:40                             scopeLogAsync.<fn>
@kevmoo
Copy link
Member Author

kevmoo commented Aug 19, 2024

@dart-github-bot
Copy link

Summary: The user is encountering a RangeError in the Uint8List.sublistView method, indicating an attempt to access an element outside the valid range of the list. This error occurs in the package:analyzer library, specifically in the SummaryDataReader.readUint8List function.

@dart-github-bot dart-github-bot added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Aug 19, 2024
@mraleph
Copy link
Member

mraleph commented Aug 19, 2024

It is a bug in

Future<String> defaultSdkSummaryGenerator() async {
.

Note that the way this function is written is not guarding against multiple instances of this function running in parallel and all creating the same summary output. So it might end up reading from file which is being overwritten and as a result it will get partial summary.

@mraleph mraleph closed this as completed Aug 19, 2024
@kevmoo
Copy link
Member Author

kevmoo commented Aug 19, 2024

CC @jakemac53 @natebosch re ☝️

@kevmoo kevmoo transferred this issue from dart-lang/sdk Aug 19, 2024
@kevmoo kevmoo reopened this Aug 19, 2024
@kevmoo kevmoo added package:build_resolvers P0 A serious issue requiring immediate resolution labels Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 A serious issue requiring immediate resolution package:build_resolvers type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

3 participants