goverlay icon indicating copy to clipboard operation
goverlay copied to clipboard

Getting (DLL) initialization routine failed error

Open lincolnthree opened this issue 6 years ago • 10 comments

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 avatar Feb 21 '19 15:02 lincolnthree

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 avatar Feb 21 '19 16:02 lincolnthree

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

image

lincolnthree avatar Feb 21 '19 18:02 lincolnthree

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

lincolnthree avatar Feb 21 '19 18:02 lincolnthree

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:

https://github.com/lincolnthree/gelectron/commit/d4f07c0a5909279a30730f336e7eb2dea52d2d08

lincolnthree avatar Feb 21 '19 19:02 lincolnthree

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

lincolnthree avatar Feb 22 '19 00:02 lincolnthree

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.

hiitiger avatar Feb 26 '19 13:02 hiitiger

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

wenxi098 avatar Mar 08 '20 06:03 wenxi098

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

ezequielvictor avatar Jan 14 '23 21:01 ezequielvictor

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

ezequielvictor avatar Jan 18 '23 22:01 ezequielvictor

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

yun77op avatar Nov 07 '23 14:11 yun77op