Bug 73910 - Macro hangs iterating words in Lao document, possible bug or macro problem
Summary: Macro hangs iterating words in Lao document, possible bug or macro problem
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
4.2.0.2 rc
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-22 03:08 UTC by Robert M Campbell
Modified: 2015-07-18 17:27 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Module with addSpaces Macro (3.00 KB, text/plain)
2014-01-22 03:08 UTC, Robert M Campbell
Details
70 Years Test document (8.93 KB, application/vnd.oasis.opendocument.text)
2014-01-22 03:11 UTC, Robert M Campbell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert M Campbell 2014-01-22 03:08:31 UTC
Created attachment 92560 [details]
Module with addSpaces Macro

Not sure exactly where the issue resides. It might be an issue with my macro code, as opposed to a bug.

I have a macro to insert zero-width-spaces between words where spaces do not exist. The macro hangs on two occurences of Lao text preceeded by numbers, and at the end of the document (which I think is a problem with my macro, not libreoffice). I can't see where my code would infinite loop, and there's no specific error to let me know something has gone wrong when it hits the first 70ປີ.

Attached macro module file and will attach document for testing.

To reproduce, open 70 Years Test document, run macro addSpaces. While the macro is executing, on my machine, I am able to go to the first 70ປີ and put a space after 70, and it then runs in an infinite loop. When I select the 

If someone could look at it and see if it's an issue with libreoffice, ICU, or my macro, that'd be great!
Comment 1 Robert M Campbell 2014-01-22 03:11:34 UTC
Created attachment 92561 [details]
70 Years Test document

This is the document used for testing.
Comment 2 Buovjaga 2014-11-18 10:11:15 UTC
(In reply to Robert M Campbell from comment #0)
> To reproduce, open 70 Years Test document, run macro addSpaces. While the
> macro is executing, on my machine, I am able to go to the first 70ປີ and put
> a space after 70, and it then runs in an infinite loop. When I select the 
> 

I noticed your sentence was cut off.

I reproduced the hanging, but I can't answer your questions as I'm not macro-savvy. Might have been better to start with a question on http://ask.libreoffice.org/

Win 7 64-bit Version: 4.4.0.0.alpha2+
Build ID: b021b5983c62e266b82d9f0c5c6d8d8900553827
TinderBox: Win-x86@39, Branch:master, Time: 2014-11-12_01:10:08
Comment 3 raal 2014-12-09 08:16:10 UTC
I doesn't see macro Addspaces. Do you mean  addBreaks() ?

" When I select the "  -  please end your sentence ...

Macro is looping in 
Do While NotEndOfDoc

Loop
You can debug macro in macro editor with F8.
Comment 4 QA Administrators 2015-06-08 14:29:18 UTC
Dear Bug Submitter,

This bug has been in NEEDINFO status with no change for at least
6 months. Please provide the requested information as soon as
possible and mark the bug as UNCONFIRMED. Due to regular bug
tracker maintenance, if the bug is still in NEEDINFO status with
no change in 30 days the QA team will close the bug as INVALID
due to lack of needed information.

For more information about our NEEDINFO policy please read the
wiki located here:
https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO

If you have already provided the requested information, please
mark the bug as UNCONFIRMED so that the QA team knows that the
bug is ready to be confirmed.
 
Thank you for helping us make LibreOffice even better for everyone!

This NEEDINFO Message was generated on: 2015-06-08

Warm Regards,
QA Team
Comment 5 QA Administrators 2015-07-18 17:27:51 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INVALID due to inactivity and a lack of information which is needed in order to accurately reproduce and confirm the problem. We encourage you to retest your bug against the latest release. If the issue is still present in the latest stable release, we need the following information (please ignore any that you've already provided):

a) Provide details of your system including your operating system and the latest version of LibreOffice that you have confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED and we will attempt to reproduce the issue. 
Please do not:
a) respond via email 
b) update the version field in the bug or any of the other details on the top section of FDO

Message generated on: 2015-07-18