Issue 114315 - Writer Find, Find and Replace Crash
Summary: Writer Find, Find and Replace Crash
Status: CLOSED DUPLICATE of issue 113470
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOo 3.2.1
Hardware: Mac Mac OS X 10
: P3 Trivial (vote)
Target Milestone: 3.4.0
Assignee: writerneedsconfirm
QA Contact: issues@sw
URL:
Keywords: needmoreinfo, oooqa
Depends on:
Blocks:
 
Reported: 2010-09-05 03:47 UTC by michaelt74
Modified: 2010-09-06 15:42 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 michaelt74 2010-09-05 03:47:01 UTC
Writer 3.2.1 on Mac Snow Leopard crashes every time I use the 'Find' or 'Find
and Replace' feature. In Calc I have not encountered this problem.
Comment 1 eric.savary 2010-09-05 09:20:19 UTC
Please describe step what you are doing.
Comment 2 eric.savary 2010-09-05 09:20:51 UTC
..."step by step"
Comment 3 kennethlorber 2010-09-06 01:40:02 UTC
I believe I'm seeing the same issue: most (but not all) times find is invoked, I eventually reach a state 
requiring a "Force Quit" of OpenOffice.

Details: the document was created on a PC with Word (versions unknown) and is roughly 26 pages of text. 
Mac OS X 10.6.4.  After first occurrence with OOo 3.2.0 installed OOo 3.2.1 - problem is repeatable.  Start 
find (either with cmd-F or the binoculars icon), enter text to find, click on find one or more times.  
Eventually the find button is not highlighted and no instance of the searched for text is highlighted.  OO is 
not eating CPU and both the window close buttons and menus appear active (draw and hide) but the close 
buttons do not close either the find or document windows and the quit menu item does not quit OO.  
"Force quit" and restart of OOo causes the document recovery dialog to appear.
Comment 4 michael.ruess 2010-09-06 11:14:46 UTC
I cannot reproduce the problem. I opened a 45-page document, went to "Find &
replace", searched for the one and other string, but got no crash or hang of
Writer. Tried with OOo 3.2.1 and OOO330m6 on OS X 10.6.4.

Maybe it could be helpful if you attach the document where you get the crash.
And tell us what you were searching for.
Comment 5 michael.ruess 2010-09-06 11:22:43 UTC
Maybe it is the same as issue 114342?
Comment 6 kennethlorber 2010-09-06 15:13:54 UTC
I found a way to reproduce the problem without the document:  Start OOo, new text document - move the 
text window towards the right side of the screen.  Insert foo into the document.  Hit the binoculars icon.  
Put foo in the search field.  Now - move the search window off the left side of the screen until only the find 
button is left showing.  Press find.  OOo is now wedged.
Comment 7 kennethlorber 2010-09-06 15:24:01 UTC
And here is the output from "Sample Process" in "Activity Monitor" about 10 seconds after pressing find:

Sampling process 58777 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling soffice (pid 58777) every 1 millisecond
Call graph:
    2560 Thread_3021268   DispatchQueue_1: com.apple.main-thread  (serial)
      2560 start
        2560 start
          2560 main
            2560 soffice_main
              2560 SVMain()
                2560 component_writeInfo
                  2560 NSApplicationMain
                    2560 -[NSApplication run]
                      2560 SalGetDesktopEnvironment()
                        2560 component_writeInfo
                          2560 DeInitVCL()
                            2560 0x1df965
                              2560 Application::Execute()
                                2560 Application::Yield(bool)
                                  2560 component_writeInfo
                                    2560 SalGetDesktopEnvironment()
                                      2560 -[NSApplication sendEvent:]
                                        2560 -[NSWindow sendEvent:]
                                          2560 component_writeInfo
                                            2560 component_writeInfo
                                              2560 Window::~Window()
                                                2560 Window::~Window()
                                                  2560 Window::EndTracking(unsigned short)
                                                    2560 Button::Click()
                                                      2560 Control::ImplCallEventListenersAndHandler(unsigned long, Link 
const&, void*)
                                                        2560 SvxSearchDialogWrapper::RegisterChildWindow(unsigned char, 
SfxModule*, unsigned short)
                                                          2560 SfxBindings::ExecuteSynchron(unsigned short, SfxPoolItem 
const**, unsigned short, SfxPoolItem const**)
                                                            2560 SfxBindings::GetSlot(unsigned short)
                                                              2560 SfxBindings::Release(SfxControllerItem&)
                                                                2560 SfxDispatcher::_Execute(SfxShell&, SfxSlot const&, 
SfxRequest&, unsigned short)
                                                                  2560 SfxDispatcher::HideUI(unsigned char)
                                                                    2560 SfxShell::CallExec(void (*)(SfxShell*, SfxRequest&), 
SfxRequest&)
                                                                      2560 SwWebView::SelectShell()
                                                                        2560 SwView::ExecSearch(SfxRequest&, unsigned char)
                                                                          2560 SwView::StateSearch(SfxItemSet&)
                                                                            2560 Dialog::Execute()
                                                                              2560 Application::Yield(bool)
                                                                                2560 component_writeInfo
                                                                                  2560 -[NSApplication 
nextEventMatchingMask:untilDate:inMode:dequeue:]
                                                                                    2560 _DPSNextEvent
                                                                                      2560 BlockUntilNextEventMatchingListInMode
                                                                                        2560 ReceiveNextEventCommon
                                                                                          2560 RunCurrentEventLoopInMode
                                                                                            2560 CFRunLoopRunInMode
                                                                                              2560 CFRunLoopRunSpecific
                                                                                                2560 __CFRunLoopRun
                                                                                                  2547 mach_msg
                                                                                                    2547 mach_msg_trap
                                                                                                  11 __NSFireTimer
                                                                                                    9 SalGetDesktopEnvironment()
                                                                                                      9 Timer::ImplTimerCallbackProc()
                                                                                                        9 Timer::Timeout()
                                                                                                          9 SwDoc::DoIdleJobs(Timer*)
                                                                                                            9 SwDoc::GetGCIterator() const
                                                                                                              9 SwDoc::GetGCIterator() const
                                                                                                                7 SvtLinguConfig::HasGrammarChecker() 
const
                                                                                                                  7 
SvtLinguConfig::GetMainUpdateAccess() const
                                                                                                                    7 component_getFactory
                                                                                                                      7 component_getFactory
                                                                                                                        5 
cppu::createFactoryProxy(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> 
const&, com::sun::star::uno::Reference<com::sun::star::lang::XSingleServiceFactory> const&)
                                                                                                                          5 
cppu::createFactoryProxy(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> 
const&, com::sun::star::uno::Reference<com::sun::star::lang::XSingleServiceFactory> const&)
                                                                                                                            5 
cppu::createOneInstanceFactory(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFacto
ry> const&, rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::uno::XInterface> 
(*)(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&), 
com::sun::star::uno::Sequence<rtl::OUString> const&, _rtl_ModuleCount*)
                                                                                                                              5 0x16aec307
                                                                                                                                5 0x16aec19b
                                                                                                                                  5 0x16aeb576
                                                                                                                                    5 0x16aeb411
                                                                                                                                      5 component_getFactory
                                                                                                                                        5 component_getFactory
                                                                                                                                          4 component_getFactory
                                                                                                                                            4 uno_setCurrentContext
                                                                                                                                              4 uno_getEnvironment
                                                                                                                                                4 
uno_getRegisteredEnvironments
                                                                                                                                                  4 
uno_getMappingByName
                                                                                                                                                    4 
uno_getMappingByName
                                                                                                                                                      3 
uno_getEnvironment
                                                                                                                                                        3 
osl_loadModuleRelative
                                                                                                                                                          3 
osl_getModuleURLFromFunctionAddress
                                                                                                                                                            3 
osl_getModuleURLFromAddress
                                                                                                                                                              2 
osl_getProcessWorkingDir
                                                                                                                                                                2 getcwd
                                                                                                                                                                  2 
__private_getcwd
                                                                                                                                                                    2 __getcwd
                                                                                                                                                                      2 
open$NOCANCEL$UNIX2003
                                                                                                                                                              1 
osl_getAbsoluteFileURL
                                                                                                                                                                1 
osl_searchFileURL
                                                                                                                                                                  1 
osl_searchFileURL
                                                                                                                                                                    1 realpath
                                                                                                                                                                      1 getattrlist
                                                                                                                                                                        1 
getattrlist$UNIX2003
                                                                                                                                                      1 0x4ab231
                                                                                                                                                        1 0x4a9507
                                                                                                                                                          1 0x4a94d6
                                                                                                                                          1 uno_setCurrentContext
                                                                                                                                            1 uno_getEnvironment
                                                                                                                                              1 
uno_getRegisteredEnvironments
                                                                                                                                                1 
uno_getMappingByName
                                                                                                                                                  1 
uno_getMappingByName
                                                                                                                                                    1 0x4ab10f
                                                                                                                        2 component_getFactory
                                                                                                                          2 component_getFactory
                                                                                                                            1 component_getFactory
                                                                                                                              1 component_getFactory
                                                                                                                                1 component_getFactory
                                                                                                                                  1 component_getFactory
                                                                                                                                    1 component_getFactory
                                                                                                                                      1 component_getFactory
                                                                                                                                        1 component_getFactory
                                                                                                                                          1 component_getFactory
                                                                                                                                            1 component_getFactory
                                                                                                                                              1 component_getFactory
                                                                                                                                                1 
component_getFactory
                                                                                                                                                  1 
component_getFactory
                                                                                                                                                    1 
component_getFactory
                                                                                                                                                      1 
component_getFactory
                                                                                                                                                        1 operator 
new(unsigned long)
                                                                                                                                                          1 malloc
                                                                                                                                                            1 
malloc_zone_malloc
                                                                                                                                                              1 
szone_malloc_should_clear
                                                                                                                                                                1 
tiny_malloc_from_free_list
                                                                                                                            1 operator new(unsigned long)
                                                                                                                              1 malloc
                                                                                                                                1 malloc_zone_malloc
                                                                                                                                  1 szone_malloc_should_clear
                                                                                                                                    1 tiny_malloc_from_free_list
                                                                                                                2 SvtLinguConfig::~SvtLinguConfig()
                                                                                                                  2 component_getFactory
                                                                                                                    1 0x16c02766
                                                                                                                      1 0x16bf97f7
                                                                                                                        1 component_getFactory
                                                                                                                          1 0x16bff95c
                                                                                                                            1 osl_releaseMutex
                                                                                                                              1 __spin_lock
                                                                                                                    1 component_getFactory
                                                                                                                      1 component_getFactory
                                                                                                                        1 component_getFactory
                                                                                                                          1 component_getFactory
                                                                                                    2 _CFAutoreleasePoolPush
                                                                                                      2 pthread_setspecific
                                                                                                  1 __CFRunLoopDoObservers
                                                                                                    1 FlushAllBuffers(__CFRunLoopObserver*, 
unsigned long, void*)
                                                                                                  1 std::vector<std::pair<unsigned short, unsigned 
short>, std::allocator<std::pair<unsigned short, unsigned short> > >::reserve(unsigned long)
    2560 Thread_3021276
      2560 thread_start
        2560 _pthread_start
          2560 rtl_cache_create
            2560 pthread_cond_timedwait
              2560 _pthread_cond_wait
                2560 semaphore_timedwait_signal_trap
    2560 Thread_3021277   DispatchQueue_2: com.apple.libdispatch-manager  (serial)
      2560 start_wqthread
        2560 _pthread_wqthread
          2560 _dispatch_worker_thread2
            2560 _dispatch_queue_invoke
              2560 _dispatch_mgr_invoke
                2560 kevent
    2560 Thread_3021281
      2560 thread_start
        2560 _pthread_start
          2560 osl_yieldThread
            2560 vos::threadWorkerFunction_impl(void*)
              2560 vos::OTimerManager::run()
                2560 osl_waitCondition
                  2560 pthread_cond_timedwait
                    2560 _pthread_cond_wait
                      2560 semaphore_timedwait_signal_trap
    2560 Thread_3021282
      2560 thread_start
        2560 _pthread_start
          2560 osl_yieldThread
            2560 vos::threadWorkerFunction_impl(void*)
              2560 0x20573f
                2560 vos::OPipe::accept(vos::OStreamPipe&)
                  2560 osl_acceptPipe
                    2560 accept
                      2560 accept$NOCANCEL$UNIX2003
    2560 Thread_3021492
      2560 thread_start
        2560 _pthread_start
          2560 osl_yieldThread
            2560 0x16f683da
              2560 0x16f47128
                2560 osl_waitCondition
                  2560 pthread_cond_timedwait
                    2560 _pthread_cond_wait
                      2560 semaphore_timedwait_signal_trap

Total number in stack (recursive counted multiple, when >=5):
        27       component_getFactory
        6       component_writeInfo

Sort by top of stack, same collapsed (when >= 5):
        semaphore_timedwait_signal_trap        7680
        accept$NOCANCEL$UNIX2003        2560
        kevent        2560
        mach_msg_trap        2547
Sample analysis of process 58777 written to file /dev/stdout
Comment 8 michael.ruess 2010-09-06 15:41:33 UTC
It is not a crash... problem is, that the dialog box "OOo Writer has searched...
Do you want to continue at the beginning?" will be displayed outside the screen
in this case. pressing ESC will workaround this.
This problem has been fixed by issue 113470 for OOo 3.4 branch in DEV300m87 build.

*** This issue has been marked as a duplicate of 113470 ***
Comment 9 michael.ruess 2010-09-06 15:42:00 UTC
closed, will be fixed in OOo 3.4.