Issue 111904 - basic: OO crashes on closing with an otherwise working macro
Summary: basic: OO crashes on closing with an otherwise working macro
Alias: None
Product: General
Classification: Code
Component: scripting (show other issues)
Version: OOO320m12
Hardware: PC (x86_64) Linux, all
: P2 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Keywords: oooqa
Depends on:
Reported: 2010-05-28 13:35 UTC by ghe
Modified: 2017-05-20 10:48 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

Calc example file (9.65 KB, application/vnd.oasis.opendocument.spreadsheet)
2010-05-28 13:36 UTC, ghe
no flags Details
Calc backtrace (1.51 KB, text/plain)
2010-05-28 13:37 UTC, ghe
no flags Details
Writer example file (10.46 KB, application/vnd.oasis.opendocument.text)
2010-05-28 13:37 UTC, ghe
no flags Details
Writer backtrace (1.51 KB, text/plain)
2010-05-28 13:38 UTC, ghe
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description ghe 2010-05-28 13:35:31 UTC
The macro putStringInClipboard designed in the thread
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.


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 
Obviously, to see the bug, you should enable macros, and click on the "Click me"
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
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 "".