'ChromeProxyService: Failed to evaluate expression 'handlePrimaryPointer':InternalError: No frame with index 45
Code that I have written:
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/material.dart';
class FirebaseServices {
static Future<DocumentSnapshot> adminSignIn(id) async {
var res =
await FirebaseFirestore.instance.collection("admin").doc(id).get();
return res;
}
}
I am getting error:
+ ChromeProxyService: Failed to evaluate expression
'handlePrimaryPointer':InternalError: No frame with index 45.
+ ChromeProxyService: Failed to evaluate expression
'postAcceptSlopTolerance': InternalError: No frame with index 45.
+ ChromeProxyService: Failed to evaluate expression 'FirebaseFirestore':
InternalError: No frame with index 32.
+ ChromeProxyService: Failed to evaluate expression 'DocumentSnapshot':
InternalError: No frame with index 32.
+ ChromeProxyService: Failed to evaluate expression 'Future':
InternalError: No frame with index 32.
+ ChromeProxyService: Failed to evaluate expression 'catch':
InternalError: No frame with index 32.
Repository Link: https://github.com/SeAliijaz/Eco_Buy
Solution 1:[1]
Edit 2: This issue re-appeared on Flutter v2.10.5 (after Chrome 101.0.4951.64 May update). Upgrade to Flutter v3.0.0 or downgrade to v2.10.4 using the workaround further down.
Flutter 3 upgrade:
Run
flutter channel stable
followed byflutter upgrade --force
For older versions of Flutter, a workaround is documented here https://github.com/flutter/flutter/issues/101224#issuecomment-1092324782:
flutter downgrade v2.10.4
(Find Flutter install dir using:
flutter doctor -v
)
cd <path to flutter install dir>/flutter/packages/flutter_tools
update
dwds
constraint in packages/flutter_tools/pubspec.yaml to11.5.2
run
flutter pub get
in packages/flutter_tools directoryremove your cache:
rm -rf ../../bin/cache
rebuild flutter:
flutter pub get
in packages/flutter_tools directory (it triggers the flutter rebuild)
This issue caused VS Code to show no local variables when debugging my Flutter project using the web-javascript renderer. I was not able to view the error message until switching the debug option to "Debug my code + packages".
Downgrading Google Chrome to version 99.0.4844.74 also works around the issue.
Solution 2:[2]
This issue was addressed in the hotfix v2.10.5 of the stable branch
https://github.com/flutter/flutter/wiki/Hotfixes-to-the-Stable-Channel#2105-april-18-2022
https://twitter.com/FlutterReleases/status/1516140054183387140?t=ljVpMAzd2-VfYhYeB1S52w&s=19
So flutter upgrade should work
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | Djai |