flutter / flutter/devtools

NPE when profiling analyzer

Abierto
#9,177 2 comentarios 0 reacciones 0 asignados Ver en GitHub
advanced-developer-mode exception P2
Lenguaje dominante
Dart
Estrellas
1.7k
Forks
404
Merge medio
6 d 17 h
PR fusionados (30 d)
18

Descripción

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.
```

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Reproduce el fallo con el comando de profiling del analyzer indicado en el issue y, después, inspecciona lib/src/screens/profiler/cpu_profile_model.dart en las líneas 1274 y 1385, donde el stack trace entra en generateStackFramesJson.processStackFrame. Rastrea el valor null durante el procesamiento del perfil de CPU y verifica que el profiling de este comando se complete sin el error de comprobación de null.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
dart, devtools
Área
devtools, performance
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.