goverlay
goverlay copied to clipboard
Getting (DLL) initialization routine failed error
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.
After this, the Electron app starts, but when I press "start" I get another error:
Any idea of the cause/fix?
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.
Update. When running dx11app in vscode, I seem to be getting the following error.
Exception thrown: read access violation. this->pViewMatrix was nullptr. occurred
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
Now things are strange again. Seems like it attaches for a few runs, then stops working. Trying to trace down what's going on.
Update. When running dx11app in vscode, I seem to be getting the following error.
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.
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
Same problem here with packed app, but with the latest version with CMake
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
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:
- npm i -g node-gyp
- cd electron-overlay
- copy the old https://github.com/hiitiger/goverlay/blob/5c0266879c5464911185d2a37a5f9be9881767eb/electron-overlay/binding.gyp to electron-overlay directory
- 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