OPFSCoopSyncVFS: Database initialization timeout on page refresh (Safari)
Maintainer thường phản hồi trong vòng 1 ngày
@longfellowone đang làm issue này rồi.
Từ ngày 4/1/2026.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 15/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- sqlite, typescript
- Lĩnh vực
- databases
Hướng nghiên cứu
The payload names no source files. Start from the OPFSCoopSyncVFS setup in @powersync/web and how the dedicated DB worker holds its OPFS file locks across page unloads. Pull request #811 is still open and #809 was closed unmerged, so read both and the comment thread before touching anything. Done means repeated rapid refreshes no longer time out database initialization in Safari.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
When using OPFSCoopSyncVFS, rapid page refreshes (especially pull‑to‑refresh on Safari iOS) can cause database initialization to time out. The new page can’t acquire OPFS file locks because the previous page’s worker hasn’t released them yet.
Environment
- @powersync/web: 1.30.0
- Browser: Safari 26.1 (iOS and macOS)
- VFS: OPFSCoopSyncVFS
Configuration
- VFS: OPFSCoopSyncVFS (Dedicated Worker for DB)
- Multi‑tabs: enabled (SharedWorker for sync)
- Issue occurs regardless of Sync Worker type — lock appears to be held by DB worker.
Reproduction
- Open an app using PowerSyncDatabase with OPFSCoopSyncVFS
- Wait for database to initialize and connect
- Pull‑to‑refresh (iOS) or Cmd+R (macOS) rapidly
- After 1–3 refreshes, database initialization times out
Expected
Database initializes successfully after refresh.
Actual
Database initialization times out.
- Ngôn ngữ chính
- TypeScript
- Star
- 729
- Fork
- 96
- Merge trung bình
- 2 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 24
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của powersync-ja/powersync-js
-
Sync loop stops with a TypeError when an iteration rejects with no value after a connection changeĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
powersync-ja/powersync-js#1163 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
powersync-ja/powersync-js#1159 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Differential watched queries ignore pure reorders (same rows, new ORDER BY) so stale order is servedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
powersync-ja/powersync-js#1156 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
powersync-ja/powersync-js#1165 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 54/100
powersync-ja/powersync-js#1164 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của powersync-ja/powersync-js
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
awesome-dsh-plugin/awesome-dsh-plugin#9184 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
farion1231/cc-switch#8829 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[core-client] Remove unused hand-maintained transport helpers after the definition-table cutoverĐang mởdoc-audit enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100