Open allanchao opened 4 years ago
Hi @allanchao
I cannot reproduce this issue on latest beta
channel.
Can you upgrade to beta
and try again
flutter channel beta
flutter upgrade --force
flutter doctor -v
Hello, I followed your instructions to upgrade to beta, and was able to reproduce the error on my machine. Anything else I can do? Is there like a hot-reload-with-verbose-log command that I can run?
By the way, usually what happens, is I can use hot reload 1-3 times successfully before it suddenly stops working. As mentioned previously, it has no relation to whether I change anything in the code or not, or the timing of the reloads.
Performing hot reload...
Syncing files to device Pixel XL...
Hot reload received invalid response: {type: ReloadReport, success: false, notices: [{type: ReasonForCancelling, message: Error while starting Kernel isolate task}]}
[√] Flutter (Channel beta, 1.21.0-9.2.pre, on Microsoft Windows [Version 6.3.9600], locale en-US)
• Flutter version 1.21.0-9.2.pre at C:\_Data\FlutterSDK\flutter
• Framework revision 81a45ec2e5 (33 hours ago), 2020-08-27 14:14:33 -0700
• Engine revision 20a9531835
• Dart version 2.10.0 (build 2.10.0-7.3.beta)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at C:\Users\AA\AppData\Local\Android\sdk
• Platform android-29, build-tools 29.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
• All Android licenses accepted.
[√] Android Studio (version 3.6)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 48.1.1
• Dart plugin version 192.8052
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
[√] IntelliJ IDEA Community Edition (version 2019.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.3.4
• Flutter plugin version 45.0.2
• Dart plugin version 193.6911.31
[√] VS Code, 64-bit edition (version 1.48.2)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.13.2
[√] Connected device (1 available)
• Pixel XL (mobile) • HT7650201635 • android-arm64 • Android 10 (API 29)
• No issues found!
Hi @allanchao
Hmm, please try one more time with the master
channel.
Upgrade to master
and try again please:
flutter channel master
flutter upgrade --force
flutter doctor -v
I followed your instructions to upgrade to master, and tried it out, and it still bugged out.
bug
Hot reload received invalid response: {type: ReloadReport, success: false, notices: [{type: ReasonForCancelling, message: Error while starting Kernel isolate task}]}
flutter doctor
[√] Flutter (Channel master, 1.22.0-10.0.pre.39, on Microsoft Windows [Version 6.3.9600], locale en-US)
• Flutter version 1.22.0-10.0.pre.39 at C:\_Data\FlutterSDK\flutter
• Framework revision a8281e31af (2 hours ago), 2020-09-01 10:57:59 -0700
• Engine revision 165abef0a2
• Dart version 2.10.0 (build 2.10.0-77.0.dev)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at C:\Users\AA\AppData\Local\Android\sdk
• Platform android-29, build-tools 29.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
• All Android licenses accepted.
[√] Android Studio (version 3.6)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 48.1.1
• Dart plugin version 192.8052
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
[√] IntelliJ IDEA Community Edition (version 2019.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.3.4
• Flutter plugin version 45.0.2
• Dart plugin version 193.6911.31
[√] VS Code, 64-bit edition (version 1.48.2)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.13.2
[√] Connected device (1 available)
• Pixel XL (mobile) • HT7650201635 • android-arm64 • Android 10 (API 29)
• No issues found!
I also noticed something new this time. I don't know if it's always been the case and I just noticed it, or if it's new, but sometimes I do the hot reload, and it appears in the console as if it succeeded, but in reality it did not.
Performing hot reload...
Syncing files to device Pixel XL...
Reloaded 29 of 2171 libraries in 4,824ms.
Despite the message, it did not reload. Visually nothing changed on the app running on the device.
I'm not sure if this is relevant, but I saw "analysis server terminated" and clicked on view logs, and this came up. I wonder if the stream being destroyed has something to do with the hot reload failing? Also, I can confirm this error happens in both visual studio code and android studio (same flutter sdk on master channel).
[1:47:21 PM] [General] [Error] Cannot call write after a stream was destroyed
Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
at doWrite (_stream_writable.js:414:19)
at writeOrBuffer (_stream_writable.js:402:5)
at Socket.Writable.write (_stream_writable.js:302:11)
at b.sendMessage (c:\Users\AA\.vscode\extensions\dart-code.dart-code-3.13.2\out\dist\extension.js:1:152985)
at b.sendMessage (c:\Users\AA\.vscode\extensions\dart-code.dart-code-3.13.2\out\dist\extension.js:1:147394)
at c:\Users\AA\…
Same error
Performing hot reload...
Syncing files to device LG H873...
Hot reload received invalid response: {type: ReloadReport, success: false, notices: [{type: ReasonForCancelling, message: Error while starting Kernel isolate task}]}
Likely to happen at the second hot reload after restart
The particular error message is https://github.com/dart-lang/sdk/blob/30897929fc012602dc540a87fa1cb9b5e7db368d/runtime/vm/kernel_isolate.cc#L1027
It looks like this happens if the kernel isolate fails to start. There are some more logs in there that get written with an OSError - perhaps they show up if you look at the full adb logcat
stream on Android or the logs from running through Xcode if on iOS while this happens.
The particular error message is https://github.com/dart-lang/sdk/blob/30897929fc012602dc540a87fa1cb9b5e7db368d/runtime/vm/kernel_isolate.cc#L1027
It looks like this happens if the kernel isolate fails to start. There are some more logs in there that get written with an OSError - perhaps they show up if you look at the full
adb logcat
stream on Android or the logs from running through Xcode if on iOS while this happens.
If you feel like it
Is there any hope on this issue? Even a workaround would be great - anything to get hot reload working properly. Looks like it's affecting some proportion of Flutter users.
There is unfortunately not enough information in those logs to diagnose any issue @duzenko .
@allanchao when you say that performing a hot restart works, does it keep working after that or do subsequent hot reloads hit the same issue?
Also the logs you've included are of some IDE processes and aren't really relevant in this case. Verbose logs of the tool when hot reload doesn't work would be the most helpful, along with logcat if that contains any relevant errors
After performing a hot restart, the app will immediately work. Subsequent hot reloads are equally affected by the issue (doesn't matter if changes are made, there is a random chance it will work or fail to reload).
What is this? How do I get this?
Verbose logs of the tool when hot reload doesn't work would be the most helpful
If you run from the command line, it is as simple as passing -v
to the command like: flutter run -v
There is unfortunately not enough information in those logs to diagnose any issue @duzenko .
@allanchao when you say that performing a hot restart works, does it keep working after that or do subsequent hot reloads hit the same issue?
Also the logs you've included are of some IDE processes and aren't really relevant in this case. Verbose logs of the tool when hot reload doesn't work would be the most helpful, along with logcat if that contains any relevant errors
Here's another one
2020-10-27 10:44:26.155 1455-2609/? V/WifiServerServiceExt: checkPollTimer Cnt= 0 rssi =-39 threshold=-100
2020-10-27 10:44:26.846 1091-1412/? E/PersistableBundle: Failed at frameworks/native/libs/binder/PersistableBundle.cpp:160 (erase)
2020-10-27 10:44:26.847 1091-1412/? E/PersistableBundle: Failed at frameworks/native/libs/binder/PersistableBundle.cpp:160 (erase)
2020-10-27 10:44:26.867 1455-2595/? W/ArrayMap: New hash -1569100599 is before end of array hash 147020819 at index 1 key rmnet_data0
java.lang.RuntimeException: here
at android.util.ArrayMap.append(ArrayMap.java:547)
at android.os.Parcel.readArrayMapInternal(Parcel.java:3046)
at android.os.BaseBundle.unparcel(BaseBundle.java:257)
at android.os.BaseBundle.size(BaseBundle.java:301)
at com.android.server.NetworkManagementService$NetdTetheringStatsProvider.getTetherStats(NetworkManagementService.java:2376)
at com.android.server.NetworkManagementService.getNetworkStatsTethering(NetworkManagementService.java:2413)
at com.android.server.net.NetworkStatsService.getNetworkStatsTethering(NetworkStatsService.java:1536)
at com.android.server.net.NetworkStatsService.getNetworkStatsUidDetail(NetworkStatsService.java:1465)
at com.android.server.net.NetworkStatsService.recordSnapshotLocked(NetworkStatsService.java:1127)
at com.android.server.net.NetworkStatsService.performPollLocked(NetworkStatsService.java:1208)
at com.android.server.net.NetworkStatsService.performPoll(NetworkStatsService.java:1182)
at com.android.server.net.NetworkStatsService.-wrap3(Unknown Source:0)
at com.android.server.net.NetworkStatsService$HandlerCallback.handleMessage(NetworkStatsService.java:1563)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:164)
at android.os.HandlerThread.run(HandlerThread.java:65)
2020-10-27 10:44:26.868 1455-2595/? W/ArrayMap: New hash 113213102 is before end of array hash 147020819 at index 2 key wlan0
java.lang.RuntimeException: here
at android.util.ArrayMap.append(ArrayMap.java:547)
at android.os.Parcel.readArrayMapInternal(Parcel.java:3046)
at android.os.BaseBundle.unparcel(BaseBundle.java:257)
at android.os.BaseBundle.size(BaseBundle.java:301)
at com.android.server.NetworkManagementService$NetdTetheringStatsProvider.getTetherStats(NetworkManagementService.java:2376)
at com.android.server.NetworkManagementService.getNetworkStatsTethering(NetworkManagementService.java:2413)
at com.android.server.net.NetworkStatsService.getNetworkStatsTethering(NetworkStatsService.java:1536)
at com.android.server.net.NetworkStatsService.getNetworkStatsUidDetail(NetworkStatsService.java:1465)
at com.android.server.net.NetworkStatsService.recordSnapshotLocked(NetworkStatsService.java:1127)
at com.android.server.net.NetworkStatsService.performPollLocked(NetworkStatsService.java:1208)
at com.android.server.net.NetworkStatsService.performPoll(NetworkStatsService.java:1182)
at com.android.server.net.NetworkStatsService.-wrap3(Unknown Source:0)
at com.android.server.net.NetworkStatsService$HandlerCallback.handleMessage(NetworkStatsService.java:1563)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:164)
at android.os.HandlerThread.run(HandlerThread.java:65)
2020-10-27 10:44:27.058 2689-2689/? I/NetworkController.WifiSignalController: Change in state to: connected=true,enabled=true,level=3,inetCondition=1,iconGroup=IconGroup(Default Wi-Fi Icons),activityIn=true,activityOut=true,rssi=-53,,ssid="52b",badgeEnum=0,isTransient=false,isGigaWiFi=false,isAttWifiCall=false,detailedState=CONNECTED
2020-10-27 10:44:27.339 1455-2642/? D/WifiWatchdogStateMachine: EVENT_CHECK_IMS_CALL_STATE received
2020-10-27 10:44:27.339 1455-2642/? D/WifiWatchdogStateMachine: OnlineWatchState handleRssiChange() imscallstate : 0
I'm not crazy about flutter run -v
because I need the debugger to work too
@allanchao This is only happening for Android platfrom, right?
And if yes, can you check your build.gradle
and post it here?
same problem
same problem after upgrading to BigSur ( Hotreload worked one time ((((
Same problem here. Following.
Running On Mac os BigSur
Performing hot reload...
Syncing files to device sdk gphone x86...
Hot reload received invalid response: {type: ReloadReport, success: false, notices: [{type: ReasonForCancelling, message: Error while starting Kernel isolate task}]}
Works fine for IOS device.
I can confirm that this issue is present in iOS:
The above is in the span of 3 minutes.
On MacOS Big Sur reproducing the same error, but getting no success on any hotreloads, have to fully reload app each time i make a change. Hot reload received invalid response: {type: ReloadReport, success: false, notices: [{type: ReasonForCancelling, message: Error while starting Kernel isolate task}]} On Flutter Stable 1.22.4 Flutter channels: master dev beta
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) • Android SDK at /Users/Tanner/Library/Android/sdk • Platform android-29, build-tools 28.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 12.2, Build version 12B45b • CocoaPods version 1.10.0
[✓] Android Studio (version 4.0) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 45.1.1 • Dart plugin version 192.7761 • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.51.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.16.0
[✓] Connected device (1 available) • iPhone 12 Pro Max (mobile) • D04DE642-1820-494F-AE4C-08FC51C949C5 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-2 (simulator)
• No issues found!
Changes I made recently: Recently Updated to MacOS BigSur Recently updated to new Versions of FirebaseCore,cloud-Firestore,FirebaseStorage,FirebaseAuth Was not seeing this issue until yesterday after making Firebase update.
Seems like OS X Big Sur had a really bad impact on you guys. I've started to experience this one, plus failure to run unit tests: https://github.com/flutter/flutter/issues/70940 after the upgrade to Big Sur.
Lesson learned - be more conservative when upgrading OS X version if you do flutter development as team behind it doesn't test on beta version of OS X (which isn't bad thing in itself).
Please let us know if there is any potential fix on the master stream, also if there is anything we as community can do to help you identify the problem.
Just as an update, I have switched to the latest master channel and it sorta kinda works. It failed for the first time, the error suggested to use "Hot Restart" instead. I did it and after that, subsequent hot reloads are working.
Thanks guys, looking forward to a permanent fix landing in prod!
This also happens on Catalina. I think this relate to Android Studio. I dont have this issue in previous version of Android Studio. Also Flutter plugin and Dart plugin are not detected.
@tuononh Looking at all the logs here, people have different versions of Android Studio (and VS Code) installed, and they are all experiencing this issue. In addition, this issue is happening on both iOS and Android, so it is very unlikely that this has anything to do with Android Studio. What more, most people don't use Android Studio as an IDE. (Not when they have VS Code installed. 😄 )
Same problem here... And all TextFields display "!" for each letters...
OS: macOS Big Sur Flutter channel: stable
Works perfectly on physical device.
Same issue!
I'm also having the issue (only hot reload error, not exclamation marks), though the message is slightly different in my case:
Performing hot reload...
Syncing files to device iPhone SE (2nd generation)...
Hot reload was rejected:
Error while starting Kernel isolate task.
Try performing a hot restart instead.
I'm running on MacOS Big Sur 11.0.1 with Simulator of iPhone SE (iOS 14.2), however the last time I was running multiple hot reloads, which was on Thursday 03.12.2020, there were no problems at all. Today I updated Flutter plugin for Android Studio (which I believe shares the same codebase with the one for IntelliJ) and I suspect it's related to this update. I tried updating Flutter to current version on master, but that actually left me with more errors when trying hot restart after unsuccessful hot reload - before at least the restart was going without issues, now it's throwing unhelded exception with this stacktrace:
Unhandled exception:
root::<path_to_page_in_my_project>::EventListPage::@getters::package:flutter/src/widgets/widget_inspector.dart::_location is already bound
#0 CanonicalName.bindTo (package:kernel/canonical_name.dart:192:7)
#1 Class.computeCanonicalNames (package:kernel/ast.dart:1201:51)
#2 Library.computeCanonicalNames (package:kernel/ast.dart:559:14)
#3 Component.computeCanonicalNamesForLibrary (package:kernel/ast.dart:9819:13)
#4 Component.computeCanonicalNames (package:kernel/ast.dart:9781:7)
#5 sortComponent (package:vm/kernel_front_end.dart:679:13)
#6 FrontendCompiler.writeDillFile (package:frontend_server/frontend_server.dart:656:5)
#7 FrontendCompiler.recompileDelta (package:frontend_server/frontend_server.dart:766:13)
<asynchronous suspension>
the Dart compiler exited unexpectedly.
the Dart compiler exited unexpectedly.
the Dart compiler exited unexpectedly.
After that I loose connection to the device.
My flutter doctor -v
log:
[✓] Flutter (Channel master, 1.25.0-5.0.pre.90, on macOS 11.0.1 20B29 darwin-x64, locale pl-PL)
• Flutter version 1.25.0-5.0.pre.90 at /Users/mnajborowski/flutter
• Framework revision a17bbb9bbe (9 hours ago), 2020-12-05 07:58:03 -0500
• Engine revision 6491c7518f
• Dart version 2.12.0 (build 2.12.0-120.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/mnajborowski/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: /Users/mnajborowski/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.6953283/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.2, Build version 12B45b
• CocoaPods version 1.10.0
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• Android Studio at /Users/mnajborowski/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.6953283/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 1.8.0_242-release-1644-b3-6915495)
[✓] IntelliJ IDEA Ultimate Edition (version 2020.3)
• IntelliJ at /Users/mnajborowski/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
• 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
[✓] VS Code (version 1.51.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.16.0
[✓] Connected device (2 available)
• iPhone SE (2nd generation) (mobile) • 6888A08B-7962-4D59-A9EF-C44B2EC04D85 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-2 (simulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 87.0.4280.88
• No issues found!
Switched to master channel
for production, could not get hot reload
to work after upgrading to Big Sur.
I am using latest Flutter & Dart versions for SDK and Android Studio plugins.
I tried everything: flutter clean, invalidate cache, reboot mac, reinstall SDK, clear pub cache...
After hours I decided to switch back to beta channel
, hot reload works, sometimes I get this error:
Hot reload was rejected:
Error while starting Kernel isolate task.
Try performing a hot restart instead.
Here is my flutter doctor -v
[✓] Flutter (Channel beta, 1.24.0-10.2.pre, on macOS 11.0.1 20B50 darwin-x64, locale en-GB)
• Flutter version 1.24.0-10.2.pre at /Users/houdayec/Development/flutter
• Framework revision 022b333a08 (3 weeks ago), 2020-11-18 11:35:09 -0800
• Engine revision 07c1eed46b
• Dart version 2.12.0 (build 2.12.0-29.10.beta)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/houdayec/Development/android
• Platform android-30, build-tools 30.0.3
• ANDROID_HOME = /Users/houdayec/Development/android
• ANDROID_SDK_ROOT = /Users/houdayec/Development/android
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.2, Build version 12B45b
• CocoaPods version 1.10.0
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• 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 1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.51.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.17.0
[✓] Connected device (3 available)
• Mi A2 Lite (mobile) • 08ea1b6c0705 • android-arm64 • Android 10 (API 29)
• Web Server (web) • web-server • web-javascript • Flutter Tools
• Chrome (web) • chrome • web-javascript • Google Chrome 87.0.4280.88
• No issues found!
ssss imilar question
Any update on it? :(
Error: ⣻Hot reload received invalid response: {type: ReloadReport, success: false, notices: [{type: ReasonForCancelling, message: Error while starting Kernel isolate task}]}
The problem because of Anti Virus Application. Attached screenshot for our reference.
I am using Avira Anti Virus software, by default the Real-Time Protection is turned on. But, after I switched-off this options, the Flutter Hot Reload started working.
It's very risky to continue without Real-Time protection. I need to find a right way to fix it.
I had the same problem until I turned off Avira's Real-time Protection, too. It seems to work so far.
I had the same problem until I turned off Avira's Real-time Protection, too. It seems to work so far.
Thanks a lot, solved my problem as well. This seems to be an issue
Same issue here. Problem presented after upgrade my Macbook pro to Big Sur. I tried all flutter channels and many versions. Seems to be related to the antivirus (in my case ESET).
Current Workaround: disable realtime protection.
This issue is still around. I can always replicate it on a simulator, for example, iPhone X 14.3.
I'm not using any antivirus on my Mac, and am still having this issue with the iOS Simulator.
I'm also having the hot reload problem on a Mac (Big Sur 11.2, IntelliJ 2020.3, flutter latest beta). Flutter doctor reports no problems.
Others have mentioned the possible involvement of realtime protection, so it might be worth mentioning that I use Sophos Home, which has a realtime protection feature. I'm not sure this is the culprit, but instead turning off that feature altogether, I am able to whitelist specific processes. To test this proposition, could someone suggest which binaries should I whitelist?
I use Sophos Home as Well. I have had some success having these blacklist. but I am not completely repaired yet. I have a open case with sophos for investigation. Able to hot reload every 3-5 times i do cmd+S or hot reload button. helpful but still broken.
vscode.app /.vscode/ /Applications/Xcode.app /Applications/Visual Studio Code.app /.vscode /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/Resources/WindowServer /FlutterDev
After I uninstalled Sophos, the hot update worked normally. So it is certain that realtime protection is the culprit.
I turned off all realtime protection in Sophos to see if that would help, but it did not. I would rather not remove Sophos altogether but it sounds like I may have to, at least in the short run.
I have turned off real time antivirus protection, still same issue. It works for sometime after stopping and starting application, but it appears randomly and then its continuous till next time I stop the application.
@wpunit13 what OS are you in?
Hello I am MacOS. Using a vscode and iphone simulator.
For other Sophos users, I got this message from their support team. Will keep posted on wether this new build in March addresses the issue on MacOS using Sophos
"development team yesterday and we believe this issue is being caused by an issue we identified with the SophosWebExtension which was introduced in Sophos Home 10.0.2. Development has discovered a few issues with this extension, especially around CPU/Memory usage, and are addressing these currently. They expect a build to be available in mid-march. It will be version 10.0.4." - Sophos Support
I removed Sophos Home from my Mac and hot reload works again.
I had the same problem until I turned off Avira's Real-time Protection, too. It seems to work so far.
Thanks!
同样遇到,杀毒软件惹的祸,关闭杀毒软件解决
I translated your comment with Google translate: "If you encounter the same problem caused by anti-virus software, turn off the anti-virus software to solve."
That is not necessarily true, as I turned off mine and the problem persisted. But after I removed Sophos entirely the problem went away.
If anyone else is using Sophos, I've been told that their next patch will fix this.
Looks like this occurs on the other side of the OSes (Windows and Android) too.
Using:
7891006299
, Engine revision ae90085a84
And looks like the bug fixed itself, all I had to do was to rebuild the project.
Steps to Reproduce
Expected results:
Expecting hot reload to work
Actual results:
Receive this error about half of the time:
Logs
``` ``` ``` [√] Flutter (Channel stable, 1.20.2, on Microsoft Windows [Version 6.3.9600], locale en-US) • Flutter version 1.20.2 at C:\_Data\FlutterSDK\flutter • Framework revision bbfbf1770c (2 weeks ago), 2020-08-13 08:33:09 -0700 • Engine revision 9d5b21729f • Dart version 2.9.1 [√] Android toolchain - develop for Android devices (Android SDK version 29.0.3) • Android SDK at C:\Users\AA\AppData\Local\Android\sdk • Platform android-29, build-tools 29.0.3 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04) • All Android licenses accepted. [√] Android Studio (version 3.6) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin version 48.1.1 • Dart plugin version 192.8052 • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04) [√] IntelliJ IDEA Community Edition (version 2019.3) • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.3.4 • Flutter plugin version 45.0.2 • Dart plugin version 193.6911.31 [√] VS Code, 64-bit edition (version 1.48.2) • VS Code at C:\Program Files\Microsoft VS Code • Flutter extension version 3.13.2 [√] Connected device (1 available) • Pixel XL (mobile) • HT7650201635 • android-arm64 • Android 10 (API 29) • No issues found! ```Please let me know if there's something else I can do to help diagnose this issue. I can reproduce it consistently on my machine.
Performing a hot restart after receiving the error successfully re-runs the app. The error happens regardless of if I change any files or not, or how long it has been since running the app.