[texworks] "memory could not be read" error

Bruno Voisin bvoisin at me.com
Mon Oct 26 04:55:36 CET 2009


Le 26 oct. 2009 à 00:48, Iwan Setyawan a écrit :

> What do you mean by "the program crash when it tries to open the pdf  
> file"? Are you trying to open a PDF file using TeXworks? AFAIK, you  
> cannot do this. That is, I don't think you can use TeXworks as a PDF  
> viewer.

Strange. Are you sure TeXworks can't be used as PDF file viewer? On OS  
X it can, I just tried (ie dropping a random PDF file onto it). There  
are some warnings issued to the console, but they're harmless and the  
user doesn't see them, I only saw them because I opened Console.app to  
check:

26/10/09 04:36:30	[0x0-0x42042].org.tug.texworks[519]	 
QFileSystemWatcher::removePaths: list is empty
26/10/09 04:36:56	[0x0-0x42042].org.tug.texworks[519]	SyncTeX ERROR:  
gzread error (-2:0,)
26/10/09 04:36:56	[0x0-0x42042].org.tug.texworks[519]	SyncTeX ERROR:  
SyncTeX Error: Bad preamble
26/10/09 04:36:56	[0x0-0x42042].org.tug.texworks[519]	 
QFileSystemWatcher::removePaths: list is empty
26/10/09 04:36:58	[0x0-0x42042].org.tug.texworks[519]	SyncTeX ERROR:  
SyncTeX Error: Bad preamble
26/10/09 04:37:25	[0x0-0x42042].org.tug.texworks[519]	SyncTeX ERROR:  
gzread error (-2:0,)
26/10/09 04:37:25	[0x0-0x42042].org.tug.texworks[519]	SyncTeX ERROR:  
SyncTeX Error: Bad preamble
26/10/09 04:37:25	[0x0-0x42042].org.tug.texworks[519]	 
QFileSystemWatcher::removePaths: list is empty
26/10/09 04:37:27	[0x0-0x42042].org.tug.texworks[519]	SyncTeX ERROR:  
SyncTeX Error: Bad preamble
26/10/09 04:37:58	[0x0-0x42042].org.tug.texworks[519]	SyncTeX ERROR:  
gzread error (-2:0,)
26/10/09 04:37:58	[0x0-0x42042].org.tug.texworks[519]	SyncTeX ERROR:  
SyncTeX Error: Bad preamble
26/10/09 04:37:58	[0x0-0x42042].org.tug.texworks[519]	 
QFileSystemWatcher::removePaths: list is empty
26/10/09 04:38:00	[0x0-0x42042].org.tug.texworks[519]	SyncTeX ERROR:  
SyncTeX Error: Bad preamble

That said, the original poster's request was different and mentioned  
compiling (a .tex input file in the Source window most likely),  
generating PDF output and then attempting to open this output (in the  
Preview window most likely):

> On Oct 25, 2009, at 8:54 PM, zhangdenis wrote:
>
>> I try to use texworks in levono x200t with winxp2. However I meet  
>> "memory could not be read" error. Texworks compiles correctly, and  
>> can generate the pdf file. The program crash when it tries to open  
>> the pdf file.

Though not 100% sure, I would interpret this as normal TeXworks  
operation: open an input file in the Source window, typeset it and  
then view the result in the Preview window. And interpret the bug  
report as "memory could not be read" error, followed by program crash,  
when the Preview window is opened.

Bruno Voisin


More information about the texworks mailing list