Apache OpenOffice (AOO) Bugzilla – Issue 82234
Implement Insert-Movie and Sound using QTKit (QuickTime)
Last modified: 2009-05-04 09:44:12 UTC
Add Movie and Sound support to Mac OS X port using QTKit (QuickTime)
starting
Created attachment 48689 [details] Changes to earlier code to support QTKit
When adding a movie (mov) the attached code crashes after stepping into line 244 of avmedia/source/viewer/mediawindow_impl.cxx (codebase m231 + aquavcl03 on Mac OS X 10.4 Intel) Backtrace: Thread: 1 :avmediaquicktime: Manager::Manager Thread: 1 :avmediaquicktime: Manager::createPlayer Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000004 0x01189da3 in JavaChildWindow::getParentWindowHandleForJava () (gdb) bt #0 0x01189da3 in JavaChildWindow::getParentWindowHandleForJava () #1 0x1ffee729 in avmedia::priv::MediaWindowImpl::onURLChanged (this=0x3387e00) at /Users/MikeS/Documents/Projects/ooo/m231/avmedia/source/viewer/mediawindow_impl.cxx:244 #2 0x1ffebfc4 in avmedia::priv::MediaWindowBaseImpl::setURL (this=0x3387f10, rURL=@0x1da5789c) at /Users/MikeS/Documents/Projects/ooo/m231/avmedia/source/viewer/mediawindowbase_impl.cxx:131 #3 0x1ffec037 in avmedia::priv::MediaWindowBaseImpl::executeMediaItem (this=0x3387f10, rItem=@0x1da57890) at /Users/MikeS/Documents/Projects/ooo/m231/avmedia/source/viewer/mediawindowbase_impl.cxx:398 #4 0x1ffef53d in avmedia::MediaWindow::executeMediaItem (this=0x1d47dd30, rItem=@0x1da57890) at /Users/MikeS/Documents/Projects/ooo/m231/avmedia/source/viewer/mediawindow.cxx:336 #5 0x245e6587 in sdr::contact::ViewObjectContactOfSdrMediaObj::executeMediaItem () #6 0x245e664c in sdr::contact::ViewObjectContactOfSdrMediaObj::ViewObjectContactOfSdrMediaObj () #7 0x245e632e in sdr::contact::ViewContactOfSdrMediaObj::CreateObjectSpecificViewObjectContact () #8 0x245dbd3e in sdr::contact::ViewContact::GetViewObjectContact () #9 0x245e5eda in sdr::contact::ViewObjectContactList::BuildDrawHierarchy () #10 0x245e3981 in sdr::contact::ViewObjectContact::BuildDrawHierarchy () #11 0x245e3f24 in sdr::contact::ViewObjectContact::CheckDrawHierarchy () #12 0x245e364a in sdr::contact::ObjectContactOfPageView::EnsureValidDrawHierarchy () #13 0x245e3711 in sdr::contact::ObjectContactOfPageView::ProcessDisplay () #14 0x240f9879 in SdrPageWindow::RedrawAll () #15 0x24050f35 in SdrPageView::CompleteRedraw () #16 0x2405ee7e in SdrPaintView::CompleteRedraw () #17 0x1b6886ba in sd::View::CompleteRedraw () #18 0x1b6b2460 in sd::DrawViewShell::Paint () #19 0x1b6a319c in sd::Window::Paint () #20 0x011ad998 in Window::ImplCallPaint () #21 0x011ad693 in Window::ImplCallPaint () #22 0x011ad693 in Window::ImplCallPaint () #23 0x011ad693 in Window::ImplCallPaint () #24 0x011ad693 in Window::ImplCallPaint () #25 0x011ad693 in Window::ImplCallPaint () #26 0x011ad693 in Window::ImplCallPaint () #27 0x011ade49 in Window::Update () #28 0x01187888 in StatusBar::SetItemText () #29 0x015e7615 in svt::StatusbarController::statusChanged () #30 0x16173c7f in SfxDispatchController_Impl::StateChanged () #31 0x1616823f in SfxStateCache::SetState_Impl () #32 0x1614993a in SfxBindings::SetState () #33 0x1b6b1346 in sd::DrawViewShell::ShowMousePosInfo () #34 0x1b6b15a7 in sd::DrawViewShell::MouseMove () #35 0x1b6a3258 in sd::Window::MouseMove () #36 0x011c1cb6 in ImplHandleMouseEvent () #37 0x011c2c55 in ImplWindowFrameProc () #38 0x01232ca3 in -[SalFrameView sendMouseEventToFrame:button:eventtype:] () #39 0x0122d616 in -[SalFrameView mouseEntered:] () #40 0x93365be1 in -[NSWindow sendEvent:] () #41 0x93357350 in -[NSApplication sendEvent:] () #42 0x0124a765 in -[VCL_NSApplication sendEvent:] () #43 0x0124c98a in AquaSalInstance::Yield () #44 0x01013bd3 in Application::Yield () #45 0x01013c55 in Application::Execute () #46 0x000150b7 in desktop::Desktop::Main () #47 0x010193e5 in ImplSVMain () #48 0x0124a68c in AquaSalInstance::handleAppDefinedEvent () #49 0x0124a775 in -[VCL_NSApplication sendEvent:] () #50 0x93281dfe in -[NSApplication run] () #51 0x93275d2f in NSApplicationMain () #52 0x0124b75c in ImplSVMainHook () #53 0x01019471 in SVMain () #54 0x00002b57 in main () #55 0x0000241a in _start () #56 0x00002341 in start ()
@msicotte: I'lll test your code this week end, and I'll try to trace a bit, if ever I can help you.
added me on CC
added keyword cws macosxquicktime01 created and initial checkin done
Created attachment 49394 [details] Spec for quicktime implementation
Created attachment 49395 [details] test cases for quicktime implementation
Quicktime implementation done in cws macosxquicktime01 Draft spec and test cases attached to issue.
Note: Specification has been checked in http://specs.openoffice.org/Mac_Port/System_Integration/macosx_quicktime.odt or CVS specs.openoffice.org/Mac_Port/System_Integration/macosx_quicktime.odt
Target milestone is AFAIK 2.4 so I changed the target. Writing feature announcement, including test case into the TCS system.
Test case specification has been imported in test case specification system in qa.openoffice.org; link will be updated soon in software specification.
test cases now available under http://qa.openoffice.org/ooQAReloaded/TestcaseSpecifications/OpenOffice.org_2.4/Global/macosx_quicktime.html
fixed
please verify in CWS macosxquicktime01
-> tm, as discussed
@msicotte: "A media item embedded in a Writer document cannot be played." do you have an issue number for it? Or should I write one?
@jsi - This is handled in issue 83183 http://qa.openoffice.org/issues/show_bug.cgi?id=83183 The fix is in aw054
*** Issue 81276 has been marked as a duplicate of this issue. ***
Checked and verified in cws macosxquicktime01
closed