Gettextinit freezes debugger

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

cvlr
Newbie
Posts: 18
Joined: Thu Jun 07, 2018 4:40 pm

Gettextinit freezes debugger

Post by cvlr » Thu Dec 05, 2019 4:15 pm

GetTextInit
ArrayDim>Trailers,1
If you start with F8 at the top it will pause at GetTextInit and go no further. If you Run the program and there is an ArrayDim command anywhere before or after GetTextInit it will run but then MS becomes unstable and starts to have repaint issues on the screen and eventually will give an out of memory or out of system resources messages. It also does other things like variables stop incrementing. For instance Let>i=1
then Let>i=i+1 will not increment. It stays 1. Sometimes you will get a -1 but I haven't figured out a commonality to that yet.

I am not out of system resources....

Basically anytime you have ArrayDim in the same script running with GetTextInit it will cause MS to behave erratically and eventually lock up.

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1380
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Gettextinit freezes debugger

Post by Dorian (MJT support) » Mon Dec 09, 2019 11:03 am

I just replicated some anomalies with this too. Oddly, not on the first runthrough. It took a few times. I will mention this to Marcus.
Yes, we have a Custom Scripting Service. Message me or go here

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Gettextinit freezes debugger

Post by Marcus Tettmar » Mon Dec 09, 2019 5:08 pm

I cannot replicate. Would kind of help to know which Macro Scheduler version and which version and bitness of Windows.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

bnc1
Pro Scripter
Posts: 127
Joined: Sun Jul 31, 2005 5:10 pm

Re: Gettextinit freezes debugger

Post by bnc1 » Wed Jan 08, 2020 4:21 pm

I have a similar problem with Gettextinit and WaitKeyDown. Macro Scheduler becomes unstable with false low on memory errors. I am running MS 14.5.5 and Windows 10 ver 1909.

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1380
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Gettextinit freezes debugger

Post by Dorian (MJT support) » Thu Jan 09, 2020 11:10 am

bnc1 wrote:
Wed Jan 08, 2020 4:21 pm
I have a similar problem with Gettextinit and WaitKeyDown. Macro Scheduler becomes unstable with false low on memory errors. I am running MS 14.5.5 and Windows 10 ver 1909.
Is that 64 bit Win 10?

To check whether you’re using a 32-bit or 64-bit version of Windows 10, open the Settings app by pressing Windows+I, and then head to System > About. On the right side, look for the “System type” entry.
Yes, we have a Custom Scripting Service. Message me or go here

bnc1
Pro Scripter
Posts: 127
Joined: Sun Jul 31, 2005 5:10 pm

Re: Gettextinit freezes debugger

Post by bnc1 » Thu Jan 09, 2020 2:03 pm

I am running Windows 10 v1909 64 bit.

This problem may be related to changes to Macro Scheduler GetWord text dlls in v14.5.5 of Macro Scheduler. I can not replicate the issue in v14.5.4. The GetWord text dlls were upgraded from 4.1.2.192 to 5.1.1.251 .

The exact MS error messages are "Out of System Resources" or "Not enough memory resources are available to process this command". My scripts seem to execute but eventually MS becomes unstable. This is similar to what the original poster had observed.

omlavi
Newbie
Posts: 2
Joined: Sun May 17, 2020 3:54 pm

Re: Gettextinit freezes debugger

Post by omlavi » Sun May 17, 2020 3:57 pm

bnc1 wrote:
Wed Jan 08, 2020 4:21 pm
I have a similar problem with Gettextinit and WaitKeyDown. Macro Scheduler becomes unstable with false low on memory errors. I am running MS 14.5.5 and Windows 10 ver 1909.
Hi, I seem to be having the same problem with Gettextinit. I'm running 64bit Win10 pro.

Thanks!

bnc1
Pro Scripter
Posts: 127
Joined: Sun Jul 31, 2005 5:10 pm

Re: Gettextinit freezes debugger

Post by bnc1 » Mon May 18, 2020 11:19 am

I continue to have this same problem with Macro Scheduler v15.0.09. Scripts with GetTextInit will eventually cause my MS session to become unstable with error messages "Out of System Resources" or "Not enough memory resources are available to process this command".

On my systems this issue started with v14.5.5 of Macro Scheduler, when the GetWord text dlls were changed. I can not replicate the issue in v14.5.4.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Gettextinit freezes debugger

Post by Marcus Tettmar » Mon May 18, 2020 2:48 pm

I have reached out to the developers of the text capture library to see if this is a known issue or if there is an update available.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

omlavi
Newbie
Posts: 2
Joined: Sun May 17, 2020 3:54 pm

Re: Gettextinit freezes debugger

Post by omlavi » Wed May 27, 2020 4:43 pm

Marcus Tettmar wrote:
Mon May 18, 2020 2:48 pm
I have reached out to the developers of the text capture library to see if this is a known issue or if there is an update available.
Thanks a lot! It will allow me to switch from image recognition to using gettextatpoint and will help me very much.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Gettextinit freezes debugger

Post by Marcus Tettmar » Mon Jun 01, 2020 12:21 pm

Hi,

Please could you try this version of the text capture distributables:
https://www.dropbox.com/s/hr5xet6kxftgy ... 1.zip?dl=0

Please fully exit Macro Scheduler (file/exit or exit from system tray). Then extract the files in the zip file above to your Macro Scheduler 15 program folder (overwriting existing copies - backup first if you wish - or we can always reinstate with a reinstall). Then restart and see if the problem persists.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

bnc1
Pro Scripter
Posts: 127
Joined: Sun Jul 31, 2005 5:10 pm

Re: Gettextinit freezes debugger

Post by bnc1 » Thu Jun 04, 2020 9:52 am

My test with Gettextinit and the new text libraries failed with the same problem previously posted :cry:

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Gettextinit freezes debugger

Post by Marcus Tettmar » Mon Jun 08, 2020 2:03 pm

Ok thanks for that. I'm sorry to hear this. I was assured an issue with a handle leak was fixed. But perhaps that isn't your issue. I will feed back again and we will do more tests here.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Enricoys
Junior Coder
Posts: 27
Joined: Mon Jan 06, 2014 1:18 pm

Re: Gettextinit freezes debugger

Post by Enricoys » Thu Oct 01, 2020 8:42 am

What is the status of this issue? I observe exactly the same using this code: repaint issues and out of resources. Only solution is to kill MSched using the Task Manager. I use Windows 10 pro (10.0.18363) x64 and Macro Scheduler 15.0.13.
Actually, I started to observe those issues in my scripts since I start using version 15. My standard way of debugging is that I always kill MSched by using the Task Manager after each debug session. Otherwise the system becomes very unreliable (even lost twice my complete Macro Scheduler map :shock:). I was never able to find the reason for such behaviour, but now it is clear to me that this is the same issue as mentioned here. After having used more than 100 times the Task Manager to kill MSched I am really looking forward for a final solution.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Gettextinit freezes debugger

Post by Marcus Tettmar » Thu Oct 01, 2020 7:06 pm

I'm afraid there still seems to be a memory leak affecting some people in the text capture libraries. These are provided by a third party and we have reported back to them. They claimed to have fixed it but the problem persists. I will continue to nag them. I'm afraid they are not very responsive.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts