My Windows builds show only black screen on other PC's.What am I missing here ?

240 views
Skip to first unread message

gkhn dnc

unread,
Sep 23, 2019, 8:11:54 AM9/23/19
to Desktop Embedding for Flutter
Topic

Stuart Morgan

unread,
Sep 23, 2019, 8:51:40 AM9/23/19
to gkhn dnc, Desktop Embedding for Flutter
Without knowing what you are doing exactly, it's hard to guess why it's not working.

What are you copying to the to the other machines exactly? Have you tried running from a console to see what errors are logged, if any?

-Stuart

On Mon, Sep 23, 2019 at 5:11 AM gkhn dnc <dnc...@gmail.com> wrote:
Topic

--
You received this message because you are subscribed to the Google Groups "Desktop Embedding for Flutter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-desktop-embe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-desktop-embedding-dev/bc9bad1f-8d2e-490f-bcf0-d0a73d8f30fa%40googlegroups.com.

gkhn dnc

unread,
Sep 23, 2019, 9:34:24 AM9/23/19
to Desktop Embedding for Flutter
Hi Stuart,Thanks for replying.What I am copying is the windows folder in the build folder and try to run windows\x64\Release\Runner\Flutter Desktop Example.exe.It works on some Windows 10 PC's but doesn't work on all of them.The main issue is when I open the app I can see the app border and title and such but Inside is all black.I wonder If I am missing a kind of dependency that I have to install on Windows systems.


On Monday, 23 September 2019 15:51:40 UTC+3, Stuart Morgan wrote:
Without knowing what you are doing exactly, it's hard to guess why it's not working.

What are you copying to the to the other machines exactly? Have you tried running from a console to see what errors are logged, if any?

-Stuart

On Mon, Sep 23, 2019 at 5:11 AM gkhn dnc <dnc...@gmail.com> wrote:
Topic

--
You received this message because you are subscribed to the Google Groups "Desktop Embedding for Flutter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-desktop-embedding-dev+unsub...@googlegroups.com.

Chris Sells

unread,
Sep 23, 2019, 9:46:55 AM9/23/19
to gkhn dnc, Desktop Embedding for Flutter
That's the behavior you get when you don't set the TargetPlatform. This is the code I use:

import 'dart:io';
import 'package:flutter/foundation.dart' show debugDefaultTargetPlatformOverride, kIsWeb;
void _desktopInitHack() {
if (kIsWeb) return;
if (Platform.isMacOS) {
debugDefaultTargetPlatformOverride = TargetPlatform.iOS;
} else if (Platform.isLinux || Platform.isWindows) {
debugDefaultTargetPlatformOverride = TargetPlatform.android;
} else if (Platform.isFuchsia) {
debugDefaultTargetPlatformOverride = TargetPlatform.fuchsia;
}
}
void main() {
_desktopInitHack();
runApp(MyApp());
}

On Mon, Sep 23, 2019, 6:34 AM gkhn dnc <dnc...@gmail.com> wrote:
Hi Stuart,Thanks for replying.What I am copying is the windows folder in the build folder and try to run windows\x64\Release\Runner\Flutter Desktop Example.exe.It works on some Windows 10 PC's but doesn't work on all of them.The main issue is when I open the app I can see the app border and title and such but Inside is all black.I wonder If I am missing a kind of dependency that I have to install on Windows systems.

On Monday, 23 September 2019 15:51:40 UTC+3, Stuart Morgan wrote:
Without knowing what you are doing exactly, it's hard to guess why it's not working.

What are you copying to the to the other machines exactly? Have you tried running from a console to see what errors are logged, if any?

-Stuart

On Mon, Sep 23, 2019 at 5:11 AM gkhn dnc <dnc...@gmail.com> wrote:
Topic

--
You received this message because you are subscribed to the Google Groups "Desktop Embedding for Flutter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-desktop-embe...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Desktop Embedding for Flutter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-desktop-embe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-desktop-embedding-dev/1cb9e979-9329-4817-aa55-016354168baa%40googlegroups.com.

Stuart Morgan

unread,
Sep 23, 2019, 10:39:13 AM9/23/19
to gkhn dnc, Desktop Embedding for Flutter
On Mon, Sep 23, 2019 at 6:34 AM gkhn dnc <dnc...@gmail.com> wrote:
What I am copying is the windows folder in the build folder and try to run windows\x64\Release\Runner\Flutter Desktop Example.exe.

In general, I would expect that to work. (You should only need the Runner folder, FYI, not the entire Windows build directory.)

It works on some Windows 10 PC's but doesn't work on all of them.The main issue is when I open the app I can see the app border and title and such but Inside is all black.I wonder If I am missing a kind of dependency that I have to install on Windows systems.

The issues I'm aware of involving missing dependencies show up as OS dialog boxes about missing DLLs, which doesn't sound like what you're seeing. It may be that the graphics context creation is failing on some machines, in which case it would be good to know more about what's failing exactly. Have you tried running with a console as I mentioned in my previous email?

-Stuart

gkhn dnc

unread,
Sep 23, 2019, 10:40:10 AM9/23/19
to Desktop Embedding for Flutter
I ve tried your code Chris Sells but problem seems to persist :( I am now trying to install flutter and VS to one of computers and will try to debug afterwards.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-desktop-embedding-dev+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Desktop Embedding for Flutter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-desktop-embedding-dev+unsub...@googlegroups.com.

Herbert Poul

unread,
Sep 23, 2019, 10:59:41 AM9/23/19
to gkhn dnc, Desktop Embedding for Flutter
Out if curiosity, have you tried resizing the window? I sometimes have the strange behavior on macos that the ui is not redrawn until the window is resized, maybe there is something similar on windows, if it only happens on some PCs?

Br,
  Herbert

To unsubscribe from this group and stop receiving emails from it, send an email to flutter-desktop-embe...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Desktop Embedding for Flutter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-desktop-embe...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Desktop Embedding for Flutter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-desktop-embe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-desktop-embedding-dev/f0f1d3bc-3e47-4e5d-854c-70874faeaa9f%40googlegroups.com.
Message has been deleted

gkhn dnc

unread,
Sep 23, 2019, 11:25:55 AM9/23/19
to Desktop Embedding for Flutter

Hi again Stuart .What do you mean by running from console?I've tried starting exe from cmd with start command but no message appeared.Application ran as black as always thats all :D

gkhn dnc

unread,
Sep 23, 2019, 12:00:11 PM9/23/19
to Desktop Embedding for Flutter
Launching lib\main.dart on Windows in debug mode...
Building Windows application...
Syncing files to device Windows...
flutter: ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════

flutter: The following assertion was thrown during performLayout():

flutter: 'package:flutter/src/rendering/view.dart': Failed assertion: line 161 pos 12: '_size.isFinite': is

flutter: not true.

flutter:

flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially

flutter: more information in this error message to help you determine and fix the underlying cause.

flutter: In either case, please report this assertion by filing a bug on GitHub:


flutter:

flutter: When the exception was thrown, this was the stack:

flutter: #2      RenderView.performLayout (package:flutter/src/rendering/view.dart:161:12)

flutter: #3      RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1578:7)

flutter: #4      PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:844:18)

flutter: #5      RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:340:19)

flutter: #6      WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:776:13)

flutter: #7      RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:279:5)

flutter: #8      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1040:15)

flutter: #9      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:982:9)

flutter: #10     SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:791:7)

flutter: #19     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:382:19)

flutter: #20     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:416:5)

flutter: #21     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)

flutter: (elided 10 frames from class _AssertionError, package dart:async, and package dart:async-patch)

flutter:

flutter: The following RenderObject was being processed when the exception was fired: RenderView#4fbdc NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE:

flutter:   debug mode enabled - windows

flutter:   window size: Size(784.0, 561.0) (in physical pixels)

flutter:   device pixel ratio: 0.0 (physical pixels per logical pixel)

flutter:   configuration: Size(Infinity, Infinity) at 0.0x (in logical pixels)

flutter: This RenderObject had the following descendants (showing up to depth 5):

flutter:     child: RenderSemanticsAnnotations#bd593 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE

flutter:       child: RenderPointerListener#605f4 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE

flutter:         child: RenderAbsorbPointer#2cc6c NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE

flutter:           child: RenderSemanticsAnnotations#cf142 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE

flutter:             child: _RenderTheatre#bfeb1 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE

flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════

This is the error when I run with Flutter with mentioned computers before.I hope this will help you find the issue I am having.

On Monday, 23 September 2019 15:11:54 UTC+3, gkhn dnc wrote:
Topic

Stuart Morgan

unread,
Sep 23, 2019, 1:03:31 PM9/23/19
to gkhn dnc, Desktop Embedding for Flutter
Thanks, this is exactly what I was looking for. (I'm not sure why you didn't see this without building locally, unless you were disabling Dart assertions in the build you were copying over before). I'll follow up further in https://github.com/google/flutter-desktop-embedding/issues/572

-Stuart

--
You received this message because you are subscribed to the Google Groups "Desktop Embedding for Flutter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-desktop-embe...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages