memory leak from Scite and 32bit
#1
Posted 23 February 2012 - 10:11 PM
#AutoIt3Wrapper_UseX64=n
#RequireAdmin
I get an AutoitWrapper32 that occupies almost 60MB in TaskManager.
After a lot of hours it grows a lot, 200MB up to 400MB.
If I launch outside Scite with Run script (x86) it works well remaining at 37MB all the time.
Another similar problem is when I launch a program from this script from Scite with:
Run("E:\Prog_W7_Base\Zoiper\Zoiper.exe", "E:\Prog_W7_Base\Zoiper")
the zoiper.exe grows a lot from the initial 13MB up to 1GB in hours!
The same Run line in the script launched with Run script (x86), works fine with no mem leak.
Why this?
#2
Posted 23 February 2012 - 10:17 PM
I have no idea why a shelled program would start using more memory when ran from your script than ran from the Explorer.
Jos
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
#3
Posted 23 February 2012 - 10:24 PM
It remains the external program problem. Only with that program, indeed. It's a voip prog.
I launch it with Admin compatibility mode in the properties, too.
Edited by frank10, 23 February 2012 - 10:25 PM.
#4
Posted 24 February 2012 - 06:25 AM
it is the Autoit3Wrapper line in scite:
Without that line it works well as from Run (x86).
With the wrapper line it grows enourmosly.
Autoit 3.3.6.1, AutoIt3Wrapper v.2.1.0.8 , W7 64bit
Edited by frank10, 24 February 2012 - 06:27 AM.
#5
Posted 26 February 2012 - 04:00 PM
I thought to run this external script from the script executing at 32bit from Scite, but it doesn't work.
In this way it leaks...
Why?
#6
Posted 27 February 2012 - 08:19 AM
Run('C:Program Files (x86)Autoit3AutoIt3.exe' & ' E:DomoticaRun_zoiper.au3', 'E:Domotica' )
and this doesn't work, instead I put:
Run('C:Program Files (x86)Autoit3AutoIt3_x64.exe' & ' E:DomoticaRun_zoiper.au3', 'E:Domotica' )
And this time it works.
It's the autoit3.exe at 32bit that has some problem when launched from Scite with this program.
#7
Posted 27 February 2012 - 05:18 PM
When a program has a memory leak when shelled from a x86 session and not x64, you still need to check the application.
I have no idea why this doesn't work: ( and please avoid these string concatenations that makes everything only unclear)
Run('C:Program Files (x86)Autoit3AutoIt3.exe E:DomoticaRun_zoiper.au3', 'E:Domotica' )
and this does work:
Run('C:Program Files (x86)Autoit3AutoIt3_64.exe E:DomoticaRun_zoiper.au3', 'E:Domotica' )
Maybe it would help when you define what isn't working and what you have done as to debugging.
Edited by Jos, 27 February 2012 - 05:20 PM.
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
#8
Posted 27 February 2012 - 05:52 PM
The original script causing the leak was:
In this case, the zoiper.exe in Task manager grows extremely fast every second and in hours can reach 1GB.
I discovered that the problem was caused by the
Deleting that line, launching it from Scite gives no problem. But I need to run that script in 32 bit, so I need that line.
I thought to call an external script that launches the zoiper prog without the AutoitWrapper line, so I made the main script:
#AutoIt3Wrapper_UseX64=n Run('C:Program Files (x86)Autoit3AutoIt3.exe E:DomoticaRun_zoiper.au3', 'E:Domotica' )
and the external script Run_zoiper.au3 that is one simple Run line:
Unfortunately also this approach causes the leak.
I discovered the problem is running this script from Scite in 32bit, because If I launch the external script in 64bit from Scite it works well:
#AutoIt3Wrapper_UseX64=n Run('C:Program Files (x86)Autoit3AutoIt3_64.exe E:DomoticaRun_zoiper.au3', 'E:Domotica' )
But if I run the run_zoiper.au3 from the shell both in 32bit or 64bit there's no leak.
So the problem is caused only by Scite running the autoit3.exe at 32bit with only this zoiper program.
#9
Posted 27 February 2012 - 06:07 PM
Edited by Jos, 27 February 2012 - 06:10 PM.
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
#10
Posted 27 February 2012 - 06:55 PM
It's something with Scite...
Edited by frank10, 27 February 2012 - 06:56 PM.
#11
Posted 27 February 2012 - 06:58 PM
Please post the code of this peculiarly acting script and then we can try and reproduce the problem - otherwise we are just guessing.
M23
Toast - Small GUIs which pop out of the Systray - Marquee - Scrolling tickertape GUIs
Scrollbars - Automatically sized scrollbars with a single command - GUIFrame - Subdivide GUIs into many adjustable frames
GUIExtender - Extend and retract multiple sections within a GUI - NoFocusLines - Remove the dotted focus lines from buttons, sliders, radios and checkboxes
ChooseFileFolder - Single and multiple selections from specified path tree structure - - Notify - Small notifications on the edge of the display
RecFileListToArray - An alternative to _FileListToArray with user-defined include/exclude masks, maximum recursion level, sorting and displayed path options
GUIListViewEx - Insert, delete, move, drag and sort ListView items
#12
Posted 27 February 2012 - 07:19 PM
2 lines the main script, 1 line the external one, like in the above post.
I made it simplest possible just for testing.
#13
Posted 27 February 2012 - 07:25 PM
My apologies - I saw "zoiper.exe" and "zoiper.au3" and thought that it was a compiled script that was giving you the problem.
M23
Toast - Small GUIs which pop out of the Systray - Marquee - Scrolling tickertape GUIs
Scrollbars - Automatically sized scrollbars with a single command - GUIFrame - Subdivide GUIs into many adjustable frames
GUIExtender - Extend and retract multiple sections within a GUI - NoFocusLines - Remove the dotted focus lines from buttons, sliders, radios and checkboxes
ChooseFileFolder - Single and multiple selections from specified path tree structure - - Notify - Small notifications on the edge of the display
RecFileListToArray - An alternative to _FileListToArray with user-defined include/exclude masks, maximum recursion level, sorting and displayed path options
GUIListViewEx - Insert, delete, move, drag and sort ListView items
#14
Posted 27 February 2012 - 08:12 PM
In that case I would say not to use SciTE to start the application for that long, just for testing.Yes, i tried and all goes well, both 32 and 64bit.
It's something with Scite...
The only thing AutoIt3Wrapper does during script execution is to record and STDOUT and STDERR information which is not a memory leak but obviously consumes memory.
I find it strange that the memory usage of the shelled program changes when ran this way.
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users





