Apache OpenOffice (AOO) Bugzilla – Issue 47270
OOo crash with python macro
Last modified: 2013-02-24 21:09:31 UTC
I create a new documente with a button. I assign to this button a python macro that I have create, and I put to ~/.openoffice.org1.9.91/user/Scripts/python/. When I press the button, the first time nothing happen, and at the second press, OOo crash! I think that the problems is the dir() python function. This is my macro: import uno, unohelper def try_bug(*args): model = XSCRIPTCONTEXT.getDocument() print dir(model) g_exportedScripts = (try_bug,)
sw->jbu: looks like your area
Hi, I reproduced the crash on 680m97, it is probably a problem of the framework, but I need to debug it to get a sensible stacktrace. Bye, Joerg
keyword crash.
Hi, should stop guessing, this crash is not related to the scripting framework, but a bug in pyuno itself. The property __members__ of an bridged uno objects has a refcount bug, which leads to the crash. The python builtin dir() function evaluates the __members__ property, so until a fix is integrated into OOo, using dir() will lead to a crash sooner or later. BTW, dir() evalutes to nothing currently, this will also be fixed. Bye, Joerg
set milestone to 2.0.1
adding myself to cc. cyb->jbu: If you need any support, let me know.
won't get my cws ready for 2.0.1
see above
fixed on cws_src680_pyunofixes2
Hi, Joerg Skottke (qa representative for pyunofixes2) wants the submitter to qa their issues themself. You can download the installationsets either for windows or linux here ( http://ooo.services.openoffice.org/pub/OpenOffice.org/cws/upload/pyunofixes2 ). They are based on a OOo2.x-m148 milestone. Can you please change the state of the issue to verified once you checked, that the bug is fixed ? Bye, Joerg
Set target Set verified
This Issue is 'Verified' and not updated in 1yr+, so Closing. A Closed Issue is a Happy Issue (TM). Regards, Andrew Cleaning-up and Closing old Issues as part of: ~ The Grand Bug Squash, pre v3 ~