AppFlowy-IO / AppFlowy-IO/AppFlowy

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

Offen
#8,884 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @appflowy Auf GitHub ansehen
Vorherrschende Sprache
Dart
Sterne
76.6k
Forks
6k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### 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_

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.