qshub / pdf_engine /pdf_loader.py

Commit History

  1. Fix OOM crashes on Render proxy by parsing PDFs using mmap from disk instead of massive byte duplication in memory

    e73778d
  2. Add per-page rendering try-except resilience to prevent PDF parsing crashes during upload

    9b910ca
  3. Fix 502 upload crash: add proactive garbage collection (gc.collect) to keep RAM under 80MB on cloud containers (Render)

    c9f5391
  4. Optimize render speed to 1200px (0.02s/page) + remove redundant PDF text re-extraction in auto_classify to permanently fix 502 gateway timeouts

    cd9f6b4
  5. Fix 502 crash root cause: replace PIL Image.frombytes with native C++ PyMuPDF pix.tobytes('jpg', jpg_quality=95)

    2580d29
  6. Fix classification syntax bug + preserve 4000 char page text + enrich UAE drawing keywords + fall back to PDF text re-extraction

    0f3ab13
  7. Eliminate PyMuPDF thread-unsafe access causing process SIGSEGV crash and HTTP 502 error

    987a547
  8. Optimize PDF page extraction and classification speed with 0% impact on extraction accuracy

    0d71027

  1. fix: force white background in fast_save_pdf_pages for React backend

    f6e2815
  2. fix: force white background in PDF loader to prevent black squares in Gemini

    ad8953c

  1. perf: eliminate Step 3 hangs by shrinking max PNG DPI to 50 for all blueprints, preventing massive network timeouts when sending images to Gemini. Increased concurrent extraction workers to 8 to slash processing time.

    19a1eb3
  2. fix: reduce max_workers to 1 in fast_save_pdf_pages to prevent RAM thrashing on large A0 blueprints

    cf2538a
  3. perf: Massive speed boost for Step 1 (Upload) and Step 2 (Classification) by bypassing Numpy/PIL and writing native C++ compressed images directly to disk

    9394ed3
  4. Fix UnboundLocalError in CV extractor and revert hardcoded heuristics

    3f2a193

  1. THE QS HUB v2.0 - Complete React + FastAPI Platform (clean deploy)

    1b4b6d2