FS#51025 - [atom] Atom not starting due to Electron error
Attached to Project:
Community Packages
Opened by Dario Ostuni (dariost) - Wednesday, 28 September 2016, 17:42 GMT
Last edited by Nicola Squartini (tensor5) - Thursday, 29 September 2016, 07:55 GMT
Opened by Dario Ostuni (dariost) - Wednesday, 28 September 2016, 17:42 GMT
Last edited by Nicola Squartini (tensor5) - Thursday, 29 September 2016, 07:55 GMT
|
Details
Description:
Atom does not start giving the error "electron: symbol lookup error: electron: undefined symbol: _ZN3re23RE23Arg9parse_intEPKciPv" Additional info: community/atom 1.10.2-4 community/electron 1.4.1-2 |
This task depends upon
Closed by Nicola Squartini (tensor5)
Thursday, 29 September 2016, 07:55 GMT
Reason for closing: Fixed
Additional comments about closing: electron 1.4.1-3
Thursday, 29 September 2016, 07:55 GMT
Reason for closing: Fixed
Additional comments about closing: electron 1.4.1-3
This is some kind of a runtime linking error between electron and re2, affecting Atom, since Atom is an electron app.
EDIT: actually running `/usr/bin/electron` by itself produces this error. (Maybe the issue title should be changed?)
EDIT: If you saw this comment before I removed the mention of wonky DPI scaling, that was an unrelated issue that I've fixed.
I had the same error message when i tried to start it from the shell.
EDIT: downgrading re2 to it's previous version seems to fix the problem as mentioned in the earlier comments.
I am trying to rebuild electron to see if it fixes the issue.
In file included from ../../third_party/leveldatabase/env_chromium.cc:25:
../../third_party/re2/src/re2/re2.h:186:10: fatal error: 're2/variadic_function.h' file not found
#include "re2/variadic_function.h"
^
2 warnings and 1 error generated.
It looks like the old version of Chromium used with electron does not compatible with the recent version of re2. Nicola, could you please look if it is possible to patch electron? If not we need to revert re2.
Here is the description of the problem: there are multiple places in electron that hardcode path to re2 main header third_party/re2/src/re2/re2.h. And it is included even if system re2 library is configured. So outdated version of re2/re2.h is included from electron while subsequent includes of 're2/xxx.h' are from system package. This mismatch causes ABI confusion.
Please file a bug to electron project to fix the includes problem. Meanwhile we should 'sed' hardcoded re2 paths.