You are here: PSPad forum > Bug report / Hlášení chyb > PSPad gets completely frozen during deletion of characters

PSPad gets completely frozen during deletion of characters

#1 PSPad gets completely frozen during deletion of characters

Posted by: ieee | Date: 2022-03-24 09:11 | IP: IP Logged

Hi,

I have perl script with suffix *.pl opened in PSPad (developer version 5.0.7 (727), Windows 10, 32GB RAM ).

When I press delete or backspace and removing last '"', PSPad gets completely frozen and starts utilize 100% of the CPU (25% on 4 core CPU) in this section of script:

if ($access_component_count != 1)
{
print STDERR "\nWARNING: MSISDN $MSISDN from site $SiteID has $access_component_count access components. Products array :" . Dumper(\@products);

}

I was able to replicate behavior multiple times on the same file.
Sample above can not replicate issue when it is not part of the full script.
Please advice. Thanks!

Options: Reply | Quote | Up ^


#2 Re: PSPad gets completely frozen during deletion of characters

Posted by: pspad | Date: 2022-03-24 09:44 | IP: IP Logged

There must be problem with Perl highlighter.
Your sample doesn't make PSpad freezing. Try to please make any cample what will cause it - add some code with string before and after your sample.
Or if you are able (isn't it against your company or your rules) and send me your PL file to support mail for test. I will use it for test purposes only and delete it after problem will be found.
I am not Perl programmer, so I can't use your code for anything.

Options: Reply | Quote | Up ^


#3 Re: PSPad gets completely frozen during deletion of characters

Posted by: ieee | Date: 2022-03-24 10:12 | IP: IP Logged

To which email can I send a problematic file with details?

Options: Reply | Quote | Up ^


#4 Re: PSPad gets completely frozen during deletion of characters

Posted by: pspad | Date: 2022-03-24 11:19 | IP: IP Logged

support @ pspad.com

Options: Reply | Quote | Up ^


#5 Re: PSPad gets completely frozen during deletion of characters

Posted by: ieee | Date: 2022-03-24 11:44 | IP: IP Logged

Info sent to email.

Options: Reply | Quote | Up ^


#6 Re: PSPad gets completely frozen during deletion of characters

Posted by: pspad | Date: 2022-03-24 12:13 | IP: IP Logged

Thank you for e-mail, I am able to simulate it.

Options: Reply | Quote | Up ^


#7 Re: PSPad gets completely frozen during deletion of characters

Posted by: pspad | Date: 2022-03-24 12:36 | IP: IP Logged

ieee:
Info sent to email.

on the line 1313 with content:
} is char 00 instead of the space (char 20). This char confuses Perl highlighter.
delete spaces before brackets (or delete whole line and write it again).
This will fix problems in your script. I will try to fix highlighter to avoid this problem.

Options: Reply | Quote | Up ^


#8 Re: PSPad gets completely frozen during deletion of characters

Posted by: pspad | Date: 2022-03-24 12:52 | IP: IP Logged

Fixed. Now I need to find a time for preparing new build yet.

Options: Reply | Quote | Up ^


#9 Re: PSPad gets completely frozen during deletion of characters

Posted by: ieee | Date: 2022-03-24 13:12 | IP: IP Logged

Great thanks... I also got an error today in this file which was reported by other person as "Chinese hieroglyphs".

Options: Reply | Quote | Up ^


#10 Re: PSPad gets completely frozen during deletion of characters

Posted by: ieee | Date: 2022-03-24 13:26 | IP: IP Logged

I suppose that 00 (hexa) character was inserted by PSPad itself in some scenario. Maybe as a part of some UNDO (Ctrl+Z) operation which I use often. I have not typed it intentionally.

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2022 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR