ChromeProxyService: Failed to evaluate expression 'handlePrimaryPointer':InternalError: No frame with index 45

2,304

Solution 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 by flutter 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 to 11.5.2

run flutter pub get in packages/flutter_tools directory

remove 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

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

Share:
2,304
Ali ijaz
Author by

Ali ijaz

Updated on January 04, 2023

Comments

  • Ali ijaz
    Ali ijaz over 1 year

    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

  • Ali ijaz
    Ali ijaz almost 2 years
    It does'nt work for me! Any other solution?
  • Ali ijaz
    Ali ijaz almost 2 years
    Will give you response ASAP!
  • Dabbel
    Dabbel almost 2 years
    In my case, version 2.10.5 does not fix it.
  • Benno
    Benno almost 2 years
    @Dabbel The issue re-appeared on v2.10.5 for me yesterday after the latests Chrome update. Downgrading to Flutter v2.10.4 and re-applying the work-around fixed the issue for me. Today I upgraded to Flutter v3.0.0 and also working fine.