-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hanging process in Windows 10 with pandoc-fignos 0.8 #11
Comments
Same issue here! It seems something is wrong with pandoc-fignos 0.8 especially with use of psutil. Are you trying to start a new pandoc process outside of first pandoc call just to get its version number? This may set up infinite loop because the new pandoc call appears to be with the fignos attached which cause a new pandoc process to start and so on. My specs: |
Thank you both for your feedback, which is very helpful. Yes, I am using a subprocess to get pandoc's version number. This is now required because of a patch made to the TeX writer in pandoc 1.17. I requested that pandoc pass along version numbers to filters, but no luck so far. This required finding another way.
It would appear from @DancingQuanta's info that it is the call to I should be able to carve out some time to work on this tonight. If either of you have any extra insights, please send them along. Cheers. |
@tomduck: Sure, glad to help! :) Btw, thank you for the super useful filter! Yes, the location of pandoc-fignos.exe is correct (I would have thought it would be installed inside site-packages, but that's where pip put it). pandoc.exe itself is in my user's AppData\Local\Pandoc folder. Please let me know if you want me to test anything specific. I also have a Ubuntu installation in this machine, so I can try to compare behaviors, if that is of any help. |
An idea... If @DancingQuanta is correct, it could be that, in Windows,
gives you not only the absolute path of the executable, but also the arguments that were used in that call. Does that make any sense? By the documentation of psutils, I wouldn't think so, but what else could explain the recursive calls to pandoc-fignos.exe? If that is correct, maybe a quick and dirty solution could be that you parse the (Sorry I'm not proposing a patch myself, but I have a big deadline looming over my head... Messing with code now would be a perfect excuse for procrastinating indefinitely, and I know I shouldn't!) |
I think I got it. Please install pandoc-fignos 0.8.1 using pip (or your method of choice). If it works for you, then go ahead and close the Issue. Thanks very much for your feedback. Much appreciated! |
Things seems to be back to normal with 8.0.1 for my current setup, thank you! |
I confirm that now it works with both Pandoc 1.16.0.2 and 1.17.0.2. Closing the issue. |
Excellent! Thanks again to you both. |
Hello,
I tried to use the 0.8 release in my Windows 10 installation, but I ran into a problem.
My system:
File test.md contained:
Command I used:
pandoc.exe --filter=pandoc-fignos.exe -t latex -o test.tex test.md
No output in the command line. The process hung indefinitely. I forcefully killed the processes using another Command Line window:
I had to repeat those commands many times, until they managed to kill tens of processes that were open and quickly eating up all my memory.
After the processes were killed, the original command line showed the error below, many times:
Reverting back to pandoc-fignos 0.7.6 seemed to have fixed it.
Hope that is useful. Cheers!
The text was updated successfully, but these errors were encountered: