NPE when profiling analyzer
- Langage dominant
- Dart
- Étoiles
- 1.7k
- Forks
- 404
- Merge moyen
- 6 j 17 h
- PR mergées (30 j)
- 18
Description
Run `dart --observe:5001 /Users/scheglov/Source/Dart/sdk.git/sdk/pkg/analyzer_cli/bin/analyzer.dart /Users/scheglov/Source/Dart/sdk.git/sdk/pkg/analyzer_cli/bin/analyzer.dart`
```
:5001/HBaRonn3Gdo=/devtools/?uri=ws://127.0.0.1:5001/HBaRonn3Gdo=/ws:1 Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
flutter_bootstrap.js:121 Attempting to load DevTools with canvaskit renderer.
js_util_patch.dart:81 Server HTTP API is available, using server for storage.
js_util_patch.dart:81 Version: 2.46.0-dev.0, Renderer: canvaskit
js_util_patch.dart:81 Successfully connected to DTD at: ws://127.0.0.1:52838/xcb9wNTNUXs=
js_util_patch.dart:81 DevTools log level changed to INFO
cK5 @ js_util_patch.dart:81
js_util_patch.dart:81 Attempted to call extension 'ext.flutter.inspector.structuredErrors', but no service with that name exists
js_util_patch.dart:81 readyToResume: (106) Isolate must be paused
cK5 @ js_util_patch.dart:81
js_util_patch.dart:81 Could not time async operation "cpuProfileProcessingTime" because an exception was thrown:
Null check operator used on a null value
TypeError: Cannot read properties of undefined (reading 'd')
at bQV.$2$current$parent (http://127.0.0.1:5001/HBaRonn3Gdo=/devtools/main.dart.js:92256:23)
at bQV.$2$current$parent (http://127.0.0.1:5001/HBaRonn3Gdo=/devtools/main.dart.js:92259:83)
at bQV.$2$current$parent (http://127.0.0.1:5001/HBaRonn3Gdo=/devtools/main.dart.js:92259:83)
at bQV.$2$current$parent (http://127.0.0.1:5001/HBaRonn3Gdo=/devtools/main.dart.js:92259:83)
at bQV.$2$current$parent (http://127.0.0.1:5001/HBaRonn3Gdo=/devtools/main.dart.js:92259:83)
at bQV.$2$current$parent (http://127.0.0.1:5001/HBaRonn3Gdo=/devtools/main.dart.js:92259:83)
at bQV.$2$current$parent (http://127.0.0.1:5001/HBaRonn3Gdo=/devtools/main.dart.js:92259:83)
at bQV.$2$current$parent (http://127.0.0.1:5001/HBaRonn3Gdo=/devtools/main.dart.js:92259:83)
at bQV.$2$current$parent (http://127.0.0.1:5001/HBaRonn3Gdo=/devtools/main.dart.js:92259:83)
at bQV.$2$current$parent (http://127.0.0.1:5001/HBaRonn3Gdo=/devtools/main.dart.js:92259:83)
cK5 @ js_util_patch.dart:81
core_patch.dart:296 Uncaught Error: Null check operator used on a null value
at bQV.$2$current$parent (cpu_profile_model.dart:1274:39)
at bQV.$2$current$parent (cpu_profile_model.dart:1385:9)
at bQV.$2$current$parent (cpu_profile_model.dart:1385:9)
at bQV.$2$current$parent (cpu_profile_model.dart:1385:9)
at bQV.$2$current$parent (cpu_profile_model.dart:1385:9)
at bQV.$2$current$parent (cpu_profile_model.dart:1385:9)
at bQV.$2$current$parent (cpu_profile_model.dart:1385:9)
at bQV.$2$current$parent (cpu_profile_model.dart:1385:9)
at bQV.$2$current$parent (cpu_profile_model.dart:1385:9)
at bQV.$2$current$parent (cpu_profile_model.dart:1385:9)
js_util_patch.dart:81 [zoneGuarded]: Null check operator used on a null value
../../../lib/src/screens/profiler/cpu_profile_model.dart 1274:39 _extension#0|generateStackFramesJson.processStackFrame
../../../lib/src/screens/profiler/cpu_profile_model.dart 1385:9 _extension#0|generateStackFramesJson.processStackFrame
../../../lib/src/screens/profiler/cpu_profile_model.dart 1385:9 _extension#0|generateStackFramesJson.processStackFrame
../../../lib/src/screens/profiler/cpu_profile_model.dart 1385:9 _extension#0|generateStackFramesJson.processStackFrame
../../../lib/src/screens/profiler/cpu_profile_model.dart 1385:9 _extension#0|generateStackFramesJson.processStackFrame
../../../lib/src/screens/profiler/cpu_profile_model.dart 1385:9 _extension#0|generateStackFramesJson.processStackFrame
../../../lib/src/screens/profiler/cpu_profile_model.dart 1385:9 _extension#0|generateStackFramesJson.processStackFrame
../../../lib/src/screens/profiler/cpu_profile_model.dart 1385:9 _extension#0|generateStackFramesJson.processStackFrame
../../../lib/src/screens/profiler/cpu_profile_model.dart 1385:9 _extension#0|generateStackFramesJson.processStackFrame
../../../lib/src/screens/profiler/cpu_profile_model.dart 1385:9 _extension#0|generateStackFramesJson.processStackFrame
cK5 @ js_util_patch.dart:81
Chrome is moving towards a new experience that allows users to choose to browse without third-party cookies.
```
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Reproduisez l’échec avec la commande de profiling de l’analyzer indiquée dans l’issue, puis inspectez lib/src/screens/profiler/cpu_profile_model.dart aux lignes 1274 et 1385, où la stack trace entre dans generateStackFramesJson.processStackFrame. Suivez la valeur null pendant le traitement du profil CPU et vérifiez que le profiling de cette commande se termine sans l’erreur de vérification de null.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- dart, devtools
- Domaine
- devtools, performance
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100