Replies: 17 comments 34 replies
-
Probably not intentional, last time I looked it was working @kjk |
Beta Was this translation helpful? Give feedback.
-
I have created a small example that hopefully exemplifies the issue. As long as I don‘t unzip the synctex file, neither forward nor backward search work for me. After unzipping, search works again. Just in case the information is relevant, I‘m using Sublime Text with LaTeX Tools for authoring LaTeX sources. |
Beta Was this translation helpful? Give feedback.
-
Hmmmm the file is compressed (large at 32kb but 7 pages and last paragraph starts at |
Beta Was this translation helpful? Give feedback.
-
Ahh 3.4.3 say no synchronization open issue #2642 |
Beta Was this translation helpful? Give feedback.
-
@honekamp thanks for the sample. However, it works for me in 3.4.3 (64 -bit, installer). What I did:
This is all using So what happens in your setup when after you double-click on a word? Nothing? An error message? Are you using a portable version or installer? |
Beta Was this translation helpful? Give feedback.
-
I've tested The auto-detected inverse-search command is: So maybe the issue with your setup is inverse-search command. What is it? |
Beta Was this translation helpful? Give feedback.
-
I have uploaded the log file obtained from build 15033 for the case of a zipped synctex file. Forward search does not work, and the error message is „No synchronization file found“. If I unzip the synctex file and try to do a forward search, then build 15033 simply crashes. Please note that I have deleted several thousand lines of file states in the log file because these might contain sensitive information. BTW, the syntex.gz file for the project I ran the experiment on is a about 12 MB. |
Beta Was this translation helpful? Give feedback.
-
So far what I can tell from logs is that This is unfortunately synctex parser code (not written by us) so no idea what's going on there. I'll add code to pipe synctex parser logs to our logging so that we can get insight on why synctex parser fails. However, I didn't change synctex parser code in 3.4 so if it worked in 3.3 it should work in 3.4 Given the very large size of Maybe a simple hack of re-doing syntex.gz parsing with 1 sec delay (if the file exists and fails the first time) would be a fix. |
Beta Was this translation helpful? Give feedback.
-
@honekamp I narrowed it down to synctex using zlib's gzopen to try to read the file and failing with rather generic "bad file" error code. Can you e-mail me (kkowalczyk@gmail.com) the synctex.gz file that's failing? There's no more logging I can think of that would give me more information. For some reason synctex is failing to open that particular .gz file. But it works for other .gz files so it's not just generic problem. If I can step through the code in the debugger, I might learn why this is happening. At some point I switched from zlib to zlib-ng, which is supposed to be faster. Not sure when but if I did it for 3.4 and zlib-ng has problems with this file, then it would explain why it always worked before 3.4 and now it sometimes fails. |
Beta Was this translation helpful? Give feedback.
-
@honekamp I got your file, thanks. So far I was unable to reproduce the problem. Here's what I did: I created a PDF with a name matching the synctex.gz file, opened it in Sumatra and double clicked in the PDF. The inverse search works i.e. an editor is launched trying to load the original .tex file (which I don't have but that's not important). I tried with installed (just released) 3.4.4 64 bit, I tried 64 bit / 32 bit, release / debug build. When you do similar steps on your machine, does double-clicking not result in inverse search? If yes, then I could only think about differences in processor that make zlib code not work. So there goes my theory that this is zlib-ng problem. And we're back to theory of a timing issue i.e. that when you ask Sumatra to do the commands, the But that's not something I can recreate easily on my machine. Do you have additional anti-virus software installed? If yes can you disable it and retry? The reason is that anti-virus software hooks into OS file operations and scans newly created files. That can make those files unavailable for other processes for a while. The bigger the file, the longer the scanning takes. This would explain why the file would file to open at one time but then could be opened later. Also, is the drive where If yes, try with C:\ drive. |
Beta Was this translation helpful? Give feedback.
-
@honekamp Makes sense, I ran out of ideas to test as well. Thanks for providing the information. |
Beta Was this translation helpful? Give feedback.
-
@honekamp the 32-bit vs 64-bit would be consistent with issue being I've switched pre-release from zlib-ng back to regular zlib so could you try latest pre-release (both 64-bit and 32-bit release install)? Another thing I can try is to move reading of |
Beta Was this translation helpful? Give feedback.
-
I tried the pre-release from AWS, and unfortunately there is no progress. Forward-search gives me "No synchronization file found" (I proved the existence of the sync file later by installing 3.3.3, which worked on the existing synctex.gz file) and inverse search says "No synchronization info at this position". As mentioned, I'll unfortunately not have time for further test, but will pick up again as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
I followed the discussion and I had the same problem, i.e. synctex search was broken with version 3.4.x, and I had to roll back to version 3.3.3. Today, I tried 3.4.6 (64 bit installer) and synctex forward and backward search work now for me as in 3.3.3. Version History does not name the problem or its solution, but now it seems to be solved (?). |
Beta Was this translation helpful? Give feedback.
-
Today, I tried both 3.4.6 and the latest pre-release. Using the zipped synctex file, sync unfortunately does not work in either of them on my machine. I only get the error messages "No synchronization file found" and "No synchronization info at this position", as reported earlier already. Meanwhile, I have found a viable solution for changing the PDF build such that the synctex file does not get zipped any longer. As mentioned before, the forward and inverse search works for me on the basis of a non-zipped synctex file. |
Beta Was this translation helpful? Give feedback.
-
I have to supplement my last comment: Version 3.4.6 works for me partially for zipped synctex files, meaning that "No synchronization file found" errors appear more or less often. Closing and opening Using |
Beta Was this translation helpful? Give feedback.
-
I encountered problems similar to those reported by @honekamp. A good work-around I found was to use the pdfsync package. |
Beta Was this translation helpful? Give feedback.
-
In older versions of Sumatra PDF, it was possible to have a zipped synctex file and still backwards and forward search would work just fine. Starting 3.4.x, the support for a zipped synctex file seems to have ceased. I have to unzip the synctex file in order to do a forward or backward search. Has this change been applied intentionally? Is there any way to work around the change?
Beta Was this translation helpful? Give feedback.
All reactions