Issue 111904

Summary: basic: OO crashes on closing with an otherwise working macro
Product: General Reporter: ghe <ghe>
Component: scriptingAssignee: AOO issues mailing list <issues>
Status: ACCEPTED --- QA Contact:
Severity: Trivial    
Priority: P2 CC: damjan, issues, rainerbielefeld_ooo_qa
Version: OOO320m12Keywords: oooqa
Target Milestone: ---   
Hardware: PC (x86_64)   
OS: Linux, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Calc example file
none
Calc backtrace
none
Writer example file
none
Writer backtrace none

Description ghe 2010-05-28 13:35:31 UTC
The macro putStringInClipboard designed in the thread
http://user.services.openoffice.org/en/forum/viewtopic.php?f=20&t=30800
systematically crashes OO when it is closed, at least in Writer and in Calc. 
You are presented with a "Document Recovery" dialog with an empty file list. 
I'll attach a Writer and a Calc test file, and the backtraces obtained with gdb.

Thanks,

--ghe
Comment 1 ghe 2010-05-28 13:36:18 UTC
Created attachment 69682 [details]
Calc example file
Comment 2 ghe 2010-05-28 13:37:06 UTC
Created attachment 69683 [details]
Calc backtrace
Comment 3 ghe 2010-05-28 13:37:39 UTC
Created attachment 69685 [details]
Writer example file
Comment 4 ghe 2010-05-28 13:38:05 UTC
Created attachment 69686 [details]
Writer backtrace
Comment 5 Olaf Felka 2010-05-28 14:01:51 UTC
Can this crash be reproduced with an vanilla OOo?
Comment 6 ghe 2010-05-28 15:36:38 UTC
Yes, I tested this on OOO320m12 (build 9483), downloaded from OOo.org. 
Obviously, to see the bug, you should enable macros, and click on the "Click me"
button.
Comment 7 kay.ramme 2010-05-28 16:08:38 UTC
Andreas, please have a look.
Comment 8 Rainer Bielefeld 2010-05-30 08:10:07 UTC
NO crash reproducible with "Ooo 3.1.1 WIN XP DE[OOO310m19 (Build 9420)]" or
"Ooo-Dev 3.3 multilingual version English UI WIN XP: [DEV300m78 (Build 9501)]"

Linus xpecific?

With 3.1.1  "Hello world" will be pasted after I had run the macro, in 3.3
clipboard contents will not be modified by macro.
Comment 9 ghe 2010-05-31 17:27:42 UTC
I don't know for Windows, but under Linux, this bug affects the vanilla versions
OOOOO310_m11 (3.1.0), O320_m12 (3.2.0), OOO320_m18 (3.2.1) and DEV300_m79
(3.3.0).  And this macro does work on 3.3.0 (don't forget to enable macros).
Comment 10 ghe 2010-05-31 20:02:04 UTC
It also affects Linux vanilla versions OOG680m5 (2.3.0), OOH680m12 (2.4.0) and
OOO300m9 (3.0.0).  (And the macro works on each one of those versions.)
Comment 11 ghe 2010-06-01 07:37:46 UTC
It doesn't happen on OS X either, on vanilla OOG680m9 (2.3.0), OOO300m9 (3.0.0)
or OOO320m12 (3.2.0).  It seems, indeed, to be Linux-specific.  (Sorry for the
progressive report, I installed ten different versions of OOo only to test this
bug...)
Comment 12 ab 2010-06-03 14:00:19 UTC
No problem with the progressive report, all information is welcome... :-)
I'm not sure about P2 as this is very specific. STARTED, OOo 3.x for now.
Comment 13 damjan 2012-10-31 05:00:28 UTC
This works perfectly with Ubuntu 12.04 and AOO 3.4. Fixed?
Comment 14 Marcus 2017-05-20 10:48:06 UTC
Reset assigne to the default "issues@openoffice.apache.org".