Skip to content
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

The main page is not displayed in Windows7 system #6265

Closed
onlyou opened this issue Nov 1, 2017 · 28 comments
Closed

The main page is not displayed in Windows7 system #6265

onlyou opened this issue Nov 1, 2017 · 28 comments
Labels

Comments

@onlyou
Copy link

onlyou commented Nov 1, 2017

NWJS Version :0.26.2
Operating System :
Windows7 32

Expected behavior

<!- What do you think should happen? ->

The main page is not displayed in Windows7 system
It can only be displayed in the toolbar

Actual behavior

It can be shown in 0.26.0 before the upgrade
It might be related to the bug I've been offering to fix, the code is #6217

<!- What actually happens? ->

How to reproduce

<!-

  • Detail a step by step guide to reproduce the issue
  • A copy of your code would help. Include: JS, HTML.
  • If you have a crash report, copy it in.
  • Test your steps on a fresh environment to see if you still have an issue
  • Post!

->

@onlyou
Copy link
Author

onlyou commented Nov 1, 2017

qq 20171101145948

@onlyou
Copy link
Author

onlyou commented Nov 1, 2017

My package. Json has no problem,
The program main screen in Windows10 shows normal

@Christywl
Copy link
Contributor

I try a simple test on Windows 7 x64 with nwjs-sdk-v0.26.2. It works fine. The transparent window displays.
package.json:

{
  "name": "test",
  "main": "index.html",
  "window": {
"toolbar": true,
"frame": false,
"show":true,
"transparent": true,
"resizable": false,
"show_in_taskbar":true
}
}

I also try ExamManager.zip you provided in #6217 (comment), the screenshot is:
6265

@onlyou
Copy link
Author

onlyou commented Nov 1, 2017

I used the same file, and in Windows 7's 32-bit operating system, the main page was not displayed
ss

@onlyou
Copy link
Author

onlyou commented Nov 1, 2017

The SDK I used was ‘nwjs-sdk-v0.26.2-win-ia32.zip’

@jtg-gg
Copy link
Member

jtg-gg commented Nov 1, 2017

@onlyou does it run on other 32 bit win7 system ? you might want to clean the nwjs appdata folder
I can't reproduce on 64bit win7, I don't have 32bit win7

@onlyou
Copy link
Author

onlyou commented Nov 1, 2017

@jtg-gg I've cleaned up the appdata folder, it's not working

@onlyou
Copy link
Author

onlyou commented Nov 2, 2017

@jtg-gg
0.26.0 including previous versions can start the main interface

snipaste20171102_112417

@jtg-gg
Copy link
Member

jtg-gg commented Nov 2, 2017

@onlyou can you test on win7 64bit using nwjs 32bit ?

@onlyou
Copy link
Author

onlyou commented Nov 2, 2017

@jtg-gg
I use 64bit Windows7, too. I don't know why there is no problem with the version with 0.26.0

@onlyou
Copy link
Author

onlyou commented Nov 2, 2017

@jtg-gg
I tested a problem with the packag.json setting
When I set this value "transparent": false, I can display the main page
I think this might be related to the 2 questions I submitted earlier
The code is: #6217 and #6176

@jtg-gg
Copy link
Member

jtg-gg commented Nov 2, 2017

@onlyou run with this arguments "--enable-logging --v=1"
send me the chrome_debug.log in the appdata folder

@onlyou
Copy link
Author

onlyou commented Nov 2, 2017

@jtg-gg
I'm going to take the log of that path:AppData\Local\nwjs\User Data
chrome_debug.zip

@jtg-gg
Copy link
Member

jtg-gg commented Nov 2, 2017

hmm nothing in the log, are you sending the correct one ?
the appdata for your sample app should be "iDH_ExamManager"

@onlyou
Copy link
Author

onlyou commented Nov 2, 2017

@jtg-gg
I'm sorry I rerun the order
Two different log files are generated
Now I'll resubmit it to you
chromeDebug.zip

@jtg-gg
Copy link
Member

jtg-gg commented Nov 3, 2017

@onlyou I've just read the log, not much information in there regarding the window
I can't fix if I can't reproduce the bug on my machine
might be some GPU / Windows theme configuration / setting

@onlyou
Copy link
Author

onlyou commented Nov 3, 2017

@jtg-gg
Is there any way to capture some useful information
I can try my best

@jtg-gg
Copy link
Member

jtg-gg commented Nov 3, 2017

@onlyou that enable logging is already the best, I'll need to debug on the machine to fix it
unless you can find the machine / windows setting that causing the bug that reproduce-able on any machine

@onlyou
Copy link
Author

onlyou commented Nov 3, 2017

@jtg-gg
Thank you. I'm trying to find a few different Windows7 systems to try
If there is any new discovery, I will submit it to you in time

@onlyou
Copy link
Author

onlyou commented Nov 3, 2017

@jtg-gg
I've switched to a different computer and I tried it, and the log looks like it's almost there, but you can see it again
But I found that it was related to the Windows7 theme,
If I set the Windows7 theme to basic, then "transparent": true, the main page can also be started
This is the equivalent of code #6176 and there is no real solution
Debug.log.zip

@jtg-gg
Copy link
Member

jtg-gg commented Nov 3, 2017

@onlyou hmm you can try "--disable-gpu-compositing --force-cpu-draw" might work
but still I can't explain the same code works on my win7 and doesn't on yours

@onlyou
Copy link
Author

onlyou commented Nov 3, 2017

@jtg-gg
After the two parameters of "-- disable-gpu-compositing -- force-cpu-draw",
Pancake. Json setting parameter "transparent": true,Windows7 theme is non-basic theme
It's working properly
chrome_debug.log

@jtg-gg
Copy link
Member

jtg-gg commented Nov 7, 2017

@onlyou another uses is reporting similar thing (#6275)

this issue caused by WS_EX_COMPOSITED style that I enable to fix #6217, so I guess I'll need to revert WS_EX_COMPOSITED style

so you'll have issue #6217 back

@jtg-gg
Copy link
Member

jtg-gg commented Nov 7, 2017

@onlyou I manage to reproduce this on my other win 10 machine
but in my case, I can display the transparent window after I minimize then restore the window
can you try this work-around ?

@jtg-gg
Copy link
Member

jtg-gg commented Nov 9, 2017

@onlyou can you try my sample app here:
https://github.com/nwjs/nw.js/files/1456203/transparency-5989.zip

the sample app, runs as "show": false
then after the html doc is loaded, it will minimize / show, this workaround works on my "other 2 win10 machine"

@onlyou
Copy link
Author

onlyou commented Nov 9, 2017

@jtg-gg
I'm trying to run this demo
There is no problem with my Windows10 system
But it still doesn't show up on Windows7

@jtg-gg
Copy link
Member

jtg-gg commented Nov 10, 2017

@onlyou I've made a pull request nwjs/chromium.src#100
but #6217 will be back, I can workaround this, by hiding the app, then show it after the html body is loaded

@rogerwang please accept it, and please also patch nw27

@rogerwang
Copy link
Member

This is fixed in git and will be available in the next nightly build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants