Issue 39203 - Crash when two Java Wizards are opened
Summary: Crash when two Java Wizards are opened
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P2 Trivial
Target Milestone: ---
Assignee: Joost Andrae
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-17 10:42 UTC by Uwe Fischer
Modified: 2013-02-24 21:07 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Uwe Fischer 2004-12-17 10:42:35 UTC
Open the Table Wizard from a Base document.
Go to another doc, choose File - Wizards - Web Page.
Office freezes, must be closed by taskmanager. Later on, recovery is not
possible, and crash reporter crashes.
Comment 1 Joost Andrae 2004-12-17 11:13:31 UTC
JA: I was able to reproduce a hangup if you start the table wizard from within
the database component and then opening the web wizard (on Linux). Changing platform
Comment 2 berend.cornelius 2004-12-17 15:09:32 UTC
BC->SB: As we discussed the bug should be a bit deeper...
Comment 3 Stephan Bergmann 2004-12-20 14:59:54 UTC
How to reproduce:
- Start soffice -swriter with empty writer document
- "File - New - Database...", "Finish", "Save"
- In the new database document, select "Tables" and then "Use Wizard to Create
Table..."
- "Table Wizard" dialog appears, leave it alone
- In the empty writer document, choose "File - Wizards - Web Page..."
- soffice hangs

The main thread has the m_aMutex of a dbaui::OApplicationController instance
locked, executes the "Table Wizard" dialog, yields, and wants to acquire the
Solar Mutex.

The "Web Page" wizard runs in a new thread, which has the Solar Mutex.  It wants
to create a new writer document, which leads to the (partial) stack
#13 osl_acquireMutex
#14 dbaui::OApplicationController::getModel
#15 libfwk680li.so
#16 framework::FrameListAnalyzer::impl_analyze
#17 framework::FrameListAnalyzer::FrameListAnalyzer
#18 libfwk680li.so
#19 libfwk680li.so
#20 SfxViewFrame::SwitchToViewShell_Impl
#21 SfxTopViewFrame::SfxTopViewFrame
#22 SfxTopFrame::InsertDocument

Thus, the deadlock is obviously caused by OApplicationController holding its
m_aMutex while executing the "Table Wizard," and simultaneously trying to
acquire its m_aMutex in an unrelated getModel call.
Comment 4 Frank Schönheit 2004-12-21 09:01:15 UTC
grabbing for myself
Comment 5 Frank Schönheit 2004-12-21 10:39:06 UTC
fixed in CWS dba22
Comment 6 Frank Schönheit 2005-01-10 12:30:29 UTC
re-opening for verification by QA
Comment 7 Frank Schönheit 2005-01-10 12:31:18 UTC
fs->ja: please verify in CWS dba22
Comment 8 Frank Schönheit 2005-01-10 12:31:27 UTC
fixed in CWS dba22
Comment 9 Joost Andrae 2005-01-10 13:18:49 UTC
JA: soffice crashes when web wizard is called

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x40A27CF3
Function=_ZN8SvStream4SeekEm+0xBD
Library=/localhome/myhome/staroffice8-beta/cws_dba22/program/libtl680li.so

Current Java thread:
        at com.sun.star.bridges.jni_uno.JNI_proxy.dispatch_call(Native Method)
        at com.sun.star.bridges.jni_uno.JNI_proxy.invoke(JNI_proxy.java:204)
        at $Proxy56.execute(Unknown Source)
        at com.sun.star.wizards.ui.UnoDialog.executeDialog(UnoDialog.java:585)
        at com.sun.star.wizards.ui.UnoDialog.executeDialog(UnoDialog.java:611)
        at com.sun.star.wizards.ui.UnoDialog.executeDialog(UnoDialog.java:626)
        at
com.sun.star.wizards.table.TableWizard.startTableWizard(TableWizard.java:251)
        at
com.sun.star.wizards.table.CallTableWizard$TableWizardImplementation.trigger(CallTableWizard.java:126)

Comment 10 Joost Andrae 2005-01-10 13:19:22 UTC
JA: reassign issue to fs
Comment 11 Frank Schönheit 2005-01-10 14:29:48 UTC
fs->ja: Please verify the issue in a windows version, there it works fine. With
the Linux version, there are several issues:
- the english web wizard doesn't start at all. This happens in both SRC680m70  and
  CWS dba22, and is issue 40282
- in the german version, the web wizard starts, but crashs (see below)
- When you copy a proper german resource file (dbw680de.res) into an english
  installation (dbw680en-US.res), then
  - the web wizard does not start when invoked from the backing window
  - the web wizard starts when invoked from another open document, but then crashes.
    This crash is the same as the one you're experiencing here, and the same as in
    the second item above
  This is true for both CWS dba22 and m70, so this is no CWS regression
I don't know wether there are already issues for the latter problems. However,
BC mentioned that there currently are a lot of issues for the web wizard in the
master build ...
Comment 12 Frank Schönheit 2005-01-10 14:30:06 UTC
fixed in CWS dba22
Comment 13 Joost Andrae 2005-01-27 10:34:41 UTC
JA: tested in cws dba23 using the wntmsci10 nonpro build this issue doesn't seem
to be fixed. I get a hangup if I start the web wizard if the database table
wizard is started at the same time.
Comment 14 Joost Andrae 2005-01-27 10:35:57 UTC
JA: reassigned to fs
Comment 15 Frank Schönheit 2005-01-31 08:21:51 UTC
pushing out to CWS dba24. The real fix was in dba22, but could not be verified
there, because the web wizard was broken in the master.
Comment 16 Frank Schönheit 2005-02-28 14:39:46 UTC
fs->ja: please verify in CWS dba24

re-open issue and try to reassign to ja
Comment 17 Frank Schönheit 2005-02-28 14:39:53 UTC
try to reassign to ja
Comment 18 Frank Schönheit 2005-02-28 14:39:58 UTC
try to reset resolution to FIXED
Comment 19 Joost Andrae 2005-03-02 10:31:57 UTC
JA: verified in cws dba24
Comment 20 Uwe Fischer 2005-03-31 12:13:57 UTC
verified in m89 Windows: no crash when those two wizards are open