mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 12:56:59 +00:00
[GH-ISSUE #8225] [Bug] AppFlowy 0.9.9 crashes with 'too many open files' #3665
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#3665
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @spmp on GitHub (Sep 16, 2025).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/8225
Bug Description
I have installed AppFlowy via snap, flatpak, and finally deb/dpkg as after upgrading the snap the app crashes a lot. I was finally able to get a console output from the deb package and it gives me the following error:
This is in Ubuntu 25.04
How to Reproduce
Launch AppFlowy, do stuff, do more stuff, and eventually the app will crash. It does not seem related to user input. Often it is when switching context back to the app.
Expected Behavior
That the app would not crash.
Operating System
Ubuntu 25.04
AppFlowy Version(s)
0.9.9
Screenshots
No response
Additional Context
Similar crash pattern across snap, flatpak, and deb.
@LucasXu0 commented on GitHub (Sep 17, 2025):
Hi @spmp, can you check the current system limit using
ulimit -n?@spmp commented on GitHub (Sep 17, 2025):
It's low:
1024
On Tue, 16 Sept 2025 at 20:42, Lucas @.***> wrote:
@LucasXu0 commented on GitHub (Sep 17, 2025):
You can try setting a larger limit and then relaunching the application.
@spmp commented on GitHub (Sep 17, 2025):
Thanks for the suggestion, I set hard limits to max system wide for my user, but no dice sadly:
and
The error in the original message of not being able to save is gone at least 😉
@MouaisTe commented on GitHub (Sep 17, 2025):
I have the same problem and it's very boring. I changed my system limit but it still crash at random moments.
I use Fedora 42 and I use AppFlowy 0.9.9 with Flatpak. Notice that I use a custom icon theme.
Here are the logs (some parts are in french) :
@LucasXu0 commented on GitHub (Sep 18, 2025):
@MouaisTe Are you runing the application in debug mode?@LucasXu0 commented on GitHub (Sep 18, 2025):
When you see the 'Too many open files' error, please try running
lsof -p <APPFLOWY_PID>to see what files AppFlowy has open.@MouaisTe commented on GitHub (Sep 18, 2025):
Here it is
@spmp commented on GitHub (Sep 18, 2025):
OK, so I went a bit over the top and had a look at
lsofevery 5 seconds, and this was mostly when the app was not in focus. The file count increases constantly and the app crashes when resuming focus when file count is greater than 1024.I also kept a list of all the files each time.
The diff between them is largely IPV4 connections like:
And file differences
@spmp commented on GitHub (Sep 18, 2025):
Also worth noting that the crashes seem to log me out on my other device - my iOS app. Web app stays logged in, but that's got other issues ;)
@spmp commented on GitHub (Sep 18, 2025):
I have been monitoring the number of open files whilst in an active session, the number of files stays stable around 1294 before AppFlowy eventually crashed on a
ctrl+x- so yes, open files, but maybe not. I will see if the number gets higher.I downgraded to 0.9.8 and no problems. Open files at ~340
@LucasXu0 commented on GitHub (Sep 19, 2025):
Can you try this version: https://github.com/AppFlowy-IO/AppFlowy-Builder/releases/tag/0.10.0-250918-0747? We've added some logs to help address the issue.
@spmp commented on GitHub (Sep 22, 2025):
OK, tried with 0.10.0, open files (including network connections to about 1294, open files to around 338, then crash.
Heres some of the output:
@LucasXu0 commented on GitHub (Sep 24, 2025):
@spmp can you check if you have the following folder on your machine?
~/.local/share/io.appflowy.appflowy/*/http_cache/tmp/*. It may be located in a different path based on your installation method, but it should end withhttp_cache/tmp@spmp commented on GitHub (Sep 24, 2025):
@LucasXu0 I do have that folder at
~/.local/share/io.appflowy.appflowy/*/*/http_cache/tmp, it contains no files.@LucasXu0 commented on GitHub (Sep 25, 2025):
@spmp Can you check your data folder to see if any of them contain multiple files or folders? If so, please let me know the names of those folders.
@LucasXu0 commented on GitHub (Sep 26, 2025):
Here's the latest version that may fix the 'too many open files' issue. Please try it: AppFlowy Release 0.10.0-250926-0607 and let me know if it works for you.