Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

OPFSCoopSyncVFS: Database initialization timeout on page refresh (Safari)

Đang mở
#808 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

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.

  • #809 của @longfellowone — đã đóng, không merge
  • #811 của @longfellowone — đang mở

Đá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

  1. Open an app using PowerSyncDatabase with OPFSCoopSyncVFS
  2. Wait for database to initialize and connect
  3. Pull‑to‑refresh (iOS) or Cmd+R (macOS) rapidly
  4. 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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của powersync-ja/powersync-js

Tất cả issue của powersync-ja/powersync-js

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.