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

Not starting (Node 4.2.4, Ubuntu 15.10) #2

Closed
naholyr opened this issue Jan 19, 2016 · 17 comments
Closed

Not starting (Node 4.2.4, Ubuntu 15.10) #2

naholyr opened this issue Jan 19, 2016 · 17 comments

Comments

@naholyr
Copy link

naholyr commented Jan 19, 2016

npm i -g devtool
devtool

Nothing happens :(

@mattdesl
Copy link
Contributor

😢 Thanks for testing. I can try putting some more errors in place.

Have you been able to run other Electron-based apps? Like vmd?

npm i vmd -g
touch README.md
vmd README.md

@naholyr
Copy link
Author

naholyr commented Jan 19, 2016

vmd seems to be working fine. The difference may be in the version of Electron used:

For vmd:

electron-prebuilt@0.36.2 postinstall /home/nchambrier/.nvm/versions/node/v4.2.4/lib/node_modules/vmd/node_modules/electron-prebuilt

For devtool:

electron-prebuilt@0.35.6 postinstall /home/nchambrier/.nvm/versions/node/v4.2.4/lib/node_modules/devtool/node_modules/electron-prebuilt

I'm developing a Electron application myself which is based on 0.36.2 but worked fine with 0.35 few weeks ago so I'm not sure this is it. I'll try to upgrade dependency and check what happens.

@mattdesl
Copy link
Contributor

It could be. I was noticing other errors with the latest Electron (electron/electron#3832 (comment)), which is why I'm sticking with 0.35 for devtool currently.

@verkholantsev
Copy link

Same problem on OS X 10.11.2 (15C50). After devtool index.js Electron icon appears in tray, but the app has no available windows.

@naholyr
Copy link
Author

naholyr commented Jan 19, 2016

No difference with latest version

cd /path/to/devtool
npm i --save electron-prebuilt@latest
devtool # still nothing

Putting various console.log in server.js I'm not really sure what happens wrong. I can only say that this line is reached twice (console.log shown twice) but I'm not even sure if it's relevant or not. I'll need time and/or hints to dig deeper ;)

@mattdesl
Copy link
Contributor

You can try redirecting console and quitting on error:

devtool index.js -c -q

I will hunt around for a failing computer and see if I can reproduce.

@eth0lo
Copy link

eth0lo commented Jan 19, 2016

Also happened to me, redirecting to console any console.log appeared fine , also putting a debug statement breaks correctly, but not window is shown

BTW no errors

@mattdesl mattdesl added the bug label Jan 20, 2016
@molokoloco
Copy link

Some error after simple installation on Ubuntu (With VirtualBox)
$ devtool
pci id for fd 15: 80ee:beef, driver (null)
OpenGL Warning: glFlushVertexArrayRangeNV not found in mesa table
OpenGL Warning: glVertexArrayRangeNV not found in mesa table
OpenGL Warning: glCombinerInputNV not found in mesa table
OpenGL Warning: glCombinerOutputNV not found in mesa table
OpenGL Warning: glCombinerParameterfNV not found in mesa table
OpenGL Warning: glCombinerParameterfvNV not found in mesa table
OpenGL Warning: glCombinerParameteriNV not found in mesa table
OpenGL Warning: glCombinerParameterivNV not found in mesa table
OpenGL Warning: glFinalCombinerInputNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterivNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glDeleteFencesNV not found in mesa table
OpenGL Warning: glFinishFenceNV not found in mesa table
OpenGL Warning: glGenFencesNV not found in mesa table
OpenGL Warning: glGetFenceivNV not found in mesa table
OpenGL Warning: glIsFenceNV not found in mesa table
OpenGL Warning: glSetFenceNV not found in mesa table
OpenGL Warning: glTestFenceNV not found in mesa table
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo
[8871:0120/170708:ERROR:buffer_manager.cc(342)] [GroupMarkerNotSet(crbug.com/242999)!:D06E021D8F330000]GL ERROR :GL_INVALID_ENUM : glBufferData: <- error from previous GL command
[8871:0120/170709:ERROR:texture_manager.cc(1995)] [GroupMarkerNotSet(crbug.com/242999)!:D062021D8F330000]GL ERROR :GL_INVALID_ENUM : glTexImage2D: <- error from previous GL command

@MCluck90
Copy link

Having the same issue on Windows 10 with Node v5.4.1. Running devtool launches 4 Electron processes but nothing is shown. Redirecting the console displays console logs correctly but did not break on a debugger statement. Showing the browser window devtool -s allows me to access a console tab and use as a REPL but, again, doesn't break on debugger statements.

mattdesl added a commit that referenced this issue Jan 20, 2016
@mattdesl
Copy link
Contributor

Those experiencing trouble, please try the -s or --show flag to see if the DevTools opens:

devtool --show

It seems on some systems, Electron won't open the DevTools unless the main window is also shown. I wrote a patch which may fix this in 1.2.2, but it will still show a very small window on some systems (Windows).

I'll put together a test case and open a new issue in Electron for this.


@MCluck90 You may need to reload (Cmd + R / Ctrl + R) after opening the window before break points / debugger starts working. (issue: electron/electron#2379)

If that isn't working, please open a new issue. 😄


@molokoloco It seems like you are having an unrelated issue.

@MCluck90
Copy link

@mattdesl That worked perfectly. Thanks! Also, thanks for making this. I'm sure it will come in handy. 😎

@manrueda
Copy link

Another workaround is:

  • Open devtool with -s or --show
  • Detach the Developer Tool window from the main window (with the gear menu)
  • Close it with window.close()

Now you can run devtool without -s or --show!! 😎😎😎

@mattdesl
Copy link
Contributor

@manrueda and others who are testing on windows, I just pushed another fix at 1.3.0 to try and improve the window hiding (especially for Windows where a tiny window might appear). Please let me know if it's any better/worse. 😄

# install latest
npm install devtool -g

# should show just DevTool REPL
devtool

# should show browser window + DevTools
devtool -s

# should show just browser window
devtool -s -h

# should not show any GUI
devtool -h

@MCluck90
Copy link

Windows 10 here. The workaround worked and now the update has fixed it properly. Thanks!

@manrueda
Copy link

@mattdesl With Windows 7, everything works great now. Except for devtool -h, shows the tiny windows. But i can live with that haha

@mattdesl
Copy link
Contributor

Cool, I will close this and revisit the Windows issues in another ticket. Thanks! 👍

@cutandpastey
Copy link

@mattdesl Has this issue been patched? Im experiencing it on ubuntu 14.04 with node 4. Im trying to run some mocha tests through CI so the workarounds suggested here don't fit my use case. Are there any other known solutions that I can run with -h?

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

No branches or pull requests

8 participants