Bug 43267 - Base Crashes When Changing Text Box Control Option
Summary: Base Crashes When Changing Text Box Control Option
Status: RESOLVED DUPLICATE of bug 40298
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
3.4.3 release
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-26 20:49 UTC by mpapet
Modified: 2011-12-22 05:49 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
journal-file (3.58 KB, application/vnd.oasis.opendocument.database)
2011-11-26 20:49 UTC, mpapet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mpapet 2011-11-26 20:49:04 UTC
Created attachment 53875 [details]
journal-file

Steps to reproduce crash:

1. Open attached base file.
2. Edit existing form or create a new one.
3. Add a text box.
4. Right-click and select control.
5. Change Anchor to "To paragraph"
Crash.

See attached file for the base application I was attempting.  

The backtrace is as follows.

QPixmap: It is not safe to use pixmaps outside the GUI thread
QPixmap: It is not safe to use pixmaps outside the GUI thread
QPixmap: It is not safe to use pixmaps outside the GUI thread

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xa8660b70 (LWP 17590)]
0xb26304e6 in classId (this=0x0) at ../../include/QtGui/private/../../../src/gui/image/qpixmapdata_p.h:115
115     ../../include/QtGui/private/../../../src/gui/image/qpixmapdata_p.h: No such file or directory.
        in ../../include/QtGui/private/../../../src/gui/image/qpixmapdata_p.h
(gdb) backtrace
#0  0xb26304e6 in classId (this=0x0) at ../../include/QtGui/private/../../../src/gui/image/qpixmapdata_p.h:115
#1  qt_toX11Pixmap (pixmap=...) at image/qpixmap_x11.cpp:98
#2  0xb2755f91 in QX11PaintEngine::drawPixmap (this=0x0, r=..., px=..., _sr=...) at painting/qpaintengine_x11.cpp:1918
#3  0xb2683549 in QPaintEngine::drawImage (this=0x8ff3830, r=..., image=..., sr=..., flags=Cannot access memory at address 0x0
) at painting/qpaintengine.cpp:624
#4  0xb275ac77 in QX11PaintEngine::drawImage (this=0x8ff3830, r=..., image=..., sr=..., flags=...) at painting/qpaintengine_x11.cpp:1903
#5  0xb269f7a7 in QPainter::drawImage (this=0xa865f45c, targetRect=..., image=..., sourceRect=..., flags=...) at painting/qpainter.cpp:5711
#6  0xb396ff46 in drawImage (flags=<optimized out>, sh=<optimized out>, sw=<optimized out>, sy=0, sx=0, image=..., y=<optimized out>, x=<optimized out>, this=0xa865f45c)
    at /usr/include/qt4/QtGui/qpainter.h:927
#7  KDESalGraphics::drawNativeControl (this=0x8fe0cc0, type=<optimized out>, part=1, rControlRegion=..., nControlState=32769, value=...)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/vcl/unx/kde4/KDESalGraphics.cxx:634
#8  0xb67ef8dd in SalGraphics::DrawNativeControl (this=0x8fe0cc0, nType=40, nPart=1, rControlRegion=..., nState=32769, aValue=..., aCaption=..., pOutDev=0x90b0370)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/vcl/source/gdi/salgdilayout.cxx:743
#9  0xb675a5cc in OutputDevice::DrawNativeControl (this=0x90b0370, nType=0, nPart=0, rControlRegion=..., nState=32769, aValue=..., aCaption=Cannot access memory at address 0x0
)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/vcl/source/gdi/outdevnative.cxx:264
#10 0xb682ac28 in ImplSmallBorderWindowView::DrawWindow (this=0x90b07e0, nDrawFlags=1023)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/vcl/source/window/brdwin.cxx:1359
#11 0xb682a4ed in ImplBorderWindow::Paint (this=0x90b0370)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/vcl/source/window/brdwin.cxx:1999
#12 0xb68e4c85 in Edit::ImplClearBackground (this=0x90b1c40, nXStart=0, nXEnd=172)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/vcl/source/control/edit.cxx:1152
#13 0xb68e4e92 in Edit::ImplRepaint (this=0x90b1c40, nStart=0, nEnd=65535, bLayout=false)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/vcl/source/control/edit.cxx:546
#14 0xb68e5b1e in Edit::ImplInvalidateOrRepaint (this=0x90b1c40, nStart=0, nEnd=65535)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/vcl/source/control/edit.cxx:483
#15 0xb68e632a in Edit::StateChanged (this=0x90b1c40, nType=4)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/vcl/source/control/edit.cxx:2356
#16 0xb68b42ce in Window::Enable (this=0x90b1c40, bEnable=true, bChild=true)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/vcl/source/window/window.cxx:6600
#17 0xb692d66f in SpinField::StateChanged (this=0x90b0110, nType=4)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/vcl/source/control/spinfld.cxx:828
#18 0xb68b42ce in Window::Enable (this=0x90b0110, bEnable=true, bChild=true)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/vcl/source/window/window.cxx:6600
#19 0xa86eb7c7 in pcr::(anonymous namespace)::implEnable (_pWindow=<optimized out>, _nEnabledBits=<optimized out>, _nMatchBits=16385)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/extensions/source/propctrlr/browserline.cxx:350
#20 0xa86ec257 in pcr::OBrowserLine::implUpdateEnabledDisabled (this=0x90b1290)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/extensions/source/propctrlr/browserline.cxx:365
#21 0xa86bdd55 in pcr::OBrowserListBox::EnablePropertyLine (this=0x8a81d30, _rEntryName=..., _bEnable=true)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/extensions/source/propctrlr/browserlistbox.cxx:725
#22 0xa874eba6 in pcr::OPropertyEditor::EnablePropertyLine (this=0x9054b38, _rEntryName=..., _bEnable=true)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/extensions/source/propctrlr/propertyeditor.cxx:500
#23 0xa869d10e in pcr::OPropertyBrowserController::enablePropertyUI (this=0x90521b8, _rPropertyName=..., _bEnable=1 '\001')
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/extensions/source/propctrlr/propcontroller.cxx:1609
#24 0xa86d4c27 in pcr::(anonymous namespace)::DefaultStringKeyBooleanUIUpdate::updateUIForKey (this=0xa865fef0, _rKey=..., _bFlag=1 '\001')
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/extensions/source/propctrlr/composeduiupdate.cxx:610
#25 0xa86d657e in operator() (_rPropertyName=..., this=<optimized out>)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/extensions/source/propctrlr/composeduiupdate.cxx:634
#26 for_each<std::_Rb_tree_const_iterator<rtl::OUString>, pcr::{anonymous}::BooleanUIAspectUpdate> (__f=<optimized out>, __last=<optimized out>, __first=<optimized out>)
    at /usr/include/c++/4.6/bits/stl_algo.h:4379
#27 forEach (_bFlag=1 '\001', _rUpdater=..., _rProperties=...)
---Type <return> to continue, or q <return> to quit---
   at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/extensions/source/propctrlr/composeduiupdate.cxx:639
#28 pcr::(anonymous namespace)::lcl_fireUIStateFlag (_rUIUpdate=..., _rHandlerUIs=..., _pGetPositives=
    (pcr::(anonymous namespace)::StringBag &(pcr::CachedInspectorUI::*)(pcr::CachedInspectorUI * const)) 0xa86d71e0 <pcr::CachedInspectorUI::getEnabledProperties()>, 
    _pGetNegatives=
    (pcr::(anonymous namespace)::StringBag &(pcr::CachedInspectorUI::*)(pcr::CachedInspectorUI * const)) 0xa86d71f0 <pcr::CachedInspectorUI::getDisabledProperties()>)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/extensions/source/propctrlr/composeduiupdate.cxx:691
#29 0xa86d68ef in pcr::ComposedPropertyUIUpdate::impl_fireEnablePropertyUI_throw (this=0x8740e00)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/extensions/source/propctrlr/composeduiupdate.cxx:707
#30 0xa86d7130 in pcr::ComposedPropertyUIUpdate::impl_fireAll_throw (this=0x8740e00)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/extensions/source/propctrlr/composeduiupdate.cxx:785
#31 0xa869e6c3 in ~ComposedUIAutoFireGuard (this=<optimized out>, __in_chrg=<optimized out>)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/extensions/source/propctrlr/composeduiupdate.hxx:223
#32 pcr::OPropertyBrowserController::impl_broadcastPropertyChange_nothrow (this=0x90521b8, _rPropertyName=..., _rNewValue=..., _rOldValue=..., _bFirstTimeInit=152)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/extensions/source/propctrlr/propcontroller.cxx:1749
#33 0xa869e8e6 in pcr::OPropertyBrowserController::Commit (this=0x90521b8, rName=..., _rValue=...)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/extensions/source/propctrlr/propcontroller.cxx:1430
#34 0xa86be535 in pcr::OBrowserListBox::valueChanged (this=0x8a81d30, _rxControl=...)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/extensions/source/propctrlr/browserlistbox.cxx:1015
#35 0xa86bd282 in pcr::PropertyControlContext_Impl::impl_processEvent_throw (this=0x907f4b8, _rEvent=...)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/extensions/source/propctrlr/browserlistbox.cxx:346
#36 0xa86bd2e3 in pcr::PropertyControlContext_Impl::processEvent (this=0x907f4b8, _rEvent=...)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/extensions/source/propctrlr/browserlistbox.cxx:324
#37 0xb7a47f70 in comphelper::AsyncEventNotifier::run (this=0x9062930)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/comphelper/source/misc/asyncnotification.cxx:237
#38 0xa86c07c0 in osl::threadFunc (param=0x9062930)
    at /build/buildd-libreoffice_3.4.3-4-i386-Lqn_mu/libreoffice-3.4.3/libreoffice-build/build/libreoffice-3.4.3.2/solver/340/unxlngi6.pro/inc/osl/thread.hxx:188
#39 0xb7f971ca in osl_thread_start_Impl (pData=0x8cb26f0) at thread.c:276
#40 0xb7b08c39 in start_thread () from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
#41 0xb7bec96e in clone () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further
Comment 1 mpapet 2011-11-26 20:51:20 UTC
BTW, The application packages are from Debian's Testing distro.  No fancy stuff, just straight from Debian Testing.
Comment 2 Julien Nabet 2011-12-03 15:25:45 UTC
I can't try to reproduce this pb since I don't have the datasource name.
(Debian x86-32, with unixodbc, unixodbc-dev packages installed) 

So do you reproduce this pb with a brand new file ?
Have you tried to open journal-file with 3.4.4 (current version) ?
Comment 3 mpapet 2011-12-17 10:18:33 UTC
Hi,

My local .odbc.ini file has this

[journal]
Description             = SQLite3-journal
Driver          = SQLite3
Database                = /home/mpapet/Documents/journal.sqlite
Timeout         = 100000
StepAPI         = No
ShortNames              = No
FKSupport               = No
SyncPragma              = NORMAL
JournalMode             = DELETE
LoadExt         =

/etc/odbcinst.ini has
[SQLite]
Description             = SQLite ODBC Driver
Driver          = /usr/lib/odbc/libsqliteodbc.so
Setup           = /usr/lib/odbc/libsqliteodbc.so
UsageCount              = 1

[SQLite3]
Description             = SQLite3 ODBC Driver
Driver          = /usr/lib/odbc/libsqlite3odbc.so
Setup           = /usr/lib/odbc/libsqlite3odbc.so
UsageCount              = 1
Comment 4 David Tardon 2011-12-18 23:48:46 UTC

*** This bug has been marked as a duplicate of bug 40298 ***
Comment 5 Björn Michaelsen 2011-12-22 05:49:37 UTC
RESOLVED, FIXED or CLOSED bugs cant be KEYWORD NEEDINFO.