[GH-ISSUE #5840] [Bug] Crash on startup when previously in an anonymous session #2595

Closed
opened 2026-03-23 21:23:38 +00:00 by mirror · 4 comments
Owner

Originally created by @SeanSiders on GitHub (Jul 30, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5840

Bug Description

AppFlowy consistently crashes when reopening the application through an anonymous session.

How to Reproduce

  1. Open AppFlowy
  2. Start an anonymous session
  3. Close AppFlowy
  4. Re-open AppFlowy (CRASH OCCURS)
    Upon clicking "Reopen" in the crash report, the crash occurs again

Expected Behavior

The application should open in the anonymous session I was previously in.

Operating System

Sonoma 14.5

AppFlowy Version(s)

0.6.4

Screenshots

Screenshot 2024-07-30 at 10 54 09 AM

Additional Context

ARM-64
M3 chip MacBook Pro

It's important to note that I did successfully build the frontend on the main branch via AF-desktop: Clean + Rebuild All as advised for first-time contributors prior to anything. In this build, I chose the anonymous session option. I later installed AppFlowy 0.6.4 and started playing around with that (No Crash Yet). I then moved back to the development build with AF-desktop: Clean + Rebuild All once again. It appears the crash occurs while initializing the Rust SDK (stack trace provided below).

It's not clear to me whether the core issue involves the release version (0.6.4), main branch version, or in how I used both interchangeably. Last thing I'd like to note, is that I consistently receive this security warning ONLY while running AF-desktop: Clean + Rebuild All; after selecting "Open Anyway" the crash occurs.

Screenshot 2024-07-30 at 10 58 00 AM

Originally created by @SeanSiders on GitHub (Jul 30, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5840 ### Bug Description AppFlowy consistently crashes when reopening the application through an anonymous session. ### How to Reproduce 1. Open AppFlowy 2. Start an anonymous session 3. Close AppFlowy 4. Re-open AppFlowy (CRASH OCCURS) *Upon clicking "Reopen" in the crash report, the crash occurs again* ### Expected Behavior The application should open in the anonymous session I was previously in. ### Operating System Sonoma 14.5 ### AppFlowy Version(s) 0.6.4 ### Screenshots ![Screenshot 2024-07-30 at 10 54 09 AM](https://github.com/user-attachments/assets/532216e0-c771-4ac3-9c94-b223ced26206) ### Additional Context ARM-64 M3 chip MacBook Pro It's important to note that I did successfully build the frontend on the main branch via `AF-desktop: Clean + Rebuild All` as advised for first-time contributors prior to anything. In this build, I chose the anonymous session option. I later installed AppFlowy 0.6.4 and started playing around with that (No Crash Yet). I then moved back to the development build with `AF-desktop: Clean + Rebuild All` once again. It appears the crash occurs while initializing the Rust SDK *(stack trace provided below)*. It's not clear to me whether the core issue involves the release version (0.6.4), main branch version, or in how I used both interchangeably. Last thing I'd like to note, is that I consistently receive this security warning ONLY while running `AF-desktop: Clean + Rebuild All`; after selecting "Open Anyway" the crash occurs. ![Screenshot 2024-07-30 at 10 58 00 AM](https://github.com/user-attachments/assets/c53e5e81-a13e-4251-b1b1-0c2a91174639)
Author
Owner

@SeanSiders commented on GitHub (Jul 30, 2024):

STACK TRACE FOLLOWING AF-desktop: Clean + Build All

Launching lib/main.dart on macOS in debug mode...
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00006030-001439420C84001C, name:My Mac }
{ platform:macOS, arch:x86_64, id:00006030-001439420C84001C, name:My Mac }
/Users/seansiders/.pub-cache/hosted/pub.dev/printing-5.13.1/macos/Classes/PrintJob.swift:233:23: warning: 'WebView' was deprecated in macOS 10.14: No longer supported; please adopt WKWebView.
        let webView = WebView()
                      ^
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Flutter Assemble' from project 'Runner')

✓ Built build/macos/Build/Products/Debug/AppFlowy.app
[IMPORTANT:flutter/shell/platform/darwin/graphics/FlutterDarwinContextMetalSkia.mm(66)] Using the Skia rendering backend (Metal).
2024-07-30 11:18:57.798 AppFlowy[19405:142813] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:.
Connecting to VM Service at ws://127.0.0.1:51005/ikhLa61Q6H8=/ws
flutter: [🌎 Easy Localization] [DEBUG] Localization initialized
flutter: application path: /Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev
  2024-07-30 11:19:06  INFO flowy_core: 💡Some("MacOS 14.5 "), platform: MacOS
    at flowy-core/src/lib.rs:90

{"msg":"💡Some(\"MacOS 14.5 \"), platform: MacOS","time":"07-30 11:19:06","target":"flowy_core"}
{"msg":"[🟢 INIT - START]","time":"07-30 11:19:06","target":"flowy_core"}
  2024-07-30 11:19:06  INFO flowy_core: 🔥AppFlowy Configuration { app_version: Version { major: 0, minor: 6, patch: 4 }, storage_path: "/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk", application_path: "/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev", base_url: "https://beta.appflowy.cloud", ws_url: "wss://beta.appflowy.cloud:443/ws/v1", gotrue_url: "https://beta.appflowy.cloud/gotrue" }
    at flowy-core/src/lib.rs:108
    in flowy_core::init

{"msg":"[INIT - EVENT] 🔥AppFlowy Configuration { app_version: Version { major: 0, minor: 6, patch: 4 }, storage_path: \"/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk\", application_path: \"/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev\", base_url: \"https://beta.appflowy.cloud\", ws_url: \"wss://beta.appflowy.cloud:443/ws/v1\", gotrue_url: \"https://beta.appflowy.cloud/gotrue\" }","time":"07-30 11:19:06","target":"flowy_core"}
  2024-07-30 11:19:06 DEBUG flowy_core: 🔥runtime:Runtime(multi_thread), server:AppFlowyCloud
    at flowy-core/src/lib.rs:128
    in flowy_core::init

{"msg":"[INIT - EVENT] 🔥runtime:Runtime(multi_thread), server:AppFlowyCloud","time":"07-30 11:19:06","target":"flowy_core"}
  2024-07-30 11:19:06 DEBUG flowy_core: Init managers
    at flowy-core/src/lib.rs:137
    in flowy_core::init

{"msg":"[INIT - EVENT] Init managers","time":"07-30 11:19:06","target":"flowy_core"}
  2024-07-30 11:19:06  INFO flowy_chat::local_ai::local_llm_chat: [AI Plugin] state: Connecting
    at flowy-chat/src/local_ai/local_llm_chat.rs:62

{"msg":"[AI Plugin] state: Connecting","time":"07-30 11:19:06","target":"flowy_chat::local_ai::local_llm_chat"}
{"msg":"[🟢 SEND_NOTIFICATION - START]","time":"07-30 11:19:06","target":"flowy_chat::notification"}
{"msg":"[SEND_NOTIFICATION - END]","time":"07-30 11:19:06","target":"flowy_chat::notification","ty":"UpdateChatPluginState","id":"appflowy_chat_plugin"}
  2024-07-30 11:19:06 TRACE client_api::http: Client version: 0.6.4, features: ["enable_brotli"]
    at /Users/seansiders/.cargo/git/checkouts/appflowy-cloud-875aed6322f3953d/eebdbca/libs/client-api/src/http.rs:155
    in flowy_core::init

{"msg":"[INIT - EVENT] Client version: 0.6.4, features: [\"enable_brotli\"]","time":"07-30 11:19:06","target":"client_api::http"}
{"msg":"[🟢 INIT_WITH_CALLBACK - START]","time":"07-30 11:19:06","target":"flowy_user::user_manager::manager"}
  2024-07-30 11:19:06 DEBUG flowy_user::services::db: open sqlite db 350074397307965440 at path: "/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk/350074397307965440"
    at flowy-user/src/services/db.rs:156
    in flowy_user::user_manager::manager::init_with_callback
    in flowy_core::init

{"msg":"[INIT_WITH_CALLBACK - EVENT] open sqlite db 350074397307965440 at path: \"/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk/350074397307965440\"","time":"07-30 11:19:06","target":"flowy_user::services::db"}
  2024-07-30 11:19:06  INFO flowy_user::user_manager::manager: init user session: 350074397307965440:0c1e6b82-31a0-470d-b377-8750dacea074@appflowy.io, authenticator: Local
    at flowy-user/src/user_manager/manager.rs:153
    in flowy_user::user_manager::manager::init_with_callback
    in flowy_core::init

{"msg":"[INIT_WITH_CALLBACK - EVENT] init user session: 350074397307965440:0c1e6b82-31a0-470d-b377-8750dacea074@appflowy.io, authenticator: Local","time":"07-30 11:19:06","target":"flowy_user::user_manager::manager"}
  2024-07-30 11:19:06 TRACE flowy_user::services::db: close sqlite db for user 350074397307965440
    at flowy-user/src/services/db.rs:117
    in flowy_user::user_manager::manager::init_with_callback
    in flowy_core::init

{"msg":"[INIT_WITH_CALLBACK - EVENT] close sqlite db for user 350074397307965440","time":"07-30 11:19:06","target":"flowy_user::services::db"}
{"msg":"[🟢 BACKUP_OR_RESTORE - START]","time":"07-30 11:19:06","target":"flowy_user::services::db"}
  2024-07-30 11:19:06  INFO flowy_user::services::db: open collab db for user 350074397307965440 at path: "/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk/350074397307965440/collab_db"
    at flowy-user/src/services/db.rs:203
    in flowy_user::services::db::backup_or_restore
    in flowy_user::user_manager::manager::init_with_callback
    in flowy_core::init

{"msg":"[BACKUP_OR_RESTORE - EVENT] open collab db for user 350074397307965440 at path: \"/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk/350074397307965440/collab_db\"","time":"07-30 11:19:06","target":"flowy_user::services::db"}
thread '<unnamed>' panicked at library/core/src/panicking.rs:220: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.

Exited.
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64, locale en-US)
    • Flutter version 3.22.2 on channel stable at /Users/seansiders/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (8 weeks ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/seansiders/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)

[✓] VS Code (version 1.91.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.92.0

[✓] Connected device (3 available)
    • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 14.5 23F79 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 14.5 23F79 darwin-arm64
    • Chrome (web)                    • chrome                • web-javascript • Google Chrome 126.0.6478.183
    ! Error: Browsing on the local area network for Cody S. Iphone . Ensure the device is unlocked and attached with a cable or associated with the same local
      area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
    ! Error: Browsing on the local area network for Sean Siders’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the same
      local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.

• No issues found!
<!-- gh-comment-id:2258941315 --> @SeanSiders commented on GitHub (Jul 30, 2024): **STACK TRACE FOLLOWING `AF-desktop: Clean + Build All`** ```zsh Launching lib/main.dart on macOS in debug mode... --- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:macOS, arch:arm64, id:00006030-001439420C84001C, name:My Mac } { platform:macOS, arch:x86_64, id:00006030-001439420C84001C, name:My Mac } /Users/seansiders/.pub-cache/hosted/pub.dev/printing-5.13.1/macos/Classes/PrintJob.swift:233:23: warning: 'WebView' was deprecated in macOS 10.14: No longer supported; please adopt WKWebView. let webView = WebView() ^ warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Flutter Assemble' from project 'Runner') ✓ Built build/macos/Build/Products/Debug/AppFlowy.app [IMPORTANT:flutter/shell/platform/darwin/graphics/FlutterDarwinContextMetalSkia.mm(66)] Using the Skia rendering backend (Metal). 2024-07-30 11:18:57.798 AppFlowy[19405:142813] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:. Connecting to VM Service at ws://127.0.0.1:51005/ikhLa61Q6H8=/ws flutter: [🌎 Easy Localization] [DEBUG] Localization initialized flutter: application path: /Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev 2024-07-30 11:19:06 INFO flowy_core: 💡Some("MacOS 14.5 "), platform: MacOS at flowy-core/src/lib.rs:90 {"msg":"💡Some(\"MacOS 14.5 \"), platform: MacOS","time":"07-30 11:19:06","target":"flowy_core"} {"msg":"[🟢 INIT - START]","time":"07-30 11:19:06","target":"flowy_core"} 2024-07-30 11:19:06 INFO flowy_core: 🔥AppFlowy Configuration { app_version: Version { major: 0, minor: 6, patch: 4 }, storage_path: "/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk", application_path: "/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev", base_url: "https://beta.appflowy.cloud", ws_url: "wss://beta.appflowy.cloud:443/ws/v1", gotrue_url: "https://beta.appflowy.cloud/gotrue" } at flowy-core/src/lib.rs:108 in flowy_core::init {"msg":"[INIT - EVENT] 🔥AppFlowy Configuration { app_version: Version { major: 0, minor: 6, patch: 4 }, storage_path: \"/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk\", application_path: \"/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev\", base_url: \"https://beta.appflowy.cloud\", ws_url: \"wss://beta.appflowy.cloud:443/ws/v1\", gotrue_url: \"https://beta.appflowy.cloud/gotrue\" }","time":"07-30 11:19:06","target":"flowy_core"} 2024-07-30 11:19:06 DEBUG flowy_core: 🔥runtime:Runtime(multi_thread), server:AppFlowyCloud at flowy-core/src/lib.rs:128 in flowy_core::init {"msg":"[INIT - EVENT] 🔥runtime:Runtime(multi_thread), server:AppFlowyCloud","time":"07-30 11:19:06","target":"flowy_core"} 2024-07-30 11:19:06 DEBUG flowy_core: Init managers at flowy-core/src/lib.rs:137 in flowy_core::init {"msg":"[INIT - EVENT] Init managers","time":"07-30 11:19:06","target":"flowy_core"} 2024-07-30 11:19:06 INFO flowy_chat::local_ai::local_llm_chat: [AI Plugin] state: Connecting at flowy-chat/src/local_ai/local_llm_chat.rs:62 {"msg":"[AI Plugin] state: Connecting","time":"07-30 11:19:06","target":"flowy_chat::local_ai::local_llm_chat"} {"msg":"[🟢 SEND_NOTIFICATION - START]","time":"07-30 11:19:06","target":"flowy_chat::notification"} {"msg":"[SEND_NOTIFICATION - END]","time":"07-30 11:19:06","target":"flowy_chat::notification","ty":"UpdateChatPluginState","id":"appflowy_chat_plugin"} 2024-07-30 11:19:06 TRACE client_api::http: Client version: 0.6.4, features: ["enable_brotli"] at /Users/seansiders/.cargo/git/checkouts/appflowy-cloud-875aed6322f3953d/eebdbca/libs/client-api/src/http.rs:155 in flowy_core::init {"msg":"[INIT - EVENT] Client version: 0.6.4, features: [\"enable_brotli\"]","time":"07-30 11:19:06","target":"client_api::http"} {"msg":"[🟢 INIT_WITH_CALLBACK - START]","time":"07-30 11:19:06","target":"flowy_user::user_manager::manager"} 2024-07-30 11:19:06 DEBUG flowy_user::services::db: open sqlite db 350074397307965440 at path: "/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk/350074397307965440" at flowy-user/src/services/db.rs:156 in flowy_user::user_manager::manager::init_with_callback in flowy_core::init {"msg":"[INIT_WITH_CALLBACK - EVENT] open sqlite db 350074397307965440 at path: \"/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk/350074397307965440\"","time":"07-30 11:19:06","target":"flowy_user::services::db"} 2024-07-30 11:19:06 INFO flowy_user::user_manager::manager: init user session: 350074397307965440:0c1e6b82-31a0-470d-b377-8750dacea074@appflowy.io, authenticator: Local at flowy-user/src/user_manager/manager.rs:153 in flowy_user::user_manager::manager::init_with_callback in flowy_core::init {"msg":"[INIT_WITH_CALLBACK - EVENT] init user session: 350074397307965440:0c1e6b82-31a0-470d-b377-8750dacea074@appflowy.io, authenticator: Local","time":"07-30 11:19:06","target":"flowy_user::user_manager::manager"} 2024-07-30 11:19:06 TRACE flowy_user::services::db: close sqlite db for user 350074397307965440 at flowy-user/src/services/db.rs:117 in flowy_user::user_manager::manager::init_with_callback in flowy_core::init {"msg":"[INIT_WITH_CALLBACK - EVENT] close sqlite db for user 350074397307965440","time":"07-30 11:19:06","target":"flowy_user::services::db"} {"msg":"[🟢 BACKUP_OR_RESTORE - START]","time":"07-30 11:19:06","target":"flowy_user::services::db"} 2024-07-30 11:19:06 INFO flowy_user::services::db: open collab db for user 350074397307965440 at path: "/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk/350074397307965440/collab_db" at flowy-user/src/services/db.rs:203 in flowy_user::services::db::backup_or_restore in flowy_user::user_manager::manager::init_with_callback in flowy_core::init {"msg":"[BACKUP_OR_RESTORE - EVENT] open collab db for user 350074397307965440 at path: \"/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk/350074397307965440/collab_db\"","time":"07-30 11:19:06","target":"flowy_user::services::db"} thread '<unnamed>' panicked at library/core/src/panicking.rs:220: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. Exited. ``` ``` [✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64, locale en-US) • Flutter version 3.22.2 on channel stable at /Users/seansiders/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 761747bfc5 (8 weeks ago), 2024-06-05 22:15:13 +0200 • Engine revision edd8546116 • Dart version 3.4.3 • DevTools version 2.34.3 [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /Users/seansiders/Library/Android/sdk • Platform android-34, build-tools 34.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 15.4) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 15F31d • CocoaPods version 1.15.2 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2023.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874) [✓] VS Code (version 1.91.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.92.0 [✓] Connected device (3 available) • macOS (desktop) • macos • darwin-arm64 • macOS 14.5 23F79 darwin-arm64 • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.5 23F79 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 126.0.6478.183 ! Error: Browsing on the local area network for Cody S. Iphone . Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac. The device must be opted into Developer Mode to connect wirelessly. (code -27) ! Error: Browsing on the local area network for Sean Siders’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac. The device must be opted into Developer Mode to connect wirelessly. (code -27) [✓] Network resources • All expected network resources are available. • No issues found! ```
Author
Owner

@SeanSiders commented on GitHub (Jul 30, 2024):

The crash report was too long to copy & paste:
AppFlowy Crash Report (0.6.4).txt

<!-- gh-comment-id:2258947489 --> @SeanSiders commented on GitHub (Jul 30, 2024): The crash report was too long to copy & paste: [AppFlowy Crash Report (0.6.4).txt](https://github.com/user-attachments/files/16431976/AppFlowy.Crash.Report.0.6.4.txt)
Author
Owner

@SeanSiders commented on GitHub (Jul 30, 2024):

STACKTRACE FOLLOWING AF-desktop: Build All w/ RUST_BACKTRACE=full

Tracing via the debugger, the crash occurs somewhere after this line of code in app_flowy_backend.dart:

final code = ffi.init_sdk(0, configuration.toNativeUtf8());
Launching lib/main.dart on macOS in debug mode...
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00006030-001439420C84001C, name:My Mac }
{ platform:macOS, arch:x86_64, id:00006030-001439420C84001C, name:My Mac }

✓ Built build/macos/Build/Products/Debug/AppFlowy.app
[IMPORTANT:flutter/shell/platform/darwin/graphics/FlutterDarwinContextMetalSkia.mm(66)] Using the Skia rendering backend (Metal).
2024-07-30 11:28:27.932 AppFlowy[28848:194356] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:.
Connecting to VM Service at ws://127.0.0.1:51557/hd16Pvx7DAo=/ws
flutter: [🌎 Easy Localization] [DEBUG] Localization initialized
flutter: application path: /Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev
  2024-07-30 11:28:43  INFO flowy_core: 💡Some("MacOS 14.5 "), platform: MacOS
    at flowy-core/src/lib.rs:90

{"msg":"💡Some(\"MacOS 14.5 \"), platform: MacOS","time":"07-30 11:28:43","target":"flowy_core"}
{"msg":"[🟢 INIT - START]","time":"07-30 11:28:43","target":"flowy_core"}
  2024-07-30 11:28:43  INFO flowy_core: 🔥AppFlowy Configuration { app_version: Version { major: 0, minor: 6, patch: 4 }, storage_path: "/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk", application_path: "/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev", base_url: "https://beta.appflowy.cloud", ws_url: "wss://beta.appflowy.cloud:443/ws/v1", gotrue_url: "https://beta.appflowy.cloud/gotrue" }
    at flowy-core/src/lib.rs:108
    in flowy_core::init

{"msg":"[INIT - EVENT] 🔥AppFlowy Configuration { app_version: Version { major: 0, minor: 6, patch: 4 }, storage_path: \"/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk\", application_path: \"/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev\", base_url: \"https://beta.appflowy.cloud\", ws_url: \"wss://beta.appflowy.cloud:443/ws/v1\", gotrue_url: \"https://beta.appflowy.cloud/gotrue\" }","time":"07-30 11:28:43","target":"flowy_core"}
  2024-07-30 11:28:43 DEBUG flowy_core: 🔥runtime:Runtime(multi_thread), server:AppFlowyCloud
    at flowy-core/src/lib.rs:128
    in flowy_core::init

{"msg":"[INIT - EVENT] 🔥runtime:Runtime(multi_thread), server:AppFlowyCloud","time":"07-30 11:28:43","target":"flowy_core"}
  2024-07-30 11:28:43 DEBUG flowy_core: Init managers
    at flowy-core/src/lib.rs:137
    in flowy_core::init

{"msg":"[INIT - EVENT] Init managers","time":"07-30 11:28:43","target":"flowy_core"}
  2024-07-30 11:28:43  INFO flowy_chat::local_ai::local_llm_chat: [AI Plugin] state: Connecting
    at flowy-chat/src/local_ai/local_llm_chat.rs:62

{"msg":"[AI Plugin] state: Connecting","time":"07-30 11:28:43","target":"flowy_chat::local_ai::local_llm_chat"}
{"msg":"[🟢 SEND_NOTIFICATION - START]","time":"07-30 11:28:43","target":"flowy_chat::notification"}
{"msg":"[SEND_NOTIFICATION - END]","time":"07-30 11:28:43","target":"flowy_chat::notification","id":"appflowy_chat_plugin","ty":"UpdateChatPluginState"}
  2024-07-30 11:28:43 TRACE client_api::http: Client version: 0.6.4, features: ["enable_brotli"]
    at /Users/seansiders/.cargo/git/checkouts/appflowy-cloud-875aed6322f3953d/eebdbca/libs/client-api/src/http.rs:155
    in flowy_core::init

{"msg":"[INIT - EVENT] Client version: 0.6.4, features: [\"enable_brotli\"]","time":"07-30 11:28:43","target":"client_api::http"}
{"msg":"[🟢 INIT_WITH_CALLBACK - START]","time":"07-30 11:28:43","target":"flowy_user::user_manager::manager"}
  2024-07-30 11:28:43 DEBUG flowy_user::services::db: open sqlite db 350074397307965440 at path: "/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk/350074397307965440"
    at flowy-user/src/services/db.rs:156
    in flowy_user::user_manager::manager::init_with_callback
    in flowy_core::init

{"msg":"[INIT_WITH_CALLBACK - EVENT] open sqlite db 350074397307965440 at path: \"/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk/350074397307965440\"","time":"07-30 11:28:43","target":"flowy_user::services::db"}
  2024-07-30 11:28:43  INFO flowy_user::user_manager::manager: init user session: 350074397307965440:0c1e6b82-31a0-470d-b377-8750dacea074@appflowy.io, authenticator: Local
    at flowy-user/src/user_manager/manager.rs:153
    in flowy_user::user_manager::manager::init_with_callback
    in flowy_core::init

{"msg":"[INIT_WITH_CALLBACK - EVENT] init user session: 350074397307965440:0c1e6b82-31a0-470d-b377-8750dacea074@appflowy.io, authenticator: Local","time":"07-30 11:28:43","target":"flowy_user::user_manager::manager"}
  2024-07-30 11:28:43 TRACE flowy_user::services::db: close sqlite db for user 350074397307965440
    at flowy-user/src/services/db.rs:117
    in flowy_user::user_manager::manager::init_with_callback
    in flowy_core::init

{"msg":"[INIT_WITH_CALLBACK - EVENT] close sqlite db for user 350074397307965440","time":"07-30 11:28:43","target":"flowy_user::services::db"}
{"msg":"[🟢 BACKUP_OR_RESTORE - START]","time":"07-30 11:28:43","target":"flowy_user::services::db"}
  2024-07-30 11:28:43  INFO flowy_user::services::db: open collab db for user 350074397307965440 at path: "/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk/350074397307965440/collab_db"
    at flowy-user/src/services/db.rs:203
    in flowy_user::services::db::backup_or_restore
    in flowy_user::user_manager::manager::init_with_callback
    in flowy_core::init

{"msg":"[BACKUP_OR_RESTORE - EVENT] open collab db for user 350074397307965440 at path: \"/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk/350074397307965440/collab_db\"","time":"07-30 11:28:43","target":"flowy_user::services::db"}
thread '<unnamed>' panicked at library/core/src/panicking.rs:220: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
stack backtrace:
   0:        0x1071c5494 - std::backtrace_rs::backtrace::libunwind::trace::he4f0a5f56afe8e37
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/../../backtrace/src/backtrace/libunwind.rs:105:5
   1:        0x1071c5494 - std::backtrace_rs::backtrace::trace_unsynchronized::habb302958e80f800
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:        0x1071c5494 - std::sys_common::backtrace::_print_fmt::h9819d35e2a5cda77
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:68:5
   3:        0x1071c5494 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h1f3776e0b5c7517d
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:44:22
   4:        0x107206124 - core::fmt::rt::Argument::fmt::h626862aa6242248a
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/fmt/rt.rs:165:63
   5:        0x107206124 - core::fmt::write::heedef092c8c0962e
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/fmt/mod.rs:1157:21
   6:        0x1071badcc - std::io::Write::write_fmt::h7178e8e2ea928914
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/io/mod.rs:1832:15
   7:        0x1071c52ec - std::sys_common::backtrace::_print::ha0f584bc7bfb9d2b
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:47:5
   8:        0x1071c52ec - std::sys_common::backtrace::print::h417292deb95532ed
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:34:9
   9:        0x1071c7978 - std::panicking::default_hook::{{closure}}::h0cb68f1228c4613a
  10:        0x1071c766c - std::panicking::default_hook::h24535936bc1f51de
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:298:9
  11:        0x1071c83d0 - std::panicking::rust_panic_with_hook::h5db4d2345b297bed
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:795:13
  12:        0x1071c7dd4 - std::panicking::begin_panic_handler::{{closure}}::h3fd558f09a0d5492
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:656:13
  13:        0x1071c591c - std::sys_common::backtrace::__rust_end_short_backtrace::hfc76eebe1ce501b2
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:171:18
  14:        0x1071c7b70 - rust_begin_unwind
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:652:5
  15:        0x107202b34 - core::panicking::panic_nounwind_fmt::runtime::h6aaba2885d9c2d14
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panicking.rs:110:18
  16:        0x107202b34 - core::panicking::panic_nounwind_fmt::hcce2987b0dd42723
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panicking.rs:120:5
  17:        0x107202bac - core::panicking::panic_nounwind::h355f878b46c24ec3
                               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panicking.rs:220:5
  18:        0x1056fc180 - rocksdb::transactions::transaction_db::TransactionDB<T>::open_cf_descriptors_internal::hd5497d5f42c26e26
  19:        0x1055c7ba8 - rocksdb::transactions::transaction_db::TransactionDB<T>::open_cf::h9419b127ba822c35
                               at /Users/seansiders/.cargo/git/checkouts/rust-rocksdb-00c8fca3e809007a/21cf4a2/src/transactions/transaction_db.rs:200:9
  20:        0x1055c7ba8 - rocksdb::transactions::transaction_db::TransactionDB<T>::open::hc0a525a471c77a49
                               at /Users/seansiders/.cargo/git/checkouts/rust-rocksdb-00c8fca3e809007a/21cf4a2/src/transactions/transaction_db.rs:179:9
  21:        0x1055c7ba8 - collab_plugins::local_storage::rocksdb::kv_impl::KVTransactionDBRocksdbImpl::open::h650a7a9ee3ccad0f
                               at /Users/seansiders/.cargo/git/checkouts/appflowy-collab-494188f9dbf24ecc/20f7814/collab-plugins/src/local_storage/rocksdb/kv_impl.rs:69:23
  22:        0x1055ba928 - flowy_user::services::db::UserDB::open_collab_db::h44890b3cd0b9e955
  23:        0x1055bdc58 - flowy_user::services::db::UserDB::backup_or_restore::h5e312e4a8d108472
                               at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/flowy-user/src/services/db.rs:68:22
  24:        0x10426c894 - flowy_user::user_manager::manager::UserManager::prepare_backup::{{closure}}::h81fe8a8c8df9714c
                               at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/flowy-user/src/user_manager/manager.rs:533:5
  25:        0x10426c894 - flowy_user::user_manager::manager::UserManager::init_with_callback::{{closure}}::{{closure}}::{{closure}}::hf0ee8f1bdbaff633
                               at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/flowy-user/src/user_manager/manager.rs:162:37
  26:        0x10426b34c - flowy_user::user_manager::manager::UserManager::init_with_callback::{{closure}}::{{closure}}::h52b8f43a3ac270ce
                               at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/flowy-user/src/user_manager/manager.rs:124:3
  27:        0x104269178 - <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll::hf3fcb1f404c3bcdb
                               at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-0.1.40/src/instrument.rs:321:9
  28:        0x104269178 - flowy_user::user_manager::manager::UserManager::init_with_callback::{{closure}}::h09b169f4c3b2019b
                               at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/flowy-user/src/user_manager/manager.rs:124:3
  29:        0x104269178 - flowy_core::AppFlowyCore::init::{{closure}}::{{closure}}::h33c9107478c83763
                               at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/flowy-core/src/lib.rs:255:10
  30:        0x1042754e8 - <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll::he5e778a3ed30e97c
                               at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-0.1.40/src/instrument.rs:321:9
  31:        0x1042754e8 - flowy_core::AppFlowyCore::init::{{closure}}::h8864e453384c85c3
                               at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/flowy-core/src/lib.rs:104:3
  32:        0x1042754e8 - flowy_core::AppFlowyCore::new::{{closure}}::haf05da5d76cc2fef
                               at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/flowy-core/src/lib.rs:97:33
  33:        0x1042754e8 - dart_ffi::init_sdk::{{closure}}::hc4ad1f08b34a5f9b
                               at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/dart-ffi/src/lib.rs:103:64
  34:        0x1042754e8 - <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll::h2c98b5deabc6293c
                               at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-0.1.40/src/instrument.rs:321:9
  35:        0x10425f6ac - tokio::runtime::park::CachedParkThread::block_on::{{closure}}::hc687f0b5888074d0
                               at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/park.rs:281:63
  36:        0x10425f6ac - tokio::runtime::coop::with_budget::h772b6a0f7f639f21
                               at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/coop.rs:107:5
  37:        0x10425f6ac - tokio::runtime::coop::budget::h1e9cf6224c7f606b
                               at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/coop.rs:73:5
  38:        0x10425f6ac - tokio::runtime::park::CachedParkThread::block_on::hafb74e1946216705
                               at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/park.rs:281:31
  39:        0x104263cc8 - tokio::runtime::context::blocking::BlockingRegionGuard::block_on::h9808047cb2c8ffd3
                               at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/context/blocking.rs:66:9
  40:        0x104263cc8 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}::h37da0bc8ad3f6402
                               at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/scheduler/multi_thread/mod.rs:87:13
  41:        0x104263cc8 - tokio::runtime::context::runtime::enter_runtime::h9d604291d02bb66c
                               at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/context/runtime.rs:65:16
  42:        0x10425e9dc - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::h2b12c157d22e22db
                               at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/scheduler/multi_thread/mod.rs:86:9
  43:        0x10425e9dc - tokio::runtime::runtime::Runtime::block_on::h70a297fcf39dd8c0
                               at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/runtime.rs:349:45
  44:        0x104259988 - lib_dispatch::runtime::AFPluginRuntime::block_on::h6113ac6130cfa8af
                               at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/lib-dispatch/src/runtime.rs:85:5
  45:        0x104259988 - init_sdk
                               at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/dart-ffi/src/lib.rs:102:29
thread caused non-unwinding panic. aborting.
Lost connection to device.

Exited.
<!-- gh-comment-id:2258962909 --> @SeanSiders commented on GitHub (Jul 30, 2024): **STACKTRACE FOLLOWING `AF-desktop: Build All` w/ `RUST_BACKTRACE=full`** Tracing via the debugger, the crash occurs somewhere after this line of code in `app_flowy_backend.dart`: ```dart final code = ffi.init_sdk(0, configuration.toNativeUtf8()); ``` ```zsh Launching lib/main.dart on macOS in debug mode... --- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:macOS, arch:arm64, id:00006030-001439420C84001C, name:My Mac } { platform:macOS, arch:x86_64, id:00006030-001439420C84001C, name:My Mac } ✓ Built build/macos/Build/Products/Debug/AppFlowy.app [IMPORTANT:flutter/shell/platform/darwin/graphics/FlutterDarwinContextMetalSkia.mm(66)] Using the Skia rendering backend (Metal). 2024-07-30 11:28:27.932 AppFlowy[28848:194356] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:. Connecting to VM Service at ws://127.0.0.1:51557/hd16Pvx7DAo=/ws flutter: [🌎 Easy Localization] [DEBUG] Localization initialized flutter: application path: /Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev 2024-07-30 11:28:43 INFO flowy_core: 💡Some("MacOS 14.5 "), platform: MacOS at flowy-core/src/lib.rs:90 {"msg":"💡Some(\"MacOS 14.5 \"), platform: MacOS","time":"07-30 11:28:43","target":"flowy_core"} {"msg":"[🟢 INIT - START]","time":"07-30 11:28:43","target":"flowy_core"} 2024-07-30 11:28:43 INFO flowy_core: 🔥AppFlowy Configuration { app_version: Version { major: 0, minor: 6, patch: 4 }, storage_path: "/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk", application_path: "/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev", base_url: "https://beta.appflowy.cloud", ws_url: "wss://beta.appflowy.cloud:443/ws/v1", gotrue_url: "https://beta.appflowy.cloud/gotrue" } at flowy-core/src/lib.rs:108 in flowy_core::init {"msg":"[INIT - EVENT] 🔥AppFlowy Configuration { app_version: Version { major: 0, minor: 6, patch: 4 }, storage_path: \"/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk\", application_path: \"/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev\", base_url: \"https://beta.appflowy.cloud\", ws_url: \"wss://beta.appflowy.cloud:443/ws/v1\", gotrue_url: \"https://beta.appflowy.cloud/gotrue\" }","time":"07-30 11:28:43","target":"flowy_core"} 2024-07-30 11:28:43 DEBUG flowy_core: 🔥runtime:Runtime(multi_thread), server:AppFlowyCloud at flowy-core/src/lib.rs:128 in flowy_core::init {"msg":"[INIT - EVENT] 🔥runtime:Runtime(multi_thread), server:AppFlowyCloud","time":"07-30 11:28:43","target":"flowy_core"} 2024-07-30 11:28:43 DEBUG flowy_core: Init managers at flowy-core/src/lib.rs:137 in flowy_core::init {"msg":"[INIT - EVENT] Init managers","time":"07-30 11:28:43","target":"flowy_core"} 2024-07-30 11:28:43 INFO flowy_chat::local_ai::local_llm_chat: [AI Plugin] state: Connecting at flowy-chat/src/local_ai/local_llm_chat.rs:62 {"msg":"[AI Plugin] state: Connecting","time":"07-30 11:28:43","target":"flowy_chat::local_ai::local_llm_chat"} {"msg":"[🟢 SEND_NOTIFICATION - START]","time":"07-30 11:28:43","target":"flowy_chat::notification"} {"msg":"[SEND_NOTIFICATION - END]","time":"07-30 11:28:43","target":"flowy_chat::notification","id":"appflowy_chat_plugin","ty":"UpdateChatPluginState"} 2024-07-30 11:28:43 TRACE client_api::http: Client version: 0.6.4, features: ["enable_brotli"] at /Users/seansiders/.cargo/git/checkouts/appflowy-cloud-875aed6322f3953d/eebdbca/libs/client-api/src/http.rs:155 in flowy_core::init {"msg":"[INIT - EVENT] Client version: 0.6.4, features: [\"enable_brotli\"]","time":"07-30 11:28:43","target":"client_api::http"} {"msg":"[🟢 INIT_WITH_CALLBACK - START]","time":"07-30 11:28:43","target":"flowy_user::user_manager::manager"} 2024-07-30 11:28:43 DEBUG flowy_user::services::db: open sqlite db 350074397307965440 at path: "/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk/350074397307965440" at flowy-user/src/services/db.rs:156 in flowy_user::user_manager::manager::init_with_callback in flowy_core::init {"msg":"[INIT_WITH_CALLBACK - EVENT] open sqlite db 350074397307965440 at path: \"/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk/350074397307965440\"","time":"07-30 11:28:43","target":"flowy_user::services::db"} 2024-07-30 11:28:43 INFO flowy_user::user_manager::manager: init user session: 350074397307965440:0c1e6b82-31a0-470d-b377-8750dacea074@appflowy.io, authenticator: Local at flowy-user/src/user_manager/manager.rs:153 in flowy_user::user_manager::manager::init_with_callback in flowy_core::init {"msg":"[INIT_WITH_CALLBACK - EVENT] init user session: 350074397307965440:0c1e6b82-31a0-470d-b377-8750dacea074@appflowy.io, authenticator: Local","time":"07-30 11:28:43","target":"flowy_user::user_manager::manager"} 2024-07-30 11:28:43 TRACE flowy_user::services::db: close sqlite db for user 350074397307965440 at flowy-user/src/services/db.rs:117 in flowy_user::user_manager::manager::init_with_callback in flowy_core::init {"msg":"[INIT_WITH_CALLBACK - EVENT] close sqlite db for user 350074397307965440","time":"07-30 11:28:43","target":"flowy_user::services::db"} {"msg":"[🟢 BACKUP_OR_RESTORE - START]","time":"07-30 11:28:43","target":"flowy_user::services::db"} 2024-07-30 11:28:43 INFO flowy_user::services::db: open collab db for user 350074397307965440 at path: "/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk/350074397307965440/collab_db" at flowy-user/src/services/db.rs:203 in flowy_user::services::db::backup_or_restore in flowy_user::user_manager::manager::init_with_callback in flowy_core::init {"msg":"[BACKUP_OR_RESTORE - EVENT] open collab db for user 350074397307965440 at path: \"/Users/seansiders/Library/Containers/com.appflowy.appflowy.flutter/Data/Library/Application Support/com.appflowy.appflowy.flutter/data_dev_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk/350074397307965440/collab_db\"","time":"07-30 11:28:43","target":"flowy_user::services::db"} thread '<unnamed>' panicked at library/core/src/panicking.rs:220: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 stack backtrace: 0: 0x1071c5494 - std::backtrace_rs::backtrace::libunwind::trace::he4f0a5f56afe8e37 at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/../../backtrace/src/backtrace/libunwind.rs:105:5 1: 0x1071c5494 - std::backtrace_rs::backtrace::trace_unsynchronized::habb302958e80f800 at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x1071c5494 - std::sys_common::backtrace::_print_fmt::h9819d35e2a5cda77 at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:68:5 3: 0x1071c5494 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h1f3776e0b5c7517d at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:44:22 4: 0x107206124 - core::fmt::rt::Argument::fmt::h626862aa6242248a at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/fmt/rt.rs:165:63 5: 0x107206124 - core::fmt::write::heedef092c8c0962e at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/fmt/mod.rs:1157:21 6: 0x1071badcc - std::io::Write::write_fmt::h7178e8e2ea928914 at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/io/mod.rs:1832:15 7: 0x1071c52ec - std::sys_common::backtrace::_print::ha0f584bc7bfb9d2b at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:47:5 8: 0x1071c52ec - std::sys_common::backtrace::print::h417292deb95532ed at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:34:9 9: 0x1071c7978 - std::panicking::default_hook::{{closure}}::h0cb68f1228c4613a 10: 0x1071c766c - std::panicking::default_hook::h24535936bc1f51de at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:298:9 11: 0x1071c83d0 - std::panicking::rust_panic_with_hook::h5db4d2345b297bed at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:795:13 12: 0x1071c7dd4 - std::panicking::begin_panic_handler::{{closure}}::h3fd558f09a0d5492 at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:656:13 13: 0x1071c591c - std::sys_common::backtrace::__rust_end_short_backtrace::hfc76eebe1ce501b2 at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:171:18 14: 0x1071c7b70 - rust_begin_unwind at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:652:5 15: 0x107202b34 - core::panicking::panic_nounwind_fmt::runtime::h6aaba2885d9c2d14 at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panicking.rs:110:18 16: 0x107202b34 - core::panicking::panic_nounwind_fmt::hcce2987b0dd42723 at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panicking.rs:120:5 17: 0x107202bac - core::panicking::panic_nounwind::h355f878b46c24ec3 at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panicking.rs:220:5 18: 0x1056fc180 - rocksdb::transactions::transaction_db::TransactionDB<T>::open_cf_descriptors_internal::hd5497d5f42c26e26 19: 0x1055c7ba8 - rocksdb::transactions::transaction_db::TransactionDB<T>::open_cf::h9419b127ba822c35 at /Users/seansiders/.cargo/git/checkouts/rust-rocksdb-00c8fca3e809007a/21cf4a2/src/transactions/transaction_db.rs:200:9 20: 0x1055c7ba8 - rocksdb::transactions::transaction_db::TransactionDB<T>::open::hc0a525a471c77a49 at /Users/seansiders/.cargo/git/checkouts/rust-rocksdb-00c8fca3e809007a/21cf4a2/src/transactions/transaction_db.rs:179:9 21: 0x1055c7ba8 - collab_plugins::local_storage::rocksdb::kv_impl::KVTransactionDBRocksdbImpl::open::h650a7a9ee3ccad0f at /Users/seansiders/.cargo/git/checkouts/appflowy-collab-494188f9dbf24ecc/20f7814/collab-plugins/src/local_storage/rocksdb/kv_impl.rs:69:23 22: 0x1055ba928 - flowy_user::services::db::UserDB::open_collab_db::h44890b3cd0b9e955 23: 0x1055bdc58 - flowy_user::services::db::UserDB::backup_or_restore::h5e312e4a8d108472 at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/flowy-user/src/services/db.rs:68:22 24: 0x10426c894 - flowy_user::user_manager::manager::UserManager::prepare_backup::{{closure}}::h81fe8a8c8df9714c at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/flowy-user/src/user_manager/manager.rs:533:5 25: 0x10426c894 - flowy_user::user_manager::manager::UserManager::init_with_callback::{{closure}}::{{closure}}::{{closure}}::hf0ee8f1bdbaff633 at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/flowy-user/src/user_manager/manager.rs:162:37 26: 0x10426b34c - flowy_user::user_manager::manager::UserManager::init_with_callback::{{closure}}::{{closure}}::h52b8f43a3ac270ce at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/flowy-user/src/user_manager/manager.rs:124:3 27: 0x104269178 - <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll::hf3fcb1f404c3bcdb at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-0.1.40/src/instrument.rs:321:9 28: 0x104269178 - flowy_user::user_manager::manager::UserManager::init_with_callback::{{closure}}::h09b169f4c3b2019b at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/flowy-user/src/user_manager/manager.rs:124:3 29: 0x104269178 - flowy_core::AppFlowyCore::init::{{closure}}::{{closure}}::h33c9107478c83763 at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/flowy-core/src/lib.rs:255:10 30: 0x1042754e8 - <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll::he5e778a3ed30e97c at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-0.1.40/src/instrument.rs:321:9 31: 0x1042754e8 - flowy_core::AppFlowyCore::init::{{closure}}::h8864e453384c85c3 at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/flowy-core/src/lib.rs:104:3 32: 0x1042754e8 - flowy_core::AppFlowyCore::new::{{closure}}::haf05da5d76cc2fef at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/flowy-core/src/lib.rs:97:33 33: 0x1042754e8 - dart_ffi::init_sdk::{{closure}}::hc4ad1f08b34a5f9b at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/dart-ffi/src/lib.rs:103:64 34: 0x1042754e8 - <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll::h2c98b5deabc6293c at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-0.1.40/src/instrument.rs:321:9 35: 0x10425f6ac - tokio::runtime::park::CachedParkThread::block_on::{{closure}}::hc687f0b5888074d0 at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/park.rs:281:63 36: 0x10425f6ac - tokio::runtime::coop::with_budget::h772b6a0f7f639f21 at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/coop.rs:107:5 37: 0x10425f6ac - tokio::runtime::coop::budget::h1e9cf6224c7f606b at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/coop.rs:73:5 38: 0x10425f6ac - tokio::runtime::park::CachedParkThread::block_on::hafb74e1946216705 at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/park.rs:281:31 39: 0x104263cc8 - tokio::runtime::context::blocking::BlockingRegionGuard::block_on::h9808047cb2c8ffd3 at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/context/blocking.rs:66:9 40: 0x104263cc8 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}::h37da0bc8ad3f6402 at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/scheduler/multi_thread/mod.rs:87:13 41: 0x104263cc8 - tokio::runtime::context::runtime::enter_runtime::h9d604291d02bb66c at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/context/runtime.rs:65:16 42: 0x10425e9dc - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::h2b12c157d22e22db at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/scheduler/multi_thread/mod.rs:86:9 43: 0x10425e9dc - tokio::runtime::runtime::Runtime::block_on::h70a297fcf39dd8c0 at /Users/seansiders/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/runtime.rs:349:45 44: 0x104259988 - lib_dispatch::runtime::AFPluginRuntime::block_on::h6113ac6130cfa8af at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/lib-dispatch/src/runtime.rs:85:5 45: 0x104259988 - init_sdk at /Users/seansiders/Dev/AppFlowy/frontend/rust-lib/dart-ffi/src/lib.rs:102:29 thread caused non-unwinding panic. aborting. Lost connection to device. Exited. ```
Author
Owner

@SeanSiders commented on GitHub (Aug 7, 2024):

This appears to be an issue related to the MacOS Silicon architecture. There are a few ways of resolving this:
#3329

<!-- gh-comment-id:2273916838 --> @SeanSiders commented on GitHub (Aug 7, 2024): This appears to be an issue related to the MacOS Silicon architecture. There are a few ways of resolving this: #3329
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#2595
No description provided.