Issue 77843 - OOo crashes upon clicking Finish in database wizard with Native File Picker
Summary: OOo crashes upon clicking Finish in database wizard with Native File Picker
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: MacOSX (show other issues)
Version: 680m211
Hardware: Mac Mac OS X, all
: P2 Trivial (vote)
Target Milestone: OOo 2.3
Assignee: florian
QA Contact: issues@porting
URL:
Keywords: aqua
Depends on:
Blocks:
 
Reported: 2007-05-27 01:44 UTC by glowingapple
Modified: 2007-07-13 17:34 UTC (History)
6 users (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 glowingapple 2007-05-27 01:44:23 UTC
When creating a new database, or connecting to an existing database, clicking
Finish at the end of the wizard causes OOo to crash. The database document
window never appears.

Issue is reproducible in every case I've tried (changing radio options, starting
with a writer doc open or closed, etc).

== gdb output below ==
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000008
0x22f0ba15 in component_getFactory ()
(gdb) bt   
#0  0x22f0ba15 in component_getFactory ()
#1  0x22f06d90 in component_getFactory ()
#2  0x22f06f47 in component_getFactory ()
#3  0x22f08b92 in component_getFactory ()
#4  0x14cea962 in sfx2::FileDialogHelper::GetFilePicker ()
#5  0x14ceb262 in sfx2::FileDialogHelper::SetFileName ()
#6  0x226b69bb in component_getFactory ()
#7  0x226b84a3 in component_getFactory ()
#8  0x226b9aee in component_getFactory ()
#9  0x01202f9c in svt::OWizardMachine::SetInCallOfLink ()
#10 0x005957a1 in Control::ImplCallEventListenersAndHandler ()
#11 0x00588699 in Button::Click ()
#12 0x0058576c in Window::EndTracking ()
#13 0x005801ef in Window::GetPrimarySelection ()
#14 0x0058211c in Window::GetPrimarySelection ()
#15 0x005f0c8d in component_getFactory ()
#16 0x92de6537 in DispatchEventToHandlers ()
#17 0x92de5bdc in SendEventToEventTargetInternal ()
#18 0x92decfbc in SendEventToEventTarget ()
#19 0x92ded44f in ToolboxEventDispatcherHandler ()
#20 0x92de68ee in DispatchEventToHandlers ()
#21 0x92de5bdc in SendEventToEventTargetInternal ()
#22 0x92decfbc in SendEventToEventTarget ()
#23 0x005fd683 in component_getFactory ()
#24 0x003d3bbb in Application::Yield ()
#25 0x00512885 in Dialog::Execute ()
#26 0x01279393 in svt::OGenericUnoDialog::execute ()
#27 0x1a411070 in dyld_stub___cxa_rethrow ()
#28 0x1a412ee6 in dyld_stub___cxa_rethrow ()
#29 0x153344ee in component_writeInfo ()
#30 0x153352be in component_writeInfo ()
#31 0x151fbbb2 in dyld_stub__ZN6StringC1ERKS_ ()
#32 0x151fb432 in dyld_stub__ZN6StringC1ERKS_ ()
#33 0x153e4a79 in component_writeInfo ()
#34 0x00582579 in Window::GetPrimarySelection ()
#35 0x005f0502 in component_getFactory ()
#36 0x92de6537 in DispatchEventToHandlers ()
#37 0x92de5bdc in SendEventToEventTargetInternal ()
#38 0x92de5aa1 in SendEventToEventTargetWithOptions ()
#39 0x92ded123 in ToolboxEventDispatcherHandler ()
#40 0x92de68ee in DispatchEventToHandlers ()
#41 0x92de5bdc in SendEventToEventTargetInternal ()
#42 0x92decfbc in SendEventToEventTarget ()
#43 0x005fd683 in component_getFactory ()
#44 0x003d3bbb in Application::Yield ()
#45 0x003d3c52 in Application::Execute ()
#46 0x000151d4 in desktop::Desktop::Main ()
#47 0x003d935f in InitVCL ()
#48 0x003d943e in SVMain ()
#49 0x92e1fa8a in TimerVector ()
#50 0x9082c7e2 in CFRunLoopRunSpecific ()
#51 0x9082bace in CFRunLoopRunInMode ()
#52 0x92de78d8 in RunCurrentEventLoopInMode ()
#53 0x92de6fe2 in ReceiveNextEventCommon ()
#54 0x92e2fa74 in _AcquireNextEvent ()
#55 0x92e2f8bc in RunApplicationEventLoop ()
#56 0x003d950a in SVMain ()
#57 0x003d93eb in SVMain ()
#58 0x0000253f in main ()
Comment 1 glowingapple 2007-05-27 01:44:59 UTC
keyword
Comment 2 sparcmoz 2007-05-27 02:45:24 UTC
I can not reproduce this with internal database or spreadsheet. 
Please provide more information, what type of database and connection, and
perhaps a screenshot of the dialog selections before you hit Finish?
Comment 3 glowingapple 2007-05-27 03:38:02 UTC
After the wizard finishes, the file picker should appear next.  I was using the
native file picker.  With the default OOo file picker, no crash occurs, the file
picker opens, and after selecting a file to save the database, the database
document window opens fine.
Comment 4 jjmckenzie 2007-05-27 04:33:31 UTC
Confirmed that creation of a new database does not crash with the X11 style file
picker on Pavel's 5/24/2007 Aqua build. Confirming issue.
James
Comment 5 jjmckenzie 2007-05-27 04:49:44 UTC
Attempted to create a new database with Native File Picker and program
terminated when the select database name dialog box was supposed to appear. 
Working with an existing database did not cause this problem.
James McKenzie
Comment 6 eric.bachard 2007-05-27 10:13:30 UTC
Issue reassigned to macport
Comment 7 eric.bachard 2007-05-27 10:17:01 UTC
This issue is IMHO very similar to issue #i77783#
Comment 8 eric.bachard 2007-06-07 11:51:21 UTC
Florian,

Can you please have a look ?
Comment 9 pavel 2007-06-20 13:40:35 UTC
The crash is with native filepicker only!

Please always report, what build are you using...

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000008
0x23711635 in rtl::OUString::getLength (this=0x8) at ustring.hxx:259
259         sal_Int32 getLength() const SAL_THROW(()) { return pData->length; }
(gdb) where
#0  0x23711635 in rtl::OUString::getLength (this=0x8) at ustring.hxx:259
#1  0x2370a901 in FilterHelper::getCurrentFilterSuffixList (this=0x0) at /Users/pavel/BUILD/AQUA/
BuildDir/ooo_SRC680_m214_src/fpicker/source/aqua/FilterHelper.cxx:532
#2  0x23707ce9 in SalAquaFilePicker::updateSaveFileNameExtension (this=0x14ba722c, 
appendExtension=false) at /Users/pavel/BUILD/AQUA/BuildDir/ooo_SRC680_m214_src/fpicker/
source/aqua/SalAquaFilePicker.cxx:1216
#3  0x23707ebe in SalAquaFilePicker::setDefaultName (this=0x14ba722c, aName=@0x231dc748, 
appendExtension=false) at /Users/pavel/BUILD/AQUA/BuildDir/ooo_SRC680_m214_src/fpicker/
source/aqua/SalAquaFilePicker.cxx:1199
#4  0x23707fbc in SalAquaFilePicker::setDefaultName (this=0x14ba722c, aName=@0x231dc748) at /
Users/pavel/BUILD/AQUA/BuildDir/ooo_SRC680_m214_src/fpicker/source/aqua/SalAquaFilePicker.cxx:
317
#5  0x17d75556 in sfx2::FileDialogHelper::GetFilePicker ()
#6  0x17d75e56 in sfx2::FileDialogHelper::SetFileName ()

It works without aquafilepicker01.

Comment 10 pavel 2007-06-20 14:21:27 UTC
ensureFilterHelper call missing in updateSaveFileNameExtension?

Sample code:

void SalAquaFilePicker::updateSaveFileNameExtension(bool appendExtension) {
    DBG_PRINT_ENTRY(CLASS_NAME, __func__, "appendExtension", appendExtension);

    ensureFilterHelper();
    OUStringList aStringList = m_pFilterHelper->getCurrentFilterSuffixList();
Comment 11 florian 2007-06-21 13:36:34 UTC
I will investigate it.
Comment 12 florian 2007-07-09 20:08:41 UTC
Proposed solution solves the problem
Comment 13 pavel 2007-07-10 19:04:47 UTC
Fix verified in aquafilepicker01.

Thanks!
Comment 14 pavel 2007-07-13 17:34:59 UTC
Works ok in SRC680_m211.

Closing.