AppFlowy-IO / AppFlowy-IO/AppFlowy

[Bug] Crash on Paste into Fresh Empty Inline DB Row Page

オープン
#8,884 コメント 0 件 リアクション 0 件 担当者 1 名 @appflowy が担当を希望しています GitHub で見る
主要言語
Dart
スター
76.6k
フォーク
6k
PR マージ指標
30日以内にマージされた PR はありません

説明

### Bug Description

### Product
AppFlowy client 0.13.0 (self-hosted backend)
### Summary
Pasting larger text into a freshly created empty page that belongs to an inline database row can trigger save warning and then client crash/exit.
### Expected
Paste should succeed and page should remain stable.
### Actual

- Save warning appears (not always immediately).
- Client exits/crashes around 10 seconds later.

### Reliable Trigger Pattern

1. Create a new page from database row (fresh empty page).
2. Do direct copy/paste of larger text into this empty page.
3. Wait ~10s.
4. Client exits.

### Stable Control Pattern (Workaround)

1. Create the same new empty row page.
2. Type short temporary manual text.
3. Close page and reopen it.
4. Paste the same larger text.
5. Remove temporary text.
6. No crash observed.

### Environment

- Self-hosted AppFlowy Cloud stack (docker compose beta overlay)
- Workspace ID: c23e4a71-c8c2-4306-af2b-cda64be1d997
- Problematic View ID observed: f851a808-5476-5bd3-831e-ff8020fb5c93

### Server-side Correlation
At repro time, server-side save endpoints return 200, but cloud logs show:

- warning: Cycle detected in folder hierarchy at view_id f851a808-5476-5bd3-831e-ff8020fb5c93
- request path frequently includes POST /api/workspace/{workspace_id}/orphaned-view

No correlated Postgres hard errors were observed.
### Hypothesis
Likely initialization/state-transition bug for fresh empty row documents.
The first direct paste into a brand new empty row page may hit an invalid intermediate state; after first manual edit + reopen, state stabilizes.

### How to Reproduce

See Bug Description - Reliable Trigger Pattern

### Expected Behavior

Paste should succeed and page should remain stable.

### Operating System

Linux, Docker

### AppFlowy Version(s)

AppFlowy client 0.13.0 (self-hosted backend)

### Screenshots

_No response_

### Additional Context

_No response_

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。