AppFlowy-IO / AppFlowy-IO/AppFlowy

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

未关闭
#8,884 0 条评论 0 个 reaction 已指派 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 摘要。