-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Tutorial sample does not work under Linux #198
Comments
Does it work on Android/Mojo? |
Yes, it works on Android. |
Crazy. I'm going to rework this tutorial soon to use the material widgets so you get something beautiful in the end. |
Can you attach the output of debugDumpApp() and debugDumpRenderTree() as it appears one second after rendering? (i.e. create a one-second timer, then call those functions from there) You'll need to import flutter/rendering.dart for debugDumpRenderTree(). |
I'm not allowed to upload a .txt file, so here it is inline:
|
That all looks fine... How tall is your window? Are you sure you're seeing the whole 320.0x640.0 canvas? Does anything render if you set debugPaintSizeEnabled to true at the top of your main()? |
You may have to use checked mode to use debugPaintSizeEnabled. Actually, in general I highly recommend using checked mode. See if you're hitting any asserts. |
If I set One small (unrelated) issue - in box_painter.dart, line 310, this line asserts:
However, I don't pass in If I comment out that assert, then it runs cleanly. |
Please file a separate bug for that assert. Thanks. If merely setting debugPaintSizeEnabled makes things work, this is probably a Skia-level bug. @chinmaygarde may have ideas. If it's Linux-specific, though, I don't think we want to spend too many cycles looking at this. |
We would need to capture an SkPicture trace. Unfortunately, the tracing controller on Linux does not know where to place these traces (its a platform specific path). I can try to figure out whats going on after I am done with the precompiled snapshotting stuff. If in a hurry, the platform needs to set |
This problem no longer happens. Closing issue. |
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 |
Tuesday Oct 13, 2015 at 20:05 GMT
Originally opened as https://github.com/flutter/engine/issues/1597
I realize that Linux/Mojo isn't officially supported, but I was concerned that this was indicative of a more general problem.
I'm running the sample code in the tutorial. If I take out the Center widget, it works. If I put in the center widget, it just shows a black screen. See the comments below in DemoHome.build().
The text was updated successfully, but these errors were encountered: