Apache OpenOffice (AOO) Bugzilla – Issue 77843
OOo crashes upon clicking Finish in database wizard with Native File Picker
Last modified: 2007-07-13 17:34:59 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 ()
keyword
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?
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.
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
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
Issue reassigned to macport
This issue is IMHO very similar to issue #i77783#
Florian, Can you please have a look ?
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.
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();
I will investigate it.
Proposed solution solves the problem
Fix verified in aquafilepicker01. Thanks!
Works ok in SRC680_m211. Closing.