Repository navigation
[Platform-Web] App crashes with Expected a value of type 'FontCollectionNamespace', but got one of type 'Null' #123794
Copy link
Copy link
Closed
Labels
a: debuggingDebugging, breakpoints, expression evaluationDebugging, breakpoints, expression evaluationc: crashStack traces logged to the consoleStack traces logged to the consolec: regressionIt was better in the past than it is nowIt was better in the past than it is nowfound in release: 3.9Found to occur in 3.9Found to occur in 3.9has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyWeb applications specificallyr: duplicateIssue is closed as a duplicate of an existing issueIssue is closed as a duplicate of an existing issue
Description
Steps to Reproduce
- Create a new web project with IntelliJ with
masteron 8c5d223 - Run it with Chrome (web)
There is an error:
Rejecting promise with error: Expected a value of type 'FontCollectionNamespace', but got one of type 'Null'
_js_helper.TypeErrorImpl.new
flutter doctor -v
[!] Flutter (Channel master, 3.9.0-19.0.pre.71, on Microsoft Windows [Version 10.0.19045.2728], locale de-DE)
• Flutter version 3.9.0-19.0.pre.71 on channel master at c:\use\flutter
! Upstream repository https://github.com/asashour/flutter is not a standard remote.
Set environment variable "FLUTTER_GIT_URL" to https://github.com/asashour/flutter to dismiss this error.
• Framework revision 8c5d223bab (47 minutes ago), 2023-03-30 09:19:14 -0700
• Engine revision 7d190aa0e1
• Dart version 3.0.0 (build 3.0.0-384.0.dev)
• DevTools version 2.22.2
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform
update checks and upgrades.
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at C:\Users\\AppData\Local\Android\Sdk
• Platform android-33, build-tools 33.0.0
• ANDROID_SDK_ROOT = C:\Users\\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio1\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.4.4)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.4.33213.308
• Windows 10 SDK version 10.0.22000.0
[√] Android Studio (version 2022.1)
• Android Studio at C:\Program Files\Android\Android Studio1
• 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.15+0-b2043.56-9505619)
[√] IntelliJ IDEA Community Edition (version 2022.3)
• IntelliJ at C:\Users\\AppData\Local\JetBrains\Toolbox\apps\IDEA-C\ch-0\223.8836.41
• Flutter plugin version 72.1.4
• Dart plugin version 223.8888
[√] IntelliJ IDEA Community Edition (version 2023.1)
• IntelliJ at C:\Users\\AppData\Local\JetBrains\Toolbox\apps\IDEA-C\ch-0\231.8109.175
• Flutter plugin version 72.1.5
• Dart plugin version 231.8109.91
[√] IntelliJ IDEA Ultimate Edition (version 2023.1)
• IntelliJ at C:\Users\\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\231.8109.175
• 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
• Chrome (web) • chrome • web-javascript • Google Chrome 111.0.5563.147
• Edge (web) • edge • web-javascript • Microsoft Edge 111.0.1661.44
[√] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
a: debuggingDebugging, breakpoints, expression evaluationDebugging, breakpoints, expression evaluationc: crashStack traces logged to the consoleStack traces logged to the consolec: regressionIt was better in the past than it is nowIt was better in the past than it is nowfound in release: 3.9Found to occur in 3.9Found to occur in 3.9has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyWeb applications specificallyr: duplicateIssue is closed as a duplicate of an existing issueIssue is closed as a duplicate of an existing issue
Activity
AleksandrUkrainets commentedon Mar 31, 2023
I have the same error today.
I have created new project in the VS Code.
danagbemava-nc commentedon Mar 31, 2023
The issue is reproducible on the
masterbut not onbetaorstableonly onwebindebugmode. It worked fine for me inreleaseandprofilemode.Steps to reproduce (on master channel)
flutter create fooand cd into fooflutter run -d chromeError logs are shown above
flutter doctor -v(master)
Arun789788 commentedon Mar 31, 2023
[-]Expected a value of type 'FontCollectionNamespace', but got one of type 'Null'[/-][+][Platform-Web] App crashes with "Expected a value of type 'FontCollectionNamespace', but got one of type 'Null'"[/+][-][Platform-Web] App crashes with "Expected a value of type 'FontCollectionNamespace', but got one of type 'Null'"[/-][+][Platform-Web] App crashes with `Expected a value of type 'FontCollectionNamespace', but got one of type 'Null'`[/+]kevmoo commentedon Mar 31, 2023
Duplicate of #123737
Should be fixed at latest HEAD
asashour commentedon Mar 31, 2023
I am afraid it is not fixed in
HEAD(now d5e25f2)RomanIvn commentedon Apr 2, 2023
Just updated flutter and unable to debug web apps. Any way to manually bypass the issue for now? (without downgrading flutter)
[√] Flutter (Channel main, 3.9.0-20.0.pre.84, on Microsoft Windows [Version 10.0.19044.2728], locale he-IL) • Flutter version 3.9.0-20.0.pre.84 on channel main at C:\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision cb19c0d66f (80 minutes ago), 2023-04-02 03:52:34 -0400 • Engine revision fc9c1504f9 • Dart version 3.0.0 (build 3.0.0-397.0.dev) • DevTools version 2.22.2kevmoo commentedon Apr 2, 2023
I don't think there's a way to work-around. We have a PR pending w/ a fix.
kevmoo commentedon Apr 2, 2023
@RomanIvn – try deleting your
flutter/bin/cache/directorythepresencecompany commentedon Apr 3, 2023
Same issue, is there no work around to debug web apps?
asashour commentedon Apr 3, 2023
As mentioned in #123794 (comment), deleting
flutter/bin/cache/works with me, till #123915 is merged.github-actions commentedon Apr 17, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.