New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explain that a grey screen on release means an error and how to find the error #7773
Comments
It looks like you are catching an error right at the start. Have you tried running the release build through the IDE on your physical device? |
I created in Xcode a new Schema with the build configuration release. Now I'm getting this error: 2020-03-29 12:47:02.611007+0200 Runner[537:47758] Metal API Validation Enabled |
I started getting the exact same behavior on Android today. Running locally on device is fine but building a signed bundle or apk from Android Studio produces a grey screen on launch. What's even weirder is that all my bundles were working until noon today when suddenly all newly generated bundles got this on startup. Tried both on |
Update: solved for me.Check out @lukepighetti's comment below. Turns out it was an issue on my side. Original commentAnyone who also experiences this (like me), don't forget to add a +1 (👍) on the top comment. This is the metric the Flutter team uses to prioritize problems/issues. If it helps, here is a full verbose device log of this happening on Android (app ID is Important note: This issue only happens if I install a release version on a device that didn't have the app installed. If I install debug first, followed by a release build, it works fine. Happens on both
name: "jasje_leggen"
description: "Een app voor het bijhouden van scores tijdens klaverjassen."
publish_to: "none"
version: "0.0.3+3"
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
animations: ^1.0.0+5
cupertino_icons: "^0.1.3"
flutter_svg: ^0.17.4
font_awesome_flutter: "^8.8.1"
freezed_annotation: "^0.7.1"
get_it: ^4.0.2
numberpicker: ^1.2.0
package_info: ^0.4.0+17
rxdart: "^0.24.0"
state_persistence: "^0.0.7"
time: "^1.3.0"
dev_dependencies:
... |
You know the red error screen that you get when developing? When you build in release mode flutter replaces that with a gray screen. |
Thank you @lukepighetti. |
I am also facing this .Any solution |
I'm getting this problem, but only when the code is run externally on a webpage of mine. When the release build is run locally, no issue occurs. However, when run on the website, grey screens are produced for parts of the application. How would I go about identifying the issues, since I am not getting any console issues in the chrome developer tools? EDIT: My issue seemed to be with HTTPS, when I dropped the site to HTTP it was functional. |
I have the same problem, It happens when I try to generate a release. flutter run --release I/flutter (17345): Another exception was thrown: Instance of 'DiagnosticsProperty' |
I went back to debug mode once and found the red error message, thank you. |
I've come across this issue, but this depends on the code. For me, with CacheNetworkImage issue#404, I passed wrong |
It's a Flutter crash.I had the same issue and solved it by installing SENTRY error logging in my flutter project. Here is a link to flutter official documentation about SENTRY: P.S. P.P.S <manifest xlmns:android...>
...
<uses-permission android:name="android.permission.INTERNET" />
<application ...
</manifest> Good luck! |
Triage: This looks like an uncaught Dart exception and not an engine crash. cc @Hixie for thoughts on better surfacing these errors. |
Yeah, this is working as intended. Not sure exactly what we can do to make it better. When we had it show an error message, people complained that we were showing error messages to their users... |
I completely understand. I can't think of anything better either. Perhaps adding something to the FAQ or official docs explaining the grey parts will make people realize the fact they have an issue in their app sooner. |
Yeah, we should make this clearer in our docs for sure. |
Allow us to register a default error widget that the framework uses in release? |
Wow! Cool! Thanks so much for the link. It looks like you can override it like this? ErrorWidget.builder = ((e) {
return Center(
child: Text("There was an error!"),
);
}); |
I faced this issue when building on Flutter web What's surprising is: When reading the dev console, there are no errors. |
This issue looks like it can be moved to the website repo. Yes, @Hixie? |
I disagree @sfshaza2. I believe the docs should be clearer about the reason and situations in which a grey screen may appear. I think it'd be great if the docs also included a side-note that the |
I am also getting the same grey screen on start just after the splash screen...is the error at the start or it can be anywhere in the app? Does assertions also cause this grey screen? Or only error? its shoes like this
|
With the help of ErrorWidget, now I can see the error message on the screen (
|
@hntan I am also using I found it in log cat what was the error:-
How to solve this? |
@jagadish-pattanaik Yes I think, so either adding the |
Thanks broo....it worked for me....you saved me man...I was trying from 5 days |
Thank you very much, I couldn't catch this error with the error widget or otherwise. Saved the day ! |
I Just replaced the removed Expanded widget and it solved my problem. There might be some widget causing the problem. |
it;s also happen when user deny storage/location permission in android from device settings |
What widgets are you using? |
We are also experiencing the same thing but logging in release mode is a bit no-no for us. For local crash recording you can use flutter_pipeline. flutter_pipeline can record crashes locally for easy debugging in release mode. Good Day! |
I'll noted it, thanks @lukepighetti |
Hello guys,
I have made an App which works on the simulator and also on my iPhone (connected with a cable) but when I upload the app via Xcode to appstoreconnect and install the app via TestFlight is the screen grey.
I have made this experience with 2 Flutter apps.
App 1:
App 2:
The text was updated successfully, but these errors were encountered: