Apache OpenOffice (AOO) Bugzilla – Issue 122885
AOO 4.x crash with extension "Readability Report" 2.0.x or older
Last modified: 2017-05-20 10:34:05 UTC
Tried opening two different existing files. Both were created/editing using the latest AOO OpenOffice.org 3.4.1 AOO341m1(Build:9593). One file had a ".doc" extension, the other an ".odt" extension. I haven't tried any of the other components or file formats. (not worth my time) I have a Macbook Pro 5.1 running Mac OS X 10.8.4 (12E55), 8 GB 1067 MHz DDR3, 2.4 GHz Intel Core 2 Duo I installed the latest Java from Apple Support to make sure that wasn't the problem. I tried three downloads and installations to make sure there wasn't a problem with the file transfer. My system reported the crash to Apple each time it happened Note: I also filed a report (122876) describing problems editing/saving with AOO 4.x crashing
(In reply to sbarta from comment #0) > My system reported the crash to Apple each time it happened We cannot access the reports sent to Apple. Please do this instead: - copy the long text shown the Mac Crash Reporter - paste it into a text editor - save that to a file - attach the resulting file to this issue
Created attachment 81206 [details] Opening doc crash report
Created attachment 81207 [details] opening odt crash report
@sbarta: do you have a Smart Tag extension installed?
I haven't knowingly installed one. Wasn't aware I needed to do so.
(In reply to sbarta from comment #5) > I haven't knowingly installed one. Wasn't aware I needed to do so. You don't to install anything. I just asked because of the backtraces, in both cases you can find SmartTagMgr::RecognizeString(), though this doesn't imply you have installed a Smart Tag extension.
Is the smart tag extension a problem? Have to tell you that I appreciate your help!
Thanks for providing the crash reports. The offset of the frame addresses to their symbols is small enough so the stack make sense and as Ariel pointed out the SmartTagMgr is our prime suspect. Please try to disable each extension that uses the SmartTag functionality. Click in the menu bar on "Tools", then "ExtensionManager" and then select the first extension that could be related to smart tags (e.g. Simple Calculator, Latitude, etc.). When you select an extension a "Disable" button appears which you should use. Please also disable all other suspect extensions.
Created attachment 81218 [details] Extensions that may cause crash
See also bug report: [Bug 122876] AOO 4.x crash on Mac OS X 10.8.4 (12E55) editing or saving I disabled all but one of the extensions (see file under attachment "Extensions that may cause crash). I tested a couple of documents after I disabled the extensions and everything seems to be fine. I think that they may have also caused AOO 4.x to crash on editing and saving. I'll enable the extensions one at a time to see which one caused the crash. I may even get brave enough to try Calc, etc. FYI, before I disabled the extensions, AOO crashed while trying to recover one of the documents. The document opened without problems after I disabled the extensions. (In reply to hdu@apache.org from comment #8) > Thanks for providing the crash reports. The offset of the frame addresses to > their symbols is small enough so the stack make sense and as Ariel pointed > out the SmartTagMgr is our prime suspect. > > Please try to disable each extension that uses the SmartTag functionality. > Click in the menu bar on "Tools", then "ExtensionManager" and then select > the first extension that could be related to smart tags (e.g. Simple > Calculator, Latitude, etc.). When you select an extension a "Disable" button > appears which you should use. Please also disable all other suspect > extensions.
Confirming the problem after installing the "Readability Report". A wonderful and highly recommended extension by the way. It indeed uses smarttags ("The extension also uses SmartTags to highlight difficult words and phrases in your text"). Still analyzing...
The problem is an exception "java.lang.NoSuchMethodError" caused for the method com.sun.star.text.XTextMarkup.commitTextMarkup( String, XStringKeyMap) that does no longer exist. Issue 121734 and its revision 1458881 are suspects. java stack trace: java.lang.NoSuchMethodError: com.sun.star.text.XTextMarkup.commitTextMarkup(ILjava/lang/String;IILcom/sun/star/container/XStringKeyMap;) at com.surrey.SimpleTextRecognizer.recognize(SimpleTextRecognizer.java:333)
Created attachment 81227 [details] prevent crash by catching the thrown exception Simply catching the NoSuchMethodError makes the application usable again. This can only be a short term solution to change the bad stability problem into a missing functionality inconvenience. The best solution would be to reintroduce the old API method or have the extension recompiled for AOO>=4.0 and have the old extension automatically be marked as incompatible.
the extensions have to be updated, we changed a not yet published API. The area where we failed is to document and communicate API changes. And that is something that we have to improve. The changes were discussed on the dev list and nobody complained.
"hdu" committed SVN revision 1509576 into trunk: #i122885# handle SmartTag related exceptions gracefully
The commit above fixes the crash and provides diagnostics to stderr.
"hdu" committed SVN revision 1510489 into trunk: #i122885# tone down SmartTag exception error reporting to a DBG_WARNING
approve showstopper request
"hdu" committed SVN revision 1513510 into branches/AOO401: #i122885# handle SmartTag related exceptions gracefully
Don't reproduce this defect , can someone give some suggestion for steps on AOO400m1(Build:9700) - Rev. 1467605 on Mac 10.8 Try to repoduce , the Steps below: 1.Add Extension :Readability Report(readablilityreport.oxt) and enable this extension and disable other extensiongs 2.Open file .doc and .odt created by AOO3.4.1 , But pass and no crash on AOO 4.0 Are there some other specially step to help to reproduce this defect ?
In reply to liupingtan from comment #20) > Are there some other specially step to help to reproduce this defect ? The crash is reproducible with readability report 2.0.4 [1] and with almost any text document. What may be important is that this SmartTags extension runs when Writer does its "idle layouting", so it may take a couple of seconds after the document is created/loaded. [1] http://extensions.openoffice.org/en/node/2659/releases
thanks hdu I still can't reproduce on AOO400m1(Build:9700)-Rev 1467605 on Mac10.8 Can anybody with Mac 10.8 verify the fix with the latest snapshot