Skip to content

Black screen in windows. #419

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

Closed
frocelu opened this issue May 1, 2020 · 31 comments · Fixed by #422
Closed

Black screen in windows. #419

frocelu opened this issue May 1, 2020 · 31 comments · Fixed by #422
Labels
embedder Issue concerns the embedder package

Comments

@frocelu
Copy link

frocelu commented May 1, 2020

Hover doctor

$ hover doctor
hover: Running on windows
hover: Sharing flutter version
Flutter 1.17.0-3.3.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 0da1ab0922 (3 days ago) • 2020-04-28 11:02:34 -0700
Engine • revision 376ad6a64b
Tools • Dart 2.8.0
hover: Flutter engine commit: https://github.com/flutter/engine/commit/376ad6a64b08aa26005e3f82aed26de2e290b572
hover: Finding out the C compiler version
gcc (tdm64-1) 9.2.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

hover: Sharing the content of go.mod
module github.com/go-flutter-desktop/examples/stocks/desktop

go 1.12

require (
        github.com/go-flutter-desktop/go-flutter v0.39.0
        github.com/pkg/errors v0.9.1
)
hover: Warning: No hover.yaml file found: open go\hover.yaml: The system cannot find the file specified.
hover: Sharing the content of go/cmd
go\cmd\main.go  go\cmd\options.go

Error output

Using hover build [...] --XXX to build my application, I get the following
error:

WGL: Failed to make context current: The requested resource is in use

I try to build a demo project from examples/stocks for testing.
But when I run hover run, I always get a black screen of the application.
My windows version is 1909.

@pchampio
Copy link
Member

pchampio commented May 2, 2020

Does hover run -b "@v0.38.0" works ?

Edit:
added the missing @ in the -b flag

@davidmartos96
Copy link
Contributor

I have encountered with the same issue. 0.38.0 works, but the -b option wasn't working for me. I had to change the version in the go.mod file.

Using hover run -b "v0.38.0" gave me this error:

go get github.com/go-flutter-desktop/go-flutterv0.38.0: git ls-remote -q origin in C:\Users\Martyns\go\pkg\mod\cache\vcs\caa3ec4c492888e81a47e74d9466ef24bc912f91df44f1a0949c85254a603489: exit status 128:
        remote: Repository not found.
        fatal: repository 'https://github.com/go-flutter-desktop/go-flutterv0.38.0/' not found
hover: Updating go-flutter to v0.38.0 version failed: exit status 1

@pchampio
Copy link
Member

pchampio commented May 2, 2020

I forgot to add the @.
@frocelu does hover run -b '@v0.38.0' works ?

@pchampio
Copy link
Member

pchampio commented May 2, 2020

@davidmartos96 thanks for your response.

@pchampio pchampio added the embedder Issue concerns the embedder package label May 2, 2020
@davidmartos96
Copy link
Contributor

@pchampio Yes, the @ does it. Sorry, I haven't use the -b option that much 😅

@pchampio
Copy link
Member

pchampio commented May 2, 2020

@ALL to further investigative this.
Run 1 - Does hover run -b '@9823ced8f7491631c320500356875ba518148d32' work? - Yes/No
Run 2 - Does hover run -b '@ec926762cc39ace963f974fbb19971b5cfe60b97' work? - Yes/No

might be related to #390

@davidmartos96
Copy link
Contributor

davidmartos96 commented May 2, 2020

@pchampio
Run 1: Doesn't work
Run 2: Doesn't work

@pchampio
Copy link
Member

pchampio commented May 2, 2020

Okaay..
Run 3: does hover run -b '@0ce8cfb2cca96753c1cde72663618389bb601279' work? - Yes/No
Run 4: does hover run -b '@100c066ded9b176203c96a3fc008c19ba1d38b87' work? - Yes/No

@davidmartos96
Copy link
Contributor

@pchampio
Run 3: Doesn't work
Run 4: Works 😄

@pchampio
Copy link
Member

pchampio commented May 2, 2020

good..
Run 5: does hover run -b '@master' work? - Yes/No

@davidmartos96
Copy link
Contributor

@pchampio Yes, latest revert works fine.

@pchampio
Copy link
Member

pchampio commented May 2, 2020

I'm sorry to tag commits that doesn't works, such issue is kinda hard to test.
I don't have the infrastructure resources to run all test properly.
Thanks to you for feed back!

@pchampio
Copy link
Member

pchampio commented May 2, 2020

Just to be 100% sure, @davidmartos96 your issue was the same as @frocelu:
WGL: Failed to make context current: The requested resource is in use

@davidmartos96
Copy link
Contributor

@pchampio Yes, the exact same issue. Black screen and the posted error message is getting printed constantly in the console.

@pchampio
Copy link
Member

pchampio commented May 2, 2020

Run 6: What is the output of hover run -b '@8ee826935244fe6431b0f6afae6e29455a81104c' (from #422)? (should not work)

@davidmartos96
Copy link
Contributor

@pchampio No, it doesn't work.
These are the logs:

EventLoop Thread id: (int64) -2

Task Thread id: (int64) -2

Task Thread id: (int64) -2

Task Thread id: (int64) -2

-- GLMakeResourceCurrent
Task Thread id: (int64) -2

@pchampio
Copy link
Member

pchampio commented May 2, 2020

Run 7: what is the full output of hover run -b '@c89185c3a2dfd2fda1fb3cfaab3997f5781b2779' ?

@davidmartos96
Copy link
Contributor

@pchampio Fails

Real Thread id: (currentthread._Ctype_HANDLE) 0xfffffffffffffffe

EventLoop Thread id: (int64) -2

@pchampio
Copy link
Member

pchampio commented May 2, 2020

What's the full output?

@davidmartos96
Copy link
Contributor

Real Thread id: (currentthread._Ctype_HANDLE) 0xfffffffffffffffe

EventLoop Thread id: (int64) -2

Real Thread id: (currentthread._Ctype_HANDLE) 0xfffffffffffffffe

Real Thread id: (currentthread._Ctype_HANDLE) 0xfffffffffffffffe

Task Thread id: (int64) -2

Real Thread id: (currentthread._Ctype_HANDLE) 0xfffffffffffffffe

Task Thread id: (int64) -2

Real Thread id: (currentthread._Ctype_HANDLE) 0xfffffffffffffffe

Task Thread id: (int64) -2

-- GLMakeResourceCurrent
Real Thread id: (currentthread._Ctype_HANDLE) 0xfffffffffffffffe

Task Thread id: (int64) -2

-- GLMakeCurrent
Real Thread id: (currentthread._Ctype_HANDLE) 0xfffffffffffffffe

Task Thread id: (int64) -2
-- GLMakeCurrent
2020/05/02 12:22:53 PlatformError: WGL: Failed to make context current: The requested resource is in use. 

@pchampio
Copy link
Member

pchampio commented May 2, 2020

Okay, I think I got a fix.

pchampio added a commit that referenced this issue May 2, 2020
@pchampio
Copy link
Member

pchampio commented May 2, 2020

@davidmartos96 does hover run -b '@revert-421-revert-390-macOS_no_resize_crash' works?
If not, I would like to have the full output.

@pchampio
Copy link
Member

pchampio commented May 2, 2020

Also, If you have new C warning, please report them!

@davidmartos96
Copy link
Contributor

@pchampio It works without any warnings! 🎊

pchampio added a commit that referenced this issue May 2, 2020
* Revert "Revert "fixes #133: same task runner for platform&render" (#421)"

This reverts commit d598482.

* add debug

* add debug

* fix #419
@pchampio
Copy link
Member

pchampio commented May 2, 2020

tagged in v0.40.1

@frocelu
Copy link
Author

frocelu commented May 2, 2020

Sorry about my late reply and poor English.
hover run -b "@v0.38.0" works for me.
So is this a problem in current version?

@pchampio
Copy link
Member

pchampio commented May 2, 2020

@frocelu a regression was introduced on windows in v0.39.0.
v0.40.0 reverted it.
v0.40.1 re-introduced the feature but without the windows regression.

please run hover bumpversion and hover run

@frocelu
Copy link
Author

frocelu commented May 2, 2020

Ok, thank you.
I am a newbie in flutter and this project, so I really thought that I do something wrong in my installing.

@ekasetiawans
Copy link

@pchampio i facing this issue again after upgrade to flutter stable 1.17.
here my previous issue

@pchampio
Copy link
Member

Please open a new issue

@ekasetiawans
Copy link

Please open a new issue

ok, I open issue #438

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
embedder Issue concerns the embedder package
4 participants