ethereum / remix-desktop

Remix IDE desktop
1.02k stars 266 forks source link

Cannot start remix-ide - ursaNative.node: undefined symbol: BN_new #40

Closed d-sfounis closed 3 years ago

d-sfounis commented 3 years ago

Hey, is there something wrong in the latest release? I could start it just fine yesterday, but today every time I try to launch remix-ide I get:

running 1.1.0
[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead
start shared folder service
Sat Mar 06 2021 20:29:31 GMT+0200 (Eastern European Standard Time) remixd is listening on 127.0.0.1:65520
Sat Mar 06 2021 20:29:31 GMT+0200 (Eastern European Standard Time) remixd is listening on 127.0.0.1:65521
generating 2048-bit (rsa only) RSA keypair...
/opt/Remix IDE/remix-ide: symbol lookup error: /opt/Remix IDE/resources/app/node_modules/ursa-optional/build/Release/ursaNative.node: undefined symbol: BN_new

Did something break with OpenSSL?

TheoThug commented 3 years ago

Any update on this issue? Lost a bunch of my saved work from last browser edition update so trying to use desktop but encountering this issue as well. (Ubuntu Focal)

d-sfounis commented 3 years ago

Yeah no luck so far, seems like something broke inside their huge npm dependency tree.

I just ended up using Truffle

Dimitris Sfounis

Co-founder & Software Engineer @ Bluechain SCE, EU Student of Computer Science, Aristotle University of Thessaloniki https://bluechain.tech https://dsfounis.com

On Sat, 17 Apr 2021, 15:15 César L. Palacios, @.***> wrote:

Hi, any update on this one? I just downloaded the the .deb file, installed it and the same error popped up

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ethereum/remix-desktop/issues/40#issuecomment-821813657, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKNGBUQGV4M6XAPADBL4A3TJF3VJANCNFSM4YW7OPJA .

SinglePageBookProject commented 3 years ago

Same problem here. I just installed latest version.

It looks, somewhere it's not linking against libssl.so (openssl 1.1)

I checked that I have it installed on my system and that BN_new is defined in the library.

  $ nm -gD /usr/lib/x86_64-linux-gnu/libssl.so.1.1 | grep BN_new
           U BN_new

But remix-ide binary ignore the library:

  ldd remix-ide | grep libssl
  (empty)

I was expecting something similar to:

  $ ldd /usr/bin/openssl | grep libssl
    libssl.so.1.1 => /usr/lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007f8bcd998000)

P.S.: My easy work-around was to continue working with an standard browser and launching remixd serving my local files. Then connecting the remix web ide to the remixd following the documentation. If I'm not wrong, remix-desktop just tries to simplify this procedure, by embedding all pieces together (browser, remixd and remix web app) in a single "click-and-launch" . Is there any other difference?

fantauzzi commented 3 years ago

Same issue reproduced under Ubuntu 20.04 when running Remix-IDE-1.1.0.AppImage . Same error also when running remix-ide after installing it from the .deb file (with sudo gdebi)

angelcervera commented 3 years ago

Same issue with the newest version 1.2.0 Tested remix-ide_1.2.0_amd64.deb and Remix-IDE-1.2.0.AppImage

taxmeifyoucan commented 3 years ago

Same issue on Debian Buster and Ubuntu 21.04, deb package and Appimage come with the same error.

bradmurmz commented 3 years ago

To fix you just need to run "npm install" inside the node_modules/ursa-optional/ directory, and then delete the build folder located there. Upon next launch It falls back to using the scripts instead of the pre-compiled binary, so it should just start right up.

If you are using the AppImage, you'll need to run ./Remix-IDE-1.2.0.AppImage --appimage-extract first and then go into the squashfs-root/resources/app/node_modules/ursa-optional/ and complete the previous step

if you want to repackage the AppImage, you can use appimagetool ( separate program ) and run "appimagetool -v ./squashfs-root/" otherwise just run ./AppRun ( inside the squash-fs/ folder )

fantauzzi commented 3 years ago

Following @bradmurmz 's instructions for the AppImage I have been able to run Remix 1.2.0 and compile a contract (Ubuntu 20.04).

yann300 commented 3 years ago

The last release should fix the issue https://github.com/ethereum/remix-desktop/releases Thanks for your patience. I'll close this issue, feel free to reopen it if needed.