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

Getting (DLL) initialization routine failed error #11

Open
lincolnthree opened this issue Feb 21, 2019 · 10 comments
Open

Getting (DLL) initialization routine failed error #11

lincolnthree opened this issue Feb 21, 2019 · 10 comments

Comments

@lincolnthree
Copy link
Contributor

Hey there. I'm new to this project and trying to figure out how to get things building/running. I followed the steps in your README but keep hitting an issue.

image

After this, the Electron app starts, but when I press "start" I get another error:

image

Any idea of the cause/fix?

@lincolnthree
Copy link
Contributor Author

Okay, so this issue was apparently caused because I did not run the electron-rebuild step in the ./client project:

npm run compile:electron

However, I'm still not sure how to start displaying the overlay in a game.

@lincolnthree
Copy link
Contributor Author

Update. When running dx11app in vscode, I seem to be getting the following error.

image

@lincolnthree
Copy link
Contributor Author

Exception thrown: read access violation.
this->pViewMatrix was nullptr. occurred

@lincolnthree
Copy link
Contributor Author

Alright. Gave up on running the dx11app example. Got things working using a native game. Had to modify the index.js of node-ovhook to export the module, then import into the electron app client:

lincolnthree@d4f07c0

@lincolnthree
Copy link
Contributor Author

Now things are strange again. Seems like it attaches for a few runs, then stops working. Trying to trace down what's going on.

@hiitiger
Copy link
Owner

Update. When running dx11app in vscode, I seem to be getting the following error.

image

All the demo apps(like dx11app) will read resouce from working directory , and its resource is put under the project directory, so usally I start it with VS2017 which make the working dir as project dir, I should make it more clearly on document.

@wenxi098
Copy link

wenxi098 commented Mar 8, 2020

Okay, so this issue was apparently caused because I did not run the electron-rebuild step in the ./client project:

npm run compile:electron

However, I'm still not sure how to start displaying the overlay in a game.

Hello,i have the same preblom,Can you tell me how you solved it,Thank you very much

@ezequielvictor
Copy link

ezequielvictor commented Jan 14, 2023

Same problem here with packed app, but with the latest version with CMake

@ezequielvictor
Copy link

I managed to fix it copying the old binding.gyp file and ran electron-rebuild, the new .node file will be here .\electron-overlay\bin\win32-x64-109

@yun77op
Copy link

yun77op commented Nov 7, 2023

in case of anyone encountering this error, i will share my problem and the solution.

problem:

it works properly on windows 11, but throws "(DLL) initialization routine failed error" on windows 10.

solution:

  1. npm i -g node-gyp
  2. cd electron-overlay
  3. copy the old https://github.com/hiitiger/goverlay/blob/5c0266879c5464911185d2a37a5f9be9881767eb/electron-overlay/binding.gyp to electron-overlay directory
  4. run node-gyp rebuild --msvs_version=2019 --target=13.6.9 --arch=x64 --dist-url=https://electronjs.org/headers. replace 13.6.9 with your electron version

i dont understand why compiling using cmake do not make it through on windows 10, obviously we have declare the electron version under package.json's cmakejs section https://github.com/hiitiger/goverlay/blob/master/package.json#L29

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

No branches or pull requests

5 participants