[Bug] PDF viewer hangs indefinitely on Windows desktop (v0.15.0)

Open
#9,115 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
dart, flutter

Research direction

Start by reading the PDF viewer and plugin code used by the Flutter desktop app, then compare its Windows behavior with the working web viewer. Reproduce with the reported 431KB PDF on Windows 11 and trace why the viewer stays on its loading spinner after the PDF is cached. Done means PDFs render in the Windows desktop viewer; the issue does not name specific source files or tests.

Written by the indexing model from the issue text.

Description

Bug Description

When viewing or loading a page with a PDF attachment in AppFlowy desktop on Windows, the PDF viewer shows an indefinite loading spinner and never renders the PDF.

How to Reproduce
  • Open AppFlowy desktop (v0.15.0) on Windows

  • Upload a PDF file or navigate to a page containing a PDF

  • Click on the PDF or wait for it to load

  • Observe the spinner

Expected Behavior

The PDF should render in the viewer

Operating System

OS: Windows 11 Pro

AppFlowy Version(s)
  • AppFlowy Desktop Version: 0.15.0 - AppFlowy Cloud: Yes (self-hosted) - PDF Test: 431KB valid PDF (%PDF-1.7)
Screenshots
Image
Additional Context
  • ✅ PDFs download and cache successfully → Not a server/network issue

  • ✅ Cached PDFs open manually → PDFs are valid

  • ❌ Built-in PDF viewer hangs → Flutter PDF plugin issue

  • ✅ Web version works fine (uses PDF.js)

Dominant language
Dart
Stars
79.1k
Forks
6.3k
Avg merge
17h 29m
Merged PRs (30d)
1

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AppFlowy-IO/AppFlowy

All issues in AppFlowy-IO/AppFlowy

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.