To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=83183
                 Issue #|83183
                 Summary|Writer fails to create salobject for Insert Movie and 
                        |Sound
               Component|porting
                 Version|680m233
                Platform|Macintosh
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|MacOSX
             Assigned to|macport
             Reported by|msicotte





------- Additional comments from [EMAIL PROTECTED] Thu Nov  1 03:58:23 +0000 
2007 -------
In Impress, ViewObjectContactOfSdrMediaObj calls down into the MediaWindowImpl
to create salobject and the window to link to the movie.  In Writer this doesn't
happen, perhaps because ViewObjectContactOfSdrMediaObj fails to get a pointer to
the parent window.

Here is a stack trace from Impress and Writer. #9 of the Impress trace matches
with #0 of the Writer trace.

Impress stack trace:
#0  AquaSalObject::AquaSalObject (this=0x34a732f0, pFrame=0x30c16670) at
OOo/m233/vcl/aqua/source/window/salobj.cxx:71
#1  0x01272479 in AquaSalInstance::CreateObject (this=0x813ab90,
pParent=0x30c16670) at OOo/m233/vcl/aqua/source/app/salinst.cxx:788
#2  0x0118d6d0 in SystemChildWindow::ImplInitSysChild (this=0x798cd60,
pParent=0x798cc00, nStyle=1, pData=0x0) at
OOo/m233/vcl/source/window/syschild.cxx:133
#3  0x0118d7c0 in SystemChildWindow::SystemChildWindow (this=0x798cd60,
pParent=0x798cc00, nStyle=1) at OOo/m233/vcl/source/window/syschild.cxx:151
#4  0x0118de7c in JavaChildWindow::JavaChildWindow (this=0x798cd60,
pParent=0x798cc00, nStyle=1) at OOo/m233/vcl/source/window/javachild.cxx:80
#5  0x22070472 in avmedia::priv::MediaChildWindow::MediaChildWindow
(this=0x798cd60, pParent=0x798cc00) at
OOo/m233/avmedia/source/viewer/mediawindow_impl.cxx:105
#6  0x220714e0 in avmedia::priv::MediaWindowImpl::MediaWindowImpl
(this=0x798cc00, pParent=0x30c85ff0, pMediaWindow=0x34ed80a0,
bInternalMediaControl=false) at
OOo/m233/avmedia/source/viewer/mediawindow_impl.cxx:188
#7  0x22073807 in avmedia::MediaWindow::MediaWindow (this=0x34ed80a0,
parent=0x30c85ff0, bInternalMediaControl=false) at
OOo/m233/avmedia/source/viewer/mediawindow.cxx:69
#8  0x73a06e68 in sdr::contact::SdrMediaWindow::SdrMediaWindow (this=0x34ed80a0,
pParent=0x30c85ff0, [EMAIL PROTECTED]) at
OOo/m233/svx/source/sdr/contact/sdrmediawindow.cxx:56
#9  0x73a0609c in
sdr::contact::ViewObjectContactOfSdrMediaObj::ViewObjectContactOfSdrMediaObj
(this=0x30cfd630, [EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED]) at
OOo/m233/svx/source/sdr/contact/viewobjectcontactofsdrmediaobj.cxx:74
#10 0x73a05a84 in
sdr::contact::ViewContactOfSdrMediaObj::CreateObjectSpecificViewObjectContact
(this=0x34ec1490, [EMAIL PROTECTED]) at
OOo/m233/svx/source/sdr/contact/viewcontactofsdrmediaobj.cxx:74
#11 0x739f9c40 in sdr::contact::ViewContact::GetViewObjectContact
(this=0x34ec1490, [EMAIL PROTECTED]) at
OOo/m233/svx/source/sdr/contact/viewcontact.cxx:161
#12 0x73a056ed in sdr::contact::ViewObjectContactList::BuildDrawHierarchy
(this=0x30c5a500, [EMAIL PROTECTED], [EMAIL PROTECTED],
pParent=0x30c5a4f0) at 
OOo/m233/svx/source/sdr/contact/viewobjectcontactlist.cxx:247
#13 0x73a02c71 in sdr::contact::ViewObjectContact::BuildDrawHierarchy
(this=0x30c5a4f0, [EMAIL PROTECTED], [EMAIL PROTECTED]) at
OOo/m233/svx/source/sdr/contact/viewobjectcontact.cxx:207
#14 0x73a02230 in
sdr::contact::ObjectContactOfPageView::EnsureValidDrawHierarchy
(this=0x289a4670) at 
OOo/m233/svx/source/sdr/contact/objectcontactofpageview.cxx:153
#15 0x73a02477 in sdr::contact::ObjectContactOfPageView::ProcessDisplay
(this=0x289a4670, [EMAIL PROTECTED]) at
OOo/m233/svx/source/sdr/contact/objectcontactofpageview.cxx:190
#16 0x73542adf in SdrPageWindow::RedrawAll (this=0x34a14cf0, nPaintMode=0,
pRedirector=0xbfffd8f8) at OOo/m233/svx/source/svdraw/sdrpagewindow.cxx:511
#17 0x73481b63 in SdrPageView::CompleteRedraw (this=0x30c1cd90,
[EMAIL PROTECTED], [EMAIL PROTECTED], nPaintMode=0,
pRedirector=0xbfffd8f8) at OOo/m233/svx/source/svdraw/svdpagv.cxx:419
#18 0x73490ac8 in SdrPaintView::DoCompleteRedraw (this=0x7ce7600,
[EMAIL PROTECTED], [EMAIL PROTECTED], nPaintMod=0, pRedirector=0xbfffd8f8)
at OOo/m233/svx/source/svdraw/svdpntv.cxx:979
#19 0x73491125 in SdrPaintView::CompleteRedraw (this=0x7ce7600, pOut=0x30c85ff0,
[EMAIL PROTECTED], nPaintMod=0, pRedirector=0xbfffd8f8) at
OOo/m233/svx/source/svdraw/svdpntv.cxx:892
#20 0xc0002df5 in sd::View::CompleteRedraw (this=0x7ce7600, pOutDev=0x30c85ff0,
[EMAIL PROTECTED], nPaintMode=0, pRedirector=0x0) at
OOo/m233/sd/source/ui/view/sdview.cxx:503
#21 0xc00634be in sd::DrawView::CompleteRedraw (this=0x7ce7600,
pOutDev=0x30c85ff0, [EMAIL PROTECTED], nPaintMode=0, pRedirector=0x0) at
OOo/m233/sd/source/ui/view/drawview.cxx:609
#22 0xc00344be in sd::DrawViewShell::Paint (this=0x7e34e00, [EMAIL PROTECTED],
pWin=0x30c85ff0) at OOo/m233/sd/source/ui/view/drviews5.cxx:545
#23 0xc002098d in sd::Window::Paint (this=0x30c85ff0, [EMAIL PROTECTED]) at
OOo/m233/sd/source/ui/view/sdwindow.cxx:321
#24 0x011c1717 in Window::ImplCallPaint (this=0x30c85ff0, pRegion=0x0,
nPaintFlags=8) at OOo/m233/vcl/source/window/window.cxx:2441
#25 0x011c1848 in Window::ImplCallPaint (this=0x30c22c50, pRegion=0x0,
nPaintFlags=8) at OOo/m233/vcl/source/window/window.cxx:2465
#26 0x011c1848 in Window::ImplCallPaint (this=0x34ec4960, pRegion=0x0,
nPaintFlags=8) at OOo/m233/vcl/source/window/window.cxx:2465
#27 0x011c1848 in Window::ImplCallPaint (this=0x34ebb4b0, pRegion=0x0,
nPaintFlags=8) at OOo/m233/vcl/source/window/window.cxx:2465
#28 0x011c1848 in Window::ImplCallPaint (this=0x30c2a520, pRegion=0x0,
nPaintFlags=8) at OOo/m233/vcl/source/window/window.cxx:2465
#29 0x011c1848 in Window::ImplCallPaint (this=0x289f6980, pRegion=0x0,
nPaintFlags=8) at OOo/m233/vcl/source/window/window.cxx:2465
#30 0x011c1848 in Window::ImplCallPaint (this=0x2894a2e0, pRegion=0x0,
nPaintFlags=8) at OOo/m233/vcl/source/window/window.cxx:2465
#31 0x011c1848 in Window::ImplCallPaint (this=0x22aa3ef0, pRegion=0x0,
nPaintFlags=8) at OOo/m233/vcl/source/window/window.cxx:2465
#32 0x011c2e8f in Window::ImplCallOverlapPaint (this=0x22aa3ef0) at
OOo/m233/vcl/source/window/window.cxx:2502
#33 0x011c30c8 in Window::ImplHandlePaintHdl (this=0x22aa3ef0) at
OOo/m233/vcl/source/window/window.cxx:2522
#34 0x011c30e8 in Window::LinkStubImplHandlePaintHdl (pThis=0x22aa3ef0,
pCaller=0x30c14250) at OOo/m233/vcl/source/window/window.cxx:2516
#35 0x0128ab0f in Link::Call (this=0x30c14260, pCaller=0x30c14250) at
OOo/m233/solver/680/unxmacxi.pro/inc/tools/link.hxx:158
#36 0x0101d303 in Timer::Timeout (this=0x30c14250) at
OOo/m233/vcl/source/app/timer.cxx:285
#37 0x0101cd3c in Timer::ImplTimerCallbackProc () at
OOo/m233/vcl/source/app/timer.cxx:173
#38 0x013461f0 in SalTimer::CallCallback (this=0x815d260) at
../../../inc/vcl/saltimer.hxx:80
#39 0x012744b7 in -[TimerCallbackCaller timerElapsed:] (self=0x34edc190,
_cmd=0x12892cc, pTimer=0x34a73380) at 
OOo/m233/vcl/aqua/source/app/saltimer.cxx:66
#40 0x9283b2de in __NSFireTimer ()
#41 0x9082d7e2 in CFRunLoopRunSpecific ()
#42 0x9082cace in CFRunLoopRunInMode ()
#43 0x92de28d8 in RunCurrentEventLoopInMode ()
#44 0x92de1f19 in ReceiveNextEventCommon ()
#45 0x92de1e39 in BlockUntilNextEventMatchingListInMode ()
#46 0x93288465 in _DPSNextEvent ()
#47 0x93288056 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#48 0x01274116 in AquaSalInstance::Yield (this=0x813ab90, bWait=true,
bHandleAllCurrentEvents=false) at OOo/m233/vcl/aqua/source/app/salinst.cxx:689
#49 0x01016617 in Application::Yield (bAllEvents=false) at
OOo/m233/vcl/source/app/svapp.cxx:557
#50 0x0101666e in Application::Execute () at 
OOo/m233/vcl/source/app/svapp.cxx:516
#51 0x000150b7 in desktop::Desktop::Main ()
#52 0x0101c9d4 in ImplSVMain () at OOo/m233/vcl/source/app/svmain.cxx:262
#53 0x01272153 in AquaSalInstance::handleAppDefinedEvent (pEvent=0x813ab50) at
OOo/m233/vcl/aqua/source/app/salinst.cxx:619
#54 0x0127221f in -[VCL_NSApplication sendEvent:] (self=0x81203b0,
_cmd=0x90ac4484, pEvent=0x813ab50) at 
OOo/m233/vcl/aqua/source/app/salinst.cxx:120
#55 0x93281dfe in -[NSApplication run] ()
#56 0x93275d2f in NSApplicationMain ()
#57 0x012712ff in ImplSVMainHook (pbInit=0xbffff39f "") at
OOo/m233/vcl/aqua/source/app/salinst.cxx:265
#58 0x0101cb51 in SVMain () at OOo/m233/vcl/source/app/svmain.cxx:300
#59 0x00002b57 in main ()
#60 0x0000241a in _start ()
#61 0x00002341 in start ()

#9 of the above trace matches with #0 of the Writer trace below:

Writer trace:
#0  sdr::contact::ViewObjectContactOfSdrMediaObj::ViewObjectContactOfSdrMediaObj
(this=0x30cd9c70, [EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED]) at
OOo/m233/svx/source/sdr/contact/viewobjectcontactofsdrmediaobj.cxx:72
#1  0x73a05a84 in
sdr::contact::ViewContactOfSdrMediaObj::CreateObjectSpecificViewObjectContact
(this=0x22aa5580, [EMAIL PROTECTED]) at
OOo/m233/svx/source/sdr/contact/viewcontactofsdrmediaobj.cxx:74
#2  0x739f9c40 in sdr::contact::ViewContact::GetViewObjectContact
(this=0x22aa5580, [EMAIL PROTECTED]) at
OOo/m233/svx/source/sdr/contact/viewcontact.cxx:161
#3  0x73a056ed in sdr::contact::ViewObjectContactList::BuildDrawHierarchy
(this=0x22ac0760, [EMAIL PROTECTED], [EMAIL PROTECTED],
pParent=0x22ac0750) at 
OOo/m233/svx/source/sdr/contact/viewobjectcontactlist.cxx:247
#4  0x73a02c71 in sdr::contact::ViewObjectContact::BuildDrawHierarchy
(this=0x22ac0750, [EMAIL PROTECTED], [EMAIL PROTECTED]) at
OOo/m233/svx/source/sdr/contact/viewobjectcontact.cxx:207
#5  0x73a02d1f in sdr::contact::ViewObjectContact::CheckDrawHierarchy
(this=0x22ac0750, [EMAIL PROTECTED]) at
OOo/m233/svx/source/sdr/contact/viewobjectcontact.cxx:228
#6  0x73a022a6 in
sdr::contact::ObjectContactOfPageView::EnsureValidDrawHierarchy
(this=0x22acc630) at 
OOo/m233/svx/source/sdr/contact/objectcontactofpageview.cxx:175
#7  0x73a02477 in sdr::contact::ObjectContactOfPageView::ProcessDisplay
(this=0x22acc630, [EMAIL PROTECTED]) at
OOo/m233/svx/source/sdr/contact/objectcontactofpageview.cxx:190
#8  0x73542efe in SdrPageWindow::RedrawLayer (this=0x22ac8760, nPaintMode=0,
pId=0xbfffd6fc "\002", pRedirector=0x0) at
OOo/m233/svx/source/svdraw/sdrpagewindow.cxx:592
#9  0x73481ce3 in SdrPageView::DrawLayer (this=0x22ac8670, nID=2 '\002',
pGivenTarget=0x22acc004, nPaintMode=0, pRedirector=0x0) at
OOo/m233/svx/source/svdraw/svdpagv.cxx:473
#10 0x73490e1f in SdrPaintView::ImpFormLayerDrawing (this=0x79c3200,
[EMAIL PROTECTED]) at OOo/m233/svx/source/svdraw/svdpntv.cxx:1153
#11 0x73490e84 in SdrPaintView::EndCompleteRedraw (this=0x79c3200,
[EMAIL PROTECTED]) at OOo/m233/svx/source/svdraw/svdpntv.cxx:1002
#12 0x73490f76 in SdrPaintView::EndDrawLayers (this=0x79c3200,
[EMAIL PROTECTED]) at OOo/m233/svx/source/svdraw/svdpntv.cxx:1110
#13 0x4191595b in ViewShell::DLPostPaint2 (this=0x22a15fc0) at
OOo/m233/sw/source/core/view/viewsh.cxx:242
#14 0x41916b38 in ViewShell::_PaintDesktop (this=0x22a15fc0,
[EMAIL PROTECTED]) at OOo/m233/sw/source/core/view/viewsh.cxx:1727
#15 0x41916f13 in ViewShell::PaintDesktop (this=0x22a15fc0, [EMAIL PROTECTED])
at OOo/m233/sw/source/core/view/viewsh.cxx:1697
#16 0x4191b050 in ViewShell::Paint (this=0x22a15fc0, [EMAIL PROTECTED]) at
OOo/m233/sw/source/core/view/viewsh.cxx:1940
#17 0x418dcdfe in SwCrsrShell::Paint (this=0x22a15fc0, [EMAIL PROTECTED]) at
OOo/m233/sw/source/core/crsr/crsrsh.cxx:1151
#18 0x41faa8b3 in SwEditWin::Paint (this=0x22a104e0, [EMAIL PROTECTED]) at
OOo/m233/sw/source/ui/docvw/edtwin2.cxx:541
#19 0x011c1717 in Window::ImplCallPaint (this=0x22a104e0, pRegion=0x0,
nPaintFlags=8) at OOo/m233/vcl/source/window/window.cxx:2441
#20 0x011c1848 in Window::ImplCallPaint (this=0x22a0e180, pRegion=0x0,
nPaintFlags=8) at OOo/m233/vcl/source/window/window.cxx:2465
#21 0x011c1848 in Window::ImplCallPaint (this=0x22a0e3b0, pRegion=0x0,
nPaintFlags=8) at OOo/m233/vcl/source/window/window.cxx:2465
#22 0x011c1848 in Window::ImplCallPaint (this=0x81dd380, pRegion=0x0,
nPaintFlags=8) at OOo/m233/vcl/source/window/window.cxx:2465
#23 0x011c1848 in Window::ImplCallPaint (this=0x81dd620, pRegion=0x0,
nPaintFlags=8) at OOo/m233/vcl/source/window/window.cxx:2465
#24 0x011c1848 in Window::ImplCallPaint (this=0x81cd130, pRegion=0x0,
nPaintFlags=8) at OOo/m233/vcl/source/window/window.cxx:2465
#25 0x011c1848 in Window::ImplCallPaint (this=0x81cd3a0, pRegion=0x0,
nPaintFlags=8) at OOo/m233/vcl/source/window/window.cxx:2465
#26 0x011c2e8f in Window::ImplCallOverlapPaint (this=0x81cd3a0) at
OOo/m233/vcl/source/window/window.cxx:2502
#27 0x011c30c8 in Window::ImplHandlePaintHdl (this=0x81cd3a0) at
OOo/m233/vcl/source/window/window.cxx:2522
#28 0x011c30e8 in Window::LinkStubImplHandlePaintHdl (pThis=0x81cd3a0,
pCaller=0x81d0aa0) at OOo/m233/vcl/source/window/window.cxx:2516
#29 0x0128ab0f in Link::Call (this=0x81d0ab0, pCaller=0x81d0aa0) at
OOo/m233/solver/680/unxmacxi.pro/inc/tools/link.hxx:158
#30 0x0101d303 in Timer::Timeout (this=0x81d0aa0) at
OOo/m233/vcl/source/app/timer.cxx:285
#31 0x0101cd3c in Timer::ImplTimerCallbackProc () at
OOo/m233/vcl/source/app/timer.cxx:173
#32 0x013461f0 in SalTimer::CallCallback (this=0x815d260) at
../../../inc/vcl/saltimer.hxx:80
#33 0x012744b7 in -[TimerCallbackCaller timerElapsed:] (self=0x34a103c0,
_cmd=0x12892cc, pTimer=0x22af5910) at 
OOo/m233/vcl/aqua/source/app/saltimer.cxx:66
#34 0x9283b2de in __NSFireTimer ()
#35 0x9082d7e2 in CFRunLoopRunSpecific ()
#36 0x9082cace in CFRunLoopRunInMode ()
#37 0x92de28d8 in RunCurrentEventLoopInMode ()
#38 0x92de1f19 in ReceiveNextEventCommon ()
#39 0x92de1e39 in BlockUntilNextEventMatchingListInMode ()
#40 0x93288465 in _DPSNextEvent ()
#41 0x93288056 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#42 0x01274116 in AquaSalInstance::Yield (this=0x813ab90, bWait=true,
bHandleAllCurrentEvents=false) at OOo/m233/vcl/aqua/source/app/salinst.cxx:689
#43 0x01016617 in Application::Yield (bAllEvents=false) at
OOo/m233/vcl/source/app/svapp.cxx:557
#44 0x0101666e in Application::Execute () at 
OOo/m233/vcl/source/app/svapp.cxx:516
#45 0x000150b7 in desktop::Desktop::Main ()
#46 0x0101c9d4 in ImplSVMain () at OOo/m233/vcl/source/app/svmain.cxx:262
#47 0x01272153 in AquaSalInstance::handleAppDefinedEvent (pEvent=0x813ab50) at
OOo/m233/vcl/aqua/source/app/salinst.cxx:619
#48 0x0127221f in -[VCL_NSApplication sendEvent:] (self=0x81203b0,
_cmd=0x90ac4484, pEvent=0x813ab50) at 
OOo/m233/vcl/aqua/source/app/salinst.cxx:120
#49 0x93281dfe in -[NSApplication run] ()
#50 0x93275d2f in NSApplicationMain ()
#51 0x012712ff in ImplSVMainHook (pbInit=0xbffff39f "") at
OOo/m233/vcl/aqua/source/app/salinst.cxx:265
#52 0x0101cb51 in SVMain () at OOo/m233/vcl/source/app/svmain.cxx:300
#53 0x00002b57 in main ()
#54 0x0000241a in _start ()
#55 0x00002341 in start ()

The key point seems to be here:
line 64 viewobjectcontactofsdrmediaobj.cxx
ViewObjectContactOfSdrMediaObj::ViewObjectContactOfSdrMediaObj( ObjectContact&
rObjectContact, 
                                                                                
                                                ViewContact& rViewContact,
                                                                                
                                                const ::avmedia::MediaItem& 
rMediaItem ) :
        ViewObjectContact( rObjectContact, rViewContact ),
        mpMediaWindow( NULL )
{
        Window* pWindow = getWindow();
        {
                mpMediaWindow = new SdrMediaWindow( pWindow, *this );

>>>>pWindow is null, so vcl the salobject is never created

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to