Bug Report: problem with network drives

The PDF-XChange Viewer for End Users
+++ FREE +++

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

proporop
User
Posts: 2
Joined: Sat May 17, 2008 1:40 pm

Bug Report: problem with network drives

Post by proporop »

- open a pdf document that is located on a network share
- minimize PDF-XChange Viewer
- disconnect the network drive
- reconnect the network drive (i.e. emulate a normal short term connection loss)
- maximize PDF-XChange Viewer

the result is a core dump (dr. watson) while trying to access the remote file. version is 2.0.0036.

do you close the file handle after each read operation or do you keep it open as long as the pdf is opened in PDF-XChange Viewer?

apart from that: thanks for the really cool app, currently my all time favourite pdf-viewer :)
User avatar
Lzcat - Tracker Supp
Site Admin
Posts: 677
Joined: Thu Jun 28, 2007 8:42 am

Re: Bug Report: problem with network drives

Post by Lzcat - Tracker Supp »

Viewer keep opened files open (file handle is not closed), and do not allow any other application to change file until it will be closed in Viewer. However Viewer does not restrict reading from opened files.
Victor
Tracker Software
Project manager

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
proporop
User
Posts: 2
Joined: Sat May 17, 2008 1:40 pm

Re: Bug Report: problem with network drives

Post by proporop »

so i guess if the file was closed after each read operation it should handle those 'lost drive' cases as well. if it has to be kept open for some reason it would be great if the viewer would recognize a stale file handle and silently reopen the file instead of crashing :mrgreen:

i'm just wondering if it would be possible to include an option that makes the viewer read the complete file into memory upon opening. most pdf docs are just a few megs anyway. in that case i could even jump through the file when i have no connection.
User avatar
Lzcat - Tracker Supp
Site Admin
Posts: 677
Joined: Thu Jun 28, 2007 8:42 am

Re: Bug Report: problem with network drives

Post by Lzcat - Tracker Supp »

proporop wrote:so i guess if the file was closed after each read operation it should handle those 'lost drive' cases as well. if it has to be kept open for some reason it would be great if the viewer would recognize a stale file handle and silently reopen the file instead of crashing :mrgreen:
You are wrong. Opening-closing file for each reading will cause serious perfomance degradance and may cause unpredicateble results - if file was externally modified (or closed).
proporop wrote:i'm just wondering if it would be possible to include an option that makes the viewer read the complete file into memory upon opening. most pdf docs are just a few megs anyway. in that case i could even jump through the file when i have no connection.
Not a good idea too - because we have alot of PDF files with size over 100 MBytes, and Viewer will crash when you try open 10-20 of them at once.
Sorry, but you case is far away from typical usage scenario, we will think what can be done in such situations. For now you may copy file to local hard drive - in most cases this will be faster too.
Victor
Tracker Software
Project manager

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.