[GH-ISSUE #5801] [Bug] Building Mac OS app from source crashes on start up #2583

Closed
opened 2026-03-23 21:23:33 +00:00 by mirror · 1 comment
Owner

Originally created by @notandyvee on GitHub (Jul 24, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5801

Bug Description

Attempting to build the mac os app through visual code studio, explained in the docs causes the app to crash on start. I don't see any obvious crash other than that.

{"msg":"[BACKUP_OR_RESTORE - EVENT] open collab db for user 327591943192186880 at path: \"/Users/myuser/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk/327591943192186880/collab_db\"","time":"07-24 09:04:22","target":"flowy_user::services::db"}
thread '<unnamed>' panicked at library/core/src/panicking.rs:156:5:
unsafe precondition(s) violated: ptr::copy_nonoverlapping requires that both pointer arguments are aligned and non-null and the specified memory ranges do not overlap
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
Lost connection to device.

How to Reproduce

Pull the source from this repo. Follow the steps here

Expected Behavior

The app should not crash

Operating System

Mac OS Sonoma

AppFlowy Version(s)

0.6.4

Screenshots

No response

Additional Context

On a Apple M2 Max

Originally created by @notandyvee on GitHub (Jul 24, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5801 ### Bug Description Attempting to build the mac os app through visual code studio, explained in the [docs](https://docs.appflowy.io/docs/documentation/appflowy/from-source/environment-setup/building-on-macos) causes the app to crash on start. I don't see any obvious crash other than that. ``` {"msg":"[BACKUP_OR_RESTORE - EVENT] open collab db for user 327591943192186880 at path: \"/Users/myuser/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk/327591943192186880/collab_db\"","time":"07-24 09:04:22","target":"flowy_user::services::db"} thread '<unnamed>' panicked at library/core/src/panicking.rs:156:5: unsafe precondition(s) violated: ptr::copy_nonoverlapping requires that both pointer arguments are aligned and non-null and the specified memory ranges do not overlap note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace thread caused non-unwinding panic. aborting. Lost connection to device. ``` ### How to Reproduce Pull the source from this repo. Follow the steps [here](https://docs.appflowy.io/docs/documentation/appflowy/from-source/environment-setup/building-on-macos) ### Expected Behavior The app should not crash ### Operating System Mac OS Sonoma ### AppFlowy Version(s) 0.6.4 ### Screenshots _No response_ ### Additional Context On a Apple M2 Max
Author
Owner

@Xazin commented on GitHub (Jul 24, 2024):

Duplicate of #5691

<!-- gh-comment-id:2247915988 --> @Xazin commented on GitHub (Jul 24, 2024): Duplicate of #5691
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#2583
No description provided.