Qwerty212 Posted April 4, 2022 Posted April 4, 2022 Hello from Barcelona. I've been doing some research and all that I can find is just the opposite of what I'm looking for. I've been asked to help a partner聽debug a looooooooooong script that crashes without showing any of the typical Autoit's error popups. I can not post the code here (more than 20.000 lines before stripping and I don't know if I'm allowed as it's a corporative program). I know that you don't have a crystal ball, but I would love to know if there's someone that has faced the same issue: a compiled script that just crashes without giving any error popup. I have searched for all the Exit calls in the code and before each of them there is a MsgBox with flag 262208 (one button, information icon, top-most attribute) but none of them is shown when the program crashes. Any hint or clue about how possibly a script could end without giving an error message would be truly appreciated. 聽
Trong Posted April 4, 2022 Posted April 4, 2022 Debug console line by line. Qwerty212 1 Enjoy my work? Buy me a 馃嵒 or tip via 鉂わ笍 PayPal
Qwerty212 Posted April 4, 2022 Author Posted April 4, 2022 38 minutes ago, VIP said: Debug console line by line. Thanks for the reply. I can not use the console as there are several compiled scripts and they transpond data between them. I've tried to make a kind of log creating files in a ramdisk (way faster than doing a filewritelog: Func _pseudolog($message) Local $now = @HOUR & "-" & @MIN & "-" & @SEC & "-" & @MSEC & " - " & $message & '.log' Local $hFile = _WinAPI_CreateFile($folder & $now, 1, 4, 0) _WinAPI_CloseHandle($hFile) EndFunc ;==>_pseudolog This way I can have some traceability, but I can not figure yet where the error is. The goal of this thread is more oriented in trying to know if there's someone that has聽experience on autoit crashing without poping up any error message. I've discarded antivir programs, also. One thing that happens a lot with these compiled scripts is that they have to perform Inireads and IniWrites several times in the same file. I don't know if trying to read/open an already in use .ini could lend to an error that leaves no trace. Once again, thanks for any clue or hint that you could provide.
water Posted April 4, 2022 Posted April 4, 2022 I would at least log a message before and after each call to one of your compiled scripts. Qwerty212 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13聽- Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28聽- Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel聽- Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki 聽
Qwerty212 Posted April 4, 2022 Author Posted April 4, 2022 30 minutes ago, water said: I would at least log a message before and after each call to one of your compiled scripts. Yeah, that鈥檚 what I鈥檓 trying to achieve聽with the pseudo log. The only way I think that Autoit can exit from running without showing an error is with an Exit call or with a ProcessClose from one of the other scripts (the Exit is going to be test tomorrow, the ProcessClose is discarded). 聽 Thanks for stopping by to give your opinion. 聽 Greets from Barcelona
Danp2 Posted April 4, 2022 Posted April 4, 2022 Have you checked the Windows logs for any signs of the app exiting due to a crash? Qwerty212 1 Latest Webdriver UDF Release Webdriver Wiki FAQs
water Posted April 4, 2022 Posted April 4, 2022 Can you log the result (return code) of every called script plus the return value of the main script? Qwerty212 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13聽- Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28聽- Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel聽- Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki 聽
Qwerty212 Posted April 4, 2022 Author Posted April 4, 2022 18 minutes ago, water said: Can you log the result (return code) of every called script plus the return value of the main script? I鈥檒l do a big test tomorrow. I鈥檝e placed my pseudo log in each function call and in those that were called when the program crashes I have placed it at each step. so far the current pseudo log looks like this. I will add the psuedo log function in the other compiled scripts and not just in the main one. (I use this one instead of FileWriteLog because it鈥檚 faster) 22 minutes ago, Danp2 said: Have you checked the Windows logs for any signs of the app exiting due to a crash? Uops, I didn鈥檛 knew that there were such a Windows Log! I鈥檓 going to Google for some more info. 聽 Thanks for all the help. Good night
Qwerty212 Posted April 5, 2022 Author Posted April 5, 2022 I've took a look at the Windows Event Viewer and when the main program has crashed, it has this info: Quote Nombre de registro:Application Origen: 聽聽聽聽聽聽聽Application Error Fecha: 聽聽聽聽聽聽聽聽01/04/2022 17:08:29 Id. del evento:1000 Categor铆a de la tarea:(100) Nivel: 聽聽聽聽聽聽聽聽Error Palabras clave:Cl谩sico Usuario: 聽聽聽聽聽聽No disponible Equipo: 聽聽聽聽聽聽聽DESARROLLO Descripci贸n: Nombre de la aplicaci贸n con errores: BONO.exe, versi贸n: 2.2.4.201, marca de tiempo: 0x6247101c Nombre del m贸dulo con errores: BONO.exe, versi贸n: 2.2.4.201, marca de tiempo: 0x6247101cExeption Code: 0xc0000005 Desplazamiento de errores: 0x00051107 Identificador del proceso con errores: 0x52c4 Hora de inicio de la aplicaci贸n con errores: 0x01d845d735f8b5e7 Ruta de acceso de la aplicaci贸n con errores: D:\1 GUI Principal\BONO.exe Ruta de acceso del m贸dulo con errores: D:\1 GUI Principal\BONO.exe Identificador del informe: 1c2d6719-1667-4f5d-86b7-f9bd9f79d215 Nombre completo del paquete con errores:聽 Identificador de aplicaci贸n relativa del paquete con errores:聽 XML de evento: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> 聽聽<System> 聽聽聽聽<Provider Name="Application Error" /> 聽聽聽聽<EventID Qualifiers="0">1000</EventID> 聽聽聽聽<Version>0</Version> 聽聽聽聽<Level>2</Level> 聽聽聽聽<Task>100</Task> 聽聽聽聽<Opcode>0</Opcode> 聽聽聽聽<Keywords>0x80000000000000</Keywords> 聽聽聽聽<TimeCreated SystemTime="2022-04-01T15:08:29.0369281Z" /> 聽聽聽聽<EventRecordID>22641</EventRecordID> 聽聽聽聽<Correlation /> 聽聽聽聽<Execution ProcessID="13484" ThreadID="0" /> 聽聽聽聽<Channel>Application</Channel> 聽聽聽聽<Computer>DESARROLLO</Computer> 聽聽聽聽<Security /> 聽聽</System> 聽聽<EventData> 聽聽聽聽<Data>BONO.exe</Data> 聽聽聽聽<Data>2.2.4.201</Data> 聽聽聽聽<Data>6247101c</Data> 聽聽聽聽<Data>BONO.exe</Data> 聽聽聽聽<Data>2.2.4.201</Data> 聽聽聽聽<Data>6247101c</Data> 聽聽聽聽<Data>c0000005</Data> 聽聽聽聽<Data>00051107</Data> 聽聽聽聽<Data>52c4</Data> 聽聽聽聽<Data>01d845d735f8b5e7</Data> 聽聽聽聽<Data>D:\1 GUI Principal\BONO.exe</Data> 聽聽聽聽<Data>D:\1 GUI Principal\BONO.exe</Data> 聽聽聽聽<Data>1c2d6719-1667-4f5d-86b7-f9bd9f79d215</Data> 聽聽聽聽<Data> 聽聽聽聽</Data> 聽聽聽聽<Data> 聽聽聽聽</Data> 聽聽</EventData> </Event> Looking for some info on this聽0xc0000005 I have seen that it's related to a memory problem. I'll have to insert more logs to check where does it fail exactly. Any hint or clue about this聽0xc0000005 error would be really welcomed. 聽 Greets from Barcelona
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now