Issue 126180

Summary: Closing Math without saving the document crashes AOO
Product: Math Reporter: jmpoo <jmpoo-bugz>
Component: uiAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact: josephat.mokamba
Severity: Normal    
Priority: P5 (lowest) CC: josephat.mokamba, mseidel, pedlino, petko
Version: 4.1.2Keywords: needmoreinfo, regression
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Latest Confirmation in: 4.1.2
Developer Difficulty: ---

Description jmpoo 2015-03-16 08:49:29 UTC
AOO 4.2.0 r1658822 en and de localisation, Win7 64bit

Works last in AOO 4.0.1

Open a new Math doc
insert some stuff e.g. a+b
close the document or close Math using the corresponding x/X Symbol in upper right corner
AOO crashes

No crash if you close the document using "File > Exit" or save it before.

Crash if you close a new and empty Math doc.

Same behavior if you open the formula editor in Writer (Insert > Object > Formula) and close Writer without saving.
Comment 1 josephat.mokamba 2015-11-09 02:15:56 UTC
@jmpoo: The defect(s) are not reproducible because you have not provided clear and sufficient steps. When you provide steps required to consistently reproduce the defect, be clear about what you mean by 'crashes' because this is a vague term. For instance, does 'crashes' refer to all open instances of AOO closing whenever you close the Math product?

Also identify what AOO product you are referring to as 'document' in your defect report.
Comment 2 jmpoo 2015-11-28 11:01:55 UTC
After a new installation of Win7 and fresh installed AOO 4.1.2 the problem is gone.

So it seems to be a Windows problem ...

This issue can be closed.
Comment 3 orcmid 2015-11-28 17:53:12 UTC
(In reply to jmpoo from comment #0)
> Open a new Math doc
> insert some stuff e.g. a+b
> close the document or close Math using the corresponding x/X Symbol in upper
> right corner
> AOO crashes

If I use this example and close the document (small x at the end of the menu strip) or close the application (large x at the far right of the title bar),
I see the usual Save / Discard / Cancel message indicating that the document has been modified and do I want to save my changes.

Are you saying that message did not appear in either case?  Was the application stuck (did not close) or did it do something else?

The nothing-happening stuck case is one I have seen with my Logitech Zone Touch Mouse that is usually cured by restarting my Windows 10 system.
Comment 4 jmpoo 2015-12-01 09:55:30 UTC
(In reply to orcmid from comment #3)

> Are you saying that message did not appear in either case?  
Yes

> Was the application stuck (did not close) or did it do something else?
AOO was closed and the Document Recovery Dialog appears.
"Due to an unexpected error, AOO crashed. All the files ...)"

Mouse problems can be exluded (see comment at https://bz.apache.org/ooo/show_bug.cgi?id=125374#c13)
Comment 5 Pedro 2017-09-20 12:48:11 UTC
Confirmed with all AOO version newer than 4.0.1 including 4.1.4 RC3

Tested under Windows 7 x64

This is a regression.
Comment 6 Matthias Seidel 2017-09-20 14:25:54 UTC
I can not reproduce a crash following the given steps in comment #0 with AOO 4.1.4 pre-RC3 on Windows 10 64bit and on Windows 7 32bit.

Can someone give a step by step instruction?

(Pedro: There is no RC3 yet, did you test with pre-RC3?)
Comment 7 Pedro 2017-09-20 17:04:46 UTC
(In reply to Matthias Seidel from comment #6)
> I can not reproduce a crash following the given steps in comment #0 with AOO
> 4.1.4 pre-RC3 on Windows 10 64bit and on Windows 7 32bit.
> 
> Can someone give a step by step instruction?
> 
> (Pedro: There is no RC3 yet, did you test with pre-RC3?)

Any of the 3 procedures causes consistent crash on AOO from 4.1.2 to 4.1.4 (yes, I'm using your pre-RC3 builds)

Unfortunately Win7 x64 seems to behave differently from Win10 in many aspects (I haven't tested Win7 x86)
Comment 8 Matthias Seidel 2017-09-20 17:09:50 UTC
Well, not for me...

The original poster did not have the problem anymore after reinstalling Windows 7 (see comment #2)
Comment 9 Pedro 2017-09-21 16:37:54 UTC
(In reply to Matthias Seidel from comment #8)
> Well, not for me...
> 
> The original poster did not have the problem anymore after reinstalling
> Windows 7 (see comment #2)

Tested on another Win 7 x64 machine and I can not replicate the bug either. Also tested on Win XP x86 SP3 and Win 10 x64 and no problems.

Reinstalling Windows 7 is not an option. 

It would be nice to have a debug switch to check what causes the crash...
Comment 10 Matthias Seidel 2017-09-21 16:49:30 UTC
(In reply to Pedro from comment #9)
> (In reply to Matthias Seidel from comment #8)
> > Well, not for me...
> > 
> > The original poster did not have the problem anymore after reinstalling
> > Windows 7 (see comment #2)
> 
> Tested on another Win 7 x64 machine and I can not replicate the bug either.
> Also tested on Win XP x86 SP3 and Win 10 x64 and no problems.
> 
> Reinstalling Windows 7 is not an option. 
> 
> It would be nice to have a debug switch to check what causes the crash...

Did you already try a fresh (AOO) profile?
Comment 11 Pedro 2017-09-22 09:13:29 UTC
(In reply to Matthias Seidel from comment #10)

> Did you already try a fresh (AOO) profile?

Yes, and uninstalled/reinstalled 4.1.4
Also tested with your AOO420m1(Build:9800)  -  Rev. 1808637
The same crash happens with the 3 procedures described by the OP.

It is something related to Windows 7 x64 and only on some machines but still it is a regression in AOO because the crash does not occur in 4.0.1
Comment 12 Peter 2017-09-22 12:11:58 UTC
Maybe some libraries Are different?
Maybe the equivalent to ldd command could bring some clarity what is going on?
Comment 13 Matthias Seidel 2017-09-22 13:11:09 UTC
(In reply to Pedro from comment #11)
> (In reply to Matthias Seidel from comment #10)
> 
> > Did you already try a fresh (AOO) profile?
> 
> Yes, and uninstalled/reinstalled 4.1.4
> Also tested with your AOO420m1(Build:9800)  -  Rev. 1808637
> The same crash happens with the 3 procedures described by the OP.
> 
> It is something related to Windows 7 x64 and only on some machines but still
> it is a regression in AOO because the crash does not occur in 4.0.1

Maybe there are errors visible in the Windows event logs?
(start "eventvwr" from cmd)
Comment 14 Matthias Seidel 2018-02-11 18:22:07 UTC
It came down to be a problem with "assistive technology" enabled in the OpenOffice settings.

Pedro wrote to me:
"I have figured out the solution (and the cause). I had a tablet driver
installed (a Wacom Bamboo). Even though the tablet itself was not
connected, all tablet features were enabled.
When AOO (and LO) detects such a driver it doesn't allow the "Support
assistive technology tools (program
restart required)" option to be unchecked.
Removing the driver solved the problem."

The problem remains:
AOO crashes on systems using assistive technology under certain circumstances.