Skip to content

[web] Another exception was thrown: Instance of 'minified:bG<void>' #53487

@Fabrice-TEICHTEIL-KOENIGSBUCH

Description

This issue happens only with release build. It works fine when running in debug mode.

[✓] Flutter (Channel beta, v1.15.17, on Mac OS X 10.15.3 19D76, locale en-HK)
    • Flutter version 1.15.17 at /Users/fabriceteichteil/flutter
    • Framework revision 2294d75bfa (3 weeks ago), 2020-03-07 00:28:38 +0900
    • Engine revision 5aff311948
    • Dart version 2.8.0 (build 2.8.0-dev.12.0 9983424a3c)

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/setup/#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, set ANDROID_SDK_ROOT to that location.
      You may also want to add it to your PATH environment variable.


[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.2.1, Build version 11B500
    • CocoaPods version 1.8.4

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/setup/#android-setup for detailed instructions).

[✓] VS Code (version 1.43.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.8.1

[✓] Connected device (2 available)
    • Chrome     • chrome     • web-javascript • Google Chrome 80.0.3987.149
    • Web Server • web-server • web-javascript • Flutter Tools

! Doctor found issues in 2 categories.

Chrome log for released version:

js_primitives.dart:49 Another exception was thrown: Instance of 'minified:bG<void>'

Safari log for released version:

[Log] Another exception was thrown: Instance of 'minified:bG<void>' (main.dart.js, line 3024, x3)
[Warning] [blocked] The page at https://.../index.html#/ was not allowed to display insecure content from org-dartlang-sdk:///sdk/lib/_internal/js_runtime/lib/js_primitives.dart.

[Error] Not allowed to request resource
[Error] Cannot load org-dartlang-sdk:///sdk/lib/_internal/js_runtime/lib/js_primitives.dart due to access control checks.

Profile run log:

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
js_primitives.dart:49 The following _CastError was thrown building Widget:
js_primitives.dart:49 CastError: Instance of 'ProcessFormTemplateImpl': type 'ProcessFormTemplateImpl' is not a subtype of
js_primitives.dart:49 type 'ProcessFileTemplate'
js_primitives.dart:49 
js_primitives.dart:49 Widget creation tracking is currently disabled. Enabling it enables improved error messages. It can
js_primitives.dart:49 be enabled by passing `--track-widget-creation` to `flutter run` or `flutter test`.
js_primitives.dart:49 
js_primitives.dart:49 When the exception was thrown, this was the stack:
js_primitives.dart:49     at Object.wrapException (http://localhost:54292/main.dart.js:3848:17)
js_primitives.dart:49     at Rti._generalAsCheckImplementation [as _as] (http://localhost:54292/main.dart.js:5003:15)
js_primitives.dart:49     at _ProcessLoadedWidgetState_build__closure.call$2 (http://localhost:54292/main.dart.js:138818:38)
js_primitives.dart:49     at BlocBuilder.builder$2 (http://localhost:54292/main.dart.js:117900:27)
js_primitives.dart:49     at _BlocBuilderBaseState.build$1 (http://localhost:54292/main.dart.js:117944:27)
js_primitives.dart:49     at StatefulElement.build$0 (http://localhost:54292/main.dart.js:108277:37)
js_primitives.dart:49     at StatefulElement.performRebuild$0 (http://localhost:54292/main.dart.js:108171:23)
js_primitives.dart:49     at StatefulElement.performRebuild$0 (http://localhost:54292/main.dart.js:108296:13)
js_primitives.dart:49     at StatefulElement.rebuild$0 (http://localhost:54292/main.dart.js:108087:12)
js_primitives.dart:49     at StatefulElement._firstBuild$0 (http://localhost:54292/main.dart.js:108162:12)
js_primitives.dart:49 
js_primitives.dart:49 ════════════════════════════════════════════════════════════════════════════════════════════════════
js_primitives.dart:49 Another exception was thrown: CastError: Instance of 'ProcessFormTemplateImpl': type 'ProcessFormTemplateImpl' is not a subtype of type 'ProcessFileTemplate'

Don't understand the error as ProcessFormTemplateImpl is indeed a subtype of type ProcessFileTemplate:

abstract class ProcessFormTemplate implements ProcessFileTemplate, DesignableTemplate
class ProcessFormTemplateImpl extends ProcessFileTemplateImpl implements ProcessFormTemplate

This problem happens with both beta and dev channels.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: releaseChallenges faced when attempting to productionize an appc: crashStack traces logged to the consoleengineflutter/engine related. See also e: labels.platform-webWeb applications specifically

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions