[GH-ISSUE #112] [Bug] Failed to load dynamic library 'libdart_ffi.so' #55

Closed
opened 2026-03-23 20:31:06 +00:00 by mirror · 13 comments
Owner

Originally created by @sharp on GitHub (Dec 1, 2021).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/112

Originally assigned to: @LucasXu0 on GitHub.

截屏2021-12-01 下午11 07 07

Hello, when I run app with vs code&android&mac m1, it gave error:

ArgumentError (Invalid argument(s): Failed to load dynamic library 'libdart_ffi.so': dlopen failed: library "libdart_ffi.so" not found)

截屏2021-12-01 下午11 09 08
Originally created by @sharp on GitHub (Dec 1, 2021). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/112 Originally assigned to: @LucasXu0 on GitHub. <img width="974" alt="截屏2021-12-01 下午11 07 07" src="https://user-images.githubusercontent.com/121051/144259579-e2958965-31ce-41b8-839b-f750720e66bb.png"> Hello, when I run app with vs code&android&mac m1, it gave error: `ArgumentError (Invalid argument(s): Failed to load dynamic library 'libdart_ffi.so': dlopen failed: library "libdart_ffi.so" not found)` <img width="1131" alt="截屏2021-12-01 下午11 09 08" src="https://user-images.githubusercontent.com/121051/144259887-c03ae520-a3ad-4f82-bf4f-b414c7f2477f.png">
mirror 2026-03-23 20:31:06 +00:00
Author
Owner

@irfanbacker commented on GitHub (Dec 1, 2021):

Are you trying to build for android? Appflowy only supports desktops as of now

<!-- gh-comment-id:983842719 --> @irfanbacker commented on GitHub (Dec 1, 2021): Are you trying to build for android? Appflowy only supports desktops as of now
Author
Owner

@sharp commented on GitHub (Dec 2, 2021):

@irfanbacker Got it , thanks

<!-- gh-comment-id:984205667 --> @sharp commented on GitHub (Dec 2, 2021): @irfanbacker Got it , thanks
Author
Owner

@irfanbacker commented on GitHub (Dec 2, 2021):

@irfanbacker Got it , thanks

You can close the issue then

<!-- gh-comment-id:984332791 --> @irfanbacker commented on GitHub (Dec 2, 2021): > @irfanbacker Got it , thanks You can close the issue then
Author
Owner

@jcdickinson commented on GitHub (May 21, 2022):

Found this issue through the FAQ. On Fedora you may need to install openssl1.1.x86_64, e.g.

sudo dnf in openssl1.1.x86_64 # Workstation
rpm-ostree upgrade && rpm-ostree install openssl1.1.x86_64 # Silverblue
<!-- gh-comment-id:1133666925 --> @jcdickinson commented on GitHub (May 21, 2022): Found this issue through the FAQ. On Fedora you may need to install `openssl1.1.x86_64`, e.g. ```sh sudo dnf in openssl1.1.x86_64 # Workstation rpm-ostree upgrade && rpm-ostree install openssl1.1.x86_64 # Silverblue ```
Author
Owner

@Random72IsTaken commented on GitHub (Jun 17, 2022):

I did this on Ubuntu 22.04.

  • When I first launched the Linux built app, got the blank window.
  • Ran the app through the terminal: ~/Downloads/AppFlowy/app_flowy and saw the libssl whatever not being found.
  • Then ran ldd ~/Downloads/AppFlowy/lib/libdart_ffi.so which was first read to reach the error and shown the missing 2 library links, which Ubuntu has new versions of:
    libssl.so.1.1 => not found
    libcrypto.so.1.1 => not found
    
  • So now I needed to see if the exact versions are available somewhere, and ran sudo find / -name "libssl*", which had found that that torguard app has them in its lib directory!
  • I also understood that LD_LIBRARY_PATH variable is used to find those libraries and initially echoing it has an empty result!
  • So I first tried to run the app counting those libraries in LD_LIBRARY_PATH="/opt/torguard/lib" ~/Downloads/AppFlowy/app_flowy and it worked!
  • Now I copied them the 2 libraries to /usr/local/lib, then touched 2 conf files for them like so:
    • sudo nano /etc/ld.so.conf.d/libcrypto.so.1.1.conf with only /usr/local/lib inside.
    • sudo nano /etc/ld.so.conf.d/libssl.so.1.1.conf with only /usr/local/lib inside.
  • Now just had to export LD_LIBRARY_PATH="/usr/local/lib, I guess, then run sudo ldconfig to save it all! 😋

Credits: dave1 and HeadOnFire (from Laravel community)

<!-- gh-comment-id:1159186153 --> @Random72IsTaken commented on GitHub (Jun 17, 2022): I did this on Ubuntu 22.04. - When I first launched the Linux built app, got the blank window. - Ran the app through the terminal: `~/Downloads/AppFlowy/app_flowy` and saw the `libssl` whatever not being found. - Then ran `ldd ~/Downloads/AppFlowy/lib/libdart_ffi.so` which was first read to reach the error and shown the missing 2 library links, which Ubuntu has new versions of: ```bash libssl.so.1.1 => not found libcrypto.so.1.1 => not found ``` - So now I needed to see if the exact versions are available somewhere, and ran `sudo find / -name "libssl*"`, which had found that that `torguard` app has them in its `lib` directory! - I also understood that `LD_LIBRARY_PATH` variable is used to find those libraries and initially echoing it has an empty result! - So I first tried to run the app counting those libraries in `LD_LIBRARY_PATH="/opt/torguard/lib" ~/Downloads/AppFlowy/app_flowy` and it worked! - Now I copied them the 2 libraries to `/usr/local/lib`, then touched 2 conf files for them like so: - `sudo nano /etc/ld.so.conf.d/libcrypto.so.1.1.conf` with only `/usr/local/lib` inside. - `sudo nano /etc/ld.so.conf.d/libssl.so.1.1.conf` with only `/usr/local/lib` inside. - Now just had to `export LD_LIBRARY_PATH="/usr/local/lib`, I guess, then run `sudo ldconfig` to save it all! 😋 Credits: dave1 and HeadOnFire (from Laravel community)
Author
Owner

@alflanagan commented on GitHub (Jul 19, 2022):

An easier way to get the missing libraries in Ubuntu 22.04:

$ wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1l-1ubuntu1.6_amd64.deb
$ sudo dpkg -i libssl1.1_1.1.1l-1ubuntu1.6_amd64.deb

if the above doesn''t work, see https://stackoverflow.com/a/72633324/132510.

<!-- gh-comment-id:1188930334 --> @alflanagan commented on GitHub (Jul 19, 2022): An easier way to get the missing libraries in Ubuntu 22.04: > $ wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1l-1ubuntu1.6_amd64.deb > $ sudo dpkg -i libssl1.1_1.1.1l-1ubuntu1.6_amd64.deb if the above doesn''t work, see https://stackoverflow.com/a/72633324/132510.
Author
Owner

@MikeWallaceDev commented on GitHub (Jul 23, 2022):

Reopened because this problem seems to be our "blank page" problem. I will check this out. We problably need to add to the documentation.
Note to self: also look at #566

<!-- gh-comment-id:1193138200 --> @MikeWallaceDev commented on GitHub (Jul 23, 2022): Reopened because this problem seems to be our "blank page" problem. I will check this out. We problably need to add to the documentation. Note to self: also look at #566
Author
Owner

@aarhusgregersen commented on GitHub (Aug 6, 2022):

Hey @MikeWallaceDev , how is this related to the blank page problem? Assuming you mean #136 ?

<!-- gh-comment-id:1207254037 --> @aarhusgregersen commented on GitHub (Aug 6, 2022): Hey @MikeWallaceDev , how is this related to the blank page problem? Assuming you mean #136 ?
Author
Owner

@yodatak commented on GitHub (Feb 13, 2023):

It crash even the flatpak
https://github.com/flathub/io.appflowy.AppFlowy/issues/12

<!-- gh-comment-id:1428479982 --> @yodatak commented on GitHub (Feb 13, 2023): It crash even the flatpak https://github.com/flathub/io.appflowy.AppFlowy/issues/12
Author
Owner

@yodatak commented on GitHub (Feb 25, 2023):

Same thing for the flatpak version

ldd /home/yodatak/.local/share/flatpak/app/io.appflowy.AppFlowy/x86_64/stable/df5e19d9bbfc49b666700edeb08529bc8064abce328cd6bdcee9b35db5241baf/files/appflowy/lib/libdart_ffi.so
linux-vdso.so.1 (0x00007ffd50f0c000)
libssl.so.1.1 => not found
libcrypto.so.1.1 => not found
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f05429e0000)
librt.so.1 => /lib64/librt.so.1 (0x00007f0543fb7000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f0543fb2000)
libm.so.6 => /lib64/libm.so.6 (0x00007f0542900000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f0543fab000)
libc.so.6 => /lib64/libc.so.6 (0x00007f0542723000)
/lib64/ld-linux-x86-64.so.2 (0x00007f0543fda000)

<!-- gh-comment-id:1445212103 --> @yodatak commented on GitHub (Feb 25, 2023): Same thing for the flatpak version ldd /home/yodatak/.local/share/flatpak/app/io.appflowy.AppFlowy/x86_64/stable/df5e19d9bbfc49b666700edeb08529bc8064abce328cd6bdcee9b35db5241baf/files/appflowy/lib/libdart_ffi.so linux-vdso.so.1 (0x00007ffd50f0c000) libssl.so.1.1 => not found libcrypto.so.1.1 => not found libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f05429e0000) librt.so.1 => /lib64/librt.so.1 (0x00007f0543fb7000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f0543fb2000) libm.so.6 => /lib64/libm.so.6 (0x00007f0542900000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f0543fab000) libc.so.6 => /lib64/libc.so.6 (0x00007f0542723000) /lib64/ld-linux-x86-64.so.2 (0x00007f0543fda000)
Author
Owner

@johnblommers commented on GitHub (Mar 3, 2023):

The flatpak version gives a blank page. In the terminal:

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'libdart_ffi.so': libssl.so.1.1: cannot open shared object file: No such file or directory
#0      _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:12)
#1      new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:23)
#2      _open (package:appflowy_backend/ffi.dart:27)
#3      _dart_ffi_lib (package:appflowy_backend/ffi.dart:10)
#4      _set_stream_port (package:appflowy_backend/ffi.dart)
#5      set_stream_port (package:appflowy_backend/ffi.dart)
#6      FlowySDK.init (package:appflowy_backend/appflowy_backend.dart:32)
#7      InitRustSDKTask.initialize.<anonymous closure> (package:app_flowy/startup/tasks/rust_sdk.dart:24)
<asynchronous suspension>
#8      AppLauncher.launch (package:app_flowy/startup/startup.dart:124)
<asynchronous suspension>
#9      FlowyRunner.run (package:app_flowy/startup/startup.dart:64)
<asynchronous suspension>
#10     main (package:app_flowy/main.dart:25)
<asynchronous suspension>
<!-- gh-comment-id:1452987586 --> @johnblommers commented on GitHub (Mar 3, 2023): The flatpak version gives a blank page. In the terminal: ```bash [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'libdart_ffi.so': libssl.so.1.1: cannot open shared object file: No such file or directory #0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:12) #1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:23) #2 _open (package:appflowy_backend/ffi.dart:27) #3 _dart_ffi_lib (package:appflowy_backend/ffi.dart:10) #4 _set_stream_port (package:appflowy_backend/ffi.dart) #5 set_stream_port (package:appflowy_backend/ffi.dart) #6 FlowySDK.init (package:appflowy_backend/appflowy_backend.dart:32) #7 InitRustSDKTask.initialize.<anonymous closure> (package:app_flowy/startup/tasks/rust_sdk.dart:24) <asynchronous suspension> #8 AppLauncher.launch (package:app_flowy/startup/startup.dart:124) <asynchronous suspension> #9 FlowyRunner.run (package:app_flowy/startup/startup.dart:64) <asynchronous suspension> #10 main (package:app_flowy/main.dart:25) <asynchronous suspension> ```
Author
Owner

@annieappflowy commented on GitHub (Jun 12, 2023):

Still not working? @johnblommers

<!-- gh-comment-id:1587147051 --> @annieappflowy commented on GitHub (Jun 12, 2023): Still not working? @johnblommers
Author
Owner

@johnblommers commented on GitHub (Jun 12, 2023):

Still not working? @johnblommers

appflowy is working normally today. Thanks for asking :-)

<!-- gh-comment-id:1587830964 --> @johnblommers commented on GitHub (Jun 12, 2023): > Still not working? @johnblommers appflowy is working normally today. Thanks for asking :-)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#55
No description provided.