sumatrapdfreader / sumatrapdf

SumatraPDF reader
http://www.sumatrapdfreader.org
GNU General Public License v3.0
13.42k stars 1.71k forks source link

Crash when opening certain file - C0000005 ACCESS_VIOLATION #4444

Closed lansman closed 1 month ago

lansman commented 1 month ago

SumatraPDF version

Describe the bug App crashes instantly when I open certain pdf file

To Reproduce

  1. Open the file (by double clicking in Windows Explorer)
  2. Get crash

No matter, whether other pdf files are already opened in the program or not

Important notice: at some moment I tried open the file via SumatraPDF menu (File - Open) and it worked, and even more: crashes stopped. Now the file is opened flawlessly, no matter via double click or program menu.

Another notice: the problem was only on my desktop PC. No issues on laptop. Both on Windows 11 Pro. Program version are the same.

Expected behavior No crash.

File that reproduces the problem Sorry, cannot provide it

Additional context Exception: C0000005 ACCESS_VIOLATION Faulting IP: 00007FF77C66AA5B 01:0000000000089A5B sumatrapdf.exe!HtmlWindow::OnSize+0x97 C:\Users\kjk\src\sumatrapdf\src\utils\HtmlWindow.cpp+1602 Fault reading address 00000000FFFFFFFF

Crash Log: 2024-08-05_21-55_sumatrapdf_crash.txt

kjk commented 1 month ago

Most likely fixed in pre-release