Access violations and crashes in docling-parse

Open
#471 0 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
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp, python

Research direction

Start with the attached docling_crash.py and synthetic PDF to reproduce the Windows crash, then trace the failing path in the native PDF parser reported as pdf_parsers.cp313-win_amd64.pyd. Confirm what triggers the access violation and whether it reproduces outside the reporter’s environment; done means the crash is fixed and the reproducer completes without crashing.

Written by the indexing model from the issue text.

Description

This comes from running the main docling package on a bunch of pdfs to convert them to markdown, where the script I use would randomly exit showing no errors on the terminal. The windows event log shows the following entries:

Time: 2026-11-17T10:43:04.2282494+01:00
Event ID: 1000
Faulting application name: python.exe, version: 3.13.11150.1013, time stamp: 0x693308ab
Faulting module name: pdf_parsers.cp313-win_amd64.pyd, version: 0.0.0.0, time stamp: 0x6af6d89f
Exception code: 0xc0000005
Fault offset: 0x000000000083ec97
Faulting process id: 0x7EFC
Faulting application start time: 0x1DD7677B76564F5
Faulting application path: C:\..\AppData\Local\Python\pythoncore-3.13-64\python.exe
Faulting module path: C:\..\Documents\nexus-dev\.model_test_venv\Lib\site-packages\docling_parse\pdf_parsers.cp313-win_amd64.pyd
Report Id: a7edd003-9c6b-4a06-8b5f-22c653e01183
Faulting package full name: 
Faulting package-relative application ID: 

Time: 2026-11-17T10:43:41.2754706+01:00
Event ID: 1000
Faulting application name: python.exe, version: 3.13.11150.1013, time stamp: 0x693308ab
Faulting module name: pdf_parsers.cp313-win_amd64.pyd, version: 0.0.0.0, time stamp: 0x6af6d89f
Exception code: 0xc0000005
Fault offset: 0x000000000083ec97
Faulting process id: 0x7EFC
Faulting application start time: 0x1DD7677B76564F5
Faulting application path: C:\..\AppData\Local\Python\pythoncore-3.13-64\python.exe
Faulting module path: C:\..\Documents\nexus-dev\.model_test_venv\Lib\site-packages\docling_parse\pdf_parsers.cp313-win_amd64.pyd
Report Id: 024d728a-89a9-4ea7-a28a-db744204e13b
Faulting package full name: 
Faulting package-relative application ID: 

Time: 2026-11-17T10:43:47.6067310+01:00
Event ID: 1000
Faulting application name: python.exe, version: 3.13.11150.1013, time stamp: 0x693308ab
Faulting module name: pdf_parsers.cp313-win_amd64.pyd, version: 0.0.0.0, time stamp: 0x6af6d89f
Exception code: 0xc0000005
Fault offset: 0x000000000083ec97
Faulting process id: 0x7EFC
Faulting application start time: 0x1DD7677B76564F5
Faulting application path: C:\..\AppData\Local\Python\pythoncore-3.13-64\python.exe
Faulting module path: C:\..\Documents\nexus-dev\.model_test_venv\Lib\site-packages\docling_parse\pdf_parsers.cp313-win_amd64.pyd
Report Id: e376e04c-141e-4f6b-9a0d-0c0647ef5f67
Faulting package full name: 
Faulting package-relative application ID: 

Time: 2026-11-17T10:43:54.3743934+01:00
Event ID: 1000
Faulting application name: python.exe, version: 3.13.11150.1013, time stamp: 0x693308ab
Faulting module name: pdf_parsers.cp313-win_amd64.pyd, version: 0.0.0.0, time stamp: 0x6af6d89f
Exception code: 0xc0000005
Fault offset: 0x000000000083ec97
Faulting process id: 0x7EFC
Faulting application start time: 0x1DD7677B76564F5
Faulting application path: C:\..\AppData\Local\Python\pythoncore-3.13-64\python.exe
Faulting module path: C:\..\Documents\nexus-dev\.model_test_venv\Lib\site-packages\docling_parse\pdf_parsers.cp313-win_amd64.pyd
Report Id: 1b993a98-ab2f-4e5e-9bc0-bc5cdc61cd8f
Faulting package full name: 
Faulting package-relative application ID: 

Time: 2026-11-17T10:46:47.4367109+01:00
Event ID: 1000
Faulting application name: python.exe, version: 3.13.11150.1013, time stamp: 0x693308ab
Faulting module name: pdf_parsers.cp313-win_amd64.pyd, version: 0.0.0.0, time stamp: 0x6af6d89f
Exception code: 0xc0000005
Fault offset: 0x000000000083ec97
Faulting process id: 0x7EFC
Faulting application start time: 0x1DD7677B76564F5
Faulting application path: C:\..\AppData\Local\Python\pythoncore-3.13-64\python.exe
Faulting module path: C:\..\Documents\nexus-dev\.model_test_venv\Lib\site-packages\docling_parse\pdf_parsers.cp313-win_amd64.pyd
Report Id: 07227a97-1399-4be5-8ee0-eea7a74034f5
Faulting package full name: 
Faulting package-relative application ID: 

Time: 2026-11-17T10:47:58.1747821+01:00
Event ID: 1000
Faulting application name: python.exe, version: 3.13.11150.1013, time stamp: 0x693308ab
Faulting module name: ntdll.dll, version: 10.0.26100.9711, time stamp: 0x5fd39a05
Exception code: 0xc0000374
Fault offset: 0x0000000000118095
Faulting process id: 0x7EFC
Faulting application start time: 0x1DD7677B76564F5
Faulting application path: C:\..\AppData\Local\Python\pythoncore-3.13-64\python.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report Id: 5409af03-2567-4a86-a30a-7e6518cd8818
Faulting package full name: 
Faulting package-relative application ID: 

Codex was able to reproduce the crash inside its sandbox with a simple pdf file and script, although not in the standard windows terminal. I'm attaching those nonetheless in case they help.

docling_crash.py
docling-crash-synthetic.pdf

Environment:
Windows 11, build 26100
Python 3.13.11, x64
docling 2.150.1
docling-parse 7.26.0
docling-core 2.107.1
docling-ibm-models 4.0.4
rapidocr 3.9.1
pypdfium2 5.8.0
torch 2.11.0+cu126
transformers 5.8.1

Dominant language
C++
Stars
352
Forks
99
Avg merge
1d 21h
Merged PRs (30d)
37

Getting set up

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 docling-project/docling-parse

All issues in docling-project/docling-parse

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.