Issue 114636 - toolkit/qa/unoapi toolkit.AccessibleScrollBar::com::sun::star::accessibility::XAccessibleAction failure
Summary: toolkit/qa/unoapi toolkit.AccessibleScrollBar::com::sun::star::accessibility:...
Status: CONFIRMED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: current
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 3.x
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-21 08:24 UTC by Stephan Bergmann
Modified: 2013-07-30 02:16 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 Stephan Bergmann 2010-09-21 08:24:20 UTC
On DEV300_m87 based CWS sb123, with
<http://hg.services.openoffice.org/cws/sb123/rev/7a518c9afc01> to fix issue
114635 for unxlngx6 (without that fix, the below scenario would crash
soffice.bin, instead of merely failing the test), executing toolkit/qa/unoapi
sometimes fails on unxlngx6 when testing
toolkit.AccessibleScrollBar::com::sun::star::accessibility::XAccessibleAction
(it works on 32 bit platforms, so probably is a 64 bit issue).  The problem is a
std::bad_alloc from one of the new-expressions at
<http://hg.services.openoffice.org/DEV300/file/2ebd15d9e8a6/svtools/source/graphic/grfmgr2.cxx#l435>;
the value of nNewW and nNewH are 4294967313 and 17, respectively; the stack is
given below the test log.


checking:
[toolkit.AccessibleScrollBar::com::sun::star::accessibility::XAccessibleAction]
is iface: [com.sun.star.accessibility.XAccessibleAction] testcode:
[ifc.accessibility._XAccessibleAction]
LOG> Execute: getAccessibleActionCount()
Method getAccessibleActionCount() finished with state OK
LOG> getAccessibleActionCount(): PASSED.OK

LOG> Execute: doAccessibleAction()
LOG> starting required method: getAccessibleActionKeyBinding()
LOG> Execute: getAccessibleActionKeyBinding()
LOG> starting required method: getAccessibleActionDescription()
LOG> Execute: getAccessibleActionDescription()
LOG> starting required method: getAccessibleActionCount()
LOG> Calling method with wrong argument
LOG> Expected exception -- OK
LOG> Found action: decrementLine
LOG> Found action: incrementLine
LOG> Found action: decrementBlock
LOG> Found action: incrementBlock
Method getAccessibleActionDescription() finished with state OK
LOG> getAccessibleActionDescription(): PASSED.OK

LOG> Calling method with wrong argument
LOG> Expected exception -- OK
Method getAccessibleActionKeyBinding() finished with state OK
LOG> getAccessibleActionKeyBinding(): PASSED.OK

LOG> Calling method with wrong argument
LOG> Expected exception -- OK
LOG> do Action decrementLine
LOG> Worked: true
LOG> do Action incrementLine
LOG> Worked: true
LOG> do Action decrementBlock
LOG> Worked: true
LOG> do Action incrementBlock
com.sun.star.uno.RuntimeException: C++ code threw St9bad_alloc: std::bad_alloc
LOG> 	at
com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:177)
LOG> 	at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:143)
LOG> 	at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:335)
LOG> 	at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:304)
LOG> 	at
com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:91)
LOG> 	at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:639)
LOG> 	at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:151)
LOG> 	at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:133)
LOG> 	at $Proxy22.doAccessibleAction(Unknown Source)
LOG> 	at
ifc.accessibility._XAccessibleAction._doAccessibleAction(_XAccessibleAction.java:73)
LOG> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
LOG> 	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
LOG> 	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
LOG> 	at java.lang.reflect.Method.invoke(Method.java:585)
LOG> 	at lib.MultiMethodTest.invokeTestMethod(MultiMethodTest.java:406)
LOG> 	at lib.MultiMethodTest.callMethod(MultiMethodTest.java:384)
LOG> 	at lib.MultiMethodTest.executeMethod(MultiMethodTest.java:372)
LOG> 	at lib.MultiMethodTest.run(MultiMethodTest.java:236)
LOG> 	at base.java_fat.executeInterfaceTest(java_fat.java:573)
LOG> 	at base.java_fat.executeTest(java_fat.java:237)
LOG> 	at org.openoffice.Runner.run(Runner.java:240)
LOG> 	at org.openoffice.toolkit.qa.unoapi.Test.test(Test.java:44)
LOG> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
LOG> 	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
LOG> 	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
LOG> 	at java.lang.reflect.Method.invoke(Method.java:585)
LOG> 	at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
LOG> 	at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
LOG> 	at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
LOG> 	at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
LOG> 	at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
LOG> 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
LOG> 	at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
LOG> 	at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
LOG> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
LOG> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
LOG> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
LOG> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
LOG> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
LOG> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
LOG> 	at org.junit.runners.Suite.runChild(Suite.java:128)
LOG> 	at org.junit.runners.Suite.runChild(Suite.java:24)
LOG> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
LOG> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
LOG> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
LOG> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
LOG> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
LOG> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
LOG> 	at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
LOG> 	at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
LOG> 	at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
LOG> 	at org.junit.runner.JUnitCore.runMain(JUnitCore.java:98)
LOG> 	at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:53)
LOG> 	at org.junit.runner.JUnitCore.main(JUnitCore.java:45)
LOG> doAccessibleAction(): C++ code threw St9bad_alloc: std::bad_alloc.FAILED
LOG> disposing xTextDoc
Error: OutputDevice::~OutputDevice(): OutputDevice::Push() calls !=
OutputDevice::Pop() calls From File
/net/so-cwsserv02/export/cws/sb123/DEV300/ooo/vcl/source/gdi/outdev.cxx at Line 529
***** State for
toolkit.AccessibleScrollBar::com::sun::star::accessibility::XAccessibleAction ******
[toolkit.AccessibleScrollBar::com::sun::star::accessibility::XAccessibleAction::doAccessibleAction()]
is testcode: [doAccessibleAction()] - C++ code threw St9bad_alloc:
std::bad_alloc.FAILED


#15 0x00007f078c4649e5 in GraphicManager::ImplCreateOutput(OutputDevice*, Point
const&, Size const&, BitmapEx const&, GraphicAttr const&, unsigned long,
BitmapEx*) () from .../opt/openoffice.org3/program/../basis-link/program/libsvtlx.so
#16 0x00007f078c465c7e in GraphicManager::ImplDraw(OutputDevice*, Point const&,
Size const&, GraphicObject&, GraphicAttr const&, unsigned long, unsigned char&)
() from .../opt/openoffice.org3/program/../basis-link/program/libsvtlx.so
#17 0x00007f078c4664d0 in GraphicManager::DrawObj(OutputDevice*, Point const&,
Size const&, GraphicObject&, GraphicAttr const&, unsigned long, unsigned char&)
() from .../opt/openoffice.org3/program/../basis-link/program/libsvtlx.so
#18 0x00007f078c45602d in GraphicObject::Draw(OutputDevice*, Point const&, Size
const&, GraphicAttr const*, unsigned long) () from
.../opt/openoffice.org3/program/../basis-link/program/libsvtlx.so
#19 0x00007f07727314d9 in
drawinglayer::RenderBitmapPrimitive2D_GraphicManager(OutputDevice&, BitmapEx
const&, basegfx::B2DHomMatrix const&) () from
.../opt/openoffice.org3/program/../basis-link/program/libdrawinglayerlx.so
#20 0x00007f0772737aa0 in
drawinglayer::processor2d::VclProcessor2D::RenderBitmapPrimitive2D(drawinglayer::primitive2d::BitmapPrimitive2D
const&) () from
.../opt/openoffice.org3/program/../basis-link/program/libdrawinglayerlx.so
#21 0x00007f077273c876 in
drawinglayer::processor2d::VclPixelProcessor2D::processBasePrimitive2D(drawinglayer::primitive2d::BasePrimitive2D
const&) () from
.../opt/openoffice.org3/program/../basis-link/program/libdrawinglayerlx.so
#22 0x00007f077272b9c8 in
drawinglayer::processor2d::BaseProcessor2D::process(com::sun::star::uno::Sequence<com::sun::star::uno::Reference<com::sun::star::graphic::XPrimitive2D>
> const&) () from
.../opt/openoffice.org3/program/../basis-link/program/libdrawinglayerlx.so
#23 0x00007f0772734f25 in
drawinglayer::processor2d::VclProcessor2D::RenderTransformPrimitive2D(drawinglayer::primitive2d::TransformPrimitive2D
const&) () from
.../opt/openoffice.org3/program/../basis-link/program/libdrawinglayerlx.so
#24 0x00007f077273ce8a in
drawinglayer::processor2d::VclPixelProcessor2D::processBasePrimitive2D(drawinglayer::primitive2d::BasePrimitive2D
const&) () from
.../opt/openoffice.org3/program/../basis-link/program/libdrawinglayerlx.so
#25 0x00007f077272b9c8 in
drawinglayer::processor2d::BaseProcessor2D::process(com::sun::star::uno::Sequence<com::sun::star::uno::Reference<com::sun::star::graphic::XPrimitive2D>
> const&) () from
.../opt/openoffice.org3/program/../basis-link/program/libdrawinglayerlx.so
#26 0x00007f077273e2ca in
drawinglayer::processor2d::VclPixelProcessor2D::processBasePrimitive2D(drawinglayer::primitive2d::BasePrimitive2D
const&) () from
.../opt/openoffice.org3/program/../basis-link/program/libdrawinglayerlx.so
#27 0x00007f077272b9c8 in
drawinglayer::processor2d::BaseProcessor2D::process(com::sun::star::uno::Sequence<com::sun::star::uno::Reference<com::sun::star::graphic::XPrimitive2D>
> const&) () from
.../opt/openoffice.org3/program/../basis-link/program/libdrawinglayerlx.so
#28 0x00007f07741aa254 in
sdr::contact::ObjectContactOfPageView::DoProcessDisplay(sdr::contact::DisplayInfo&)
() from .../opt/openoffice.org3/program/../basis-link/program/libsvxcorelx.so
#29 0x00007f07741aa386 in
sdr::contact::ObjectContactOfPageView::ProcessDisplay(sdr::contact::DisplayInfo&) ()
from .../opt/openoffice.org3/program/../basis-link/program/libsvxcorelx.so
#30 0x00007f077458a57e in
SdrPageWindow::RedrawAll(sdr::contact::ViewObjectContactRedirector*) const ()
from .../opt/openoffice.org3/program/../basis-link/program/libsvxcorelx.so
#31 0x00007f07744c0937 in SdrPageView::CompleteRedraw(SdrPaintWindow&, Region
const&, sdr::contact::ViewObjectContactRedirector*) const () from
.../opt/openoffice.org3/program/../basis-link/program/libsvxcorelx.so
#32 0x00007f07744d7ba0 in SdrPaintView::DoCompleteRedraw(SdrPaintWindow&, Region
const&, sdr::contact::ViewObjectContactRedirector*) () from
.../opt/openoffice.org3/program/../basis-link/program/libsvxcorelx.so
#33 0x00007f07744d79e1 in SdrPaintView::CompleteRedraw(OutputDevice*, Region
const&, sdr::contact::ViewObjectContactRedirector*) () from
.../opt/openoffice.org3/program/../basis-link/program/libsvxcorelx.so
#34 0x00007f0765699199 in sd::View::CompleteRedraw(OutputDevice*, Region const&,
sdr::contact::ViewObjectContactRedirector*) () from
.../opt/openoffice.org3/program/../basis-link/program/libsdlx.so
#35 0x00007f0765710922 in sd::DrawView::CompleteRedraw(OutputDevice*, Region
const&, sdr::contact::ViewObjectContactRedirector*) () from
.../opt/openoffice.org3/program/../basis-link/program/libsdlx.so
#36 0x00007f07656daba5 in sd::DrawViewShell::Paint(Rectangle const&,
sd::Window*) () from
.../opt/openoffice.org3/program/../basis-link/program/libsdlx.so
#37 0x00007f07656c1ba0 in sd::Window::Paint(Rectangle const&) () from
.../opt/openoffice.org3/program/../basis-link/program/libsdlx.so
#38 0x00007f078aaad8df in Window::ImplCallPaint(Region const*, unsigned short)
() from .../opt/openoffice.org3/program/../basis-link/program/libvcllx.so
#39 0x00007f078aaade52 in Window::Update() () from
.../opt/openoffice.org3/program/../basis-link/program/libvcllx.so
#40 0x00007f07656c38e5 in sd::Window::SetVisibleXY(double, double) () from
.../opt/openoffice.org3/program/../basis-link/program/libsdlx.so
#41 0x00007f07656bf10f in sd::ViewShell::VirtHScrollHdl(ScrollBar*) () from
.../opt/openoffice.org3/program/../basis-link/program/libsdlx.so
#42 0x00007f07656bfab2 in sd::ViewShell::HScrollHdl(ScrollBar*) () from
.../opt/openoffice.org3/program/../basis-link/program/libsdlx.so
#43 0x00007f07656bb139 in sd::ViewShell::LinkStubHScrollHdl(void*, void*) ()
from .../opt/openoffice.org3/program/../basis-link/program/libsdlx.so
#44 0x00007f078a7b1870 in Link::Call(void*) const () from
.../opt/openoffice.org3/program/../basis-link/program/libvcllx.so
#45 0x00007f078aae9867 in Control::ImplCallEventListenersAndHandler(unsigned
long, Link const&, void*) () from
.../opt/openoffice.org3/program/../basis-link/program/libvcllx.so
#46 0x00007f078ab3641b in ScrollBar::Scroll() () from
.../opt/openoffice.org3/program/../basis-link/program/libvcllx.so
#47 0x00007f078ab35b70 in ScrollBar::ImplScroll(long, unsigned char) () from
.../opt/openoffice.org3/program/../basis-link/program/libvcllx.so
#48 0x00007f078ab35d18 in ScrollBar::ImplDoAction(unsigned char) () from
.../opt/openoffice.org3/program/../basis-link/program/libvcllx.so
#49 0x00007f078ab35d70 in ScrollBar::DoScrollAction(ScrollType) () from
.../opt/openoffice.org3/program/../basis-link/program/libvcllx.so
#50 0x00007f0766d2250c in VCLXAccessibleScrollBar::doAccessibleAction(int) ()
from .../opt/openoffice.org/basis3.4/program/libacclx.so
#51 0x00007f077ec05871 in callVirtualMethod(void*, unsigned int, void*,
_typelib_TypeDescriptionReference*, bool, unsigned long*, unsigned int, unsigned
long*, unsigned int, double*, unsigned int) () from
.../opt/openoffice.org/ure/lib/libgcc3_uno.so
#52 0x00007f077ec0640e in cpp_call(bridges::cpp_uno::shared::UnoInterfaceProxy*,
bridges::cpp_uno::shared::VtableSlot, _typelib_TypeDescriptionReference*, int,
_typelib_MethodParameter*, void*, void**, _uno_Any**) () from
.../opt/openoffice.org/ure/lib/libgcc3_uno.so
#53 0x00007f077ec06f82 in
bridges::cpp_uno::shared::unoInterfaceProxyDispatch(_uno_Interface*,
_typelib_TypeDescription const*, void*, void**, _uno_Any**) () from
.../opt/openoffice.org/ure/lib/libgcc3_uno.so
#54 0x00007f076ccbc9b4 in thisDispatch () from
.../opt/openoffice.org/ure/lib/liburp_uno.so
#55 0x00007f076cca7345 in bridges_urp::ServerMultiJob::execute() () from
.../opt/openoffice.org/ure/lib/liburp_uno.so
#56 0x00007f076cca9865 in doit () from .../opt/openoffice.org/ure/lib/liburp_uno.so
#57 0x00007f078d8bf970 in cppu_threadpool::JobQueue::enter(long, unsigned char)
() from
.../opt/openoffice.org3/program/../basis-link/program/../ure-link/lib/libuno_cppu.so.3
#58 0x00007f078d8c0293 in cppu_threadpool::ORequestThread::run() () from
.../opt/openoffice.org3/program/../basis-link/program/../ure-link/lib/libuno_cppu.so.3
#59 0x00007f078d8c05c3 in cppu_requestThreadWorker () from
.../opt/openoffice.org3/program/../basis-link/program/../ure-link/lib/libuno_cppu.so.3
#60 0x00007f078f935397 in osl_thread_start_Impl () from
.../opt/openoffice.org3/program/../basis-link/ure-link/lib/libuno_sal.so.3
#61 0x00007f078e1d69ca in start_thread (arg=<value optimized out>) at
pthread_create.c:300
#62 0x00007f078e6d76fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#63 0x0000000000000000 in ?? ()
Comment 1 Stephan Bergmann 2010-09-21 08:35:06 UTC
worked around for now by disabling the affected tests in
toolkit/qa/unoapi/knownissues.xcl, see
<http://hg.services.openoffice.org/cws/sb123/rev/060a5a5a22e2>; please revert
when fixing this issue
Comment 2 Stephan Bergmann 2010-09-22 14:04:29 UTC
Same sort of crash now once happened on DEV300_m87 based CWS sb123 when
executing toolkit/qa/unoapi on unxlngx6.pro at

[...]
29: LOG> listener wasn't called -- OK
29: Method removeEventListener() finished with state OK
29: LOG> removeEventListener(): PASSED.OK
29: ***** State for
toolkit.AccessibleScrollBar::com::sun::star::accessibility::XAccessibleEventBroadcaster
******
29: Whole interface: PASSED.OK
29:
**************************************************************************************************************
29: LOG> Log started 21.08.2010 - 11:56:14
29: checking:
[toolkit.AccessibleScrollBar::com::sun::star::accessibility::XAccessibleContext]
is iface: [com.sun.star.accessibility.XAccessibleContext] testcode:
[ifc.accessibility._XAccessibleContext]
29: LOG> Execute: getAccessibleChildCount()
29: LOG> 0 children found.
29: Method getAccessibleChildCount() finished with state OK
29: LOG> getAccessibleChildCount(): PASSED.OK
29: 
29: LOG> Execute: getAccessibleChild()
29: LOG> starting required method: getAccessibleChildCount()
29: LOG> testing 'getAccessibleChild()'...
29: Method getAccessibleChild() finished with state OK
29: LOG> getAccessibleChild(): PASSED.OK
29: 
29: LOG> Execute: getAccessibleParent()
29: Method getAccessibleParent() finished with state OK
29: LOG> getAccessibleParent(): PASSED.OK
29: 
29: LOG> Execute: getAccessibleIndexInParent()
29: LOG> starting required method: getAccessibleParent()
29: terminate called after throwing an instance of 'std::bad_alloc'
29:   what():  std::bad_alloc
29: com.sun.star.lang.DisposedException: java.io.EOFException
29: LOG> 	at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.run(java_remote_bridge.java:158)
29: LOG> getAccessibleIndexInParent(): java.io.EOFException.FAILED
29: 
29: LOG> Execute: getAccessibleRole()
29: com.sun.star.lang.DisposedException: java_remote_bridge
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge@2c766a24 is disposed
[...]

so disabled more tests as
<http://hg.services.openoffice.org/cws/sb123/rev/e98543ba9ad7>; please also
revert when fixing this issue.
Comment 3 philipp.lohmann 2010-09-23 11:19:43 UTC
target
Comment 4 Rob Weir 2013-07-30 02:16:02 UTC
Reset assignee on issues not touched by assignee in more than 2000 days.