izuzak / atom-pdf-view

Support for viewing PDF files in Atom.
https://atom.io/packages/pdf-view
MIT License
106 stars 30 forks source link

Uncaught TypeError: Cannot read property 'url' of null #214

Open chubby1968 opened 5 years ago

chubby1968 commented 5 years ago

Steps to reproduce:

  1. Build pdf using LaTeX-package with SyncTex
  2. Wait a while

Notes:

Atom: 1.28.1 x64 Electron: 2.0.4 OS: Microsoft Windows 10 Enterprise Thrown From: pdf-view package 0.70.0

Stack Trace

Uncaught TypeError: Cannot read property 'url' of null

At C:\Users\user\.atom\packages\pdf-view\node_modules\pdfjs-dist\build\pdf.js:2217

TypeError: Cannot read property 'url' of null
    at Object.getDocument (/packages/pdf-view/node_modules/pdfjs-dist/build/pdf.js:2217:14)
    at PdfEditorView.updatePdf (/packages/pdf-view/lib/pdf-editor-view.js:483:11)
    at needsUpdateCallback (/packages/pdf-view/lib/pdf-editor-view.js:59:14)
    at /packages/pdf-view/lib/pdf-editor-view.js:72:9
    at Function.module.exports.Emitter.simpleDispatch (~/AppData/Local/atom/app-1.28.1/resources/app/node_modules/event-kit/lib/emitter.js:27:20)
    at Emitter.module.exports.Emitter.emit (~/AppData/Local/atom/app-1.28.1/resources/app/node_modules/event-kit/lib/emitter.js:156:34)
    at File.module.exports.File.handleNativeChangeEvent (~/AppData/Local/atom/app-1.28.1/resources/app/node_modules/pathwatcher/lib/file.js:441:37)
    at PathWatcher.<anonymous> (~/AppData/Local/atom/app-1.28.1/resources/app/node_modules/pathwatcher/lib/file.js:475:54)
    at PathWatcher.onChange (~/AppData/Local/atom/app-1.28.1/resources/app/node_modules/pathwatcher/lib/main.js:162:32)
    at ~/AppData/Local/atom/app-1.28.1/resources/app/node_modules/pathwatcher/lib/main.js:200:36
    at Function.module.exports.Emitter.simpleDispatch (~/AppData/Local/atom/app-1.28.1/resources/app/node_modules/event-kit/lib/emitter.js:27:20)
    at Emitter.module.exports.Emitter.emit (~/AppData/Local/atom/app-1.28.1/resources/app/node_modules/event-kit/lib/emitter.js:156:34)
    at HandleWatcher.onEvent (~/AppData/Local/atom/app-1.28.1/resources/app/node_modules/pathwatcher/lib/main.js:81:37)
    at ~/AppData/Local/atom/app-1.28.1/resources/app/node_modules/pathwatcher/lib/main.js:238:51

Commands

     -1:15.4.0 intentions:highlight (input.hidden-input)
 10x -1:14.9.0 core:move-right (input.hidden-input)
  2x -1:13 intentions:highlight (input.hidden-input)
     -1:10.4.0 core:save (input.hidden-input)
  2x -1:09.2.0 intentions:highlight (input.hidden-input)
     -1:08.6.0 latex:build (input.hidden-input)
     -0:58.5.0 intentions:highlight (input.hidden-input)
     -0:58.2.0 core:copy (input.hidden-input)
     -0:57.4.0 intentions:highlight (input.hidden-input)
     -0:57.3.0 core:paste (input.hidden-input)
     -0:38.7.0 intentions:highlight (input.hidden-input)
     -0:38.6.0 core:save (input.hidden-input)
     -0:38.3.0 intentions:highlight (input.hidden-input)
     -0:38 latex:build (input.hidden-input)
     -0:28.7.0 intentions:highlight (input.hidden-input)
     -0:28.4.0 latex:build (input.hidden-input)

Non-Core Packages

busy-signal 1.4.3 
intentions 1.1.5 
language-latex 1.1.1 
latex 0.50.0 
linter 2.2.0 
linter-spell 0.15.0 
linter-spell-latex 0.11.0 
linter-ui-default 1.7.1 
pdf-view 0.70.0 
remote-sync 4.1.8