Issue 4487 - Scanner Component Crashes OO
Summary: Scanner Component Crashes OO
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 RC4
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: philipp.lohmann
QA Contact: issues@sw
URL:
Keywords: oooqa
: 16544 (view as issue list)
Depends on:
Blocks:
 
Reported: 2002-05-04 13:51 UTC by beccon
Modified: 2013-08-07 14:43 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 beccon 2002-05-04 13:51:26 UTC
After I was able to scan an image once (without getting the result 
into my document) OO froze (I had to kill it) From that time on I 
always get a "GPF like crash" - "unrecoverable error" dialog box 
when I go into Insert/Graphic/Scanner/Select/select sources (I've 
got a German locale so texts in English can vary) Calling the 
scanner interface Insert/Graphic/Select/Scann Image itself results 
in nothing - no reaction, no crash but no scanner dialog. 
 
My Configuration: 
PII MMX PC mit 192MB RAM and 350MHz (Compaq 5503) 
Suse Linux 7.3 - upgraded to KDE 3.0 (Kernel 2.4.10-4GB,XFree86 
3.36) 
Mustek 1200 CU Plus USB Scanner with installed and flawlessly 
working SANE Backend. 
 
Restart of the whole machine didn't help. So I suspect that some of 
the config files got corrupted in the first crash - I don't know 
which. I checked the OpenOffice.org1.0 directory in my home for new 
entries with "scanner" or "mustek" - no avail. So probably 
something in sane or usb config - but these filed cannot be written 
to by an ordinary user... 
 
What's wrong 
Conrad
Comment 1 stefan.baltzer 2002-12-09 15:35:50 UTC
Could you please verify your findings in a newer version and comment? Thx.

Reassigned to Jörg.
Comment 2 joerg.skottke 2002-12-10 06:29:49 UTC
Erm - this is not for me, reassigning to CGU
Comment 3 christian.guenther 2003-01-30 16:01:10 UTC
Change the target.
Comment 4 christian.guenther 2003-02-04 15:31:04 UTC
Hardware is missing so I can't test this bug.
Comment 5 christian.guenther 2003-02-13 15:16:59 UTC
I change the target. 
Comment 6 christian.guenther 2003-03-31 11:33:25 UTC
I can't reproduce the bug because I don't have such a scanner.
I know that there was a simmilar bug which occures with a HP-Scanner.
The HP-bug is fixed in the OOo1.1Beta. Please test this bug again in
the OOo1.1Beta and tell me if this also fix your bug.
Looking forward to your results.
Christian
Comment 7 christian.guenther 2003-04-10 11:07:44 UTC
I don't hear any negative therefore I think  the bug is fixed.
Please reopen the issue when the bug still occure.
Comment 8 christian.guenther 2003-04-10 11:08:21 UTC
I close the issue.
Comment 9 alex.thurgood 2003-09-12 14:53:32 UTC
Hi all,
The problem is not fixed, or it has become prevalent once in again in
the 1.1 RC (at least in RC1 and RC4 under Linux). At least 2 people on
the French users list have the very same problem with HP scanners.

I have this problem, and confirmed it another issue. This is a real
showstopper. I am reopening it again and setting the oooqa tag. It
really ought to be looked at.

Alex
Comment 10 alex.thurgood 2003-09-12 18:10:04 UTC
Reopening
Comment 11 utomo99 2003-09-13 05:10:16 UTC
I hope somebody can test this on Windows Too, to make sure it is not
happend in Windows. 

Please also change the version to the latest version of OOo, so it is
not closed/forget bacuse people think it is old version 
Comment 12 utomo99 2003-09-19 04:31:31 UTC
update the vesrion to 1.1 Rc4 because still exist
Comment 13 christian.guenther 2003-10-09 12:49:43 UTC
You said you can reproduce this.
Here is the issue.
Comment 14 philipp.lohmann 2003-10-09 13:42:05 UTC
pl->ama: the stack is like appended. I think this could be a not
locked SolarMutex inside the scanner listener in writer, as the main
thread is dispatching at the same time; but this may be just a guess.
I don't know who in your team is responsible for this, please dispatch
appropriately. Adjusted target since it's a crash.

#11 <signal handler called>
#12 0x40e764bd in rtl_allocateMemory ()
   from /usr/data/vcl7pp1r3/office/program/libsal.so.3
#13 0x08085d63 in vcl_customIcon17 ()
#14 0x08085e85 in operator new(unsigned) ()
#15 0x40958e05 in Container::ImpInsert(void*, CBlock*, unsigned short)
    () from /usr/data/vcl7pp1r3/office/program/libtl645li.so
#16 0x40958ff6 in Container::Insert(void*, unsigned long) ()
   from /usr/data/vcl7pp1r3/office/program/libtl645li.so
#17 0x4361e48a in SdrObjList::NbcInsertObject(SdrObject*, unsigned
long, SdrInsertReason const*) ()
   from /usr/data/vcl7pp1r3/office/program/libsvx645li.so
#18 0x4365adc8 in FmFormPage::NbcInsertObject(SdrObject*, unsigned
long, SdrInsertReason const*) ()
   from /usr/data/vcl7pp1r3/office/program/libsvx645li.so
#19 0x4361e5c1 in SdrObjList::InsertObject(SdrObject*, unsigned long,
SdrInsertReason const*) ()
   from /usr/data/vcl7pp1r3/office/program/libsvx645li.so
#20 0x4365ae0a in FmFormPage::InsertObject(SdrObject*, unsigned long,
SdrInsertReason const*) ()
   from /usr/data/vcl7pp1r3/office/program/libsvx645li.so
#21 0x44f6d109 in typeinfo for
com::sun::star::registry::InvalidRegistryException () from
/usr/data/vcl7pp1r3/office/program/libsw645li.so
#22 0x44f63160 in typeinfo for
com::sun::star::registry::InvalidRegistryException () from
/usr/data/vcl7pp1r3/office/program/libsw645li.so
#23 0x44f5161d in typeinfo for
com::sun::star::registry::InvalidRegistryException () from
/usr/data/vcl7pp1r3/office/program/libsw645li.so
#24 0x450637c0 in typeinfo for
com::sun::star::registry::InvalidRegistryException () from
/usr/data/vcl7pp1r3/office/program/libsw645li.so
#25 0x45036b54 in typeinfo for
com::sun::star::registry::InvalidRegistryException () from
/usr/data/vcl7pp1r3/office/program/libsw645li.so
#26 0x45036c50 in typeinfo for
com::sun::star::registry::InvalidRegistryException () from
/usr/data/vcl7pp1r3/office/program/libsw645li.so
#27 0x44e6536f in typeinfo for
com::sun::star::registry::InvalidRegistryException () from
/usr/data/vcl7pp1r3/office/program/libsw645li.so
#28 0x45634d36 in CreateObjSwWebDocShellDll ()
   from /usr/data/vcl7pp1r3/office/program/libsw645li.so
#29 0x45605647 in CreateObjSwWebDocShellDll ()
   from /usr/data/vcl7pp1r3/office/program/libsw645li.so
---Type <return> to continue, or q <return> to quit---
#30 0x4562fdcb in CreateObjSwWebDocShellDll ()
   from /usr/data/vcl7pp1r3/office/program/libsw645li.so
#31 0x45752541 in ScannerThread::run() (this=0x45da5b10)
    at /usr/data/vcl7pp1r3/extensions.lnk/source/scanner/scanunx.cxx:218
#32 0x40b26f66 in vos::_cpp_OThread_WorkerFunction(void*) ()
   from /usr/data/vcl7pp1r3/office/program/libvos3gcc3.so
#33 0x40b26f4b in _OThread_WorkerFunction(void*) ()
   from /usr/data/vcl7pp1r3/office/program/libvos3gcc3.so
#34 0x40e6753d in osl_getTextEncodingFromLocale ()
   from /usr/data/vcl7pp1r3/office/program/libsal.so.3
#35 0x4111cc60 in pthread_start_thread () from /lib/libpthread.so.0
Comment 15 philipp.lohmann 2003-10-09 13:54:02 UTC
*** Issue 16544 has been marked as a duplicate of this issue. ***
Comment 16 andreas.martens 2003-10-09 17:17:57 UTC
I don't find Writer code on the stack but lot of DrawingEngine's. Do
you know what's going wrong, Armin? 
Comment 17 philipp.lohmann 2003-10-10 16:29:34 UTC
The writer code is from frame 21 to frame 30. My guess is that the
handler being called does not get the solarmutex, but it's difficult
to tell where exactly that handler is implemented as writer does not
export many symbols.
Comment 18 michael.brauer 2003-10-13 11:13:49 UTC
Philipps assumptions seems to be correct:

scanunx.cxx calls  SwScannerEventListener::disposing()
(sw/source/ui/uiview/uivwimp.cxx) that is not locking the SolarMutex
before accessing the view.
Comment 19 Oliver Specht 2003-10-15 10:43:43 UTC
OS: As it is a crash and the reason seems to be known I change the
target to OOo 1.1.1.
Comment 20 thorsten.ziehm 2003-10-15 12:47:09 UTC
Target approved.
Comment 21 Oliver Specht 2003-10-17 07:32:42 UTC
Also duplicated in internal #112694#

net/grande.germany/develop4/update/SRX645/src.m18/sal/osl/unx/signal.c:330
SignalHandlerFunction
/net/grande.germany/develop4/update/SRX645/src.m18/sal/osl/unx/signal.c:609
libpthread.so.0 + 0xb1ec  --   not found
libc.so.6 + 0x293a8  --   not found
allocate
/net/grande.germany/develop4/update/SRX645/src.m18/sal/cpprt/operators_new_delete.cxx:184
operator new(unsigned)
/net/grande.germany/develop4/update/SRX645/src.m18/sal/cpprt/operators_new_delete.cxx:231
Container::ImpInsert(void*, CBlock*, unsigned short)
/net/grande.germany/develop4/update/SRX645/src.m18/tools/source/memtools/contnr.cxx:813
Container::Insert(void*, unsigned long)
/net/grande.germany/develop4/update/SRX645/src.m18/tools/source/memtools/contnr.cxx:926
SdrObjList::NbcInsertObject(SdrObject*, unsigned long, SdrInsertReason
const*)
/net/grande.germany/develop4/update/SRX645/src.m18/svx/source/svdraw/svdpage.cxx:355
FmFormPage::NbcInsertObject(SdrObject*, unsigned long, SdrInsertReason
const*)
/net/grande.germany/develop4/update/SRX645/src.m18/svx/source/form/fmpage.cxx:280
SdrObjList::InsertObject(SdrObject*, unsigned long, SdrInsertReason
const*)
/net/grande.germany/develop4/update/SRX645/src.m18/svx/source/svdraw/svdpage.cxx:393
FmFormPage::InsertObject(SdrObject*, unsigned long, SdrInsertReason
const*)
/net/grande.germany/develop4/update/SRX645/src.m18/svx/source/form/fmpage.cxx:288
SwPageFrm::AppendFly(SwFlyFrm*)
../inc/pagefrm.hxx:443
SwFrm::AppendFly(SwFlyFrm*)
/net/grande.germany/develop4/update/SRX645/src.m18/sw/source/core/layout/fly.cxx:2053
.L2545
/net/grande.germany/develop4/update/SRX645/src.m18/sw/source/core/layout/atrfrm.cxx:2913
SwDoc::_MakeFlySection(SwPosition const&, SwCntntNode const&,
RndStdIds, SfxItemSet const*, SwFrmFmt*)
../../../inc/doc.hxx:869
SwDoc::_InsNoTxtNode(SwPosition const&, SwNoTxtNode*, SfxItemSet
const*, SfxItemSet const*, SwFrmFmt*)
/net/grande.germany/develop4/update/SRX645/src.m18/sw/source/core/doc/doc.cxx:500
SwDoc::Insert(SwPaM const&, String const&, String const&, Graphic
const*, SfxItemSet const*, SfxItemSet const*, SwFrmFmt*)
../../../inc/pam.hxx:222
.L624
../../../inc/viewsh.hxx:295
SwWrtShell::Insert(String const&, String const&, Graphic const&,
SwFlyFrmAttrMgr*, unsigned char)
/net/grande.germany/develop4/update/SRX645/src.m18/sw/source/ui/wrtsh/wrtsh1.cxx:449
SwView::ScannerEventHdl(com::sun::star::lang::EventObject const&)
/net/grande.germany/develop4/update/SRX645/src.m18/sw/source/ui/uiview/view.cxx:1687
SwScannerEventListener::disposing(com::sun::star::lang::EventObject
const&)
/net/grande.germany/develop4/update/SRX645/src.m18/sw/source/ui/uiview/uivwimp.cxx:343
ScannerThread::run()
/develop4/update/SRX645/unxlngi5.pro/inc.m18/com/sun/star/uno/Reference.h:334
vos::_cpp_OThread_WorkerFunction(void*)

fixed in sw/source/ui/uiview/uivwimp.cxx 
Comment 22 Oliver Specht 2003-10-21 13:35:29 UTC
The fix is in cws os21 on so-cwsserv02, unxlngi5.pro
Comment 23 philipp.lohmann 2003-10-21 13:51:22 UTC
I installed the os21 version and it worked.
Comment 24 philipp.lohmann 2003-10-21 13:51:52 UTC
verified in CWS os21
Comment 25 philipp.lohmann 2004-01-27 10:39:06 UTC
merged in 645m25s1