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
0.6.0 - "Unable to get render view in Show" on Window.open #808
Comments
Hello. I'm not very sure how to reproduce this. Can you please provide a full case? |
I'm sorry but the full app it's too big. I can post the method where I get the problem.You can call this method passing the shortcut (DOM reference with a "data-path" attribute ) Just for info: I tried to delete the "wp" config in "gui.Window.open(url, wp);" and the window is opening.
|
I can confirm if I change the "show" param from false to true the window is opening. I think it's a problem if you start with an hidden window... am I wrong? How can I add listeners before to "show" method? So I changed "show" from false to true, deleted the app.show() at the end and it works, but I get the error |
It seems that everytime I open the console I get this error at the end of the console |
I'm trying to reproduce it with the following code but it works: <html>
<head>
<title>nwgui</title>
<script>
var nwgui = require('nw.gui');
var wp = {
frame : true,
toolbar: true,
width: 900,
height: 750,
show: false
};
var win = nwgui.Window.open('http://www.google.com', wp);
win.on('loaded', function(){
console.log("win loaded");
this.on('close', function() {
console.log('app close');
});
});
</script>
</head>
<body>
</body>
</html> |
I forgot to tell you that I'm testing it on MacOS 10.8.4. How can you open the window if the "show" is false and you don't call the win.show() ? |
About the showing problem I have fixed it moving the win.show() method inside the "loaded" callback like that
It's strange it was working on previous versions of nodewebkit. Now seems to work well but when I open the dev tool window I get the error: Do I open a new issue for this? |
You probably should. As far as I can tell, the above code fragments (that you provided as test cases for your current issue) do not contain any |
Yes, I didn't paste the require snippet because it was just a part of code... of course in my real app there is the "require" code. I'm going to open a new ticket. Thank you |
I am also randomly getting this error. |
Please reopen if this is still an issue in the latest build. |
+1 to that.. Even I am facing the same issue. I am using node webkit version 0.12.0-alpha2 on Mac OS X |
Hello, I have updated to the last version 0.6.0 and my app is not working as before (0.5.0).
In my app I have 2 shortcuts. When I click a shortcut, a new window will be opened (with a remote url).
This is what I do and where I get the error:
"Uncaught Error: Unable to get render view in Show", source: window_bindings.js (214)
To see the window I have to click another time over the shortcut and it seams to work because if the window is still opened, the script will call just the .show() method.
The text was updated successfully, but these errors were encountered: