Bug 163408 - Scriptforge in LibreOffice 24.8.x get RuntimeError: The execution of the method 'SetStatusbar' failed. Execution stops
Summary: Scriptforge in LibreOffice 24.8.x get RuntimeError: The execution of the meth...
Status: RESOLVED DUPLICATE of bug 163219
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
24.8.2.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-13 07:09 UTC by PHAM XUAN TIEN
Modified: 2024-10-14 07:34 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description PHAM XUAN TIEN 2024-10-13 07:09:26 UTC
Description:
Scriptforge in LibreOffice 24.8.x get RuntimeError: The execution of the method 'SetStatusbar' failed. Execution stops when use SF_UI in python code
I tested with: SetStatusBar and SetStatusbar

Steps to Reproduce:
1.Open APSO
2.oUI = CreateScriptService('UI')
3.oUI.SetStatusbar('abc', 10)

Actual Results:
Traceback (most recent call last):
  File "/usr/lib/python3.12/code.py", line 90, in runcode
    exec(code, self.locals)
  File "<console>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/scriptforge.py", line 1756, in SetStatusbar
    return self.ExecMethod(self.vbMethod, 'SetStatusbar', text, percentage)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/scriptforge.py", line 621, in ExecMethod
    return self.EXEC(self.objectreference, flags, methodname, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/scriptforge.py", line 353, in InvokeBasicService
    raise RuntimeError("The execution of the method '" + method + "' failed. Execution stops.")
RuntimeError: The execution of the method 'SetStatusbar' failed. Execution stops.

Expected Results:
No error 


Reproducible: Always


User Profile Reset: No

Additional Info:
LibreOffice 24.2.6 is OK
Comment 1 Xisco Faulí 2024-10-14 07:34:05 UTC
Thanks for reporting this issue.
This is a duplicate of bug 163219 and it should be fixed in LibreOffice 24.8.3

*** This bug has been marked as a duplicate of bug 163219 ***