-
-
Notifications
You must be signed in to change notification settings - Fork 474
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
Mac error: failed to execvp: subprocess EH.app [SOLVED by disabling plugins] #242
Comments
No I did not test the wxpython example yet, only the pyside example shown in the gist In Windows and Linux work perfectly but in OSX the following error appears:
The resulting window is: Although the window appears, it is not able to show all the web content. Also it has the issue concerning the resizing. |
Looks like the structure of dirs/files might have something to do with the issue. In cefpython on Mac we didn't use the official structuring from CEF. In cefclient the subprocess executable is named "cefclient Helper" and there are three kinds of it in the "cefclient.app/Contents/Frameworks" directory:
This is the same executable, but duplicated in two different directories with the "EH" and "NP" postsfixes - I'm not sure what these are supposed to mean. In cefpython there is only one helper - the subproces executable. But the error and its path "/anaconda/lib/subprocess EH.app" suggests that the subprocess expects the .app folder structure. It expects that the helper app has such structure:
But instead the helper is here:
So it does "../../../" to go out of the "cefclient Helper EH.app/", but as we don't follow the official app structure, it ends up doing:
which becomes:
To resolve the issue it needs to be investigated why it looks for these helpers: ".. EH.app" and ".. NP.app". During my testing on Mac I've never had this issue, it always used only the default subprocess executable. What do the EH and NP names mean? It has some meaning for sure. Maybe this could be fixed by providing some flag/setting, so that it uses the default helper app. |
Found this: https://bugs.chromium.org/p/chromium/issues/detail?id=520680
What if you disable all plugins? Then it shouldn't use this EH helper. You can disable plugins with the BrowserSettings.*plugins_disabled option: https://github.com/cztomczak/cefpython/blob/master/api/BrowserSettings.md#plugins_disabled |
Looks like this will no more be an issue with newer CEF 51+:
|
For now, if you must use plugins, you may workaround by symlinking |
As explained earlier new CEF doesn't use "EH" helpers, thus the issue does not occur anymore. v56 for Mac will be released today. Closing. If you want to enable Flash in new CEF see Issue #235. |
You can find an example using CEFPython and PySide for Linux, Windows, and OSX: https://gist.github.com/mmolero/c3db18390aa71bb6b3cdcb9822483032
Now it works well on Linux, Ubuntu 14.04 64 Bits (CEFPython 51) and Windows 10 64 Bits (CEFPython 31.2). However it does not work on OSX, 10.11 El Capitan (CEFPython 31.2) yet.
Do you know why? Any Idea
Thanks!!!
The text was updated successfully, but these errors were encountered: