Repository: flutter
Issue: assertion error for stacktrace potentially hides flutter error
Labels: framework,has reproducible steps,P2,found in release: 2.5,found in release: 2.6,team-framework,triaged-framework

disclosures: 
- I cannot share the code because is production
- I'd be happy to produce a code sample, but the logs don't seem to point at my code

```
I/flutter (30619): ----------------FIREBASE CRASHLYTICS----------------
I/flutter (30619): 'package:flutter/src/foundation/stack_frame.dart': Failed assertion: line 114 pos 12: 'match != null': Expected {platform: android, securityPatch: 2021-10-05, sdkInt: 31, release: 12, previewSdkInt: 0, incremental: 7679548, codename: REL, baseOS: , board: sargo, bootloader: b4s4-0.4-7617386, brand: google, device: sargo, display: SP1A.210812.015, fingerprint: google/sargo/sargo:12/SP1A.210812.015/7679548:user/release-keys, hardware: sargo, host: abfarm-release-rbe-64-00096, id: SP1A.210812.015, manufacturer: Google, model: Pixel 3a, product: sargo, supported32BitAbis: [armeabi-v7a, armeabi], supported64BitAbis: [arm64-v8a], supportedAbis: [arm64-v8a, armeabi-v7a, armeabi], tags: release-keys, type: user, isPhysicalDevice: true, androidId: b311e35cfc6e843a, systemFeatures: [android.hardware.sensor.proximity, com.verizon.hardware.telephony.lte, com.verizon.hardware.telephony.ehrpd, android.hardware.sensor.accelerometer, android.software.controls, android.hardware.faketouch, com.google.android.feature.D2D_CABLE
I/flutter (30619): #0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
I/flutter (30619): #1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
I/flutter (30619): #2      StackFrame._parseWebDebugFrame (package:flutter/src/foundation/stack_frame.dart:114:12)
I/flutter (30619): #3      StackFrame._parseWebFrame (package:flutter/src/foundation/stack_frame.dart:100:14)
I/flutter (30619): #4      StackFrame.fromStackTraceLine (package:flutter/src/foundation/stack_frame.dart:202:14)
I/flutter (30619): #5      MappedIterator.moveNext (dart:_internal/iterable.dart:391:20)
I/flutter (30619): #6      WhereTypeIterator.moveNext (dart:_internal/iterable.dart:869:20)
I/flutter (30619): #7      new _GrowableList._ofOther (dart:core-patch/growable_array.dart:198:26)
I/flutter (30619): #8      new _GrowableList.of (dart:core-patch/growable_array.dart:152:26)
I/flutter (30619): #9      new List.of (dart:core-patch/array_patch.dart:50:28)
I/flutter (30619): #10     Iterable.toList (dart:core/iterable.dart:388:12)
I/flutter (30619): #11     StackFrame.fromStackString (package:flutter/src/foundation/stack_frame.dart:95:10)
I/flutter (30619): #12     FlutterError.defaultStackFilter (package:flutter/src/foundation/assertion
I/flutter (30619): ----------------------------------------------------
I/flutter (30619): ----------------FIREBASE CRASHLYTICS----------------
I/flutter (30619): 'package:flutter/src/foundation/stack_frame.dart': Failed assertion: line 114 pos 12: 'match != null': Expected {platform: android, securityPatch: 2021-10-05, sdkInt: 31, release: 12, previewSdkInt: 0, incremental: 7679548, codename: REL, baseOS: , board: sargo, bootloader: b4s4-0.4-7617386, brand: google, device: sargo, display: SP1A.210812.015, fingerprint: google/sargo/sargo:12/SP1A.210812.015/7679548:user/release-keys, hardware: sargo, host: abfarm-release-rbe-64-00096, id: SP1A.210812.015, manufacturer: Google, model: Pixel 3a, product: sargo, supported32BitAbis: [armeabi-v7a, armeabi], supported64BitAbis: [arm64-v8a], supportedAbis: [arm64-v8a, armeabi-v7a, armeabi], tags: release-keys, type: user, isPhysicalDevice: true, androidId: b311e35cfc6e843a, systemFeatures: [android.hardware.sensor.proximity, com.verizon.hardware.telephony.lte, com.verizon.hardware.telephony.ehrpd, android.hardware.sensor.accelerometer, android.software.controls, android.hardware.faketouch, com.google.android.feature.D2D_CABLE
I/flutter (30619): #0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
I/flutter (30619): #1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
I/flutter (30619): #2      StackFrame._parseWebDebugFrame (package:flutter/src/foundation/stack_frame.dart:114:12)
I/flutter (30619): #3      StackFrame._parseWebFrame (package:flutter/src/foundation/stack_frame.dart:100:14)
I/flutter (30619): #4      StackFrame.fromStackTraceLine (package:flutter/src/foundation/stack_frame.dart:202:14)
I/flutter (30619): #5      MappedIterator.moveNext (dart:_internal/iterable.dart:391:20)
I/flutter (30619): #6      WhereTypeIterator.moveNext (dart:_internal/iterable.dart:869:20)
I/flutter (30619): #7      new _GrowableList._ofOther (dart:core-patch/growable_array.dart:198:26)
I/flutter (30619): #8      new _GrowableList.of (dart:core-patch/growable_array.dart:152:26)
I/flutter (30619): #9      new List.of (dart:core-patch/array_patch.dart:50:28)
I/flutter (30619): #10     Iterable.toList (dart:core/iterable.dart:388:12)
I/flutter (30619): #11     StackFrame.fromStackString (package:flutter/src/foundation/stack_frame.dart:95:10)
I/flutter (30619): #12     StackFrame.fromStackTrace (package:flutter/src/foundation/stack_frame.dar
I/flutter (30619): ----------------------------------------------------
```
the [referenced line](https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/foundation/stack_frame.dart#L114) points at this [issue](https://github.com/flutter/flutter/issues/52685) which at first sight seems to be web related,
but I'm running the app in debug mode on a pixel 3a

```
[✓] Flutter (Channel stable, 2.5.3, on macOS 11.6 20G165 darwin-x64, locale en-EE)
    • Flutter version 2.5.3 at /Users/francesco/fvm/versions/stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (3 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/francesco/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 13.1, Build version 13A1030d
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] VS Code (version 1.61.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.28.0

[✓] Connected device (3 available)
    • Pixel 3a (mobile) • 965AY0WP5C • android-arm64  • Android 12 (API 31)
    • macOS (desktop)   • macos      • darwin-x64     • macOS 11.6 20G165 darwin-x64
    • Chrome (web)      • chrome     • web-javascript • Google Chrome 95.0.4638.69

• No issues found!
```