Author Topic: Avast shields are blocking PDF creation with LuaLatex  (Read 2137 times)

0 Members and 1 Guest are viewing this topic.

Offline Arvid van den Brink

  • Newbie
  • *
  • Posts: 3
Avast shields are blocking PDF creation with LuaLatex
« on: January 06, 2021, 03:42:06 PM »
Hi everyone,

I am using MikTex and TexStudio (all the latest versions) in my Windows 10 computer. All worked fine until I had to change the latex compiler to either LuaLatex or XeLatex. For the latex document in question it is preferred to use the LuaLatex compiler.
When compiling the document I receive an error "I can't write on file 'x.pdf'.

After searching the web for a few days I found a similar problem (https://forum.avast.com/index.php?topic=235490.msg1553481#msg1553481) in which the same problem is linked to the Avast products.

For now I am able to compile the document IF AND ONLY IF I disable all the shields in Avast. But this is by no means a safe solution to the problem.

Has anyone encountered a similar problem before and knows how to solve it? Thanks

Offline bob3160

  • Avast Überevangelist
  • Probably Bot
  • *****
  • Posts: 48550
  • 64 Years of Happiness
    • bob3160 Protecting Yourself, Your Computer and, Your Identity
Re: Avast shields are blocking PDF creation with LuaLatex
« Reply #1 on: January 06, 2021, 03:54:36 PM »
Hi everyone,

I am using MikTex and TexStudio (all the latest versions) in my Windows 10 computer. All worked fine until I had to change the latex compiler to either LuaLatex or XeLatex. For the latex document in question it is preferred to use the LuaLatex compiler.
When compiling the document I receive an error "I can't write on file 'x.pdf'.

After searching the web for a few days I found a similar problem (https://forum.avast.com/index.php?topic=235490.msg1553481#msg1553481) in which the same problem is linked to the Avast products.

For now I am able to compile the document IF AND ONLY IF I disable all the shields in Avast. But this is by no means a safe solution to the problem.

Has anyone encountered a similar problem before and knows how to solve it? Thanks
Reported to Avast let's see if that helps. Sorry, I don't know or use the program.
Free Security Seminar: https://bit.ly/bobg2023  -  Important: http://www.organdonor.gov/ -- My Web Site: http://bob3160.strikingly.com/ - Win 11 Pro v22H2 64bit, 16 Gig Ram, 1TB SSD, Avast Free 23.5.6066, How to Successfully Install Avast http://goo.gl/VLXdeRepair & Clean Install https://goo.gl/t7aJGq -- My Online Activity https://bit.ly/BobGInternet

Offline Milos

  • Avast team
  • Super Poster
  • *
  • Posts: 2294
Re: Avast shields are blocking PDF creation with LuaLatex
« Reply #2 on: January 06, 2021, 04:06:38 PM »
Hello,
is there some Avast message?
What Avast products do you use (which components are installed)?
Can you try do disable only part (shield) of the product to identify which Avast part is causing it?
Is the latex compiler digitally signed?

I can only guess that it could be caused by Ransomware shield, but it is only a guess.

Milos

Offline Arvid van den Brink

  • Newbie
  • *
  • Posts: 3
Re: Avast shields are blocking PDF creation with LuaLatex
« Reply #3 on: January 06, 2021, 04:40:50 PM »
Hello,
is there some Avast message?
What Avast products do you use (which components are installed)?
Can you try do disable only part (shield) of the product to identify which Avast part is causing it?
Is the latex compiler digitally signed?

I can only guess that it could be caused by Ransomware shield, but it is only a guess.

Milos

I could have been more elaborate on that.
There are no message given by Avast (that's why it took me some days before I found this).
I am using Avast Premium Security, with the products: AntiVirus, Cleanup Premium and Password Manager. Beside that I use Avast AntiTrack and Avast Driver Updater.

I have already tried to disable the separate shields but no luck at all. So there is no single shield responsible as it seams, but a combination of shields.

All the files in the MikTex and TexStudio product are not signed.


Offline Arvid van den Brink

  • Newbie
  • *
  • Posts: 3
Re: Avast shields are blocking PDF creation with LuaLatex
« Reply #4 on: January 06, 2021, 09:32:53 PM »
Solved this issue.

In Avast I have added the following apps to allow them in the Ransomware shield:

C:\Program Files\MiKTeX 2.9\miktex\bin\x64\lualatex.exe
C:\Program Files\MiKTeX 2.9\miktex\bin\x64\xdvipdfmx.exe


In TexStudio the build commands are set to:

XeLatex -> xelatex.exe -shell-escape -output-driver="xdvipdfmx -z 0" %.tex
LuaLatex -> lualatex.exe -synctex=1 -interaction=nonstopmode %.tex