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

Unhandled exception #11

Closed
donald99 opened this issue Sep 2, 2019 · 2 comments
Closed

Unhandled exception #11

donald99 opened this issue Sep 2, 2019 · 2 comments

Comments

@donald99
Copy link

donald99 commented Sep 2, 2019

The Flutter environment:
[✓] Flutter (Channel master, v1.9.8-pre.45, on Mac OS X 10.13.6 17G4015, locale zh-Hans-CN)
• Flutter version 1.9.8-pre.45 at /Users/***/Flutter
• Framework revision 2b7e59b9c0 (3 hours ago), 2019-09-02 04:20:42 -0400
• Engine revision 2baba33c82
• Dart version 2.5.0 (build 2.5.0-dev.4.0 36985859e4)

In flutter_tools ,git apply --3way 0001-aspectd.patch
My project add aspectd,build it,get app.dill
then
dart /Dart/sdk/pkg/vm/bin/dump_kernel.dart app.dill app.dill.txt

Exception:

Unhandled exception:
RangeError (index): Index out of range: no indices are valid: 0
#0 Uint8List.[] (dart:typed_data-patch/typed_data_patch.dart:2207:7)
#1 BinaryBuilder.readByte (package:kernel/binary/ast_from_binary.dart:104:27)
#2 BinaryBuilder.readUint32 (package:kernel/binary/ast_from_binary.dart:124:13)
#3 BinaryBuilder.readComponent (package:kernel/binary/ast_from_binary.dart:444:17)
#4 main (file:///Dart/sdk/pkg/vm/bin/dump_kernel.dart:47:40)

#5 _startIsolate. (dart:isolate-patch/isolate_patch.dart:303:32)
#6 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)

@kangwang1988
Copy link
Contributor

@donald99
First you have to get a dart-sdk exactly matching your flutter repo.
Its sha is specified in flutter/bin/cache/dart-sdk/revision.
After that, try this command.
If it remains, you'd better file a issue under https://github.com/dart-lang/sdk/issues
This issue also occurs sometimes in my side.

@kangwang1988 kangwang1988 added wontfix This will not be worked on and removed wontfix This will not be worked on labels Sep 3, 2019
@kangwang1988
Copy link
Contributor

Close this issue as believe not related to aspectd.

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

2 participants