jcrist90 0 Posted June 21, 2019 Hi All, I faced very strange issue with AutoIT v3, version 3.3.14.5. Operating system Win 10 Pro 64bit Version 10.0.17134 Build 17134. AutoIT stopped executing any scripts, which were working fine before without any problem. The symptoms are: - whenever I run any script it returns with exit code 0 without actually doing anything. It doest matter if I do it from the AutoIT editor or from the command line - she just exits silently without any diagnostics whatsoever. The same release works fine on other machines. I tried restart, reinstall, Windows reboot- nothing helps. Any idea how I can troubleshoot this problem? I even created a new test file and typed some gibberish in it - AutoIT just swallows it without any issue and returns OK without doing anything. Other programs on this machine work without any problem. Share this post Link to post Share on other sites
Jos 2,213 Posted June 21, 2019 Any AntiVirus/malware software running that is interfering with the execution? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
jcrist90 0 Posted June 21, 2019 No, just Windows defender. It is very strange but it seems I worked around the issue. When I copy the folder with my scripts from the network drive to C:\ drive they start working fine! Very strange as I developed the whole set on the network drive and all scripts worked fine before from that location. The network drive is mapped as D:\, no issues with copying files back and forth. Share this post Link to post Share on other sites
Jos 2,213 Posted June 21, 2019 i have seen other reports about this issue but we have never been able to drill it down to the level what is causing it and have never been able to replicate the issue. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
jcrist90 0 Posted June 21, 2019 Thank you for prompt response and sorry for false alarm. I will experiment more with this problem and update here if any new findings. Share this post Link to post Share on other sites
water 2,392 Posted June 21, 2019 Maybe your admin has changed the group policy so programs can only be executed from some "secure locations" (Application Directory whitelisting or even applocker)? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
jcrist90 0 Posted June 21, 2019 I am the admin All I changed - I added this folder to git so I suspect this could be the reason. Win 10 is running as VM on VirtualBox, all network drives are permanently mapped to the host file system, host is Ubuntu 18.04. Share this post Link to post Share on other sites
jcrist90 0 Posted June 21, 2019 Although new file in that location also doesn't work so it is unlikely that git is the problem. Share this post Link to post Share on other sites
Jos 2,213 Posted June 21, 2019 Here is the other thread which seems to be a similar case with a virtual box: 2 TheDcoder and jcrist90 reacted to this SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
TheDcoder 1,215 Posted June 22, 2019 Thanks for mentioning my topic @Jos 15 hours ago, jcrist90 said: Win 10 is running as VM on VirtualBox, all network drives are permanently mapped to the host file system, host is Ubuntu 18.04. I assume you are running the scripts from one of the network drives? Please test if you could run a script if it is in the system (usually C) drive... the desktop is a handy location to test 16 hours ago, Jos said: we have never been able to drill it down to the level what is causing it and have never been able to replicate the issue. I am able to replicate the issue on my computer, and I volunteer for any testing efforts... maybe we can use a debug version of AutoIt to output some useful information to see what is happening behind the scenes with reading the script? EasyCodeIt - A cross-platform AutoIt implementation DcodingTheWeb Forum - Follow for updates and Join for discussion Share this post Link to post Share on other sites
jcrist90 0 Posted June 22, 2019 1 hour ago, TheDcoder said: Thanks for mentioning my topic @Jos I assume you are running the scripts from one of the network drives? Please test if you could run a script if it is in the system (usually C) drive... the desktop is a handy location to test I am able to replicate the issue on my computer, and I volunteer for any testing efforts... maybe we can use a debug version of AutoIt to output some useful information to see what is happening behind the scenes with reading the script? yep, it is exact same problem. Scripts worked before but stopped out of sudden without any obvious reason. Copying them to the C:\ drive cures the issue - all is working fine as before. I suspect that this issue could come with some upgrade, either in Windows or Linux and probably the one, which came out just recently. Which distro are you using as a host OS? Share this post Link to post Share on other sites
jchd 1,514 Posted June 22, 2019 If that's true, I wouldn't call it an "upgrade". This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Share this post Link to post Share on other sites
TheDcoder 1,215 Posted June 22, 2019 2 hours ago, jcrist90 said: Which distro are you using as a host OS? Fedora 30 with VirtualBox from the official Oracle repository EasyCodeIt - A cross-platform AutoIt implementation DcodingTheWeb Forum - Follow for updates and Join for discussion Share this post Link to post Share on other sites
jcrist90 0 Posted June 22, 2019 Ok, my host is Ubuntu 18.04 LTS but I have some updates still pending and I did not update Ubuntu recently, it goes only manual. My VirtualBox version: I guess the suspect is Microsoft Windows 10 as it did do several updates recently, in May-June. My Win 10 installation is saying it is "up to date", so I got all the fixed from Microsoft. What Windows version do you run? Share this post Link to post Share on other sites
TheDcoder 1,215 Posted June 22, 2019 2 minutes ago, jcrist90 said: What Windows version do you run? The latest version of Windows 10 I presume, I update it regulary. I also just updated my host operating system, I have VirtualBox v6.0.8 r130520. I did another quick test now... still doesn't work EasyCodeIt - A cross-platform AutoIt implementation DcodingTheWeb Forum - Follow for updates and Join for discussion Share this post Link to post Share on other sites
jcrist90 0 Posted June 22, 2019 So this is most likely Microsoft. Could be their anti-malware, which may block running scripts from network locations. Share this post Link to post Share on other sites
water 2,392 Posted June 22, 2019 Did you check the Windows event logs or VirtualBox logs. Maybe you will find some entries on startup time of VB or run time of your script. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
Werty 157 Posted June 22, 2019 Just a thought, could it have anything to do with the BIOS setting "Execute Disable Bit" also called "Data Execution Protection" or "No Execute Memory Protection". Try disabling it in BIOS, i read somewhere that people have problems with that and virtualization. Maybe it doesnt work, but wouldnt hurt trying. Some guy's script + some other guy's script = my script! Share this post Link to post Share on other sites
mLipok 1,034 Posted June 22, 2019 On 6/21/2019 at 1:57 PM, jcrist90 said: The network drive is mapped as D:\, no issues with copying files back and forth. Save your script to C drive ... Add FileExist('D:\....au3') and give as the result. I think you are using #RequireAdmin but the D drive is not mapped for admin..... Signature beginning: Wondering who uses AutoIt and what it can be used for ?* GHAPI UDF - modest beginning - communication with GitHub REST API * Forum Rules *Include Dependency Tree (Tool for analyzing script relations)ADO.au3 UDF POP3.au3 UDF XML.au3 UDF How to use IE.au3 UDF with AutoIt v3.3.14.x for other useful stuff click the following button Spoiler Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API * ErrorLog.au3 UDF - A logging Library * My contribution to others projects or UDF based on others projects: * _sql.au3 UDF * POP3.au3 UDF * RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF * SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane * Useful links: * Forum Rules * Forum etiquette * Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * Wiki: * Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX IE Related: * How to use IE.au3 UDF with AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler * IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) *PDF Related: * How to get reference to PDF object embeded in IE * I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions * EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *I also encourage you to check awesome @trancexx code: * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuff * OnHungApp handler * Avoid "AutoIt Error" message box in unknown errors * HTML editor * "Homo sum; humani nil a me alienum puto" - Publius Terentius Afer"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming" , be and \\//_. Anticipating Errors : "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty." Signature last update: 2021-01-03 Share this post Link to post Share on other sites
jcrist90 0 Posted June 23, 2019 22 hours ago, Werty said: Just a thought, could it have anything to do with the BIOS setting "Execute Disable Bit" also called "Data Execution Protection" or "No Execute Memory Protection". Try disabling it in BIOS, i read somewhere that people have problems with that and virtualization. Maybe it doesnt work, but wouldnt hurt trying. I guess this bit is enabled by default. I haven't seen such setting in my BIOS - I have MSI z170a gaming m5 mobo. Can probably help with buffer overrun attacks prevention but I doubt it is related to this problem. Share this post Link to post Share on other sites