Issue 2626 - CRASH when assigning SHORTCUT KEY to MACROS
Summary: CRASH when assigning SHORTCUT KEY to MACROS
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: 641
Hardware: All All
: P1 (highest) Trivial (vote)
Target Milestone: ---
Assignee: stefan.baltzer
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-22 17:27 UTC by Unknown
Modified: 2003-09-08 16:56 UTC (History)
3 users (show)

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


Attachments
Keyboard assignments for sCalc which cause crash (6.79 KB, text/plain)
2002-03-16 11:18 UTC, Unknown
no flags Details
Keyboard assignments for sText which cause crash (7.42 KB, text/plain)
2002-03-16 11:20 UTC, Unknown
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2001-12-22 17:27:32 UTC
If you assign a SHORTCUT KEY to a MACRO, the program will crash whenever you try to use that shortcut key or click on 
TOOLS --> CONFIGURATION.

Here are exact instructions to reproduce this error:

Go to Tools --> Configuration and 
select the KEYBOARD tab. In the bottom left box (FUNCTIONS/CATEGORY) highlight "OpenOffice.org BASIC 
macros", then select "Form Wizard/Form Wizard/MainWithDefault). Assign CTRL-F to this macro. Exit the dialogue 
box.

Now, if you try CTRL-F, it works fine. Close out of OpenOffice completely (meaning remove Loadstarter or anything 
else in memory) and start up again fresh. Clicking on CTRL-F or choosing TOOLS --> CONFIGURATION will crash the 
program.

I have found this error with Windows & Linux versions, including the newest 641C and dating back to build 638.
Comment 1 stefan.baltzer 2002-01-15 12:51:28 UTC
Reassigned to Joost.
Comment 2 Joost Andrae 2002-01-15 14:23:27 UTC
JA: wasn't able to reproduce it on local (recent) wntmsci7.pro build.
Need to check against oo641c build as well
Comment 3 Joost Andrae 2002-01-16 11:15:55 UTC
Tested again in recent Linux build: --> not reproduceable anymore (saw
it in OO.o 641c build as well)
Comment 4 scarr 2002-03-09 06:59:08 UTC
I have reproduced this bug in Linux 641C.  I tried it on Windows 2000
and wasn't able to get it to crash.
Comment 5 scarr 2002-03-09 07:13:31 UTC
Is there a way to clean your Configuration so you can at least get
into it again?
Comment 6 Unknown 2002-03-10 12:22:24 UTC
I get this problem running build 641c under Windows 98.

It does not occur if I 
assign a shortcut key to an internal command, but it does occur if I assign a key to a 
macro.  Once I do that, then close down and re-open the program, I get an unrecoverable 
error every time I try to use the assigned key, or to run Tools/Configure, or to run 
Tools/Macro/Assign.

The way to clear the problem is to delete the file 
writerkeybinding.xml which is held in user\config\soffice.cfg.  Obviously this 
means you lose all your key assignments.

The same problem occurs with Scalc.  In 
this case the file to delete is calckeybinding.xml, held at the same location.
In 
Scalc I have also tried saving a configuration.  The program crashes when you try to 
load the saved configuration.
My McAfee Crash Guardian reported the following 
error:

C:\PROGRAM FILES\OPENOFFICE.ORG641\PROGRAM\SOFFICE.EXE caused 
an
"Access Violation" fault in module SFX641MI.DLL 
at 0177:1D590594.

But 
this may have been when the program was trying to reload, rather than when the original 
crash occurred.

If someone can tell me where to send it (I'm new to this)I can 
provide copies of writerkeybinding.xml and calckeybinding.xml.
Comment 7 Joost Andrae 2002-03-12 16:13:05 UTC
Joost->Colin: please add your files as attachment
Joost->Stefan: as discussed...reassigned to you
Comment 8 Unknown 2002-03-16 11:18:46 UTC
Created attachment 1219 [details]
Keyboard assignments for sCalc which cause crash
Comment 9 Unknown 2002-03-16 11:20:15 UTC
Created attachment 1220 [details]
Keyboard assignments for sText which cause crash
Comment 10 Unknown 2002-03-16 11:22:59 UTC
Ok, I've attached the relevant files - see above.
To generate these I created a 
trivial macro called CMW_TestMinimal in soffice/standard/Module1 and assigned it 
to key F4 in sCalc and sWriter.
Comment 11 Unknown 2002-04-04 07:36:32 UTC
I have now tried this on 641D (Windows98) and the problem does NOT occur in either sCalc 
or sText.
Comment 12 Unknown 2002-04-04 17:29:16 UTC
Yes, this issue appears resolved in 641D, so I am closing out the bug.
Comment 13 thorsten.ziehm 2003-05-20 16:15:48 UTC
This task is fixed or worked in OOo 1.1 beta2.
Comment 14 thorsten.ziehm 2003-05-20 16:32:29 UTC
closed ...